1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 MSVCR_DLL 649 LIBCXX 650 LLVM_LIBS 651 LLVM_LDFLAGS 652 LLVM_CFLAGS 653 LLVM_CONFIG 654 LIBFFI_LIBS 655 LIBFFI_CFLAGS 656 STATIC_CXX_SETTING 657 LIBDL 658 LIBM 659 LIBZIP_CAN_USE_MMAP 660 USE_EXTERNAL_LIBZ 661 USE_EXTERNAL_LIBPNG 662 PNG_LIBS 663 PNG_CFLAGS 664 USE_EXTERNAL_LCMS 665 LCMS_LIBS 666 LCMS_CFLAGS 667 USE_EXTERNAL_LIBGIF 668 USE_EXTERNAL_LIBJPEG 669 ALSA_LIBS 670 ALSA_CFLAGS 671 FREETYPE_BUNDLE_LIB_PATH 672 FREETYPE_LIBS 673 FREETYPE_CFLAGS 674 CUPS_CFLAGS 675 X_EXTRA_LIBS 676 X_LIBS 677 X_PRE_LIBS 678 X_CFLAGS 679 XMKMF 680 FIXPATH 681 ZIP_DEBUGINFO_FILES 682 ENABLE_DEBUG_SYMBOLS 683 CFLAGS_WARNINGS_ARE_ERRORS 684 COMPILER_SUPPORTS_TARGET_BITS_FLAG 685 ZERO_ARCHFLAG 686 LDFLAGS_CXX_JDK 687 LDFLAGS_JDKEXE_SUFFIX 688 LDFLAGS_JDKLIB_SUFFIX 689 LDFLAGS_JDKEXE 690 LDFLAGS_JDKLIB 691 CXXFLAGS_JDKEXE 692 CXXFLAGS_JDKLIB 693 CFLAGS_JDKEXE 694 CFLAGS_JDKLIB 695 MACOSX_VERSION_MIN 696 LEGACY_EXTRA_LDFLAGS 697 LEGACY_EXTRA_CXXFLAGS 698 LEGACY_EXTRA_CFLAGS 699 CXX_O_FLAG_NONE 700 CXX_O_FLAG_DEBUG 701 CXX_O_FLAG_NORM 702 CXX_O_FLAG_HI 703 CXX_O_FLAG_HIGHEST 704 C_O_FLAG_NONE 705 C_O_FLAG_DEBUG 706 C_O_FLAG_NORM 707 C_O_FLAG_HI 708 C_O_FLAG_HIGHEST 709 CXXFLAGS_DEBUG_OPTIONS 710 CFLAGS_DEBUG_OPTIONS 711 CXXFLAGS_DEBUG_SYMBOLS 712 CFLAGS_DEBUG_SYMBOLS 713 CXX_FLAG_DEPS 714 C_FLAG_DEPS 715 SET_SHARED_LIBRARY_MAPFILE 716 SET_SHARED_LIBRARY_NAME 717 SET_SHARED_LIBRARY_ORIGIN 718 SET_EXECUTABLE_ORIGIN 719 SHARED_LIBRARY_FLAGS 720 CXX_FLAG_REORDER 721 C_FLAG_REORDER 722 SYSROOT_LDFLAGS 723 SYSROOT_CFLAGS 724 RC_FLAGS 725 AR_OUT_OPTION 726 LD_OUT_OPTION 727 EXE_OUT_OPTION 728 CC_OUT_OPTION 729 POST_MCS_CMD 730 POST_STRIP_CMD 731 ARFLAGS 732 COMPILER_TARGET_BITS_FLAG 733 JT_HOME 734 JTREGEXE 735 USING_BROKEN_SUSE_LD 736 PACKAGE_PATH 737 LDEXECXX 738 LDEXE 739 USE_CLANG 740 HOTSPOT_LD 741 HOTSPOT_CXX 742 HOTSPOT_RC 743 HOTSPOT_MT 744 BUILD_LD 745 BUILD_CXX 746 BUILD_CC 747 ac_ct_OBJDUMP 748 OBJDUMP 749 ac_ct_OBJCOPY 750 OBJCOPY 751 ac_ct_NM 752 ac_ct_STRIP 753 MCS 754 GNM 755 NM 756 STRIP 757 MSBUILD 758 DUMPBIN 759 RC 760 MT 761 LIPO 762 ac_ct_OBJC 763 OBJCFLAGS 764 OBJC 765 ac_ct_AR 766 AR 767 AS 768 LDCXX 769 LD 770 CXXCPP 771 CPP 772 ac_ct_CXX 773 CXXFLAGS 774 CXX 775 ac_ct_PROPER_COMPILER_CXX 776 PROPER_COMPILER_CXX 777 TOOLCHAIN_PATH_CXX 778 POTENTIAL_CXX 779 OBJEXT 780 EXEEXT 781 ac_ct_CC 782 CPPFLAGS 783 LDFLAGS 784 CFLAGS 785 CC 786 ac_ct_PROPER_COMPILER_CC 787 PROPER_COMPILER_CC 788 TOOLCHAIN_PATH_CC 789 POTENTIAL_CC 790 VS_LIB 791 VS_INCLUDE 792 VS_PATH 793 CYGWIN_LINK 794 EXE_SUFFIX 795 OBJ_SUFFIX 796 STATIC_LIBRARY 797 SHARED_LIBRARY 798 STATIC_LIBRARY_SUFFIX 799 SHARED_LIBRARY_SUFFIX 800 LIBRARY_PREFIX 801 TOOLCHAIN_TYPE 802 BUILD_HOTSPOT 803 HOTSPOT_DIST 804 BUILD_OUTPUT 805 OVERRIDE_SRC_ROOT 806 ADD_SRC_ROOT 807 JDK_TOPDIR 808 NASHORN_TOPDIR 809 HOTSPOT_TOPDIR 810 JAXWS_TOPDIR 811 JAXP_TOPDIR 812 CORBA_TOPDIR 813 LANGTOOLS_TOPDIR 814 JAVAC_FLAGS 815 BOOT_JDK_SOURCETARGET 816 JARSIGNER 817 NATIVE2ASCII 818 JAR 819 JAVAH 820 JAVAC 821 JAVA 822 BOOT_JDK 823 BOOT_TOOLSJAR 824 BOOT_RTJAR 825 JAVA_CHECK 826 JAVAC_CHECK 827 COOKED_BUILD_NUMBER 828 JDK_VERSION 829 COPYRIGHT_YEAR 830 MACOSX_BUNDLE_ID_BASE 831 MACOSX_BUNDLE_NAME_BASE 832 COMPANY_NAME 833 JDK_RC_PLATFORM_NAME 834 PRODUCT_SUFFIX 835 PRODUCT_NAME 836 LAUNCHER_NAME 837 MILESTONE 838 JDK_BUILD_NUMBER 839 JDK_UPDATE_VERSION 840 JDK_MICRO_VERSION 841 JDK_MINOR_VERSION 842 JDK_MAJOR_VERSION 843 USER_RELEASE_SUFFIX 844 COMPRESS_JARS 845 RMICONNECTOR_IIOP 846 UNLIMITED_CRYPTO 847 CACERTS_FILE 848 TEST_IN_BUILD 849 BUILD_HEADLESS 850 SUPPORT_HEADFUL 851 SUPPORT_HEADLESS 852 BDEPS_FTP 853 BDEPS_UNZIP 854 OS_VERSION_MICRO 855 OS_VERSION_MINOR 856 OS_VERSION_MAJOR 857 PKG_CONFIG 858 CODESIGN 859 XATTR 860 DSYMUTIL 861 IS_GNU_TIME 862 TIME 863 STAT 864 HG 865 READELF 866 OTOOL 867 LDD 868 ZIP 869 UNZIP 870 FIND_DELETE 871 OUTPUT_SYNC 872 OUTPUT_SYNC_SUPPORTED 873 MAKE 874 CHECK_TOOLSDIR_MAKE 875 CHECK_TOOLSDIR_GMAKE 876 CHECK_MAKE 877 CHECK_GMAKE 878 PKGHANDLER 879 OUTPUT_ROOT 880 CONF_NAME 881 SPEC 882 SDKROOT 883 XCODEBUILD 884 BUILD_VARIANT_RELEASE 885 DEBUG_CLASSFILES 886 FASTDEBUG 887 VARIANT 888 DEBUG_LEVEL 889 MACOSX_UNIVERSAL 890 INCLUDE_SA 891 JVM_VARIANT_CORE 892 JVM_VARIANT_ZEROSHARK 893 JVM_VARIANT_ZERO 894 JVM_VARIANT_KERNEL 895 JVM_VARIANT_MINIMAL1 896 JVM_VARIANT_CLIENT 897 JVM_VARIANT_SERVER 898 JVM_VARIANTS 899 JVM_INTERPRETER 900 JDK_VARIANT 901 SET_OPENJDK 902 BUILD_LOG_WRAPPER 903 BUILD_LOG_PREVIOUS 904 BUILD_LOG 905 TOPDIR 906 PATH_SEP 907 ZERO_ARCHDEF 908 DEFINE_CROSS_COMPILE_ARCH 909 LP64 910 OPENJDK_TARGET_OS_EXPORT_DIR 911 OPENJDK_TARGET_OS_API_DIR 912 OPENJDK_TARGET_CPU_JLI_CFLAGS 913 OPENJDK_TARGET_CPU_OSARCH 914 OPENJDK_TARGET_CPU_ISADIR 915 OPENJDK_TARGET_CPU_LIBDIR 916 OPENJDK_TARGET_CPU_LEGACY_LIB 917 OPENJDK_TARGET_CPU_LEGACY 918 REQUIRED_OS_VERSION 919 REQUIRED_OS_NAME 920 COMPILE_TYPE 921 OPENJDK_TARGET_CPU_ENDIAN 922 OPENJDK_TARGET_CPU_BITS 923 OPENJDK_TARGET_CPU_ARCH 924 OPENJDK_TARGET_CPU 925 OPENJDK_TARGET_OS_ENV 926 OPENJDK_TARGET_OS_API 927 OPENJDK_TARGET_OS 928 OPENJDK_BUILD_CPU_ENDIAN 929 OPENJDK_BUILD_CPU_BITS 930 OPENJDK_BUILD_CPU_ARCH 931 OPENJDK_BUILD_CPU 932 OPENJDK_BUILD_OS_ENV 933 OPENJDK_BUILD_OS_API 934 OPENJDK_BUILD_OS 935 OPENJDK_BUILD_AUTOCONF_NAME 936 OPENJDK_TARGET_AUTOCONF_NAME 937 target_os 938 target_vendor 939 target_cpu 940 target 941 host_os 942 host_vendor 943 host_cpu 944 host 945 build_os 946 build_vendor 947 build_cpu 948 build 949 CPIO 950 SETFILE 951 DF 952 READLINK 953 CYGPATH 954 SED 955 FGREP 956 EGREP 957 GREP 958 AWK 959 XARGS 960 WHICH 961 WC 962 UNIQ 963 UNAME 964 TR 965 TOUCH 966 TEE 967 TAR 968 TAIL 969 SORT 970 SH 971 RM 972 PRINTF 973 NAWK 974 MV 975 MKTEMP 976 MKDIR 977 LS 978 LN 979 HEAD 980 FIND 981 FILE 982 EXPR 983 ECHO 984 DIRNAME 985 DIFF 986 DATE 987 CUT 988 CP 989 COMM 990 CMP 991 CHMOD 992 CAT 993 BASH 994 BASENAME 995 DATE_WHEN_CONFIGURED 996 CONFIGURE_COMMAND_LINE 997 target_alias 998 host_alias 999 build_alias 1000 LIBS 1001 ECHO_T 1002 ECHO_N 1003 ECHO_C 1004 DEFS 1005 mandir 1006 localedir 1007 libdir 1008 psdir 1009 pdfdir 1010 dvidir 1011 htmldir 1012 infodir 1013 docdir 1014 oldincludedir 1015 includedir 1016 localstatedir 1017 sharedstatedir 1018 sysconfdir 1019 datadir 1020 datarootdir 1021 libexecdir 1022 sbindir 1023 bindir 1024 program_transform_name 1025 prefix 1026 exec_prefix 1027 PACKAGE_URL 1028 PACKAGE_BUGREPORT 1029 PACKAGE_STRING 1030 PACKAGE_VERSION 1031 PACKAGE_TARNAME 1032 PACKAGE_NAME 1033 PATH_SEPARATOR 1034 SHELL' 1035 ac_subst_files='' 1036 ac_user_opts=' 1037 enable_option_checking 1038 with_target_bits 1039 enable_openjdk_only 1040 with_custom_make_dir 1041 with_jdk_variant 1042 with_jvm_interpreter 1043 with_jvm_variants 1044 enable_debug 1045 with_debug_level 1046 with_devkit 1047 with_sys_root 1048 with_sysroot 1049 with_tools_dir 1050 with_toolchain_path 1051 with_extra_path 1052 with_sdk_name 1053 with_conf_name 1054 with_output_sync 1055 with_builddeps_conf 1056 with_builddeps_server 1057 with_builddeps_dir 1058 with_builddeps_group 1059 enable_headful 1060 enable_hotspot_test_in_build 1061 with_cacerts_file 1062 enable_unlimited_crypto 1063 enable_rmiconnector_iiop 1064 with_milestone 1065 with_update_version 1066 with_user_release_suffix 1067 with_build_number 1068 with_boot_jdk 1069 with_add_source_root 1070 with_override_source_root 1071 with_adds_and_overrides 1072 with_override_langtools 1073 with_override_corba 1074 with_override_jaxp 1075 with_override_jaxws 1076 with_override_hotspot 1077 with_override_nashorn 1078 with_override_jdk 1079 with_import_hotspot 1080 with_toolchain_type 1081 with_jtreg 1082 with_extra_cflags 1083 with_extra_cxxflags 1084 with_extra_ldflags 1085 enable_debug_symbols 1086 enable_zip_debug_info 1087 with_x 1088 with_cups 1089 with_cups_include 1090 with_freetype 1091 with_freetype_include 1092 with_freetype_lib 1093 with_freetype_src 1094 enable_freetype_bundling 1095 with_alsa 1096 with_alsa_include 1097 with_alsa_lib 1098 with_libjpeg 1099 with_giflib 1100 with_lcms 1101 with_libpng 1102 with_zlib 1103 with_stdc__lib 1104 with_msvcr_dll 1105 with_dxsdk 1106 with_dxsdk_lib 1107 with_dxsdk_include 1108 with_num_cores 1109 with_memory_size 1110 with_jobs 1111 with_boot_jdk_jvmargs 1112 with_sjavac_server_java 1113 enable_sjavac 1114 enable_precompiled_headers 1115 enable_ccache 1116 with_ccache_dir 1117 ' 1118 ac_precious_vars='build_alias 1119 host_alias 1120 target_alias 1121 BASENAME 1122 BASH 1123 CAT 1124 CHMOD 1125 CMP 1126 COMM 1127 CP 1128 CUT 1129 DATE 1130 DIFF 1131 DIRNAME 1132 ECHO 1133 EXPR 1134 FILE 1135 FIND 1136 HEAD 1137 LN 1138 LS 1139 MKDIR 1140 MKTEMP 1141 MV 1142 NAWK 1143 PRINTF 1144 RM 1145 SH 1146 SORT 1147 TAIL 1148 TAR 1149 TEE 1150 TOUCH 1151 TR 1152 UNAME 1153 UNIQ 1154 WC 1155 WHICH 1156 XARGS 1157 AWK 1158 GREP 1159 EGREP 1160 FGREP 1161 SED 1162 CYGPATH 1163 READLINK 1164 DF 1165 SETFILE 1166 CPIO 1167 UNZIP 1168 ZIP 1169 LDD 1170 OTOOL 1171 READELF 1172 HG 1173 STAT 1174 TIME 1175 DSYMUTIL 1176 XATTR 1177 CODESIGN 1178 PKG_CONFIG 1179 JAVA 1180 JAVAC 1181 JAVAH 1182 JAR 1183 NATIVE2ASCII 1184 JARSIGNER 1185 CC 1186 CFLAGS 1187 LDFLAGS 1188 LIBS 1189 CPPFLAGS 1190 CXX 1191 CXXFLAGS 1192 CCC 1193 CPP 1194 CXXCPP 1195 AS 1196 AR 1197 OBJC 1198 OBJCFLAGS 1199 LIPO 1200 STRIP 1201 NM 1202 GNM 1203 MCS 1204 OBJCOPY 1205 OBJDUMP 1206 BUILD_CC 1207 BUILD_CXX 1208 BUILD_LD 1209 JTREGEXE 1210 XMKMF 1211 FREETYPE_CFLAGS 1212 FREETYPE_LIBS 1213 ALSA_CFLAGS 1214 ALSA_LIBS 1215 LCMS_CFLAGS 1216 LCMS_LIBS 1217 PNG_CFLAGS 1218 PNG_LIBS 1219 LIBFFI_CFLAGS 1220 LIBFFI_LIBS 1221 CCACHE' 1222 1223 1224 # Initialize some variables set by options. 1225 ac_init_help= 1226 ac_init_version=false 1227 ac_unrecognized_opts= 1228 ac_unrecognized_sep= 1229 # The variables have the same names as the options, with 1230 # dashes changed to underlines. 1231 cache_file=/dev/null 1232 exec_prefix=NONE 1233 no_create= 1234 no_recursion= 1235 prefix=NONE 1236 program_prefix=NONE 1237 program_suffix=NONE 1238 program_transform_name=s,x,x, 1239 silent= 1240 site= 1241 srcdir= 1242 verbose= 1243 x_includes=NONE 1244 x_libraries=NONE 1245 1246 # Installation directory options. 1247 # These are left unexpanded so users can "make install exec_prefix=/foo" 1248 # and all the variables that are supposed to be based on exec_prefix 1249 # by default will actually change. 1250 # Use braces instead of parens because sh, perl, etc. also accept them. 1251 # (The list follows the same order as the GNU Coding Standards.) 1252 bindir='${exec_prefix}/bin' 1253 sbindir='${exec_prefix}/sbin' 1254 libexecdir='${exec_prefix}/libexec' 1255 datarootdir='${prefix}/share' 1256 datadir='${datarootdir}' 1257 sysconfdir='${prefix}/etc' 1258 sharedstatedir='${prefix}/com' 1259 localstatedir='${prefix}/var' 1260 includedir='${prefix}/include' 1261 oldincludedir='/usr/include' 1262 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1263 infodir='${datarootdir}/info' 1264 htmldir='${docdir}' 1265 dvidir='${docdir}' 1266 pdfdir='${docdir}' 1267 psdir='${docdir}' 1268 libdir='${exec_prefix}/lib' 1269 localedir='${datarootdir}/locale' 1270 mandir='${datarootdir}/man' 1271 1272 ac_prev= 1273 ac_dashdash= 1274 for ac_option 1275 do 1276 # If the previous option needs an argument, assign it. 1277 if test -n "$ac_prev"; then 1278 eval $ac_prev=\$ac_option 1279 ac_prev= 1280 continue 1281 fi 1282 1283 case $ac_option in 1284 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1285 *=) ac_optarg= ;; 1286 *) ac_optarg=yes ;; 1287 esac 1288 1289 # Accept the important Cygnus configure options, so we can diagnose typos. 1290 1291 case $ac_dashdash$ac_option in 1292 --) 1293 ac_dashdash=yes ;; 1294 1295 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1296 ac_prev=bindir ;; 1297 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1298 bindir=$ac_optarg ;; 1299 1300 -build | --build | --buil | --bui | --bu) 1301 ac_prev=build_alias ;; 1302 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1303 build_alias=$ac_optarg ;; 1304 1305 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1306 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1307 ac_prev=cache_file ;; 1308 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1309 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1310 cache_file=$ac_optarg ;; 1311 1312 --config-cache | -C) 1313 cache_file=config.cache ;; 1314 1315 -datadir | --datadir | --datadi | --datad) 1316 ac_prev=datadir ;; 1317 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1318 datadir=$ac_optarg ;; 1319 1320 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1321 | --dataroo | --dataro | --datar) 1322 ac_prev=datarootdir ;; 1323 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1324 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1325 datarootdir=$ac_optarg ;; 1326 1327 -disable-* | --disable-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid feature name: $ac_useropt" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336 "enable_$ac_useropt" 1337 "*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval enable_$ac_useropt=no ;; 1342 1343 -docdir | --docdir | --docdi | --doc | --do) 1344 ac_prev=docdir ;; 1345 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1346 docdir=$ac_optarg ;; 1347 1348 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1349 ac_prev=dvidir ;; 1350 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1351 dvidir=$ac_optarg ;; 1352 1353 -enable-* | --enable-*) 1354 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1357 as_fn_error $? "invalid feature name: $ac_useropt" 1358 ac_useropt_orig=$ac_useropt 1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1360 case $ac_user_opts in 1361 *" 1362 "enable_$ac_useropt" 1363 "*) ;; 1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1365 ac_unrecognized_sep=', ';; 1366 esac 1367 eval enable_$ac_useropt=\$ac_optarg ;; 1368 1369 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1370 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1371 | --exec | --exe | --ex) 1372 ac_prev=exec_prefix ;; 1373 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1374 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1375 | --exec=* | --exe=* | --ex=*) 1376 exec_prefix=$ac_optarg ;; 1377 1378 -gas | --gas | --ga | --g) 1379 # Obsolete; use --with-gas. 1380 with_gas=yes ;; 1381 1382 -help | --help | --hel | --he | -h) 1383 ac_init_help=long ;; 1384 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1385 ac_init_help=recursive ;; 1386 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1387 ac_init_help=short ;; 1388 1389 -host | --host | --hos | --ho) 1390 ac_prev=host_alias ;; 1391 -host=* | --host=* | --hos=* | --ho=*) 1392 host_alias=$ac_optarg ;; 1393 1394 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1395 ac_prev=htmldir ;; 1396 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1397 | --ht=*) 1398 htmldir=$ac_optarg ;; 1399 1400 -includedir | --includedir | --includedi | --included | --include \ 1401 | --includ | --inclu | --incl | --inc) 1402 ac_prev=includedir ;; 1403 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1404 | --includ=* | --inclu=* | --incl=* | --inc=*) 1405 includedir=$ac_optarg ;; 1406 1407 -infodir | --infodir | --infodi | --infod | --info | --inf) 1408 ac_prev=infodir ;; 1409 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1410 infodir=$ac_optarg ;; 1411 1412 -libdir | --libdir | --libdi | --libd) 1413 ac_prev=libdir ;; 1414 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1415 libdir=$ac_optarg ;; 1416 1417 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1418 | --libexe | --libex | --libe) 1419 ac_prev=libexecdir ;; 1420 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1421 | --libexe=* | --libex=* | --libe=*) 1422 libexecdir=$ac_optarg ;; 1423 1424 -localedir | --localedir | --localedi | --localed | --locale) 1425 ac_prev=localedir ;; 1426 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1427 localedir=$ac_optarg ;; 1428 1429 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1430 | --localstate | --localstat | --localsta | --localst | --locals) 1431 ac_prev=localstatedir ;; 1432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1433 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1434 localstatedir=$ac_optarg ;; 1435 1436 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1437 ac_prev=mandir ;; 1438 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1439 mandir=$ac_optarg ;; 1440 1441 -nfp | --nfp | --nf) 1442 # Obsolete; use --without-fp. 1443 with_fp=no ;; 1444 1445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1446 | --no-cr | --no-c | -n) 1447 no_create=yes ;; 1448 1449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1451 no_recursion=yes ;; 1452 1453 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1454 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1455 | --oldin | --oldi | --old | --ol | --o) 1456 ac_prev=oldincludedir ;; 1457 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1458 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1459 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1460 oldincludedir=$ac_optarg ;; 1461 1462 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1463 ac_prev=prefix ;; 1464 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1465 prefix=$ac_optarg ;; 1466 1467 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1468 | --program-pre | --program-pr | --program-p) 1469 ac_prev=program_prefix ;; 1470 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1471 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1472 program_prefix=$ac_optarg ;; 1473 1474 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1475 | --program-suf | --program-su | --program-s) 1476 ac_prev=program_suffix ;; 1477 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1478 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1479 program_suffix=$ac_optarg ;; 1480 1481 -program-transform-name | --program-transform-name \ 1482 | --program-transform-nam | --program-transform-na \ 1483 | --program-transform-n | --program-transform- \ 1484 | --program-transform | --program-transfor \ 1485 | --program-transfo | --program-transf \ 1486 | --program-trans | --program-tran \ 1487 | --progr-tra | --program-tr | --program-t) 1488 ac_prev=program_transform_name ;; 1489 -program-transform-name=* | --program-transform-name=* \ 1490 | --program-transform-nam=* | --program-transform-na=* \ 1491 | --program-transform-n=* | --program-transform-=* \ 1492 | --program-transform=* | --program-transfor=* \ 1493 | --program-transfo=* | --program-transf=* \ 1494 | --program-trans=* | --program-tran=* \ 1495 | --progr-tra=* | --program-tr=* | --program-t=*) 1496 program_transform_name=$ac_optarg ;; 1497 1498 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1499 ac_prev=pdfdir ;; 1500 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1501 pdfdir=$ac_optarg ;; 1502 1503 -psdir | --psdir | --psdi | --psd | --ps) 1504 ac_prev=psdir ;; 1505 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1506 psdir=$ac_optarg ;; 1507 1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1509 | -silent | --silent | --silen | --sile | --sil) 1510 silent=yes ;; 1511 1512 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1513 ac_prev=sbindir ;; 1514 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1515 | --sbi=* | --sb=*) 1516 sbindir=$ac_optarg ;; 1517 1518 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1519 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1520 | --sharedst | --shareds | --shared | --share | --shar \ 1521 | --sha | --sh) 1522 ac_prev=sharedstatedir ;; 1523 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1524 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1525 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1526 | --sha=* | --sh=*) 1527 sharedstatedir=$ac_optarg ;; 1528 1529 -site | --site | --sit) 1530 ac_prev=site ;; 1531 -site=* | --site=* | --sit=*) 1532 site=$ac_optarg ;; 1533 1534 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1535 ac_prev=srcdir ;; 1536 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1537 srcdir=$ac_optarg ;; 1538 1539 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1540 | --syscon | --sysco | --sysc | --sys | --sy) 1541 ac_prev=sysconfdir ;; 1542 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1543 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1544 sysconfdir=$ac_optarg ;; 1545 1546 -target | --target | --targe | --targ | --tar | --ta | --t) 1547 ac_prev=target_alias ;; 1548 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1549 target_alias=$ac_optarg ;; 1550 1551 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1552 verbose=yes ;; 1553 1554 -version | --version | --versio | --versi | --vers | -V) 1555 ac_init_version=: ;; 1556 1557 -with-* | --with-*) 1558 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1559 # Reject names that are not valid shell variable names. 1560 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1561 as_fn_error $? "invalid package name: $ac_useropt" 1562 ac_useropt_orig=$ac_useropt 1563 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1564 case $ac_user_opts in 1565 *" 1566 "with_$ac_useropt" 1567 "*) ;; 1568 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1569 ac_unrecognized_sep=', ';; 1570 esac 1571 eval with_$ac_useropt=\$ac_optarg ;; 1572 1573 -without-* | --without-*) 1574 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1575 # Reject names that are not valid shell variable names. 1576 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1577 as_fn_error $? "invalid package name: $ac_useropt" 1578 ac_useropt_orig=$ac_useropt 1579 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1580 case $ac_user_opts in 1581 *" 1582 "with_$ac_useropt" 1583 "*) ;; 1584 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1585 ac_unrecognized_sep=', ';; 1586 esac 1587 eval with_$ac_useropt=no ;; 1588 1589 --x) 1590 # Obsolete; use --with-x. 1591 with_x=yes ;; 1592 1593 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1594 | --x-incl | --x-inc | --x-in | --x-i) 1595 ac_prev=x_includes ;; 1596 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1597 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1598 x_includes=$ac_optarg ;; 1599 1600 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1601 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1602 ac_prev=x_libraries ;; 1603 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1604 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1605 x_libraries=$ac_optarg ;; 1606 1607 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1608 Try \`$0 --help' for more information" 1609 ;; 1610 1611 *=*) 1612 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1613 # Reject names that are not valid shell variable names. 1614 case $ac_envvar in #( 1615 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1616 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1617 esac 1618 eval $ac_envvar=\$ac_optarg 1619 export $ac_envvar ;; 1620 1621 *) 1622 # FIXME: should be removed in autoconf 3.0. 1623 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1624 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1625 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1626 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1627 ;; 1628 1629 esac 1630 done 1631 1632 if test -n "$ac_prev"; then 1633 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1634 as_fn_error $? "missing argument to $ac_option" 1635 fi 1636 1637 if test -n "$ac_unrecognized_opts"; then 1638 case $enable_option_checking in 1639 no) ;; 1640 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1641 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1642 esac 1643 fi 1644 1645 # Check all directory arguments for consistency. 1646 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1647 datadir sysconfdir sharedstatedir localstatedir includedir \ 1648 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1649 libdir localedir mandir 1650 do 1651 eval ac_val=\$$ac_var 1652 # Remove trailing slashes. 1653 case $ac_val in 1654 */ ) 1655 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1656 eval $ac_var=\$ac_val;; 1657 esac 1658 # Be sure to have absolute directory names. 1659 case $ac_val in 1660 [\\/$]* | ?:[\\/]* ) continue;; 1661 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1662 esac 1663 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1664 done 1665 1666 # There might be people who depend on the old broken behavior: `$host' 1667 # used to hold the argument of --host etc. 1668 # FIXME: To remove some day. 1669 build=$build_alias 1670 host=$host_alias 1671 target=$target_alias 1672 1673 # FIXME: To remove some day. 1674 if test "x$host_alias" != x; then 1675 if test "x$build_alias" = x; then 1676 cross_compiling=maybe 1677 elif test "x$build_alias" != "x$host_alias"; then 1678 cross_compiling=yes 1679 fi 1680 fi 1681 1682 ac_tool_prefix= 1683 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1684 1685 test "$silent" = yes && exec 6>/dev/null 1686 1687 1688 ac_pwd=`pwd` && test -n "$ac_pwd" && 1689 ac_ls_di=`ls -di .` && 1690 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1691 as_fn_error $? "working directory cannot be determined" 1692 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1693 as_fn_error $? "pwd does not report name of working directory" 1694 1695 1696 # Find the source files, if location was not specified. 1697 if test -z "$srcdir"; then 1698 ac_srcdir_defaulted=yes 1699 # Try the directory containing this script, then the parent directory. 1700 ac_confdir=`$as_dirname -- "$as_myself" || 1701 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1702 X"$as_myself" : 'X\(//\)[^/]' \| \ 1703 X"$as_myself" : 'X\(//\)$' \| \ 1704 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1705 $as_echo X"$as_myself" | 1706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1707 s//\1/ 1708 q 1709 } 1710 /^X\(\/\/\)[^/].*/{ 1711 s//\1/ 1712 q 1713 } 1714 /^X\(\/\/\)$/{ 1715 s//\1/ 1716 q 1717 } 1718 /^X\(\/\).*/{ 1719 s//\1/ 1720 q 1721 } 1722 s/.*/./; q'` 1723 srcdir=$ac_confdir 1724 if test ! -r "$srcdir/$ac_unique_file"; then 1725 srcdir=.. 1726 fi 1727 else 1728 ac_srcdir_defaulted=no 1729 fi 1730 if test ! -r "$srcdir/$ac_unique_file"; then 1731 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1732 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1733 fi 1734 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1735 ac_abs_confdir=`( 1736 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1737 pwd)` 1738 # When building in place, set srcdir=. 1739 if test "$ac_abs_confdir" = "$ac_pwd"; then 1740 srcdir=. 1741 fi 1742 # Remove unnecessary trailing slashes from srcdir. 1743 # Double slashes in file names in object file debugging info 1744 # mess up M-x gdb in Emacs. 1745 case $srcdir in 1746 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1747 esac 1748 for ac_var in $ac_precious_vars; do 1749 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1750 eval ac_env_${ac_var}_value=\$${ac_var} 1751 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1752 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1753 done 1754 1755 # 1756 # Report the --help message. 1757 # 1758 if test "$ac_init_help" = "long"; then 1759 # Omit some internal or obsolete options to make the list less imposing. 1760 # This message is too long to be a string in the A/UX 3.1 sh. 1761 cat <<_ACEOF 1762 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1763 1764 Usage: $0 [OPTION]... [VAR=VALUE]... 1765 1766 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1767 VAR=VALUE. See below for descriptions of some of the useful variables. 1768 1769 Defaults for the options are specified in brackets. 1770 1771 Configuration: 1772 -h, --help display this help and exit 1773 --help=short display options specific to this package 1774 --help=recursive display the short help of all the included packages 1775 -V, --version display version information and exit 1776 -q, --quiet, --silent do not print \`checking ...' messages 1777 --cache-file=FILE cache test results in FILE [disabled] 1778 -C, --config-cache alias for \`--cache-file=config.cache' 1779 -n, --no-create do not create output files 1780 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1781 1782 Installation directories: 1783 --prefix=PREFIX install architecture-independent files in PREFIX 1784 [$ac_default_prefix] 1785 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1786 [PREFIX] 1787 1788 By default, \`make install' will install all the files in 1789 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1790 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1791 for instance \`--prefix=\$HOME'. 1792 1793 For better control, use the options below. 1794 1795 Fine tuning of the installation directories: 1796 --bindir=DIR user executables [EPREFIX/bin] 1797 --sbindir=DIR system admin executables [EPREFIX/sbin] 1798 --libexecdir=DIR program executables [EPREFIX/libexec] 1799 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1800 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1801 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1802 --libdir=DIR object code libraries [EPREFIX/lib] 1803 --includedir=DIR C header files [PREFIX/include] 1804 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1805 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1806 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1807 --infodir=DIR info documentation [DATAROOTDIR/info] 1808 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1809 --mandir=DIR man documentation [DATAROOTDIR/man] 1810 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1811 --htmldir=DIR html documentation [DOCDIR] 1812 --dvidir=DIR dvi documentation [DOCDIR] 1813 --pdfdir=DIR pdf documentation [DOCDIR] 1814 --psdir=DIR ps documentation [DOCDIR] 1815 _ACEOF 1816 1817 cat <<\_ACEOF 1818 1819 X features: 1820 --x-includes=DIR X include files are in DIR 1821 --x-libraries=DIR X library files are in DIR 1822 1823 System types: 1824 --build=BUILD configure for building on BUILD [guessed] 1825 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1826 --target=TARGET configure for building compilers for TARGET [HOST] 1827 _ACEOF 1828 fi 1829 1830 if test -n "$ac_init_help"; then 1831 case $ac_init_help in 1832 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1833 esac 1834 cat <<\_ACEOF 1835 1836 Optional Features: 1837 --disable-option-checking ignore unrecognized --enable/--with options 1838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1840 --enable-openjdk-only suppress building custom source even if present 1841 [disabled] 1842 --enable-debug set the debug level to fastdebug (shorthand for 1843 --with-debug-level=fastdebug) [disabled] 1844 --disable-headful disable building headful support (graphical UI 1845 support) [enabled] 1846 --enable-hotspot-test-in-build 1847 run the Queens test after Hotspot build [disabled] 1848 --enable-unlimited-crypto 1849 Enable unlimited crypto policy [disabled] 1850 --enable-rmiconnector-iiop 1851 enable the JMX RMIConnector iiop transport 1852 [disabled] 1853 --disable-debug-symbols disable generation of debug symbols [enabled] 1854 --disable-zip-debug-info 1855 disable zipping of debug-info files [enabled] 1856 --disable-freetype-bundling 1857 disable bundling of the freetype library with the 1858 build result [enabled on Windows or when using 1859 --with-freetype, disabled otherwise] 1860 --enable-sjavac use sjavac to do fast incremental compiles 1861 [disabled] 1862 --disable-precompiled-headers 1863 disable using precompiled headers when compiling C++ 1864 [enabled] 1865 --enable-ccache enable using ccache to speed up recompilations 1866 [disabled] 1867 1868 Optional Packages: 1869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1871 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1872 support it), e.g. --with-target-bits=32 [guessed] 1873 --with-custom-make-dir Deprecated. Option is kept for backwards 1874 compatibility and is ignored 1875 --with-jdk-variant JDK variant to build (normal) [normal] 1876 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1877 --with-jvm-variants JVM variants (separated by commas) to build (server, 1878 client, minimal1, kernel, zero, zeroshark, core) 1879 [server] 1880 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1881 optimized (HotSpot build only)) [release] 1882 --with-devkit use this devkit for compilers, tools and resources 1883 --with-sys-root alias for --with-sysroot for backwards compatability 1884 --with-sysroot use this directory as sysroot 1885 --with-tools-dir alias for --with-toolchain-path for backwards 1886 compatibility 1887 --with-toolchain-path prepend these directories when searching for 1888 toolchain binaries (compilers etc) 1889 --with-extra-path prepend these directories to the default path 1890 --with-sdk-name use the platform SDK of the given name. [macosx] 1891 --with-conf-name use this as the name of the configuration [generated 1892 from important configuration options] 1893 --with-output-sync set make output sync type if supported by make. 1894 [recurse] 1895 --with-builddeps-conf use this configuration file for the builddeps 1896 --with-builddeps-server download and use build dependencies from this server 1897 url 1898 --with-builddeps-dir store downloaded build dependencies here 1899 [/localhome/builddeps] 1900 --with-builddeps-group chgrp the downloaded build dependencies to this 1901 group 1902 --with-cacerts-file specify alternative cacerts file 1903 --with-milestone Set milestone value for build [internal] 1904 --with-update-version Set update version value for build [b00] 1905 --with-user-release-suffix 1906 Add a custom string to the version string if build 1907 number is not set.[username_builddateb00] 1908 --with-build-number Set build number value for build [b00] 1909 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1910 --with-add-source-root for each and every source directory, look in this 1911 additional source root for the same directory; if it 1912 exists and have files in it, include it in the build 1913 --with-override-source-root 1914 for each and every source directory, look in this 1915 override source root for the same directory; if it 1916 exists, use that directory instead and ignore the 1917 directory in the original source root 1918 --with-adds-and-overrides 1919 use the subdirs 'adds' and 'overrides' in the 1920 specified directory as add-source-root and 1921 override-source-root 1922 --with-override-langtools 1923 use this langtools dir for the build 1924 --with-override-corba use this corba dir for the build 1925 --with-override-jaxp use this jaxp dir for the build 1926 --with-override-jaxws use this jaxws dir for the build 1927 --with-override-hotspot use this hotspot dir for the build 1928 --with-override-nashorn use this nashorn dir for the build 1929 --with-override-jdk use this jdk dir for the build 1930 --with-import-hotspot import hotspot binaries from this jdk image or 1931 hotspot build dist dir instead of building from 1932 source 1933 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1934 to show possible values [platform dependent] 1935 --with-jtreg Regression Test Harness [probed] 1936 --with-extra-cflags extra flags to be used when compiling jdk c-files 1937 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1938 --with-extra-ldflags extra flags to be used when linking jdk 1939 --with-x use the X Window System 1940 --with-cups specify prefix directory for the cups package 1941 (expecting the headers under PATH/include) 1942 --with-cups-include specify directory for the cups include files 1943 --with-freetype specify prefix directory for the freetype package 1944 (expecting the libraries under PATH/lib and the 1945 headers under PATH/include) 1946 --with-freetype-include specify directory for the freetype include files 1947 --with-freetype-lib specify directory for the freetype library 1948 --with-freetype-src specify directory with freetype sources to 1949 automatically build the library (experimental, 1950 Windows-only) 1951 --with-alsa specify prefix directory for the alsa package 1952 (expecting the libraries under PATH/lib and the 1953 headers under PATH/include) 1954 --with-alsa-include specify directory for the alsa include files 1955 --with-alsa-lib specify directory for the alsa library 1956 --with-libjpeg use libjpeg from build system or OpenJDK source 1957 (system, bundled) [bundled] 1958 --with-giflib use giflib from build system or OpenJDK source 1959 (system, bundled) [bundled] 1960 --with-lcms use lcms2 from build system or OpenJDK source 1961 (system, bundled) [bundled] 1962 --with-libpng use libpng from build system or OpenJDK source 1963 (system, bundled) [bundled] 1964 --with-zlib use zlib from build system or OpenJDK source 1965 (system, bundled) [bundled] 1966 --with-stdc++lib=<static>,<dynamic>,<default> 1967 force linking of the C++ runtime on Linux to either 1968 static or dynamic, default is static with dynamic as 1969 fallback 1970 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1971 only) [probed] 1972 --with-dxsdk Deprecated. Option is kept for backwards 1973 compatibility and is ignored 1974 --with-dxsdk-lib Deprecated. Option is kept for backwards 1975 compatibility and is ignored 1976 --with-dxsdk-include Deprecated. Option is kept for backwards 1977 compatibility and is ignored 1978 --with-num-cores number of cores in the build system, e.g. 1979 --with-num-cores=8 [probed] 1980 --with-memory-size memory (in MB) available in the build system, e.g. 1981 --with-memory-size=1024 [probed] 1982 --with-jobs number of parallel jobs to let make run [calculated 1983 based on cores and memory] 1984 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1985 invocations of boot JDK, overriding the default 1986 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1987 -enableassertions" 1988 --with-sjavac-server-java 1989 use this java binary for running the sjavac 1990 background server [Boot JDK java] 1991 --with-ccache-dir where to store ccache files [~/.ccache] 1992 1993 Some influential environment variables: 1994 BASENAME Override default value for BASENAME 1995 BASH Override default value for BASH 1996 CAT Override default value for CAT 1997 CHMOD Override default value for CHMOD 1998 CMP Override default value for CMP 1999 COMM Override default value for COMM 2000 CP Override default value for CP 2001 CUT Override default value for CUT 2002 DATE Override default value for DATE 2003 DIFF Override default value for DIFF 2004 DIRNAME Override default value for DIRNAME 2005 ECHO Override default value for ECHO 2006 EXPR Override default value for EXPR 2007 FILE Override default value for FILE 2008 FIND Override default value for FIND 2009 HEAD Override default value for HEAD 2010 LN Override default value for LN 2011 LS Override default value for LS 2012 MKDIR Override default value for MKDIR 2013 MKTEMP Override default value for MKTEMP 2014 MV Override default value for MV 2015 NAWK Override default value for NAWK 2016 PRINTF Override default value for PRINTF 2017 RM Override default value for RM 2018 SH Override default value for SH 2019 SORT Override default value for SORT 2020 TAIL Override default value for TAIL 2021 TAR Override default value for TAR 2022 TEE Override default value for TEE 2023 TOUCH Override default value for TOUCH 2024 TR Override default value for TR 2025 UNAME Override default value for UNAME 2026 UNIQ Override default value for UNIQ 2027 WC Override default value for WC 2028 WHICH Override default value for WHICH 2029 XARGS Override default value for XARGS 2030 AWK Override default value for AWK 2031 GREP Override default value for GREP 2032 EGREP Override default value for EGREP 2033 FGREP Override default value for FGREP 2034 SED Override default value for SED 2035 CYGPATH Override default value for CYGPATH 2036 READLINK Override default value for READLINK 2037 DF Override default value for DF 2038 SETFILE Override default value for SETFILE 2039 CPIO Override default value for CPIO 2040 UNZIP Override default value for UNZIP 2041 ZIP Override default value for ZIP 2042 LDD Override default value for LDD 2043 OTOOL Override default value for OTOOL 2044 READELF Override default value for READELF 2045 HG Override default value for HG 2046 STAT Override default value for STAT 2047 TIME Override default value for TIME 2048 DSYMUTIL Override default value for DSYMUTIL 2049 XATTR Override default value for XATTR 2050 CODESIGN Override default value for CODESIGN 2051 PKG_CONFIG path to pkg-config utility 2052 JAVA Override default value for JAVA 2053 JAVAC Override default value for JAVAC 2054 JAVAH Override default value for JAVAH 2055 JAR Override default value for JAR 2056 NATIVE2ASCII 2057 Override default value for NATIVE2ASCII 2058 JARSIGNER Override default value for JARSIGNER 2059 CC C compiler command 2060 CFLAGS C compiler flags 2061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2062 nonstandard directory <lib dir> 2063 LIBS libraries to pass to the linker, e.g. -l<library> 2064 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2065 you have headers in a nonstandard directory <include dir> 2066 CXX C++ compiler command 2067 CXXFLAGS C++ compiler flags 2068 CPP C preprocessor 2069 CXXCPP C++ preprocessor 2070 AS Override default value for AS 2071 AR Override default value for AR 2072 OBJC Objective C compiler command 2073 OBJCFLAGS Objective C compiler flags 2074 LIPO Override default value for LIPO 2075 STRIP Override default value for STRIP 2076 NM Override default value for NM 2077 GNM Override default value for GNM 2078 MCS Override default value for MCS 2079 OBJCOPY Override default value for OBJCOPY 2080 OBJDUMP Override default value for OBJDUMP 2081 BUILD_CC Override default value for BUILD_CC 2082 BUILD_CXX Override default value for BUILD_CXX 2083 BUILD_LD Override default value for BUILD_LD 2084 JTREGEXE Override default value for JTREGEXE 2085 XMKMF Path to xmkmf, Makefile generator for X Window System 2086 FREETYPE_CFLAGS 2087 C compiler flags for FREETYPE, overriding pkg-config 2088 FREETYPE_LIBS 2089 linker flags for FREETYPE, overriding pkg-config 2090 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2091 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2092 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2093 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2094 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2095 PNG_LIBS linker flags for PNG, overriding pkg-config 2096 LIBFFI_CFLAGS 2097 C compiler flags for LIBFFI, overriding pkg-config 2098 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2099 CCACHE Override default value for CCACHE 2100 2101 Use these variables to override the choices made by `configure' or to help 2102 it to find libraries and programs with nonstandard names/locations. 2103 2104 Report bugs to <build-dev@openjdk.java.net>. 2105 OpenJDK home page: <http://openjdk.java.net>. 2106 _ACEOF 2107 ac_status=$? 2108 fi 2109 2110 if test "$ac_init_help" = "recursive"; then 2111 # If there are subdirs, report their specific --help. 2112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2113 test -d "$ac_dir" || 2114 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2115 continue 2116 ac_builddir=. 2117 2118 case "$ac_dir" in 2119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2120 *) 2121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2122 # A ".." for each directory in $ac_dir_suffix. 2123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2124 case $ac_top_builddir_sub in 2125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2127 esac ;; 2128 esac 2129 ac_abs_top_builddir=$ac_pwd 2130 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2131 # for backward compatibility: 2132 ac_top_builddir=$ac_top_build_prefix 2133 2134 case $srcdir in 2135 .) # We are building in place. 2136 ac_srcdir=. 2137 ac_top_srcdir=$ac_top_builddir_sub 2138 ac_abs_top_srcdir=$ac_pwd ;; 2139 [\\/]* | ?:[\\/]* ) # Absolute name. 2140 ac_srcdir=$srcdir$ac_dir_suffix; 2141 ac_top_srcdir=$srcdir 2142 ac_abs_top_srcdir=$srcdir ;; 2143 *) # Relative name. 2144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2145 ac_top_srcdir=$ac_top_build_prefix$srcdir 2146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2147 esac 2148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2149 2150 cd "$ac_dir" || { ac_status=$?; continue; } 2151 # Check for guested configure. 2152 if test -f "$ac_srcdir/configure.gnu"; then 2153 echo && 2154 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2155 elif test -f "$ac_srcdir/configure"; then 2156 echo && 2157 $SHELL "$ac_srcdir/configure" --help=recursive 2158 else 2159 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2160 fi || ac_status=$? 2161 cd "$ac_pwd" || { ac_status=$?; break; } 2162 done 2163 fi 2164 2165 test -n "$ac_init_help" && exit $ac_status 2166 if $ac_init_version; then 2167 cat <<\_ACEOF 2168 OpenJDK configure jdk9 2169 generated by GNU Autoconf 2.69 2170 2171 Copyright (C) 2012 Free Software Foundation, Inc. 2172 This configure script is free software; the Free Software Foundation 2173 gives unlimited permission to copy, distribute and modify it. 2174 _ACEOF 2175 exit 2176 fi 2177 2178 ## ------------------------ ## 2179 ## Autoconf initialization. ## 2180 ## ------------------------ ## 2181 2182 # ac_fn_c_try_compile LINENO 2183 # -------------------------- 2184 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2185 ac_fn_c_try_compile () 2186 { 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 rm -f conftest.$ac_objext 2189 if { { ac_try="$ac_compile" 2190 case "(($ac_try" in 2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2192 *) ac_try_echo=$ac_try;; 2193 esac 2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2195 $as_echo "$ac_try_echo"; } >&5 2196 (eval "$ac_compile") 2>conftest.err 2197 ac_status=$? 2198 if test -s conftest.err; then 2199 grep -v '^ *+' conftest.err >conftest.er1 2200 cat conftest.er1 >&5 2201 mv -f conftest.er1 conftest.err 2202 fi 2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2204 test $ac_status = 0; } && { 2205 test -z "$ac_c_werror_flag" || 2206 test ! -s conftest.err 2207 } && test -s conftest.$ac_objext; then : 2208 ac_retval=0 2209 else 2210 $as_echo "$as_me: failed program was:" >&5 2211 sed 's/^/| /' conftest.$ac_ext >&5 2212 2213 ac_retval=1 2214 fi 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 as_fn_set_status $ac_retval 2217 2218 } # ac_fn_c_try_compile 2219 2220 # ac_fn_cxx_try_compile LINENO 2221 # ---------------------------- 2222 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2223 ac_fn_cxx_try_compile () 2224 { 2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2226 rm -f conftest.$ac_objext 2227 if { { ac_try="$ac_compile" 2228 case "(($ac_try" in 2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2230 *) ac_try_echo=$ac_try;; 2231 esac 2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2233 $as_echo "$ac_try_echo"; } >&5 2234 (eval "$ac_compile") 2>conftest.err 2235 ac_status=$? 2236 if test -s conftest.err; then 2237 grep -v '^ *+' conftest.err >conftest.er1 2238 cat conftest.er1 >&5 2239 mv -f conftest.er1 conftest.err 2240 fi 2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2242 test $ac_status = 0; } && { 2243 test -z "$ac_cxx_werror_flag" || 2244 test ! -s conftest.err 2245 } && test -s conftest.$ac_objext; then : 2246 ac_retval=0 2247 else 2248 $as_echo "$as_me: failed program was:" >&5 2249 sed 's/^/| /' conftest.$ac_ext >&5 2250 2251 ac_retval=1 2252 fi 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2254 as_fn_set_status $ac_retval 2255 2256 } # ac_fn_cxx_try_compile 2257 2258 # ac_fn_c_try_cpp LINENO 2259 # ---------------------- 2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2261 ac_fn_c_try_cpp () 2262 { 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 if { { ac_try="$ac_cpp conftest.$ac_ext" 2265 case "(($ac_try" in 2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2267 *) ac_try_echo=$ac_try;; 2268 esac 2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2270 $as_echo "$ac_try_echo"; } >&5 2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2272 ac_status=$? 2273 if test -s conftest.err; then 2274 grep -v '^ *+' conftest.err >conftest.er1 2275 cat conftest.er1 >&5 2276 mv -f conftest.er1 conftest.err 2277 fi 2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2279 test $ac_status = 0; } > conftest.i && { 2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2281 test ! -s conftest.err 2282 }; then : 2283 ac_retval=0 2284 else 2285 $as_echo "$as_me: failed program was:" >&5 2286 sed 's/^/| /' conftest.$ac_ext >&5 2287 2288 ac_retval=1 2289 fi 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2291 as_fn_set_status $ac_retval 2292 2293 } # ac_fn_c_try_cpp 2294 2295 # ac_fn_cxx_try_cpp LINENO 2296 # ------------------------ 2297 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2298 ac_fn_cxx_try_cpp () 2299 { 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2301 if { { ac_try="$ac_cpp conftest.$ac_ext" 2302 case "(($ac_try" in 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2304 *) ac_try_echo=$ac_try;; 2305 esac 2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2307 $as_echo "$ac_try_echo"; } >&5 2308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2309 ac_status=$? 2310 if test -s conftest.err; then 2311 grep -v '^ *+' conftest.err >conftest.er1 2312 cat conftest.er1 >&5 2313 mv -f conftest.er1 conftest.err 2314 fi 2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2316 test $ac_status = 0; } > conftest.i && { 2317 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2318 test ! -s conftest.err 2319 }; then : 2320 ac_retval=0 2321 else 2322 $as_echo "$as_me: failed program was:" >&5 2323 sed 's/^/| /' conftest.$ac_ext >&5 2324 2325 ac_retval=1 2326 fi 2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2328 as_fn_set_status $ac_retval 2329 2330 } # ac_fn_cxx_try_cpp 2331 2332 # ac_fn_objc_try_compile LINENO 2333 # ----------------------------- 2334 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2335 ac_fn_objc_try_compile () 2336 { 2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2338 rm -f conftest.$ac_objext 2339 if { { ac_try="$ac_compile" 2340 case "(($ac_try" in 2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2342 *) ac_try_echo=$ac_try;; 2343 esac 2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2345 $as_echo "$ac_try_echo"; } >&5 2346 (eval "$ac_compile") 2>conftest.err 2347 ac_status=$? 2348 if test -s conftest.err; then 2349 grep -v '^ *+' conftest.err >conftest.er1 2350 cat conftest.er1 >&5 2351 mv -f conftest.er1 conftest.err 2352 fi 2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2354 test $ac_status = 0; } && { 2355 test -z "$ac_objc_werror_flag" || 2356 test ! -s conftest.err 2357 } && test -s conftest.$ac_objext; then : 2358 ac_retval=0 2359 else 2360 $as_echo "$as_me: failed program was:" >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 2363 ac_retval=1 2364 fi 2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2366 as_fn_set_status $ac_retval 2367 2368 } # ac_fn_objc_try_compile 2369 2370 # ac_fn_c_try_link LINENO 2371 # ----------------------- 2372 # Try to link conftest.$ac_ext, and return whether this succeeded. 2373 ac_fn_c_try_link () 2374 { 2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2376 rm -f conftest.$ac_objext conftest$ac_exeext 2377 if { { ac_try="$ac_link" 2378 case "(($ac_try" in 2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2380 *) ac_try_echo=$ac_try;; 2381 esac 2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2383 $as_echo "$ac_try_echo"; } >&5 2384 (eval "$ac_link") 2>conftest.err 2385 ac_status=$? 2386 if test -s conftest.err; then 2387 grep -v '^ *+' conftest.err >conftest.er1 2388 cat conftest.er1 >&5 2389 mv -f conftest.er1 conftest.err 2390 fi 2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2392 test $ac_status = 0; } && { 2393 test -z "$ac_c_werror_flag" || 2394 test ! -s conftest.err 2395 } && test -s conftest$ac_exeext && { 2396 test "$cross_compiling" = yes || 2397 test -x conftest$ac_exeext 2398 }; then : 2399 ac_retval=0 2400 else 2401 $as_echo "$as_me: failed program was:" >&5 2402 sed 's/^/| /' conftest.$ac_ext >&5 2403 2404 ac_retval=1 2405 fi 2406 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2407 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2408 # interfere with the next link command; also delete a directory that is 2409 # left behind by Apple's compiler. We do this before executing the actions. 2410 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2412 as_fn_set_status $ac_retval 2413 2414 } # ac_fn_c_try_link 2415 2416 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2417 # --------------------------------------------------------- 2418 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2419 # the include files in INCLUDES and setting the cache variable VAR 2420 # accordingly. 2421 ac_fn_cxx_check_header_mongrel () 2422 { 2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2424 if eval \${$3+:} false; then : 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2426 $as_echo_n "checking for $2... " >&6; } 2427 if eval \${$3+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429 fi 2430 eval ac_res=\$$3 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2432 $as_echo "$ac_res" >&6; } 2433 else 2434 # Is the header compilable? 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2436 $as_echo_n "checking $2 usability... " >&6; } 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438 /* end confdefs.h. */ 2439 $4 2440 #include <$2> 2441 _ACEOF 2442 if ac_fn_cxx_try_compile "$LINENO"; then : 2443 ac_header_compiler=yes 2444 else 2445 ac_header_compiler=no 2446 fi 2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2449 $as_echo "$ac_header_compiler" >&6; } 2450 2451 # Is the header present? 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2453 $as_echo_n "checking $2 presence... " >&6; } 2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2455 /* end confdefs.h. */ 2456 #include <$2> 2457 _ACEOF 2458 if ac_fn_cxx_try_cpp "$LINENO"; then : 2459 ac_header_preproc=yes 2460 else 2461 ac_header_preproc=no 2462 fi 2463 rm -f conftest.err conftest.i conftest.$ac_ext 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2465 $as_echo "$ac_header_preproc" >&6; } 2466 2467 # So? What about this header? 2468 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2469 yes:no: ) 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2471 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2474 ;; 2475 no:yes:* ) 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2477 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2479 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2481 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2483 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2486 ( $as_echo "## ----------------------------------------- ## 2487 ## Report this to build-dev@openjdk.java.net ## 2488 ## ----------------------------------------- ##" 2489 ) | sed "s/^/$as_me: WARNING: /" >&2 2490 ;; 2491 esac 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2493 $as_echo_n "checking for $2... " >&6; } 2494 if eval \${$3+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496 else 2497 eval "$3=\$ac_header_compiler" 2498 fi 2499 eval ac_res=\$$3 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2501 $as_echo "$ac_res" >&6; } 2502 fi 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 2505 } # ac_fn_cxx_check_header_mongrel 2506 2507 # ac_fn_cxx_try_run LINENO 2508 # ------------------------ 2509 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2510 # that executables *can* be run. 2511 ac_fn_cxx_try_run () 2512 { 2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2514 if { { ac_try="$ac_link" 2515 case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518 esac 2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2520 $as_echo "$ac_try_echo"; } >&5 2521 (eval "$ac_link") 2>&5 2522 ac_status=$? 2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2525 { { case "(($ac_try" in 2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2527 *) ac_try_echo=$ac_try;; 2528 esac 2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2530 $as_echo "$ac_try_echo"; } >&5 2531 (eval "$ac_try") 2>&5 2532 ac_status=$? 2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2534 test $ac_status = 0; }; }; then : 2535 ac_retval=0 2536 else 2537 $as_echo "$as_me: program exited with status $ac_status" >&5 2538 $as_echo "$as_me: failed program was:" >&5 2539 sed 's/^/| /' conftest.$ac_ext >&5 2540 2541 ac_retval=$ac_status 2542 fi 2543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2545 as_fn_set_status $ac_retval 2546 2547 } # ac_fn_cxx_try_run 2548 2549 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2550 # --------------------------------------------------------- 2551 # Tests whether HEADER exists and can be compiled using the include files in 2552 # INCLUDES, setting the cache variable VAR accordingly. 2553 ac_fn_cxx_check_header_compile () 2554 { 2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2557 $as_echo_n "checking for $2... " >&6; } 2558 if eval \${$3+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560 else 2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562 /* end confdefs.h. */ 2563 $4 2564 #include <$2> 2565 _ACEOF 2566 if ac_fn_cxx_try_compile "$LINENO"; then : 2567 eval "$3=yes" 2568 else 2569 eval "$3=no" 2570 fi 2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572 fi 2573 eval ac_res=\$$3 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2575 $as_echo "$ac_res" >&6; } 2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2577 2578 } # ac_fn_cxx_check_header_compile 2579 2580 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2581 # ---------------------------------------------- 2582 # Tries to find the compile-time value of EXPR in a program that includes 2583 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2584 # computed 2585 ac_fn_cxx_compute_int () 2586 { 2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2588 if test "$cross_compiling" = yes; then 2589 # Depending upon the size, compute the lo and hi bounds. 2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2591 /* end confdefs.h. */ 2592 $4 2593 int 2594 main () 2595 { 2596 static int test_array [1 - 2 * !(($2) >= 0)]; 2597 test_array [0] = 0; 2598 return test_array [0]; 2599 2600 ; 2601 return 0; 2602 } 2603 _ACEOF 2604 if ac_fn_cxx_try_compile "$LINENO"; then : 2605 ac_lo=0 ac_mid=0 2606 while :; do 2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2608 /* end confdefs.h. */ 2609 $4 2610 int 2611 main () 2612 { 2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2614 test_array [0] = 0; 2615 return test_array [0]; 2616 2617 ; 2618 return 0; 2619 } 2620 _ACEOF 2621 if ac_fn_cxx_try_compile "$LINENO"; then : 2622 ac_hi=$ac_mid; break 2623 else 2624 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2625 if test $ac_lo -le $ac_mid; then 2626 ac_lo= ac_hi= 2627 break 2628 fi 2629 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2630 fi 2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2632 done 2633 else 2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2635 /* end confdefs.h. */ 2636 $4 2637 int 2638 main () 2639 { 2640 static int test_array [1 - 2 * !(($2) < 0)]; 2641 test_array [0] = 0; 2642 return test_array [0]; 2643 2644 ; 2645 return 0; 2646 } 2647 _ACEOF 2648 if ac_fn_cxx_try_compile "$LINENO"; then : 2649 ac_hi=-1 ac_mid=-1 2650 while :; do 2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2652 /* end confdefs.h. */ 2653 $4 2654 int 2655 main () 2656 { 2657 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2658 test_array [0] = 0; 2659 return test_array [0]; 2660 2661 ; 2662 return 0; 2663 } 2664 _ACEOF 2665 if ac_fn_cxx_try_compile "$LINENO"; then : 2666 ac_lo=$ac_mid; break 2667 else 2668 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2669 if test $ac_mid -le $ac_hi; then 2670 ac_lo= ac_hi= 2671 break 2672 fi 2673 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2674 fi 2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2676 done 2677 else 2678 ac_lo= ac_hi= 2679 fi 2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681 fi 2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 # Binary search between lo and hi bounds. 2684 while test "x$ac_lo" != "x$ac_hi"; do 2685 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687 /* end confdefs.h. */ 2688 $4 2689 int 2690 main () 2691 { 2692 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2693 test_array [0] = 0; 2694 return test_array [0]; 2695 2696 ; 2697 return 0; 2698 } 2699 _ACEOF 2700 if ac_fn_cxx_try_compile "$LINENO"; then : 2701 ac_hi=$ac_mid 2702 else 2703 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2704 fi 2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2706 done 2707 case $ac_lo in #(( 2708 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2709 '') ac_retval=1 ;; 2710 esac 2711 else 2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2713 /* end confdefs.h. */ 2714 $4 2715 static long int longval () { return $2; } 2716 static unsigned long int ulongval () { return $2; } 2717 #include <stdio.h> 2718 #include <stdlib.h> 2719 int 2720 main () 2721 { 2722 2723 FILE *f = fopen ("conftest.val", "w"); 2724 if (! f) 2725 return 1; 2726 if (($2) < 0) 2727 { 2728 long int i = longval (); 2729 if (i != ($2)) 2730 return 1; 2731 fprintf (f, "%ld", i); 2732 } 2733 else 2734 { 2735 unsigned long int i = ulongval (); 2736 if (i != ($2)) 2737 return 1; 2738 fprintf (f, "%lu", i); 2739 } 2740 /* Do not output a trailing newline, as this causes \r\n confusion 2741 on some platforms. */ 2742 return ferror (f) || fclose (f) != 0; 2743 2744 ; 2745 return 0; 2746 } 2747 _ACEOF 2748 if ac_fn_cxx_try_run "$LINENO"; then : 2749 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2750 else 2751 ac_retval=1 2752 fi 2753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2754 conftest.$ac_objext conftest.beam conftest.$ac_ext 2755 rm -f conftest.val 2756 2757 fi 2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2759 as_fn_set_status $ac_retval 2760 2761 } # ac_fn_cxx_compute_int 2762 2763 # ac_fn_cxx_try_link LINENO 2764 # ------------------------- 2765 # Try to link conftest.$ac_ext, and return whether this succeeded. 2766 ac_fn_cxx_try_link () 2767 { 2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2769 rm -f conftest.$ac_objext conftest$ac_exeext 2770 if { { ac_try="$ac_link" 2771 case "(($ac_try" in 2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2773 *) ac_try_echo=$ac_try;; 2774 esac 2775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2776 $as_echo "$ac_try_echo"; } >&5 2777 (eval "$ac_link") 2>conftest.err 2778 ac_status=$? 2779 if test -s conftest.err; then 2780 grep -v '^ *+' conftest.err >conftest.er1 2781 cat conftest.er1 >&5 2782 mv -f conftest.er1 conftest.err 2783 fi 2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2785 test $ac_status = 0; } && { 2786 test -z "$ac_cxx_werror_flag" || 2787 test ! -s conftest.err 2788 } && test -s conftest$ac_exeext && { 2789 test "$cross_compiling" = yes || 2790 test -x conftest$ac_exeext 2791 }; then : 2792 ac_retval=0 2793 else 2794 $as_echo "$as_me: failed program was:" >&5 2795 sed 's/^/| /' conftest.$ac_ext >&5 2796 2797 ac_retval=1 2798 fi 2799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2801 # interfere with the next link command; also delete a directory that is 2802 # left behind by Apple's compiler. We do this before executing the actions. 2803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2805 as_fn_set_status $ac_retval 2806 2807 } # ac_fn_cxx_try_link 2808 2809 # ac_fn_cxx_check_func LINENO FUNC VAR 2810 # ------------------------------------ 2811 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2812 ac_fn_cxx_check_func () 2813 { 2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2816 $as_echo_n "checking for $2... " >&6; } 2817 if eval \${$3+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2821 /* end confdefs.h. */ 2822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2823 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2824 #define $2 innocuous_$2 2825 2826 /* System header to define __stub macros and hopefully few prototypes, 2827 which can conflict with char $2 (); below. 2828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2829 <limits.h> exists even on freestanding compilers. */ 2830 2831 #ifdef __STDC__ 2832 # include <limits.h> 2833 #else 2834 # include <assert.h> 2835 #endif 2836 2837 #undef $2 2838 2839 /* Override any GCC internal prototype to avoid an error. 2840 Use char because int might match the return type of a GCC 2841 builtin and then its argument prototype would still apply. */ 2842 #ifdef __cplusplus 2843 extern "C" 2844 #endif 2845 char $2 (); 2846 /* The GNU C library defines this for functions which it implements 2847 to always fail with ENOSYS. Some functions are actually named 2848 something starting with __ and the normal name is an alias. */ 2849 #if defined __stub_$2 || defined __stub___$2 2850 choke me 2851 #endif 2852 2853 int 2854 main () 2855 { 2856 return $2 (); 2857 ; 2858 return 0; 2859 } 2860 _ACEOF 2861 if ac_fn_cxx_try_link "$LINENO"; then : 2862 eval "$3=yes" 2863 else 2864 eval "$3=no" 2865 fi 2866 rm -f core conftest.err conftest.$ac_objext \ 2867 conftest$ac_exeext conftest.$ac_ext 2868 fi 2869 eval ac_res=\$$3 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2871 $as_echo "$ac_res" >&6; } 2872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2873 2874 } # ac_fn_cxx_check_func 2875 2876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2877 # ------------------------------------------------------- 2878 # Tests whether HEADER exists and can be compiled using the include files in 2879 # INCLUDES, setting the cache variable VAR accordingly. 2880 ac_fn_c_check_header_compile () 2881 { 2882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2884 $as_echo_n "checking for $2... " >&6; } 2885 if eval \${$3+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887 else 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889 /* end confdefs.h. */ 2890 $4 2891 #include <$2> 2892 _ACEOF 2893 if ac_fn_c_try_compile "$LINENO"; then : 2894 eval "$3=yes" 2895 else 2896 eval "$3=no" 2897 fi 2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2899 fi 2900 eval ac_res=\$$3 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2902 $as_echo "$ac_res" >&6; } 2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2904 2905 } # ac_fn_c_check_header_compile 2906 cat >config.log <<_ACEOF 2907 This file contains any messages produced by compilers while 2908 running configure, to aid debugging if configure makes a mistake. 2909 2910 It was created by OpenJDK $as_me jdk9, which was 2911 generated by GNU Autoconf 2.69. Invocation command line was 2912 2913 $ $0 $@ 2914 2915 _ACEOF 2916 exec 5>>config.log 2917 { 2918 cat <<_ASUNAME 2919 ## --------- ## 2920 ## Platform. ## 2921 ## --------- ## 2922 2923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2924 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2925 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2926 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2927 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2928 2929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2931 2932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2939 2940 _ASUNAME 2941 2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943 for as_dir in $PATH 2944 do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 $as_echo "PATH: $as_dir" 2948 done 2949 IFS=$as_save_IFS 2950 2951 } >&5 2952 2953 cat >&5 <<_ACEOF 2954 2955 2956 ## ----------- ## 2957 ## Core tests. ## 2958 ## ----------- ## 2959 2960 _ACEOF 2961 2962 2963 # Keep a trace of the command line. 2964 # Strip out --no-create and --no-recursion so they do not pile up. 2965 # Strip out --silent because we don't want to record it for future runs. 2966 # Also quote any args containing shell meta-characters. 2967 # Make two passes to allow for proper duplicate-argument suppression. 2968 ac_configure_args= 2969 ac_configure_args0= 2970 ac_configure_args1= 2971 ac_must_keep_next=false 2972 for ac_pass in 1 2 2973 do 2974 for ac_arg 2975 do 2976 case $ac_arg in 2977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2979 | -silent | --silent | --silen | --sile | --sil) 2980 continue ;; 2981 *\'*) 2982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2983 esac 2984 case $ac_pass in 2985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2986 2) 2987 as_fn_append ac_configure_args1 " '$ac_arg'" 2988 if test $ac_must_keep_next = true; then 2989 ac_must_keep_next=false # Got value, back to normal. 2990 else 2991 case $ac_arg in 2992 *=* | --config-cache | -C | -disable-* | --disable-* \ 2993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2995 | -with-* | --with-* | -without-* | --without-* | --x) 2996 case "$ac_configure_args0 " in 2997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2998 esac 2999 ;; 3000 -* ) ac_must_keep_next=true ;; 3001 esac 3002 fi 3003 as_fn_append ac_configure_args " '$ac_arg'" 3004 ;; 3005 esac 3006 done 3007 done 3008 { ac_configure_args0=; unset ac_configure_args0;} 3009 { ac_configure_args1=; unset ac_configure_args1;} 3010 3011 # When interrupted or exit'd, cleanup temporary files, and complete 3012 # config.log. We remove comments because anyway the quotes in there 3013 # would cause problems or look ugly. 3014 # WARNING: Use '\'' to represent an apostrophe within the trap. 3015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3016 trap 'exit_status=$? 3017 # Save into config.log some information that might help in debugging. 3018 { 3019 echo 3020 3021 $as_echo "## ---------------- ## 3022 ## Cache variables. ## 3023 ## ---------------- ##" 3024 echo 3025 # The following way of writing the cache mishandles newlines in values, 3026 ( 3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3028 eval ac_val=\$$ac_var 3029 case $ac_val in #( 3030 *${as_nl}*) 3031 case $ac_var in #( 3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3034 esac 3035 case $ac_var in #( 3036 _ | IFS | as_nl) ;; #( 3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3038 *) { eval $ac_var=; unset $ac_var;} ;; 3039 esac ;; 3040 esac 3041 done 3042 (set) 2>&1 | 3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3044 *${as_nl}ac_space=\ *) 3045 sed -n \ 3046 "s/'\''/'\''\\\\'\'''\''/g; 3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3048 ;; #( 3049 *) 3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3051 ;; 3052 esac | 3053 sort 3054 ) 3055 echo 3056 3057 $as_echo "## ----------------- ## 3058 ## Output variables. ## 3059 ## ----------------- ##" 3060 echo 3061 for ac_var in $ac_subst_vars 3062 do 3063 eval ac_val=\$$ac_var 3064 case $ac_val in 3065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3066 esac 3067 $as_echo "$ac_var='\''$ac_val'\''" 3068 done | sort 3069 echo 3070 3071 if test -n "$ac_subst_files"; then 3072 $as_echo "## ------------------- ## 3073 ## File substitutions. ## 3074 ## ------------------- ##" 3075 echo 3076 for ac_var in $ac_subst_files 3077 do 3078 eval ac_val=\$$ac_var 3079 case $ac_val in 3080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3081 esac 3082 $as_echo "$ac_var='\''$ac_val'\''" 3083 done | sort 3084 echo 3085 fi 3086 3087 if test -s confdefs.h; then 3088 $as_echo "## ----------- ## 3089 ## confdefs.h. ## 3090 ## ----------- ##" 3091 echo 3092 cat confdefs.h 3093 echo 3094 fi 3095 test "$ac_signal" != 0 && 3096 $as_echo "$as_me: caught signal $ac_signal" 3097 $as_echo "$as_me: exit $exit_status" 3098 } >&5 3099 rm -f core *.core core.conftest.* && 3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3101 exit $exit_status 3102 ' 0 3103 for ac_signal in 1 2 13 15; do 3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3105 done 3106 ac_signal=0 3107 3108 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3109 rm -f -r conftest* confdefs.h 3110 3111 $as_echo "/* confdefs.h */" > confdefs.h 3112 3113 # Predefined preprocessor variables. 3114 3115 cat >>confdefs.h <<_ACEOF 3116 #define PACKAGE_NAME "$PACKAGE_NAME" 3117 _ACEOF 3118 3119 cat >>confdefs.h <<_ACEOF 3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3121 _ACEOF 3122 3123 cat >>confdefs.h <<_ACEOF 3124 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3125 _ACEOF 3126 3127 cat >>confdefs.h <<_ACEOF 3128 #define PACKAGE_STRING "$PACKAGE_STRING" 3129 _ACEOF 3130 3131 cat >>confdefs.h <<_ACEOF 3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3133 _ACEOF 3134 3135 cat >>confdefs.h <<_ACEOF 3136 #define PACKAGE_URL "$PACKAGE_URL" 3137 _ACEOF 3138 3139 3140 # Let the site file select an alternate cache file if it wants to. 3141 # Prefer an explicitly selected file to automatically selected ones. 3142 ac_site_file1=NONE 3143 ac_site_file2=NONE 3144 if test -n "$CONFIG_SITE"; then 3145 # We do not want a PATH search for config.site. 3146 case $CONFIG_SITE in #(( 3147 -*) ac_site_file1=./$CONFIG_SITE;; 3148 */*) ac_site_file1=$CONFIG_SITE;; 3149 *) ac_site_file1=./$CONFIG_SITE;; 3150 esac 3151 elif test "x$prefix" != xNONE; then 3152 ac_site_file1=$prefix/share/config.site 3153 ac_site_file2=$prefix/etc/config.site 3154 else 3155 ac_site_file1=$ac_default_prefix/share/config.site 3156 ac_site_file2=$ac_default_prefix/etc/config.site 3157 fi 3158 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3159 do 3160 test "x$ac_site_file" = xNONE && continue 3161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3164 sed 's/^/| /' "$ac_site_file" >&5 3165 . "$ac_site_file" \ 3166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168 as_fn_error $? "failed to load site script $ac_site_file 3169 See \`config.log' for more details" "$LINENO" 5; } 3170 fi 3171 done 3172 3173 if test -r "$cache_file"; then 3174 # Some versions of bash will fail to source /dev/null (special files 3175 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3178 $as_echo "$as_me: loading cache $cache_file" >&6;} 3179 case $cache_file in 3180 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3181 *) . "./$cache_file";; 3182 esac 3183 fi 3184 else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3186 $as_echo "$as_me: creating cache $cache_file" >&6;} 3187 >$cache_file 3188 fi 3189 3190 # Check that the precious variables saved in the cache have kept the same 3191 # value. 3192 ac_cache_corrupted=false 3193 for ac_var in $ac_precious_vars; do 3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3195 eval ac_new_set=\$ac_env_${ac_var}_set 3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3197 eval ac_new_val=\$ac_env_${ac_var}_value 3198 case $ac_old_set,$ac_new_set in 3199 set,) 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3202 ac_cache_corrupted=: ;; 3203 ,set) 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3206 ac_cache_corrupted=: ;; 3207 ,);; 3208 *) 3209 if test "x$ac_old_val" != "x$ac_new_val"; then 3210 # differences in whitespace do not lead to failure. 3211 ac_old_val_w=`echo x $ac_old_val` 3212 ac_new_val_w=`echo x $ac_new_val` 3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3216 ac_cache_corrupted=: 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3220 eval $ac_var=\$ac_old_val 3221 fi 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3226 fi;; 3227 esac 3228 # Pass precious variables to config.status. 3229 if test "$ac_new_set" = set; then 3230 case $ac_new_val in 3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3232 *) ac_arg=$ac_var=$ac_new_val ;; 3233 esac 3234 case " $ac_configure_args " in 3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3236 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3237 esac 3238 fi 3239 done 3240 if $ac_cache_corrupted; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3246 fi 3247 ## -------------------- ## 3248 ## Main body of script. ## 3249 ## -------------------- ## 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 3257 3258 3259 ac_aux_dir= 3260 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3261 if test -f "$ac_dir/install-sh"; then 3262 ac_aux_dir=$ac_dir 3263 ac_install_sh="$ac_aux_dir/install-sh -c" 3264 break 3265 elif test -f "$ac_dir/install.sh"; then 3266 ac_aux_dir=$ac_dir 3267 ac_install_sh="$ac_aux_dir/install.sh -c" 3268 break 3269 elif test -f "$ac_dir/shtool"; then 3270 ac_aux_dir=$ac_dir 3271 ac_install_sh="$ac_aux_dir/shtool install -c" 3272 break 3273 fi 3274 done 3275 if test -z "$ac_aux_dir"; then 3276 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 3277 fi 3278 3279 # These three variables are undocumented and unsupported, 3280 # and are intended to be withdrawn in a future Autoconf release. 3281 # They can cause serious problems if a builder's source tree is in a directory 3282 # whose full name contains unusual characters. 3283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3286 3287 3288 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3289 3290 # 3291 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3292 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3293 # 3294 # This code is free software; you can redistribute it and/or modify it 3295 # under the terms of the GNU General Public License version 2 only, as 3296 # published by the Free Software Foundation. Oracle designates this 3297 # particular file as subject to the "Classpath" exception as provided 3298 # by Oracle in the LICENSE file that accompanied this code. 3299 # 3300 # This code is distributed in the hope that it will be useful, but WITHOUT 3301 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3302 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3303 # version 2 for more details (a copy is included in the LICENSE file that 3304 # accompanied this code). 3305 # 3306 # You should have received a copy of the GNU General Public License version 3307 # 2 along with this work; if not, write to the Free Software Foundation, 3308 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3309 # 3310 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3311 # or visit www.oracle.com if you need additional information or have any 3312 # questions. 3313 # 3314 3315 # 3316 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3317 # 3318 # This program is free software; you can redistribute it and/or modify 3319 # it under the terms of the GNU General Public License as published by 3320 # the Free Software Foundation; either version 2 of the License, or 3321 # (at your option) any later version. 3322 # 3323 # This program is distributed in the hope that it will be useful, but 3324 # WITHOUT ANY WARRANTY; without even the implied warranty of 3325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3326 # General Public License for more details. 3327 # 3328 # You should have received a copy of the GNU General Public License 3329 # along with this program; if not, write to the Free Software 3330 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3331 # 3332 # As a special exception to the GNU General Public License, if you 3333 # distribute this file as part of a program that contains a 3334 # configuration script generated by Autoconf, you may include it under 3335 # the same distribution terms that you use for the rest of that program. 3336 3337 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3338 # ---------------------------------- 3339 # PKG_PROG_PKG_CONFIG 3340 3341 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3342 # 3343 # Check to see whether a particular set of modules exists. Similar 3344 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3345 # 3346 # 3347 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3348 # this or PKG_CHECK_MODULES is called, or make sure to call 3349 # PKG_CHECK_EXISTS manually 3350 # -------------------------------------------------------------- 3351 3352 3353 3354 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3355 # --------------------------------------------- 3356 # _PKG_CONFIG 3357 3358 # _PKG_SHORT_ERRORS_SUPPORTED 3359 # ----------------------------- 3360 # _PKG_SHORT_ERRORS_SUPPORTED 3361 3362 3363 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3364 # [ACTION-IF-NOT-FOUND]) 3365 # 3366 # 3367 # Note that if there is a possibility the first call to 3368 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3369 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3370 # 3371 # 3372 # -------------------------------------------------------------- 3373 # PKG_CHECK_MODULES 3374 3375 3376 # Include these first... 3377 # 3378 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3379 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3380 # 3381 # This code is free software; you can redistribute it and/or modify it 3382 # under the terms of the GNU General Public License version 2 only, as 3383 # published by the Free Software Foundation. Oracle designates this 3384 # particular file as subject to the "Classpath" exception as provided 3385 # by Oracle in the LICENSE file that accompanied this code. 3386 # 3387 # This code is distributed in the hope that it will be useful, but WITHOUT 3388 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3389 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3390 # version 2 for more details (a copy is included in the LICENSE file that 3391 # accompanied this code). 3392 # 3393 # You should have received a copy of the GNU General Public License version 3394 # 2 along with this work; if not, write to the Free Software Foundation, 3395 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3396 # 3397 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3398 # or visit www.oracle.com if you need additional information or have any 3399 # questions. 3400 # 3401 3402 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3403 # If so, then append $1 to $2 \ 3404 # Also set JVM_ARG_OK to true/false depending on outcome. 3405 3406 3407 # Appends a string to a path variable, only adding the : when needed. 3408 3409 3410 # Prepends a string to a path variable, only adding the : when needed. 3411 3412 3413 # This will make sure the given variable points to a full and proper 3414 # path. This means: 3415 # 1) There will be no spaces in the path. On posix platforms, 3416 # spaces in the path will result in an error. On Windows, 3417 # the path will be rewritten using short-style to be space-free. 3418 # 2) The path will be absolute, and it will be in unix-style (on 3419 # cygwin). 3420 # $1: The name of the variable to fix 3421 3422 3423 # This will make sure the given variable points to a executable 3424 # with a full and proper path. This means: 3425 # 1) There will be no spaces in the path. On posix platforms, 3426 # spaces in the path will result in an error. On Windows, 3427 # the path will be rewritten using short-style to be space-free. 3428 # 2) The path will be absolute, and it will be in unix-style (on 3429 # cygwin). 3430 # Any arguments given to the executable is preserved. 3431 # If the input variable does not have a directory specification, then 3432 # it need to be in the PATH. 3433 # $1: The name of the variable to fix 3434 3435 3436 3437 3438 # Register a --with argument but mark it as deprecated 3439 # $1: The name of the with argument to deprecate, not including --with- 3440 3441 3442 # Register a --enable argument but mark it as deprecated 3443 # $1: The name of the with argument to deprecate, not including --enable- 3444 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3445 3446 3447 3448 3449 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3450 # $1: variable to check 3451 3452 3453 # Check that there are no unprocessed overridden variables left. 3454 # If so, they are an incorrect argument and we will exit with an error. 3455 3456 3457 # Setup a tool for the given variable. If correctly specified by the user, 3458 # use that value, otherwise search for the tool using the supplied code snippet. 3459 # $1: variable to set 3460 # $2: code snippet to call to look for the tool 3461 3462 3463 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3464 # $1: variable to set 3465 # $2: executable name (or list of names) to look for 3466 3467 3468 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3469 # $1: variable to set 3470 # $2: executable name (or list of names) to look for 3471 3472 3473 # Like BASIC_PATH_PROGS but fails if no tool was found. 3474 # $1: variable to set 3475 # $2: executable name (or list of names) to look for 3476 3477 3478 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3479 # $1: variable to set 3480 # $2: autoconf macro to call to look for the special tool 3481 3482 3483 # Setup the most fundamental tools that relies on not much else to set up, 3484 # but is used by much of the early bootstrap code. 3485 3486 3487 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 #%%% Simple tools %%% 3498 3499 # Check if we have found a usable version of make 3500 # $1: the path to a potential make binary (or empty) 3501 # $2: the description on how we found this 3502 3503 3504 3505 3506 # Goes looking for a usable version of GNU make. 3507 3508 3509 3510 3511 3512 3513 # Check if build directory is on local disk. If not possible to determine, 3514 # we prefer to claim it's local. 3515 # Argument 1: directory to test 3516 # Argument 2: what to do if it is on local disk 3517 # Argument 3: what to do otherwise (remote disk or failure) 3518 3519 3520 # Check that source files have basic read permissions set. This might 3521 # not be the case in cygwin in certain conditions. 3522 3523 3524 3525 3526 # 3527 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3528 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3529 # 3530 # This code is free software; you can redistribute it and/or modify it 3531 # under the terms of the GNU General Public License version 2 only, as 3532 # published by the Free Software Foundation. Oracle designates this 3533 # particular file as subject to the "Classpath" exception as provided 3534 # by Oracle in the LICENSE file that accompanied this code. 3535 # 3536 # This code is distributed in the hope that it will be useful, but WITHOUT 3537 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3538 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3539 # version 2 for more details (a copy is included in the LICENSE file that 3540 # accompanied this code). 3541 # 3542 # You should have received a copy of the GNU General Public License version 3543 # 2 along with this work; if not, write to the Free Software Foundation, 3544 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3545 # 3546 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3547 # or visit www.oracle.com if you need additional information or have any 3548 # questions. 3549 # 3550 3551 3552 3553 3554 3555 # Helper function which possibly converts a path using DOS-style short mode. 3556 # If so, the updated path is stored in $new_path. 3557 # $1: The path to check 3558 3559 3560 # Helper function which possibly converts a path using DOS-style short mode. 3561 # If so, the updated path is stored in $new_path. 3562 # $1: The path to check 3563 3564 3565 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3566 # and could probably be heavily simplified. However, all changes in this 3567 # area tend to need lot of testing in different scenarios, and in lack of 3568 # proper unit testing, cleaning this up has not been deemed worth the effort 3569 # at the moment. 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3580 3581 3582 3583 3584 # 3585 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3586 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3587 # 3588 # This code is free software; you can redistribute it and/or modify it 3589 # under the terms of the GNU General Public License version 2 only, as 3590 # published by the Free Software Foundation. Oracle designates this 3591 # particular file as subject to the "Classpath" exception as provided 3592 # by Oracle in the LICENSE file that accompanied this code. 3593 # 3594 # This code is distributed in the hope that it will be useful, but WITHOUT 3595 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3596 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3597 # version 2 for more details (a copy is included in the LICENSE file that 3598 # accompanied this code). 3599 # 3600 # You should have received a copy of the GNU General Public License version 3601 # 2 along with this work; if not, write to the Free Software Foundation, 3602 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3603 # 3604 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3605 # or visit www.oracle.com if you need additional information or have any 3606 # questions. 3607 # 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 # ... then the rest 3620 # 3621 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3623 # 3624 # This code is free software; you can redistribute it and/or modify it 3625 # under the terms of the GNU General Public License version 2 only, as 3626 # published by the Free Software Foundation. Oracle designates this 3627 # particular file as subject to the "Classpath" exception as provided 3628 # by Oracle in the LICENSE file that accompanied this code. 3629 # 3630 # This code is distributed in the hope that it will be useful, but WITHOUT 3631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3632 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3633 # version 2 for more details (a copy is included in the LICENSE file that 3634 # accompanied this code). 3635 # 3636 # You should have received a copy of the GNU General Public License version 3637 # 2 along with this work; if not, write to the Free Software Foundation, 3638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3639 # 3640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3641 # or visit www.oracle.com if you need additional information or have any 3642 # questions. 3643 # 3644 3645 ######################################################################## 3646 # This file handles detection of the Boot JDK. The Boot JDK detection 3647 # process has been developed as a response to solve a complex real-world 3648 # problem. Initially, it was simple, but it has grown as platform after 3649 # platform, idiosyncracy after idiosyncracy has been supported. 3650 # 3651 # The basic idea is this: 3652 # 1) You need an acceptable *) JDK to use as a Boot JDK 3653 # 2) There are several ways to locate a JDK, that are mostly platform 3654 # dependent **) 3655 # 3) You can have multiple JDKs installed 3656 # 4) If possible, configure should try to dig out an acceptable JDK 3657 # automatically, without having to resort to command-line options 3658 # 3659 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3660 # javac) and not a JRE, etc. 3661 # 3662 # **) On Windows we typically use a well-known path. 3663 # On MacOSX we typically use the tool java_home. 3664 # On Linux we typically find javac in the $PATH, and then follow a 3665 # chain of symlinks that often ends up in a real JDK. 3666 # 3667 # This leads to the code where we check in different ways to locate a 3668 # JDK, and if one is found, check if it is acceptable. If not, we print 3669 # our reasons for rejecting it (useful when debugging non-working 3670 # configure situations) and continue checking the next one. 3671 ######################################################################## 3672 3673 # Execute the check given as argument, and verify the result 3674 # If the Boot JDK was previously found, do nothing 3675 # $1 A command line (typically autoconf macro) to execute 3676 3677 3678 # Test: Is bootjdk explicitely set by command line arguments? 3679 3680 3681 # Test: Is bootjdk available from builddeps? 3682 3683 3684 # Test: Is $JAVA_HOME set? 3685 3686 3687 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3688 3689 3690 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3691 # $1: Argument to the java_home binary (optional) 3692 3693 3694 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3695 3696 3697 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3698 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3699 # $1 = Path to directory containing jdk installations. 3700 # $2 = String to append to the found JDK directory to get the proper JDK home 3701 3702 3703 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3704 # environmental variable as base for where to look. 3705 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3706 3707 3708 # Test: Is there a JDK installed in default, well-known locations? 3709 3710 3711 # Check that a command-line tool in the Boot JDK is correct 3712 # $1 = name of variable to assign 3713 # $2 = name of binary 3714 3715 3716 ############################################################################### 3717 # 3718 # We need a Boot JDK to bootstrap the build. 3719 # 3720 3721 3722 3723 3724 3725 # 3726 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3727 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3728 # 3729 # This code is free software; you can redistribute it and/or modify it 3730 # under the terms of the GNU General Public License version 2 only, as 3731 # published by the Free Software Foundation. Oracle designates this 3732 # particular file as subject to the "Classpath" exception as provided 3733 # by Oracle in the LICENSE file that accompanied this code. 3734 # 3735 # This code is distributed in the hope that it will be useful, but WITHOUT 3736 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3737 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3738 # version 2 for more details (a copy is included in the LICENSE file that 3739 # accompanied this code). 3740 # 3741 # You should have received a copy of the GNU General Public License version 3742 # 2 along with this work; if not, write to the Free Software Foundation, 3743 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3744 # 3745 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3746 # or visit www.oracle.com if you need additional information or have any 3747 # questions. 3748 # 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 # 3770 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3771 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3772 # 3773 # This code is free software; you can redistribute it and/or modify it 3774 # under the terms of the GNU General Public License version 2 only, as 3775 # published by the Free Software Foundation. Oracle designates this 3776 # particular file as subject to the "Classpath" exception as provided 3777 # by Oracle in the LICENSE file that accompanied this code. 3778 # 3779 # This code is distributed in the hope that it will be useful, but WITHOUT 3780 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3781 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3782 # version 2 for more details (a copy is included in the LICENSE file that 3783 # accompanied this code). 3784 # 3785 # You should have received a copy of the GNU General Public License version 3786 # 2 along with this work; if not, write to the Free Software Foundation, 3787 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3788 # 3789 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3790 # or visit www.oracle.com if you need additional information or have any 3791 # questions. 3792 # 3793 3794 3795 3796 3797 3798 # Documentation on common flags used for solstudio in HIGHEST. 3799 # 3800 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3801 # done with care, there are some assumptions below that need to 3802 # be understood about the use of pointers, and IEEE behavior. 3803 # 3804 # -fns: Use non-standard floating point mode (not IEEE 754) 3805 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3806 # -fsingle: Use single precision floating point with 'float' 3807 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3808 # (Source with excessing pointer casting and data access with mixed 3809 # pointer types are not recommended) 3810 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3811 # (If you expect perfect errno behavior, do not use this) 3812 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3813 # -xrestrict: Pointer parameters to functions do not overlap 3814 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3815 # If you pass in multiple pointers to the same data, do not use this) 3816 # -xlibmil: Inline some library routines 3817 # (If you expect perfect errno behavior, do not use this) 3818 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3819 # (If you expect perfect errno behavior, do not use this) 3820 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3821 3822 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3823 # Bug? 3824 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3825 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3826 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3827 #fi 3828 3829 3830 3831 3832 3833 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3834 # [RUN-IF-FALSE]) 3835 # ------------------------------------------------------------ 3836 # Check that the c and c++ compilers support an argument 3837 3838 3839 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3840 # [RUN-IF-FALSE]) 3841 # ------------------------------------------------------------ 3842 # Check that the linker support an argument 3843 3844 3845 3846 3847 # 3848 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3850 # 3851 # This code is free software; you can redistribute it and/or modify it 3852 # under the terms of the GNU General Public License version 2 only, as 3853 # published by the Free Software Foundation. Oracle designates this 3854 # particular file as subject to the "Classpath" exception as provided 3855 # by Oracle in the LICENSE file that accompanied this code. 3856 # 3857 # This code is distributed in the hope that it will be useful, but WITHOUT 3858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3859 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3860 # version 2 for more details (a copy is included in the LICENSE file that 3861 # accompanied this code). 3862 # 3863 # You should have received a copy of the GNU General Public License version 3864 # 2 along with this work; if not, write to the Free Software Foundation, 3865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3866 # 3867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3868 # or visit www.oracle.com if you need additional information or have any 3869 # questions. 3870 # 3871 3872 3873 3874 3875 3876 cygwin_help() { 3877 case $1 in 3878 unzip) 3879 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3880 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3881 ;; 3882 zip) 3883 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3884 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3885 ;; 3886 make) 3887 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3888 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3889 ;; 3890 freetype) 3891 HELP_MSG=" 3892 The freetype library can now be build during the configure process. 3893 Download the freetype sources and unpack them into an arbitrary directory: 3894 3895 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3896 tar -xzf freetype-2.5.3.tar.gz 3897 3898 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3899 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3900 builds or into '<freetype_src>/lib32' for 32-bit builds. 3901 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3902 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3903 ;; 3904 esac 3905 } 3906 3907 msys_help() { 3908 PKGHANDLER_COMMAND="" 3909 } 3910 3911 apt_help() { 3912 case $1 in 3913 devkit) 3914 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3915 openjdk) 3916 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3917 alsa) 3918 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3919 cups) 3920 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3921 freetype) 3922 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3923 pulse) 3924 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3925 x11) 3926 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3927 ccache) 3928 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3929 esac 3930 } 3931 3932 yum_help() { 3933 case $1 in 3934 devkit) 3935 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3936 openjdk) 3937 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3938 alsa) 3939 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3940 cups) 3941 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3942 freetype) 3943 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3944 pulse) 3945 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3946 x11) 3947 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3948 ccache) 3949 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3950 esac 3951 } 3952 3953 port_help() { 3954 PKGHANDLER_COMMAND="" 3955 } 3956 3957 pkgutil_help() { 3958 PKGHANDLER_COMMAND="" 3959 } 3960 3961 pkgadd_help() { 3962 PKGHANDLER_COMMAND="" 3963 } 3964 3965 # This function will check if we're called from the "configure" wrapper while 3966 # printing --help. If so, we will print out additional information that can 3967 # only be extracted within the autoconf script, and then exit. This must be 3968 # called at the very beginning in configure.ac. 3969 3970 3971 3972 3973 # 3974 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3975 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3976 # 3977 # This code is free software; you can redistribute it and/or modify it 3978 # under the terms of the GNU General Public License version 2 only, as 3979 # published by the Free Software Foundation. Oracle designates this 3980 # particular file as subject to the "Classpath" exception as provided 3981 # by Oracle in the LICENSE file that accompanied this code. 3982 # 3983 # This code is distributed in the hope that it will be useful, but WITHOUT 3984 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3985 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3986 # version 2 for more details (a copy is included in the LICENSE file that 3987 # accompanied this code). 3988 # 3989 # You should have received a copy of the GNU General Public License version 3990 # 2 along with this work; if not, write to the Free Software Foundation, 3991 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3992 # 3993 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3994 # or visit www.oracle.com if you need additional information or have any 3995 # questions. 3996 # 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 ############################################################################### 4008 # 4009 # Should we build only OpenJDK even if closed sources are present? 4010 # 4011 4012 4013 4014 4015 ############################################################################### 4016 # 4017 # Setup version numbers 4018 # 4019 4020 4021 4022 4023 4024 4025 # 4026 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4027 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4028 # 4029 # This code is free software; you can redistribute it and/or modify it 4030 # under the terms of the GNU General Public License version 2 only, as 4031 # published by the Free Software Foundation. Oracle designates this 4032 # particular file as subject to the "Classpath" exception as provided 4033 # by Oracle in the LICENSE file that accompanied this code. 4034 # 4035 # This code is distributed in the hope that it will be useful, but WITHOUT 4036 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4037 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4038 # version 2 for more details (a copy is included in the LICENSE file that 4039 # accompanied this code). 4040 # 4041 # You should have received a copy of the GNU General Public License version 4042 # 2 along with this work; if not, write to the Free Software Foundation, 4043 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4044 # 4045 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4046 # or visit www.oracle.com if you need additional information or have any 4047 # questions. 4048 # 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 # 4071 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4072 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4073 # 4074 # This code is free software; you can redistribute it and/or modify it 4075 # under the terms of the GNU General Public License version 2 only, as 4076 # published by the Free Software Foundation. Oracle designates this 4077 # particular file as subject to the "Classpath" exception as provided 4078 # by Oracle in the LICENSE file that accompanied this code. 4079 # 4080 # This code is distributed in the hope that it will be useful, but WITHOUT 4081 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4082 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4083 # version 2 for more details (a copy is included in the LICENSE file that 4084 # accompanied this code). 4085 # 4086 # You should have received a copy of the GNU General Public License version 4087 # 2 along with this work; if not, write to the Free Software Foundation, 4088 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4089 # 4090 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4091 # or visit www.oracle.com if you need additional information or have any 4092 # questions. 4093 # 4094 4095 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4096 # Converts autoconf style CPU name to OpenJDK style, into 4097 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4098 4099 4100 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4101 # Converts autoconf style OS name to OpenJDK style, into 4102 # VAR_OS and VAR_OS_API. 4103 4104 4105 # Expects $host_os $host_cpu $build_os and $build_cpu 4106 # and $with_target_bits to have been setup! 4107 # 4108 # Translate the standard triplet(quadruplet) definition 4109 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4110 # OPENJDK_BUILD_OS, etc. 4111 4112 4113 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4114 # accordingly. Must be done after setting up build and target system, but before 4115 # doing anything else with these values. 4116 4117 4118 # Setup the legacy variables, for controlling the old makefiles. 4119 # 4120 4121 4122 4123 4124 #%%% Build and target systems %%% 4125 4126 4127 4128 4129 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4130 # Add -mX to various FLAGS variables. 4131 4132 4133 4134 4135 4136 4137 # 4138 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4139 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4140 # 4141 # This code is free software; you can redistribute it and/or modify it 4142 # under the terms of the GNU General Public License version 2 only, as 4143 # published by the Free Software Foundation. Oracle designates this 4144 # particular file as subject to the "Classpath" exception as provided 4145 # by Oracle in the LICENSE file that accompanied this code. 4146 # 4147 # This code is distributed in the hope that it will be useful, but WITHOUT 4148 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4149 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4150 # version 2 for more details (a copy is included in the LICENSE file that 4151 # accompanied this code). 4152 # 4153 # You should have received a copy of the GNU General Public License version 4154 # 2 along with this work; if not, write to the Free Software Foundation, 4155 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4156 # 4157 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4158 # or visit www.oracle.com if you need additional information or have any 4159 # questions. 4160 # 4161 4162 4163 4164 4165 4166 4167 4168 4169 # 4170 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4171 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4172 # 4173 # This code is free software; you can redistribute it and/or modify it 4174 # under the terms of the GNU General Public License version 2 only, as 4175 # published by the Free Software Foundation. Oracle designates this 4176 # particular file as subject to the "Classpath" exception as provided 4177 # by Oracle in the LICENSE file that accompanied this code. 4178 # 4179 # This code is distributed in the hope that it will be useful, but WITHOUT 4180 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4181 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4182 # version 2 for more details (a copy is included in the LICENSE file that 4183 # accompanied this code). 4184 # 4185 # You should have received a copy of the GNU General Public License version 4186 # 2 along with this work; if not, write to the Free Software Foundation, 4187 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4188 # 4189 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4190 # or visit www.oracle.com if you need additional information or have any 4191 # questions. 4192 # 4193 4194 ######################################################################## 4195 # This file is responsible for detecting, verifying and setting up the 4196 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4197 # proper paths to the binaries, but it will not setup any flags. 4198 # 4199 # The binaries used is determined by the toolchain type, which is the family of 4200 # compilers and related tools that are used. 4201 ######################################################################## 4202 4203 4204 # All valid toolchains, regardless of platform (used by help.m4) 4205 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4206 4207 # These toolchains are valid on different platforms 4208 VALID_TOOLCHAINS_linux="gcc clang" 4209 VALID_TOOLCHAINS_solaris="solstudio" 4210 VALID_TOOLCHAINS_macosx="gcc clang" 4211 VALID_TOOLCHAINS_aix="xlc" 4212 VALID_TOOLCHAINS_windows="microsoft" 4213 4214 # Toolchain descriptions 4215 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4216 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4217 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4218 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4219 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4220 4221 # Setup a number of variables describing how native output files are 4222 # named on this platform/toolchain. 4223 4224 4225 # Determine which toolchain type to use, and make sure it is valid for this 4226 # platform. Setup various information about the selected toolchain. 4227 4228 4229 # Before we start detecting the toolchain executables, we might need some 4230 # special setup, e.g. additional paths etc. 4231 4232 4233 # Restore path, etc 4234 4235 4236 # Check if a compiler is of the toolchain type we expect, and save the version 4237 # information from it. If the compiler does not match the expected type, 4238 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4239 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4240 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4241 # 4242 # $1 = compiler to test (CC or CXX) 4243 # $2 = human readable name of compiler (C or C++) 4244 4245 4246 # Try to locate the given C or C++ compiler in the path, or otherwise. 4247 # 4248 # $1 = compiler to test (CC or CXX) 4249 # $2 = human readable name of compiler (C or C++) 4250 # $3 = list of compiler names to search for 4251 4252 4253 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4254 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4255 # archiver (AR). Verify that the compilers are correct according to the 4256 # toolchain type. 4257 4258 4259 # Setup additional tools that is considered a part of the toolchain, but not the 4260 # core part. Many of these are highly platform-specific and do not exist, 4261 # and/or are not needed on all platforms. 4262 4263 4264 # Setup the build tools (i.e, the compiler and linker used to build programs 4265 # that should be run on the build platform, not the target platform, as a build 4266 # helper). Since the non-cross-compile case uses the normal, target compilers 4267 # for this, we can only do this after these have been setup. 4268 4269 4270 # Setup legacy variables that are still needed as alternative ways to refer to 4271 # parts of the toolchain. 4272 4273 4274 # Do some additional checks on the detected tools. 4275 4276 4277 # Setup the JTReg Regression Test Harness. 4278 4279 4280 # 4281 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4282 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4283 # 4284 # This code is free software; you can redistribute it and/or modify it 4285 # under the terms of the GNU General Public License version 2 only, as 4286 # published by the Free Software Foundation. Oracle designates this 4287 # particular file as subject to the "Classpath" exception as provided 4288 # by Oracle in the LICENSE file that accompanied this code. 4289 # 4290 # This code is distributed in the hope that it will be useful, but WITHOUT 4291 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4292 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4293 # version 2 for more details (a copy is included in the LICENSE file that 4294 # accompanied this code). 4295 # 4296 # You should have received a copy of the GNU General Public License version 4297 # 2 along with this work; if not, write to the Free Software Foundation, 4298 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4299 # 4300 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4301 # or visit www.oracle.com if you need additional information or have any 4302 # questions. 4303 # 4304 4305 4306 4307 4308 4309 4310 4311 # Check if the VS env variables were setup prior to running configure. 4312 # If not, then find vcvarsall.bat and run it automatically, and integrate 4313 # the set env variables into the spec file. 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 # This line needs to be here, verbatim, after all includes and the dummy hook 4326 # definitions. It is replaced with custom functionality when building 4327 # custom sources. 4328 #CUSTOM_AUTOCONF_INCLUDE 4329 4330 # Do not change or remove the following line, it is needed for consistency checks: 4331 DATE_WHEN_GENERATED=1414663067 4332 4333 ############################################################################### 4334 # 4335 # Initialization / Boot-strapping 4336 # 4337 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4338 # thus it jumps back and forth, each time gaining something needed later on. 4339 # 4340 ############################################################################### 4341 4342 # If we are requested to print additional help, do that and then exit. 4343 # This must be the very first call. 4344 4345 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4346 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4347 $PRINTF "Which are valid to use depends on the build platform.\n" 4348 for toolchain in $VALID_TOOLCHAINS_all; do 4349 # Use indirect variable referencing 4350 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4351 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4352 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4353 done 4354 4355 # And now exit directly 4356 exit 0 4357 fi 4358 4359 4360 # Basic initialization that must happen first of all in the normal process. 4361 4362 # Save the original command line. This is passed to us by the wrapper configure script. 4363 4364 DATE_WHEN_CONFIGURED=`LANG=C date` 4365 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4367 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4369 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4370 4371 4372 # Start with tools that do not need have cross compilation support 4373 # and can be expected to be found in the default PATH. These tools are 4374 # used by configure. Nor are these tools expected to be found in the 4375 # devkit from the builddeps server either, since they are 4376 # needed to download the devkit. 4377 4378 # First are all the simple required tools. 4379 4380 4381 4382 # Publish this variable in the help. 4383 4384 4385 if test "x$BASENAME" = x; then 4386 # The variable is not set by user, try to locate tool using the code snippet 4387 for ac_prog in basename 4388 do 4389 # Extract the first word of "$ac_prog", so it can be a program name with args. 4390 set dummy $ac_prog; ac_word=$2 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4392 $as_echo_n "checking for $ac_word... " >&6; } 4393 if ${ac_cv_path_BASENAME+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395 else 4396 case $BASENAME in 4397 [\\/]* | ?:[\\/]*) 4398 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4399 ;; 4400 *) 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402 for as_dir in $PATH 4403 do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412 done 4413 done 4414 IFS=$as_save_IFS 4415 4416 ;; 4417 esac 4418 fi 4419 BASENAME=$ac_cv_path_BASENAME 4420 if test -n "$BASENAME"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4422 $as_echo "$BASENAME" >&6; } 4423 else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425 $as_echo "no" >&6; } 4426 fi 4427 4428 4429 test -n "$BASENAME" && break 4430 done 4431 4432 else 4433 # The variable is set, but is it from the command line or the environment? 4434 4435 # Try to remove the string !BASENAME! from our list. 4436 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4437 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4438 # If it failed, the variable was not from the command line. Ignore it, 4439 # but warn the user (except for BASH, which is always set by the calling BASH). 4440 if test "xBASENAME" != xBASH; then 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4442 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4443 fi 4444 # Try to locate tool using the code snippet 4445 for ac_prog in basename 4446 do 4447 # Extract the first word of "$ac_prog", so it can be a program name with args. 4448 set dummy $ac_prog; ac_word=$2 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4450 $as_echo_n "checking for $ac_word... " >&6; } 4451 if ${ac_cv_path_BASENAME+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453 else 4454 case $BASENAME in 4455 [\\/]* | ?:[\\/]*) 4456 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4457 ;; 4458 *) 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460 for as_dir in $PATH 4461 do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4466 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470 done 4471 done 4472 IFS=$as_save_IFS 4473 4474 ;; 4475 esac 4476 fi 4477 BASENAME=$ac_cv_path_BASENAME 4478 if test -n "$BASENAME"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4480 $as_echo "$BASENAME" >&6; } 4481 else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483 $as_echo "no" >&6; } 4484 fi 4485 4486 4487 test -n "$BASENAME" && break 4488 done 4489 4490 else 4491 # If it succeeded, then it was overridden by the user. We will use it 4492 # for the tool. 4493 4494 # First remove it from the list of overridden variables, so we can test 4495 # for unknown variables in the end. 4496 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4497 4498 # Check if the provided tool contains a complete path. 4499 tool_specified="$BASENAME" 4500 tool_basename="${tool_specified##*/}" 4501 if test "x$tool_basename" = "x$tool_specified"; then 4502 # A command without a complete path is provided, search $PATH. 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4504 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4505 # Extract the first word of "$tool_basename", so it can be a program name with args. 4506 set dummy $tool_basename; ac_word=$2 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4508 $as_echo_n "checking for $ac_word... " >&6; } 4509 if ${ac_cv_path_BASENAME+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511 else 4512 case $BASENAME in 4513 [\\/]* | ?:[\\/]*) 4514 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4515 ;; 4516 *) 4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518 for as_dir in $PATH 4519 do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4524 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4526 break 2 4527 fi 4528 done 4529 done 4530 IFS=$as_save_IFS 4531 4532 ;; 4533 esac 4534 fi 4535 BASENAME=$ac_cv_path_BASENAME 4536 if test -n "$BASENAME"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4538 $as_echo "$BASENAME" >&6; } 4539 else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541 $as_echo "no" >&6; } 4542 fi 4543 4544 4545 if test "x$BASENAME" = x; then 4546 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4547 fi 4548 else 4549 # Otherwise we believe it is a complete path. Use it as it is. 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4551 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4553 $as_echo_n "checking for BASENAME... " >&6; } 4554 if test ! -x "$tool_specified"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4556 $as_echo "not found" >&6; } 4557 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4558 fi 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4560 $as_echo "$tool_specified" >&6; } 4561 fi 4562 fi 4563 fi 4564 4565 4566 4567 if test "x$BASENAME" = x; then 4568 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4569 fi 4570 4571 4572 4573 4574 4575 # Publish this variable in the help. 4576 4577 4578 if test "x$BASH" = x; then 4579 # The variable is not set by user, try to locate tool using the code snippet 4580 for ac_prog in bash 4581 do 4582 # Extract the first word of "$ac_prog", so it can be a program name with args. 4583 set dummy $ac_prog; ac_word=$2 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4585 $as_echo_n "checking for $ac_word... " >&6; } 4586 if ${ac_cv_path_BASH+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588 else 4589 case $BASH in 4590 [\\/]* | ?:[\\/]*) 4591 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4592 ;; 4593 *) 4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595 for as_dir in $PATH 4596 do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605 done 4606 done 4607 IFS=$as_save_IFS 4608 4609 ;; 4610 esac 4611 fi 4612 BASH=$ac_cv_path_BASH 4613 if test -n "$BASH"; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4615 $as_echo "$BASH" >&6; } 4616 else 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4618 $as_echo "no" >&6; } 4619 fi 4620 4621 4622 test -n "$BASH" && break 4623 done 4624 4625 else 4626 # The variable is set, but is it from the command line or the environment? 4627 4628 # Try to remove the string !BASH! from our list. 4629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4631 # If it failed, the variable was not from the command line. Ignore it, 4632 # but warn the user (except for BASH, which is always set by the calling BASH). 4633 if test "xBASH" != xBASH; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4635 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4636 fi 4637 # Try to locate tool using the code snippet 4638 for ac_prog in bash 4639 do 4640 # Extract the first word of "$ac_prog", so it can be a program name with args. 4641 set dummy $ac_prog; ac_word=$2 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4643 $as_echo_n "checking for $ac_word... " >&6; } 4644 if ${ac_cv_path_BASH+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646 else 4647 case $BASH in 4648 [\\/]* | ?:[\\/]*) 4649 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4650 ;; 4651 *) 4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4653 for as_dir in $PATH 4654 do 4655 IFS=$as_save_IFS 4656 test -z "$as_dir" && as_dir=. 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4659 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663 done 4664 done 4665 IFS=$as_save_IFS 4666 4667 ;; 4668 esac 4669 fi 4670 BASH=$ac_cv_path_BASH 4671 if test -n "$BASH"; then 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4673 $as_echo "$BASH" >&6; } 4674 else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676 $as_echo "no" >&6; } 4677 fi 4678 4679 4680 test -n "$BASH" && break 4681 done 4682 4683 else 4684 # If it succeeded, then it was overridden by the user. We will use it 4685 # for the tool. 4686 4687 # First remove it from the list of overridden variables, so we can test 4688 # for unknown variables in the end. 4689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4690 4691 # Check if the provided tool contains a complete path. 4692 tool_specified="$BASH" 4693 tool_basename="${tool_specified##*/}" 4694 if test "x$tool_basename" = "x$tool_specified"; then 4695 # A command without a complete path is provided, search $PATH. 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4697 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4698 # Extract the first word of "$tool_basename", so it can be a program name with args. 4699 set dummy $tool_basename; ac_word=$2 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4701 $as_echo_n "checking for $ac_word... " >&6; } 4702 if ${ac_cv_path_BASH+:} false; then : 4703 $as_echo_n "(cached) " >&6 4704 else 4705 case $BASH in 4706 [\\/]* | ?:[\\/]*) 4707 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4708 ;; 4709 *) 4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711 for as_dir in $PATH 4712 do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4717 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721 done 4722 done 4723 IFS=$as_save_IFS 4724 4725 ;; 4726 esac 4727 fi 4728 BASH=$ac_cv_path_BASH 4729 if test -n "$BASH"; then 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4731 $as_echo "$BASH" >&6; } 4732 else 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4734 $as_echo "no" >&6; } 4735 fi 4736 4737 4738 if test "x$BASH" = x; then 4739 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4740 fi 4741 else 4742 # Otherwise we believe it is a complete path. Use it as it is. 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4744 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4746 $as_echo_n "checking for BASH... " >&6; } 4747 if test ! -x "$tool_specified"; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4749 $as_echo "not found" >&6; } 4750 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4751 fi 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4753 $as_echo "$tool_specified" >&6; } 4754 fi 4755 fi 4756 fi 4757 4758 4759 4760 if test "x$BASH" = x; then 4761 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4762 fi 4763 4764 4765 4766 4767 4768 # Publish this variable in the help. 4769 4770 4771 if test "x$CAT" = x; then 4772 # The variable is not set by user, try to locate tool using the code snippet 4773 for ac_prog in cat 4774 do 4775 # Extract the first word of "$ac_prog", so it can be a program name with args. 4776 set dummy $ac_prog; ac_word=$2 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4778 $as_echo_n "checking for $ac_word... " >&6; } 4779 if ${ac_cv_path_CAT+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781 else 4782 case $CAT in 4783 [\\/]* | ?:[\\/]*) 4784 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4785 ;; 4786 *) 4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788 for as_dir in $PATH 4789 do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4794 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798 done 4799 done 4800 IFS=$as_save_IFS 4801 4802 ;; 4803 esac 4804 fi 4805 CAT=$ac_cv_path_CAT 4806 if test -n "$CAT"; then 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4808 $as_echo "$CAT" >&6; } 4809 else 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4811 $as_echo "no" >&6; } 4812 fi 4813 4814 4815 test -n "$CAT" && break 4816 done 4817 4818 else 4819 # The variable is set, but is it from the command line or the environment? 4820 4821 # Try to remove the string !CAT! from our list. 4822 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4823 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4824 # If it failed, the variable was not from the command line. Ignore it, 4825 # but warn the user (except for BASH, which is always set by the calling BASH). 4826 if test "xCAT" != xBASH; then 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4828 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4829 fi 4830 # Try to locate tool using the code snippet 4831 for ac_prog in cat 4832 do 4833 # Extract the first word of "$ac_prog", so it can be a program name with args. 4834 set dummy $ac_prog; ac_word=$2 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4836 $as_echo_n "checking for $ac_word... " >&6; } 4837 if ${ac_cv_path_CAT+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839 else 4840 case $CAT in 4841 [\\/]* | ?:[\\/]*) 4842 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4843 ;; 4844 *) 4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4846 for as_dir in $PATH 4847 do 4848 IFS=$as_save_IFS 4849 test -z "$as_dir" && as_dir=. 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4852 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4854 break 2 4855 fi 4856 done 4857 done 4858 IFS=$as_save_IFS 4859 4860 ;; 4861 esac 4862 fi 4863 CAT=$ac_cv_path_CAT 4864 if test -n "$CAT"; then 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4866 $as_echo "$CAT" >&6; } 4867 else 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4869 $as_echo "no" >&6; } 4870 fi 4871 4872 4873 test -n "$CAT" && break 4874 done 4875 4876 else 4877 # If it succeeded, then it was overridden by the user. We will use it 4878 # for the tool. 4879 4880 # First remove it from the list of overridden variables, so we can test 4881 # for unknown variables in the end. 4882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4883 4884 # Check if the provided tool contains a complete path. 4885 tool_specified="$CAT" 4886 tool_basename="${tool_specified##*/}" 4887 if test "x$tool_basename" = "x$tool_specified"; then 4888 # A command without a complete path is provided, search $PATH. 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4890 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4891 # Extract the first word of "$tool_basename", so it can be a program name with args. 4892 set dummy $tool_basename; ac_word=$2 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894 $as_echo_n "checking for $ac_word... " >&6; } 4895 if ${ac_cv_path_CAT+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897 else 4898 case $CAT in 4899 [\\/]* | ?:[\\/]*) 4900 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4901 ;; 4902 *) 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904 for as_dir in $PATH 4905 do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_exec_ext in '' $ac_executable_extensions; do 4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4910 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4912 break 2 4913 fi 4914 done 4915 done 4916 IFS=$as_save_IFS 4917 4918 ;; 4919 esac 4920 fi 4921 CAT=$ac_cv_path_CAT 4922 if test -n "$CAT"; then 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4924 $as_echo "$CAT" >&6; } 4925 else 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4927 $as_echo "no" >&6; } 4928 fi 4929 4930 4931 if test "x$CAT" = x; then 4932 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4933 fi 4934 else 4935 # Otherwise we believe it is a complete path. Use it as it is. 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4937 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4939 $as_echo_n "checking for CAT... " >&6; } 4940 if test ! -x "$tool_specified"; then 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4942 $as_echo "not found" >&6; } 4943 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4944 fi 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4946 $as_echo "$tool_specified" >&6; } 4947 fi 4948 fi 4949 fi 4950 4951 4952 4953 if test "x$CAT" = x; then 4954 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4955 fi 4956 4957 4958 4959 4960 4961 # Publish this variable in the help. 4962 4963 4964 if test "x$CHMOD" = x; then 4965 # The variable is not set by user, try to locate tool using the code snippet 4966 for ac_prog in chmod 4967 do 4968 # Extract the first word of "$ac_prog", so it can be a program name with args. 4969 set dummy $ac_prog; ac_word=$2 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4971 $as_echo_n "checking for $ac_word... " >&6; } 4972 if ${ac_cv_path_CHMOD+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974 else 4975 case $CHMOD in 4976 [\\/]* | ?:[\\/]*) 4977 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4978 ;; 4979 *) 4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4981 for as_dir in $PATH 4982 do 4983 IFS=$as_save_IFS 4984 test -z "$as_dir" && as_dir=. 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4987 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4989 break 2 4990 fi 4991 done 4992 done 4993 IFS=$as_save_IFS 4994 4995 ;; 4996 esac 4997 fi 4998 CHMOD=$ac_cv_path_CHMOD 4999 if test -n "$CHMOD"; then 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5001 $as_echo "$CHMOD" >&6; } 5002 else 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004 $as_echo "no" >&6; } 5005 fi 5006 5007 5008 test -n "$CHMOD" && break 5009 done 5010 5011 else 5012 # The variable is set, but is it from the command line or the environment? 5013 5014 # Try to remove the string !CHMOD! from our list. 5015 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5016 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5017 # If it failed, the variable was not from the command line. Ignore it, 5018 # but warn the user (except for BASH, which is always set by the calling BASH). 5019 if test "xCHMOD" != xBASH; then 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5021 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5022 fi 5023 # Try to locate tool using the code snippet 5024 for ac_prog in chmod 5025 do 5026 # Extract the first word of "$ac_prog", so it can be a program name with args. 5027 set dummy $ac_prog; ac_word=$2 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5029 $as_echo_n "checking for $ac_word... " >&6; } 5030 if ${ac_cv_path_CHMOD+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032 else 5033 case $CHMOD in 5034 [\\/]* | ?:[\\/]*) 5035 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5036 ;; 5037 *) 5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039 for as_dir in $PATH 5040 do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049 done 5050 done 5051 IFS=$as_save_IFS 5052 5053 ;; 5054 esac 5055 fi 5056 CHMOD=$ac_cv_path_CHMOD 5057 if test -n "$CHMOD"; then 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5059 $as_echo "$CHMOD" >&6; } 5060 else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062 $as_echo "no" >&6; } 5063 fi 5064 5065 5066 test -n "$CHMOD" && break 5067 done 5068 5069 else 5070 # If it succeeded, then it was overridden by the user. We will use it 5071 # for the tool. 5072 5073 # First remove it from the list of overridden variables, so we can test 5074 # for unknown variables in the end. 5075 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5076 5077 # Check if the provided tool contains a complete path. 5078 tool_specified="$CHMOD" 5079 tool_basename="${tool_specified##*/}" 5080 if test "x$tool_basename" = "x$tool_specified"; then 5081 # A command without a complete path is provided, search $PATH. 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5083 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5084 # Extract the first word of "$tool_basename", so it can be a program name with args. 5085 set dummy $tool_basename; ac_word=$2 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5087 $as_echo_n "checking for $ac_word... " >&6; } 5088 if ${ac_cv_path_CHMOD+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090 else 5091 case $CHMOD in 5092 [\\/]* | ?:[\\/]*) 5093 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5094 ;; 5095 *) 5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5097 for as_dir in $PATH 5098 do 5099 IFS=$as_save_IFS 5100 test -z "$as_dir" && as_dir=. 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5103 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107 done 5108 done 5109 IFS=$as_save_IFS 5110 5111 ;; 5112 esac 5113 fi 5114 CHMOD=$ac_cv_path_CHMOD 5115 if test -n "$CHMOD"; then 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5117 $as_echo "$CHMOD" >&6; } 5118 else 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5120 $as_echo "no" >&6; } 5121 fi 5122 5123 5124 if test "x$CHMOD" = x; then 5125 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5126 fi 5127 else 5128 # Otherwise we believe it is a complete path. Use it as it is. 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5130 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5132 $as_echo_n "checking for CHMOD... " >&6; } 5133 if test ! -x "$tool_specified"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5135 $as_echo "not found" >&6; } 5136 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5137 fi 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5139 $as_echo "$tool_specified" >&6; } 5140 fi 5141 fi 5142 fi 5143 5144 5145 5146 if test "x$CHMOD" = x; then 5147 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5148 fi 5149 5150 5151 5152 5153 5154 # Publish this variable in the help. 5155 5156 5157 if test "x$CMP" = x; then 5158 # The variable is not set by user, try to locate tool using the code snippet 5159 for ac_prog in cmp 5160 do 5161 # Extract the first word of "$ac_prog", so it can be a program name with args. 5162 set dummy $ac_prog; ac_word=$2 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5164 $as_echo_n "checking for $ac_word... " >&6; } 5165 if ${ac_cv_path_CMP+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167 else 5168 case $CMP in 5169 [\\/]* | ?:[\\/]*) 5170 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5171 ;; 5172 *) 5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5174 for as_dir in $PATH 5175 do 5176 IFS=$as_save_IFS 5177 test -z "$as_dir" && as_dir=. 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5180 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5182 break 2 5183 fi 5184 done 5185 done 5186 IFS=$as_save_IFS 5187 5188 ;; 5189 esac 5190 fi 5191 CMP=$ac_cv_path_CMP 5192 if test -n "$CMP"; then 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5194 $as_echo "$CMP" >&6; } 5195 else 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5197 $as_echo "no" >&6; } 5198 fi 5199 5200 5201 test -n "$CMP" && break 5202 done 5203 5204 else 5205 # The variable is set, but is it from the command line or the environment? 5206 5207 # Try to remove the string !CMP! from our list. 5208 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5209 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5210 # If it failed, the variable was not from the command line. Ignore it, 5211 # but warn the user (except for BASH, which is always set by the calling BASH). 5212 if test "xCMP" != xBASH; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5214 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5215 fi 5216 # Try to locate tool using the code snippet 5217 for ac_prog in cmp 5218 do 5219 # Extract the first word of "$ac_prog", so it can be a program name with args. 5220 set dummy $ac_prog; ac_word=$2 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222 $as_echo_n "checking for $ac_word... " >&6; } 5223 if ${ac_cv_path_CMP+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225 else 5226 case $CMP in 5227 [\\/]* | ?:[\\/]*) 5228 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5229 ;; 5230 *) 5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232 for as_dir in $PATH 5233 do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5238 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242 done 5243 done 5244 IFS=$as_save_IFS 5245 5246 ;; 5247 esac 5248 fi 5249 CMP=$ac_cv_path_CMP 5250 if test -n "$CMP"; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5252 $as_echo "$CMP" >&6; } 5253 else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255 $as_echo "no" >&6; } 5256 fi 5257 5258 5259 test -n "$CMP" && break 5260 done 5261 5262 else 5263 # If it succeeded, then it was overridden by the user. We will use it 5264 # for the tool. 5265 5266 # First remove it from the list of overridden variables, so we can test 5267 # for unknown variables in the end. 5268 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5269 5270 # Check if the provided tool contains a complete path. 5271 tool_specified="$CMP" 5272 tool_basename="${tool_specified##*/}" 5273 if test "x$tool_basename" = "x$tool_specified"; then 5274 # A command without a complete path is provided, search $PATH. 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5276 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5277 # Extract the first word of "$tool_basename", so it can be a program name with args. 5278 set dummy $tool_basename; ac_word=$2 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5280 $as_echo_n "checking for $ac_word... " >&6; } 5281 if ${ac_cv_path_CMP+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283 else 5284 case $CMP in 5285 [\\/]* | ?:[\\/]*) 5286 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5287 ;; 5288 *) 5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290 for as_dir in $PATH 5291 do 5292 IFS=$as_save_IFS 5293 test -z "$as_dir" && as_dir=. 5294 for ac_exec_ext in '' $ac_executable_extensions; do 5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5296 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5298 break 2 5299 fi 5300 done 5301 done 5302 IFS=$as_save_IFS 5303 5304 ;; 5305 esac 5306 fi 5307 CMP=$ac_cv_path_CMP 5308 if test -n "$CMP"; then 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5310 $as_echo "$CMP" >&6; } 5311 else 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5313 $as_echo "no" >&6; } 5314 fi 5315 5316 5317 if test "x$CMP" = x; then 5318 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5319 fi 5320 else 5321 # Otherwise we believe it is a complete path. Use it as it is. 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5323 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5325 $as_echo_n "checking for CMP... " >&6; } 5326 if test ! -x "$tool_specified"; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5328 $as_echo "not found" >&6; } 5329 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5330 fi 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5332 $as_echo "$tool_specified" >&6; } 5333 fi 5334 fi 5335 fi 5336 5337 5338 5339 if test "x$CMP" = x; then 5340 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5341 fi 5342 5343 5344 5345 5346 5347 # Publish this variable in the help. 5348 5349 5350 if test "x$COMM" = x; then 5351 # The variable is not set by user, try to locate tool using the code snippet 5352 for ac_prog in comm 5353 do 5354 # Extract the first word of "$ac_prog", so it can be a program name with args. 5355 set dummy $ac_prog; ac_word=$2 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357 $as_echo_n "checking for $ac_word... " >&6; } 5358 if ${ac_cv_path_COMM+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360 else 5361 case $COMM in 5362 [\\/]* | ?:[\\/]*) 5363 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5364 ;; 5365 *) 5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367 for as_dir in $PATH 5368 do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5373 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377 done 5378 done 5379 IFS=$as_save_IFS 5380 5381 ;; 5382 esac 5383 fi 5384 COMM=$ac_cv_path_COMM 5385 if test -n "$COMM"; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5387 $as_echo "$COMM" >&6; } 5388 else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390 $as_echo "no" >&6; } 5391 fi 5392 5393 5394 test -n "$COMM" && break 5395 done 5396 5397 else 5398 # The variable is set, but is it from the command line or the environment? 5399 5400 # Try to remove the string !COMM! from our list. 5401 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5402 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5403 # If it failed, the variable was not from the command line. Ignore it, 5404 # but warn the user (except for BASH, which is always set by the calling BASH). 5405 if test "xCOMM" != xBASH; then 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5407 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5408 fi 5409 # Try to locate tool using the code snippet 5410 for ac_prog in comm 5411 do 5412 # Extract the first word of "$ac_prog", so it can be a program name with args. 5413 set dummy $ac_prog; ac_word=$2 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5415 $as_echo_n "checking for $ac_word... " >&6; } 5416 if ${ac_cv_path_COMM+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418 else 5419 case $COMM in 5420 [\\/]* | ?:[\\/]*) 5421 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5422 ;; 5423 *) 5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425 for as_dir in $PATH 5426 do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5431 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435 done 5436 done 5437 IFS=$as_save_IFS 5438 5439 ;; 5440 esac 5441 fi 5442 COMM=$ac_cv_path_COMM 5443 if test -n "$COMM"; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5445 $as_echo "$COMM" >&6; } 5446 else 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5448 $as_echo "no" >&6; } 5449 fi 5450 5451 5452 test -n "$COMM" && break 5453 done 5454 5455 else 5456 # If it succeeded, then it was overridden by the user. We will use it 5457 # for the tool. 5458 5459 # First remove it from the list of overridden variables, so we can test 5460 # for unknown variables in the end. 5461 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5462 5463 # Check if the provided tool contains a complete path. 5464 tool_specified="$COMM" 5465 tool_basename="${tool_specified##*/}" 5466 if test "x$tool_basename" = "x$tool_specified"; then 5467 # A command without a complete path is provided, search $PATH. 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5469 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5470 # Extract the first word of "$tool_basename", so it can be a program name with args. 5471 set dummy $tool_basename; ac_word=$2 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5473 $as_echo_n "checking for $ac_word... " >&6; } 5474 if ${ac_cv_path_COMM+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476 else 5477 case $COMM in 5478 [\\/]* | ?:[\\/]*) 5479 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5480 ;; 5481 *) 5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483 for as_dir in $PATH 5484 do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_exec_ext in '' $ac_executable_extensions; do 5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5489 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5491 break 2 5492 fi 5493 done 5494 done 5495 IFS=$as_save_IFS 5496 5497 ;; 5498 esac 5499 fi 5500 COMM=$ac_cv_path_COMM 5501 if test -n "$COMM"; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5503 $as_echo "$COMM" >&6; } 5504 else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5506 $as_echo "no" >&6; } 5507 fi 5508 5509 5510 if test "x$COMM" = x; then 5511 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5512 fi 5513 else 5514 # Otherwise we believe it is a complete path. Use it as it is. 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5516 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5518 $as_echo_n "checking for COMM... " >&6; } 5519 if test ! -x "$tool_specified"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5521 $as_echo "not found" >&6; } 5522 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5523 fi 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5525 $as_echo "$tool_specified" >&6; } 5526 fi 5527 fi 5528 fi 5529 5530 5531 5532 if test "x$COMM" = x; then 5533 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5534 fi 5535 5536 5537 5538 5539 5540 # Publish this variable in the help. 5541 5542 5543 if test "x$CP" = x; then 5544 # The variable is not set by user, try to locate tool using the code snippet 5545 for ac_prog in cp 5546 do 5547 # Extract the first word of "$ac_prog", so it can be a program name with args. 5548 set dummy $ac_prog; ac_word=$2 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5550 $as_echo_n "checking for $ac_word... " >&6; } 5551 if ${ac_cv_path_CP+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553 else 5554 case $CP in 5555 [\\/]* | ?:[\\/]*) 5556 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5557 ;; 5558 *) 5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560 for as_dir in $PATH 5561 do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5566 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570 done 5571 done 5572 IFS=$as_save_IFS 5573 5574 ;; 5575 esac 5576 fi 5577 CP=$ac_cv_path_CP 5578 if test -n "$CP"; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5580 $as_echo "$CP" >&6; } 5581 else 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5583 $as_echo "no" >&6; } 5584 fi 5585 5586 5587 test -n "$CP" && break 5588 done 5589 5590 else 5591 # The variable is set, but is it from the command line or the environment? 5592 5593 # Try to remove the string !CP! from our list. 5594 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5595 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5596 # If it failed, the variable was not from the command line. Ignore it, 5597 # but warn the user (except for BASH, which is always set by the calling BASH). 5598 if test "xCP" != xBASH; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5600 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5601 fi 5602 # Try to locate tool using the code snippet 5603 for ac_prog in cp 5604 do 5605 # Extract the first word of "$ac_prog", so it can be a program name with args. 5606 set dummy $ac_prog; ac_word=$2 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5608 $as_echo_n "checking for $ac_word... " >&6; } 5609 if ${ac_cv_path_CP+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611 else 5612 case $CP in 5613 [\\/]* | ?:[\\/]*) 5614 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5615 ;; 5616 *) 5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5618 for as_dir in $PATH 5619 do 5620 IFS=$as_save_IFS 5621 test -z "$as_dir" && as_dir=. 5622 for ac_exec_ext in '' $ac_executable_extensions; do 5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5624 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5626 break 2 5627 fi 5628 done 5629 done 5630 IFS=$as_save_IFS 5631 5632 ;; 5633 esac 5634 fi 5635 CP=$ac_cv_path_CP 5636 if test -n "$CP"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5638 $as_echo "$CP" >&6; } 5639 else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641 $as_echo "no" >&6; } 5642 fi 5643 5644 5645 test -n "$CP" && break 5646 done 5647 5648 else 5649 # If it succeeded, then it was overridden by the user. We will use it 5650 # for the tool. 5651 5652 # First remove it from the list of overridden variables, so we can test 5653 # for unknown variables in the end. 5654 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5655 5656 # Check if the provided tool contains a complete path. 5657 tool_specified="$CP" 5658 tool_basename="${tool_specified##*/}" 5659 if test "x$tool_basename" = "x$tool_specified"; then 5660 # A command without a complete path is provided, search $PATH. 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5662 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5663 # Extract the first word of "$tool_basename", so it can be a program name with args. 5664 set dummy $tool_basename; ac_word=$2 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5666 $as_echo_n "checking for $ac_word... " >&6; } 5667 if ${ac_cv_path_CP+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669 else 5670 case $CP in 5671 [\\/]* | ?:[\\/]*) 5672 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5673 ;; 5674 *) 5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5676 for as_dir in $PATH 5677 do 5678 IFS=$as_save_IFS 5679 test -z "$as_dir" && as_dir=. 5680 for ac_exec_ext in '' $ac_executable_extensions; do 5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5682 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5684 break 2 5685 fi 5686 done 5687 done 5688 IFS=$as_save_IFS 5689 5690 ;; 5691 esac 5692 fi 5693 CP=$ac_cv_path_CP 5694 if test -n "$CP"; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5696 $as_echo "$CP" >&6; } 5697 else 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5699 $as_echo "no" >&6; } 5700 fi 5701 5702 5703 if test "x$CP" = x; then 5704 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5705 fi 5706 else 5707 # Otherwise we believe it is a complete path. Use it as it is. 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5709 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5711 $as_echo_n "checking for CP... " >&6; } 5712 if test ! -x "$tool_specified"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5714 $as_echo "not found" >&6; } 5715 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5716 fi 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5718 $as_echo "$tool_specified" >&6; } 5719 fi 5720 fi 5721 fi 5722 5723 5724 5725 if test "x$CP" = x; then 5726 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5727 fi 5728 5729 5730 5731 5732 5733 # Publish this variable in the help. 5734 5735 5736 if test "x$CUT" = x; then 5737 # The variable is not set by user, try to locate tool using the code snippet 5738 for ac_prog in cut 5739 do 5740 # Extract the first word of "$ac_prog", so it can be a program name with args. 5741 set dummy $ac_prog; ac_word=$2 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743 $as_echo_n "checking for $ac_word... " >&6; } 5744 if ${ac_cv_path_CUT+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746 else 5747 case $CUT in 5748 [\\/]* | ?:[\\/]*) 5749 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5750 ;; 5751 *) 5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5753 for as_dir in $PATH 5754 do 5755 IFS=$as_save_IFS 5756 test -z "$as_dir" && as_dir=. 5757 for ac_exec_ext in '' $ac_executable_extensions; do 5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5759 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5761 break 2 5762 fi 5763 done 5764 done 5765 IFS=$as_save_IFS 5766 5767 ;; 5768 esac 5769 fi 5770 CUT=$ac_cv_path_CUT 5771 if test -n "$CUT"; then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5773 $as_echo "$CUT" >&6; } 5774 else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776 $as_echo "no" >&6; } 5777 fi 5778 5779 5780 test -n "$CUT" && break 5781 done 5782 5783 else 5784 # The variable is set, but is it from the command line or the environment? 5785 5786 # Try to remove the string !CUT! from our list. 5787 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5788 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5789 # If it failed, the variable was not from the command line. Ignore it, 5790 # but warn the user (except for BASH, which is always set by the calling BASH). 5791 if test "xCUT" != xBASH; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5793 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5794 fi 5795 # Try to locate tool using the code snippet 5796 for ac_prog in cut 5797 do 5798 # Extract the first word of "$ac_prog", so it can be a program name with args. 5799 set dummy $ac_prog; ac_word=$2 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5801 $as_echo_n "checking for $ac_word... " >&6; } 5802 if ${ac_cv_path_CUT+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804 else 5805 case $CUT in 5806 [\\/]* | ?:[\\/]*) 5807 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5808 ;; 5809 *) 5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811 for as_dir in $PATH 5812 do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821 done 5822 done 5823 IFS=$as_save_IFS 5824 5825 ;; 5826 esac 5827 fi 5828 CUT=$ac_cv_path_CUT 5829 if test -n "$CUT"; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5831 $as_echo "$CUT" >&6; } 5832 else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5834 $as_echo "no" >&6; } 5835 fi 5836 5837 5838 test -n "$CUT" && break 5839 done 5840 5841 else 5842 # If it succeeded, then it was overridden by the user. We will use it 5843 # for the tool. 5844 5845 # First remove it from the list of overridden variables, so we can test 5846 # for unknown variables in the end. 5847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5848 5849 # Check if the provided tool contains a complete path. 5850 tool_specified="$CUT" 5851 tool_basename="${tool_specified##*/}" 5852 if test "x$tool_basename" = "x$tool_specified"; then 5853 # A command without a complete path is provided, search $PATH. 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5855 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5856 # Extract the first word of "$tool_basename", so it can be a program name with args. 5857 set dummy $tool_basename; ac_word=$2 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5859 $as_echo_n "checking for $ac_word... " >&6; } 5860 if ${ac_cv_path_CUT+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862 else 5863 case $CUT in 5864 [\\/]* | ?:[\\/]*) 5865 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5866 ;; 5867 *) 5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869 for as_dir in $PATH 5870 do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5875 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879 done 5880 done 5881 IFS=$as_save_IFS 5882 5883 ;; 5884 esac 5885 fi 5886 CUT=$ac_cv_path_CUT 5887 if test -n "$CUT"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5889 $as_echo "$CUT" >&6; } 5890 else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892 $as_echo "no" >&6; } 5893 fi 5894 5895 5896 if test "x$CUT" = x; then 5897 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5898 fi 5899 else 5900 # Otherwise we believe it is a complete path. Use it as it is. 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5902 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5904 $as_echo_n "checking for CUT... " >&6; } 5905 if test ! -x "$tool_specified"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5907 $as_echo "not found" >&6; } 5908 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5909 fi 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5911 $as_echo "$tool_specified" >&6; } 5912 fi 5913 fi 5914 fi 5915 5916 5917 5918 if test "x$CUT" = x; then 5919 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5920 fi 5921 5922 5923 5924 5925 5926 # Publish this variable in the help. 5927 5928 5929 if test "x$DATE" = x; then 5930 # The variable is not set by user, try to locate tool using the code snippet 5931 for ac_prog in date 5932 do 5933 # Extract the first word of "$ac_prog", so it can be a program name with args. 5934 set dummy $ac_prog; ac_word=$2 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936 $as_echo_n "checking for $ac_word... " >&6; } 5937 if ${ac_cv_path_DATE+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939 else 5940 case $DATE in 5941 [\\/]* | ?:[\\/]*) 5942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5943 ;; 5944 *) 5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946 for as_dir in $PATH 5947 do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956 done 5957 done 5958 IFS=$as_save_IFS 5959 5960 ;; 5961 esac 5962 fi 5963 DATE=$ac_cv_path_DATE 5964 if test -n "$DATE"; then 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5966 $as_echo "$DATE" >&6; } 5967 else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5969 $as_echo "no" >&6; } 5970 fi 5971 5972 5973 test -n "$DATE" && break 5974 done 5975 5976 else 5977 # The variable is set, but is it from the command line or the environment? 5978 5979 # Try to remove the string !DATE! from our list. 5980 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5981 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5982 # If it failed, the variable was not from the command line. Ignore it, 5983 # but warn the user (except for BASH, which is always set by the calling BASH). 5984 if test "xDATE" != xBASH; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5986 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5987 fi 5988 # Try to locate tool using the code snippet 5989 for ac_prog in date 5990 do 5991 # Extract the first word of "$ac_prog", so it can be a program name with args. 5992 set dummy $ac_prog; ac_word=$2 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994 $as_echo_n "checking for $ac_word... " >&6; } 5995 if ${ac_cv_path_DATE+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997 else 5998 case $DATE in 5999 [\\/]* | ?:[\\/]*) 6000 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6001 ;; 6002 *) 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004 for as_dir in $PATH 6005 do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014 done 6015 done 6016 IFS=$as_save_IFS 6017 6018 ;; 6019 esac 6020 fi 6021 DATE=$ac_cv_path_DATE 6022 if test -n "$DATE"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6024 $as_echo "$DATE" >&6; } 6025 else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027 $as_echo "no" >&6; } 6028 fi 6029 6030 6031 test -n "$DATE" && break 6032 done 6033 6034 else 6035 # If it succeeded, then it was overridden by the user. We will use it 6036 # for the tool. 6037 6038 # First remove it from the list of overridden variables, so we can test 6039 # for unknown variables in the end. 6040 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6041 6042 # Check if the provided tool contains a complete path. 6043 tool_specified="$DATE" 6044 tool_basename="${tool_specified##*/}" 6045 if test "x$tool_basename" = "x$tool_specified"; then 6046 # A command without a complete path is provided, search $PATH. 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6048 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6049 # Extract the first word of "$tool_basename", so it can be a program name with args. 6050 set dummy $tool_basename; ac_word=$2 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6052 $as_echo_n "checking for $ac_word... " >&6; } 6053 if ${ac_cv_path_DATE+:} false; then : 6054 $as_echo_n "(cached) " >&6 6055 else 6056 case $DATE in 6057 [\\/]* | ?:[\\/]*) 6058 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6059 ;; 6060 *) 6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6062 for as_dir in $PATH 6063 do 6064 IFS=$as_save_IFS 6065 test -z "$as_dir" && as_dir=. 6066 for ac_exec_ext in '' $ac_executable_extensions; do 6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6068 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6070 break 2 6071 fi 6072 done 6073 done 6074 IFS=$as_save_IFS 6075 6076 ;; 6077 esac 6078 fi 6079 DATE=$ac_cv_path_DATE 6080 if test -n "$DATE"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6082 $as_echo "$DATE" >&6; } 6083 else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085 $as_echo "no" >&6; } 6086 fi 6087 6088 6089 if test "x$DATE" = x; then 6090 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6091 fi 6092 else 6093 # Otherwise we believe it is a complete path. Use it as it is. 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6095 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6097 $as_echo_n "checking for DATE... " >&6; } 6098 if test ! -x "$tool_specified"; then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6100 $as_echo "not found" >&6; } 6101 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6102 fi 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6104 $as_echo "$tool_specified" >&6; } 6105 fi 6106 fi 6107 fi 6108 6109 6110 6111 if test "x$DATE" = x; then 6112 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6113 fi 6114 6115 6116 6117 6118 6119 # Publish this variable in the help. 6120 6121 6122 if test "x$DIFF" = x; then 6123 # The variable is not set by user, try to locate tool using the code snippet 6124 for ac_prog in gdiff diff 6125 do 6126 # Extract the first word of "$ac_prog", so it can be a program name with args. 6127 set dummy $ac_prog; ac_word=$2 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6129 $as_echo_n "checking for $ac_word... " >&6; } 6130 if ${ac_cv_path_DIFF+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132 else 6133 case $DIFF in 6134 [\\/]* | ?:[\\/]*) 6135 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6136 ;; 6137 *) 6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139 for as_dir in $PATH 6140 do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149 done 6150 done 6151 IFS=$as_save_IFS 6152 6153 ;; 6154 esac 6155 fi 6156 DIFF=$ac_cv_path_DIFF 6157 if test -n "$DIFF"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6159 $as_echo "$DIFF" >&6; } 6160 else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162 $as_echo "no" >&6; } 6163 fi 6164 6165 6166 test -n "$DIFF" && break 6167 done 6168 6169 else 6170 # The variable is set, but is it from the command line or the environment? 6171 6172 # Try to remove the string !DIFF! from our list. 6173 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6174 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6175 # If it failed, the variable was not from the command line. Ignore it, 6176 # but warn the user (except for BASH, which is always set by the calling BASH). 6177 if test "xDIFF" != xBASH; then 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6179 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6180 fi 6181 # Try to locate tool using the code snippet 6182 for ac_prog in gdiff diff 6183 do 6184 # Extract the first word of "$ac_prog", so it can be a program name with args. 6185 set dummy $ac_prog; ac_word=$2 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 $as_echo_n "checking for $ac_word... " >&6; } 6188 if ${ac_cv_path_DIFF+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 case $DIFF in 6192 [\\/]* | ?:[\\/]*) 6193 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6194 ;; 6195 *) 6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197 for as_dir in $PATH 6198 do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6203 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207 done 6208 done 6209 IFS=$as_save_IFS 6210 6211 ;; 6212 esac 6213 fi 6214 DIFF=$ac_cv_path_DIFF 6215 if test -n "$DIFF"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6217 $as_echo "$DIFF" >&6; } 6218 else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220 $as_echo "no" >&6; } 6221 fi 6222 6223 6224 test -n "$DIFF" && break 6225 done 6226 6227 else 6228 # If it succeeded, then it was overridden by the user. We will use it 6229 # for the tool. 6230 6231 # First remove it from the list of overridden variables, so we can test 6232 # for unknown variables in the end. 6233 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6234 6235 # Check if the provided tool contains a complete path. 6236 tool_specified="$DIFF" 6237 tool_basename="${tool_specified##*/}" 6238 if test "x$tool_basename" = "x$tool_specified"; then 6239 # A command without a complete path is provided, search $PATH. 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6241 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6242 # Extract the first word of "$tool_basename", so it can be a program name with args. 6243 set dummy $tool_basename; ac_word=$2 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6245 $as_echo_n "checking for $ac_word... " >&6; } 6246 if ${ac_cv_path_DIFF+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248 else 6249 case $DIFF in 6250 [\\/]* | ?:[\\/]*) 6251 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6252 ;; 6253 *) 6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255 for as_dir in $PATH 6256 do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6261 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265 done 6266 done 6267 IFS=$as_save_IFS 6268 6269 ;; 6270 esac 6271 fi 6272 DIFF=$ac_cv_path_DIFF 6273 if test -n "$DIFF"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6275 $as_echo "$DIFF" >&6; } 6276 else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278 $as_echo "no" >&6; } 6279 fi 6280 6281 6282 if test "x$DIFF" = x; then 6283 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6284 fi 6285 else 6286 # Otherwise we believe it is a complete path. Use it as it is. 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6288 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6290 $as_echo_n "checking for DIFF... " >&6; } 6291 if test ! -x "$tool_specified"; then 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6293 $as_echo "not found" >&6; } 6294 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6295 fi 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6297 $as_echo "$tool_specified" >&6; } 6298 fi 6299 fi 6300 fi 6301 6302 6303 6304 if test "x$DIFF" = x; then 6305 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6306 fi 6307 6308 6309 6310 6311 6312 # Publish this variable in the help. 6313 6314 6315 if test "x$DIRNAME" = x; then 6316 # The variable is not set by user, try to locate tool using the code snippet 6317 for ac_prog in dirname 6318 do 6319 # Extract the first word of "$ac_prog", so it can be a program name with args. 6320 set dummy $ac_prog; ac_word=$2 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6322 $as_echo_n "checking for $ac_word... " >&6; } 6323 if ${ac_cv_path_DIRNAME+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325 else 6326 case $DIRNAME in 6327 [\\/]* | ?:[\\/]*) 6328 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6329 ;; 6330 *) 6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332 for as_dir in $PATH 6333 do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6338 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342 done 6343 done 6344 IFS=$as_save_IFS 6345 6346 ;; 6347 esac 6348 fi 6349 DIRNAME=$ac_cv_path_DIRNAME 6350 if test -n "$DIRNAME"; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6352 $as_echo "$DIRNAME" >&6; } 6353 else 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355 $as_echo "no" >&6; } 6356 fi 6357 6358 6359 test -n "$DIRNAME" && break 6360 done 6361 6362 else 6363 # The variable is set, but is it from the command line or the environment? 6364 6365 # Try to remove the string !DIRNAME! from our list. 6366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6368 # If it failed, the variable was not from the command line. Ignore it, 6369 # but warn the user (except for BASH, which is always set by the calling BASH). 6370 if test "xDIRNAME" != xBASH; then 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6372 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6373 fi 6374 # Try to locate tool using the code snippet 6375 for ac_prog in dirname 6376 do 6377 # Extract the first word of "$ac_prog", so it can be a program name with args. 6378 set dummy $ac_prog; ac_word=$2 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380 $as_echo_n "checking for $ac_word... " >&6; } 6381 if ${ac_cv_path_DIRNAME+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383 else 6384 case $DIRNAME in 6385 [\\/]* | ?:[\\/]*) 6386 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6387 ;; 6388 *) 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390 for as_dir in $PATH 6391 do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400 done 6401 done 6402 IFS=$as_save_IFS 6403 6404 ;; 6405 esac 6406 fi 6407 DIRNAME=$ac_cv_path_DIRNAME 6408 if test -n "$DIRNAME"; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6410 $as_echo "$DIRNAME" >&6; } 6411 else 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413 $as_echo "no" >&6; } 6414 fi 6415 6416 6417 test -n "$DIRNAME" && break 6418 done 6419 6420 else 6421 # If it succeeded, then it was overridden by the user. We will use it 6422 # for the tool. 6423 6424 # First remove it from the list of overridden variables, so we can test 6425 # for unknown variables in the end. 6426 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6427 6428 # Check if the provided tool contains a complete path. 6429 tool_specified="$DIRNAME" 6430 tool_basename="${tool_specified##*/}" 6431 if test "x$tool_basename" = "x$tool_specified"; then 6432 # A command without a complete path is provided, search $PATH. 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6434 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6435 # Extract the first word of "$tool_basename", so it can be a program name with args. 6436 set dummy $tool_basename; ac_word=$2 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438 $as_echo_n "checking for $ac_word... " >&6; } 6439 if ${ac_cv_path_DIRNAME+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441 else 6442 case $DIRNAME in 6443 [\\/]* | ?:[\\/]*) 6444 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6445 ;; 6446 *) 6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448 for as_dir in $PATH 6449 do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6454 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458 done 6459 done 6460 IFS=$as_save_IFS 6461 6462 ;; 6463 esac 6464 fi 6465 DIRNAME=$ac_cv_path_DIRNAME 6466 if test -n "$DIRNAME"; then 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6468 $as_echo "$DIRNAME" >&6; } 6469 else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471 $as_echo "no" >&6; } 6472 fi 6473 6474 6475 if test "x$DIRNAME" = x; then 6476 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6477 fi 6478 else 6479 # Otherwise we believe it is a complete path. Use it as it is. 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6481 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6483 $as_echo_n "checking for DIRNAME... " >&6; } 6484 if test ! -x "$tool_specified"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6486 $as_echo "not found" >&6; } 6487 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6488 fi 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6490 $as_echo "$tool_specified" >&6; } 6491 fi 6492 fi 6493 fi 6494 6495 6496 6497 if test "x$DIRNAME" = x; then 6498 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6499 fi 6500 6501 6502 6503 6504 6505 # Publish this variable in the help. 6506 6507 6508 if test "x$ECHO" = x; then 6509 # The variable is not set by user, try to locate tool using the code snippet 6510 for ac_prog in echo 6511 do 6512 # Extract the first word of "$ac_prog", so it can be a program name with args. 6513 set dummy $ac_prog; ac_word=$2 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515 $as_echo_n "checking for $ac_word... " >&6; } 6516 if ${ac_cv_path_ECHO+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518 else 6519 case $ECHO in 6520 [\\/]* | ?:[\\/]*) 6521 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6522 ;; 6523 *) 6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525 for as_dir in $PATH 6526 do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6531 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535 done 6536 done 6537 IFS=$as_save_IFS 6538 6539 ;; 6540 esac 6541 fi 6542 ECHO=$ac_cv_path_ECHO 6543 if test -n "$ECHO"; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6545 $as_echo "$ECHO" >&6; } 6546 else 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548 $as_echo "no" >&6; } 6549 fi 6550 6551 6552 test -n "$ECHO" && break 6553 done 6554 6555 else 6556 # The variable is set, but is it from the command line or the environment? 6557 6558 # Try to remove the string !ECHO! from our list. 6559 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6560 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6561 # If it failed, the variable was not from the command line. Ignore it, 6562 # but warn the user (except for BASH, which is always set by the calling BASH). 6563 if test "xECHO" != xBASH; then 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6565 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6566 fi 6567 # Try to locate tool using the code snippet 6568 for ac_prog in echo 6569 do 6570 # Extract the first word of "$ac_prog", so it can be a program name with args. 6571 set dummy $ac_prog; ac_word=$2 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6573 $as_echo_n "checking for $ac_word... " >&6; } 6574 if ${ac_cv_path_ECHO+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576 else 6577 case $ECHO in 6578 [\\/]* | ?:[\\/]*) 6579 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6580 ;; 6581 *) 6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583 for as_dir in $PATH 6584 do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6589 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593 done 6594 done 6595 IFS=$as_save_IFS 6596 6597 ;; 6598 esac 6599 fi 6600 ECHO=$ac_cv_path_ECHO 6601 if test -n "$ECHO"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6603 $as_echo "$ECHO" >&6; } 6604 else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6606 $as_echo "no" >&6; } 6607 fi 6608 6609 6610 test -n "$ECHO" && break 6611 done 6612 6613 else 6614 # If it succeeded, then it was overridden by the user. We will use it 6615 # for the tool. 6616 6617 # First remove it from the list of overridden variables, so we can test 6618 # for unknown variables in the end. 6619 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6620 6621 # Check if the provided tool contains a complete path. 6622 tool_specified="$ECHO" 6623 tool_basename="${tool_specified##*/}" 6624 if test "x$tool_basename" = "x$tool_specified"; then 6625 # A command without a complete path is provided, search $PATH. 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6627 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6628 # Extract the first word of "$tool_basename", so it can be a program name with args. 6629 set dummy $tool_basename; ac_word=$2 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6631 $as_echo_n "checking for $ac_word... " >&6; } 6632 if ${ac_cv_path_ECHO+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634 else 6635 case $ECHO in 6636 [\\/]* | ?:[\\/]*) 6637 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6638 ;; 6639 *) 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641 for as_dir in $PATH 6642 do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6647 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651 done 6652 done 6653 IFS=$as_save_IFS 6654 6655 ;; 6656 esac 6657 fi 6658 ECHO=$ac_cv_path_ECHO 6659 if test -n "$ECHO"; then 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6661 $as_echo "$ECHO" >&6; } 6662 else 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664 $as_echo "no" >&6; } 6665 fi 6666 6667 6668 if test "x$ECHO" = x; then 6669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6670 fi 6671 else 6672 # Otherwise we believe it is a complete path. Use it as it is. 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6674 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6676 $as_echo_n "checking for ECHO... " >&6; } 6677 if test ! -x "$tool_specified"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6679 $as_echo "not found" >&6; } 6680 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6681 fi 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6683 $as_echo "$tool_specified" >&6; } 6684 fi 6685 fi 6686 fi 6687 6688 6689 6690 if test "x$ECHO" = x; then 6691 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6692 fi 6693 6694 6695 6696 6697 6698 # Publish this variable in the help. 6699 6700 6701 if test "x$EXPR" = x; then 6702 # The variable is not set by user, try to locate tool using the code snippet 6703 for ac_prog in expr 6704 do 6705 # Extract the first word of "$ac_prog", so it can be a program name with args. 6706 set dummy $ac_prog; ac_word=$2 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708 $as_echo_n "checking for $ac_word... " >&6; } 6709 if ${ac_cv_path_EXPR+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711 else 6712 case $EXPR in 6713 [\\/]* | ?:[\\/]*) 6714 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6715 ;; 6716 *) 6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718 for as_dir in $PATH 6719 do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_exec_ext in '' $ac_executable_extensions; do 6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6724 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6726 break 2 6727 fi 6728 done 6729 done 6730 IFS=$as_save_IFS 6731 6732 ;; 6733 esac 6734 fi 6735 EXPR=$ac_cv_path_EXPR 6736 if test -n "$EXPR"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6738 $as_echo "$EXPR" >&6; } 6739 else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741 $as_echo "no" >&6; } 6742 fi 6743 6744 6745 test -n "$EXPR" && break 6746 done 6747 6748 else 6749 # The variable is set, but is it from the command line or the environment? 6750 6751 # Try to remove the string !EXPR! from our list. 6752 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6753 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6754 # If it failed, the variable was not from the command line. Ignore it, 6755 # but warn the user (except for BASH, which is always set by the calling BASH). 6756 if test "xEXPR" != xBASH; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6758 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6759 fi 6760 # Try to locate tool using the code snippet 6761 for ac_prog in expr 6762 do 6763 # Extract the first word of "$ac_prog", so it can be a program name with args. 6764 set dummy $ac_prog; ac_word=$2 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766 $as_echo_n "checking for $ac_word... " >&6; } 6767 if ${ac_cv_path_EXPR+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769 else 6770 case $EXPR in 6771 [\\/]* | ?:[\\/]*) 6772 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6773 ;; 6774 *) 6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776 for as_dir in $PATH 6777 do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786 done 6787 done 6788 IFS=$as_save_IFS 6789 6790 ;; 6791 esac 6792 fi 6793 EXPR=$ac_cv_path_EXPR 6794 if test -n "$EXPR"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6796 $as_echo "$EXPR" >&6; } 6797 else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799 $as_echo "no" >&6; } 6800 fi 6801 6802 6803 test -n "$EXPR" && break 6804 done 6805 6806 else 6807 # If it succeeded, then it was overridden by the user. We will use it 6808 # for the tool. 6809 6810 # First remove it from the list of overridden variables, so we can test 6811 # for unknown variables in the end. 6812 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6813 6814 # Check if the provided tool contains a complete path. 6815 tool_specified="$EXPR" 6816 tool_basename="${tool_specified##*/}" 6817 if test "x$tool_basename" = "x$tool_specified"; then 6818 # A command without a complete path is provided, search $PATH. 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6820 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6821 # Extract the first word of "$tool_basename", so it can be a program name with args. 6822 set dummy $tool_basename; ac_word=$2 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824 $as_echo_n "checking for $ac_word... " >&6; } 6825 if ${ac_cv_path_EXPR+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827 else 6828 case $EXPR in 6829 [\\/]* | ?:[\\/]*) 6830 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6831 ;; 6832 *) 6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834 for as_dir in $PATH 6835 do 6836 IFS=$as_save_IFS 6837 test -z "$as_dir" && as_dir=. 6838 for ac_exec_ext in '' $ac_executable_extensions; do 6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6840 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6842 break 2 6843 fi 6844 done 6845 done 6846 IFS=$as_save_IFS 6847 6848 ;; 6849 esac 6850 fi 6851 EXPR=$ac_cv_path_EXPR 6852 if test -n "$EXPR"; then 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6854 $as_echo "$EXPR" >&6; } 6855 else 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6857 $as_echo "no" >&6; } 6858 fi 6859 6860 6861 if test "x$EXPR" = x; then 6862 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6863 fi 6864 else 6865 # Otherwise we believe it is a complete path. Use it as it is. 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6867 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6869 $as_echo_n "checking for EXPR... " >&6; } 6870 if test ! -x "$tool_specified"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6872 $as_echo "not found" >&6; } 6873 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6874 fi 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6876 $as_echo "$tool_specified" >&6; } 6877 fi 6878 fi 6879 fi 6880 6881 6882 6883 if test "x$EXPR" = x; then 6884 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6885 fi 6886 6887 6888 6889 6890 6891 # Publish this variable in the help. 6892 6893 6894 if test "x$FILE" = x; then 6895 # The variable is not set by user, try to locate tool using the code snippet 6896 for ac_prog in file 6897 do 6898 # Extract the first word of "$ac_prog", so it can be a program name with args. 6899 set dummy $ac_prog; ac_word=$2 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6901 $as_echo_n "checking for $ac_word... " >&6; } 6902 if ${ac_cv_path_FILE+:} false; then : 6903 $as_echo_n "(cached) " >&6 6904 else 6905 case $FILE in 6906 [\\/]* | ?:[\\/]*) 6907 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6908 ;; 6909 *) 6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911 for as_dir in $PATH 6912 do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921 done 6922 done 6923 IFS=$as_save_IFS 6924 6925 ;; 6926 esac 6927 fi 6928 FILE=$ac_cv_path_FILE 6929 if test -n "$FILE"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6931 $as_echo "$FILE" >&6; } 6932 else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934 $as_echo "no" >&6; } 6935 fi 6936 6937 6938 test -n "$FILE" && break 6939 done 6940 6941 else 6942 # The variable is set, but is it from the command line or the environment? 6943 6944 # Try to remove the string !FILE! from our list. 6945 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6946 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6947 # If it failed, the variable was not from the command line. Ignore it, 6948 # but warn the user (except for BASH, which is always set by the calling BASH). 6949 if test "xFILE" != xBASH; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6951 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6952 fi 6953 # Try to locate tool using the code snippet 6954 for ac_prog in file 6955 do 6956 # Extract the first word of "$ac_prog", so it can be a program name with args. 6957 set dummy $ac_prog; ac_word=$2 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959 $as_echo_n "checking for $ac_word... " >&6; } 6960 if ${ac_cv_path_FILE+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962 else 6963 case $FILE in 6964 [\\/]* | ?:[\\/]*) 6965 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6966 ;; 6967 *) 6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969 for as_dir in $PATH 6970 do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6975 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979 done 6980 done 6981 IFS=$as_save_IFS 6982 6983 ;; 6984 esac 6985 fi 6986 FILE=$ac_cv_path_FILE 6987 if test -n "$FILE"; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6989 $as_echo "$FILE" >&6; } 6990 else 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6992 $as_echo "no" >&6; } 6993 fi 6994 6995 6996 test -n "$FILE" && break 6997 done 6998 6999 else 7000 # If it succeeded, then it was overridden by the user. We will use it 7001 # for the tool. 7002 7003 # First remove it from the list of overridden variables, so we can test 7004 # for unknown variables in the end. 7005 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7006 7007 # Check if the provided tool contains a complete path. 7008 tool_specified="$FILE" 7009 tool_basename="${tool_specified##*/}" 7010 if test "x$tool_basename" = "x$tool_specified"; then 7011 # A command without a complete path is provided, search $PATH. 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7013 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7014 # Extract the first word of "$tool_basename", so it can be a program name with args. 7015 set dummy $tool_basename; ac_word=$2 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7017 $as_echo_n "checking for $ac_word... " >&6; } 7018 if ${ac_cv_path_FILE+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020 else 7021 case $FILE in 7022 [\\/]* | ?:[\\/]*) 7023 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7024 ;; 7025 *) 7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027 for as_dir in $PATH 7028 do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037 done 7038 done 7039 IFS=$as_save_IFS 7040 7041 ;; 7042 esac 7043 fi 7044 FILE=$ac_cv_path_FILE 7045 if test -n "$FILE"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7047 $as_echo "$FILE" >&6; } 7048 else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050 $as_echo "no" >&6; } 7051 fi 7052 7053 7054 if test "x$FILE" = x; then 7055 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7056 fi 7057 else 7058 # Otherwise we believe it is a complete path. Use it as it is. 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7060 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7062 $as_echo_n "checking for FILE... " >&6; } 7063 if test ! -x "$tool_specified"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7065 $as_echo "not found" >&6; } 7066 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7067 fi 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7069 $as_echo "$tool_specified" >&6; } 7070 fi 7071 fi 7072 fi 7073 7074 7075 7076 if test "x$FILE" = x; then 7077 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7078 fi 7079 7080 7081 7082 7083 7084 # Publish this variable in the help. 7085 7086 7087 if test "x$FIND" = x; then 7088 # The variable is not set by user, try to locate tool using the code snippet 7089 for ac_prog in find 7090 do 7091 # Extract the first word of "$ac_prog", so it can be a program name with args. 7092 set dummy $ac_prog; ac_word=$2 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094 $as_echo_n "checking for $ac_word... " >&6; } 7095 if ${ac_cv_path_FIND+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097 else 7098 case $FIND in 7099 [\\/]* | ?:[\\/]*) 7100 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7101 ;; 7102 *) 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104 for as_dir in $PATH 7105 do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114 done 7115 done 7116 IFS=$as_save_IFS 7117 7118 ;; 7119 esac 7120 fi 7121 FIND=$ac_cv_path_FIND 7122 if test -n "$FIND"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7124 $as_echo "$FIND" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 test -n "$FIND" && break 7132 done 7133 7134 else 7135 # The variable is set, but is it from the command line or the environment? 7136 7137 # Try to remove the string !FIND! from our list. 7138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7140 # If it failed, the variable was not from the command line. Ignore it, 7141 # but warn the user (except for BASH, which is always set by the calling BASH). 7142 if test "xFIND" != xBASH; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7144 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7145 fi 7146 # Try to locate tool using the code snippet 7147 for ac_prog in find 7148 do 7149 # Extract the first word of "$ac_prog", so it can be a program name with args. 7150 set dummy $ac_prog; ac_word=$2 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152 $as_echo_n "checking for $ac_word... " >&6; } 7153 if ${ac_cv_path_FIND+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155 else 7156 case $FIND in 7157 [\\/]* | ?:[\\/]*) 7158 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7159 ;; 7160 *) 7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162 for as_dir in $PATH 7163 do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7168 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172 done 7173 done 7174 IFS=$as_save_IFS 7175 7176 ;; 7177 esac 7178 fi 7179 FIND=$ac_cv_path_FIND 7180 if test -n "$FIND"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7182 $as_echo "$FIND" >&6; } 7183 else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185 $as_echo "no" >&6; } 7186 fi 7187 7188 7189 test -n "$FIND" && break 7190 done 7191 7192 else 7193 # If it succeeded, then it was overridden by the user. We will use it 7194 # for the tool. 7195 7196 # First remove it from the list of overridden variables, so we can test 7197 # for unknown variables in the end. 7198 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7199 7200 # Check if the provided tool contains a complete path. 7201 tool_specified="$FIND" 7202 tool_basename="${tool_specified##*/}" 7203 if test "x$tool_basename" = "x$tool_specified"; then 7204 # A command without a complete path is provided, search $PATH. 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7206 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7207 # Extract the first word of "$tool_basename", so it can be a program name with args. 7208 set dummy $tool_basename; ac_word=$2 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7210 $as_echo_n "checking for $ac_word... " >&6; } 7211 if ${ac_cv_path_FIND+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213 else 7214 case $FIND in 7215 [\\/]* | ?:[\\/]*) 7216 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7217 ;; 7218 *) 7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220 for as_dir in $PATH 7221 do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7226 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230 done 7231 done 7232 IFS=$as_save_IFS 7233 7234 ;; 7235 esac 7236 fi 7237 FIND=$ac_cv_path_FIND 7238 if test -n "$FIND"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7240 $as_echo "$FIND" >&6; } 7241 else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243 $as_echo "no" >&6; } 7244 fi 7245 7246 7247 if test "x$FIND" = x; then 7248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7249 fi 7250 else 7251 # Otherwise we believe it is a complete path. Use it as it is. 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7253 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7255 $as_echo_n "checking for FIND... " >&6; } 7256 if test ! -x "$tool_specified"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7258 $as_echo "not found" >&6; } 7259 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7260 fi 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7262 $as_echo "$tool_specified" >&6; } 7263 fi 7264 fi 7265 fi 7266 7267 7268 7269 if test "x$FIND" = x; then 7270 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7271 fi 7272 7273 7274 7275 7276 7277 # Publish this variable in the help. 7278 7279 7280 if test "x$HEAD" = x; then 7281 # The variable is not set by user, try to locate tool using the code snippet 7282 for ac_prog in head 7283 do 7284 # Extract the first word of "$ac_prog", so it can be a program name with args. 7285 set dummy $ac_prog; ac_word=$2 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287 $as_echo_n "checking for $ac_word... " >&6; } 7288 if ${ac_cv_path_HEAD+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290 else 7291 case $HEAD in 7292 [\\/]* | ?:[\\/]*) 7293 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7294 ;; 7295 *) 7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7297 for as_dir in $PATH 7298 do 7299 IFS=$as_save_IFS 7300 test -z "$as_dir" && as_dir=. 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7303 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7305 break 2 7306 fi 7307 done 7308 done 7309 IFS=$as_save_IFS 7310 7311 ;; 7312 esac 7313 fi 7314 HEAD=$ac_cv_path_HEAD 7315 if test -n "$HEAD"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7317 $as_echo "$HEAD" >&6; } 7318 else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7320 $as_echo "no" >&6; } 7321 fi 7322 7323 7324 test -n "$HEAD" && break 7325 done 7326 7327 else 7328 # The variable is set, but is it from the command line or the environment? 7329 7330 # Try to remove the string !HEAD! from our list. 7331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7333 # If it failed, the variable was not from the command line. Ignore it, 7334 # but warn the user (except for BASH, which is always set by the calling BASH). 7335 if test "xHEAD" != xBASH; then 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7337 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7338 fi 7339 # Try to locate tool using the code snippet 7340 for ac_prog in head 7341 do 7342 # Extract the first word of "$ac_prog", so it can be a program name with args. 7343 set dummy $ac_prog; ac_word=$2 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7345 $as_echo_n "checking for $ac_word... " >&6; } 7346 if ${ac_cv_path_HEAD+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348 else 7349 case $HEAD in 7350 [\\/]* | ?:[\\/]*) 7351 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7352 ;; 7353 *) 7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355 for as_dir in $PATH 7356 do 7357 IFS=$as_save_IFS 7358 test -z "$as_dir" && as_dir=. 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7361 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7363 break 2 7364 fi 7365 done 7366 done 7367 IFS=$as_save_IFS 7368 7369 ;; 7370 esac 7371 fi 7372 HEAD=$ac_cv_path_HEAD 7373 if test -n "$HEAD"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7375 $as_echo "$HEAD" >&6; } 7376 else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378 $as_echo "no" >&6; } 7379 fi 7380 7381 7382 test -n "$HEAD" && break 7383 done 7384 7385 else 7386 # If it succeeded, then it was overridden by the user. We will use it 7387 # for the tool. 7388 7389 # First remove it from the list of overridden variables, so we can test 7390 # for unknown variables in the end. 7391 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7392 7393 # Check if the provided tool contains a complete path. 7394 tool_specified="$HEAD" 7395 tool_basename="${tool_specified##*/}" 7396 if test "x$tool_basename" = "x$tool_specified"; then 7397 # A command without a complete path is provided, search $PATH. 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7399 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7400 # Extract the first word of "$tool_basename", so it can be a program name with args. 7401 set dummy $tool_basename; ac_word=$2 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7403 $as_echo_n "checking for $ac_word... " >&6; } 7404 if ${ac_cv_path_HEAD+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406 else 7407 case $HEAD in 7408 [\\/]* | ?:[\\/]*) 7409 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7410 ;; 7411 *) 7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7413 for as_dir in $PATH 7414 do 7415 IFS=$as_save_IFS 7416 test -z "$as_dir" && as_dir=. 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7419 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 break 2 7422 fi 7423 done 7424 done 7425 IFS=$as_save_IFS 7426 7427 ;; 7428 esac 7429 fi 7430 HEAD=$ac_cv_path_HEAD 7431 if test -n "$HEAD"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7433 $as_echo "$HEAD" >&6; } 7434 else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436 $as_echo "no" >&6; } 7437 fi 7438 7439 7440 if test "x$HEAD" = x; then 7441 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7442 fi 7443 else 7444 # Otherwise we believe it is a complete path. Use it as it is. 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7446 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7448 $as_echo_n "checking for HEAD... " >&6; } 7449 if test ! -x "$tool_specified"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7451 $as_echo "not found" >&6; } 7452 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7453 fi 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7455 $as_echo "$tool_specified" >&6; } 7456 fi 7457 fi 7458 fi 7459 7460 7461 7462 if test "x$HEAD" = x; then 7463 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7464 fi 7465 7466 7467 7468 7469 7470 # Publish this variable in the help. 7471 7472 7473 if test "x$LN" = x; then 7474 # The variable is not set by user, try to locate tool using the code snippet 7475 for ac_prog in ln 7476 do 7477 # Extract the first word of "$ac_prog", so it can be a program name with args. 7478 set dummy $ac_prog; ac_word=$2 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480 $as_echo_n "checking for $ac_word... " >&6; } 7481 if ${ac_cv_path_LN+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483 else 7484 case $LN in 7485 [\\/]* | ?:[\\/]*) 7486 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7487 ;; 7488 *) 7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490 for as_dir in $PATH 7491 do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7496 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500 done 7501 done 7502 IFS=$as_save_IFS 7503 7504 ;; 7505 esac 7506 fi 7507 LN=$ac_cv_path_LN 7508 if test -n "$LN"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7510 $as_echo "$LN" >&6; } 7511 else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513 $as_echo "no" >&6; } 7514 fi 7515 7516 7517 test -n "$LN" && break 7518 done 7519 7520 else 7521 # The variable is set, but is it from the command line or the environment? 7522 7523 # Try to remove the string !LN! from our list. 7524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7526 # If it failed, the variable was not from the command line. Ignore it, 7527 # but warn the user (except for BASH, which is always set by the calling BASH). 7528 if test "xLN" != xBASH; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7530 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7531 fi 7532 # Try to locate tool using the code snippet 7533 for ac_prog in ln 7534 do 7535 # Extract the first word of "$ac_prog", so it can be a program name with args. 7536 set dummy $ac_prog; ac_word=$2 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7538 $as_echo_n "checking for $ac_word... " >&6; } 7539 if ${ac_cv_path_LN+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541 else 7542 case $LN in 7543 [\\/]* | ?:[\\/]*) 7544 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7545 ;; 7546 *) 7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548 for as_dir in $PATH 7549 do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558 done 7559 done 7560 IFS=$as_save_IFS 7561 7562 ;; 7563 esac 7564 fi 7565 LN=$ac_cv_path_LN 7566 if test -n "$LN"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7568 $as_echo "$LN" >&6; } 7569 else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571 $as_echo "no" >&6; } 7572 fi 7573 7574 7575 test -n "$LN" && break 7576 done 7577 7578 else 7579 # If it succeeded, then it was overridden by the user. We will use it 7580 # for the tool. 7581 7582 # First remove it from the list of overridden variables, so we can test 7583 # for unknown variables in the end. 7584 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7585 7586 # Check if the provided tool contains a complete path. 7587 tool_specified="$LN" 7588 tool_basename="${tool_specified##*/}" 7589 if test "x$tool_basename" = "x$tool_specified"; then 7590 # A command without a complete path is provided, search $PATH. 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7592 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7593 # Extract the first word of "$tool_basename", so it can be a program name with args. 7594 set dummy $tool_basename; ac_word=$2 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596 $as_echo_n "checking for $ac_word... " >&6; } 7597 if ${ac_cv_path_LN+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599 else 7600 case $LN in 7601 [\\/]* | ?:[\\/]*) 7602 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7603 ;; 7604 *) 7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606 for as_dir in $PATH 7607 do 7608 IFS=$as_save_IFS 7609 test -z "$as_dir" && as_dir=. 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7612 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616 done 7617 done 7618 IFS=$as_save_IFS 7619 7620 ;; 7621 esac 7622 fi 7623 LN=$ac_cv_path_LN 7624 if test -n "$LN"; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7626 $as_echo "$LN" >&6; } 7627 else 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629 $as_echo "no" >&6; } 7630 fi 7631 7632 7633 if test "x$LN" = x; then 7634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7635 fi 7636 else 7637 # Otherwise we believe it is a complete path. Use it as it is. 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7639 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7641 $as_echo_n "checking for LN... " >&6; } 7642 if test ! -x "$tool_specified"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7644 $as_echo "not found" >&6; } 7645 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7646 fi 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7648 $as_echo "$tool_specified" >&6; } 7649 fi 7650 fi 7651 fi 7652 7653 7654 7655 if test "x$LN" = x; then 7656 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7657 fi 7658 7659 7660 7661 7662 7663 # Publish this variable in the help. 7664 7665 7666 if test "x$LS" = x; then 7667 # The variable is not set by user, try to locate tool using the code snippet 7668 for ac_prog in ls 7669 do 7670 # Extract the first word of "$ac_prog", so it can be a program name with args. 7671 set dummy $ac_prog; ac_word=$2 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673 $as_echo_n "checking for $ac_word... " >&6; } 7674 if ${ac_cv_path_LS+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676 else 7677 case $LS in 7678 [\\/]* | ?:[\\/]*) 7679 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7680 ;; 7681 *) 7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683 for as_dir in $PATH 7684 do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7689 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693 done 7694 done 7695 IFS=$as_save_IFS 7696 7697 ;; 7698 esac 7699 fi 7700 LS=$ac_cv_path_LS 7701 if test -n "$LS"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7703 $as_echo "$LS" >&6; } 7704 else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706 $as_echo "no" >&6; } 7707 fi 7708 7709 7710 test -n "$LS" && break 7711 done 7712 7713 else 7714 # The variable is set, but is it from the command line or the environment? 7715 7716 # Try to remove the string !LS! from our list. 7717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7719 # If it failed, the variable was not from the command line. Ignore it, 7720 # but warn the user (except for BASH, which is always set by the calling BASH). 7721 if test "xLS" != xBASH; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7723 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7724 fi 7725 # Try to locate tool using the code snippet 7726 for ac_prog in ls 7727 do 7728 # Extract the first word of "$ac_prog", so it can be a program name with args. 7729 set dummy $ac_prog; ac_word=$2 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7731 $as_echo_n "checking for $ac_word... " >&6; } 7732 if ${ac_cv_path_LS+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734 else 7735 case $LS in 7736 [\\/]* | ?:[\\/]*) 7737 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7738 ;; 7739 *) 7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7741 for as_dir in $PATH 7742 do 7743 IFS=$as_save_IFS 7744 test -z "$as_dir" && as_dir=. 7745 for ac_exec_ext in '' $ac_executable_extensions; do 7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7747 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7749 break 2 7750 fi 7751 done 7752 done 7753 IFS=$as_save_IFS 7754 7755 ;; 7756 esac 7757 fi 7758 LS=$ac_cv_path_LS 7759 if test -n "$LS"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7761 $as_echo "$LS" >&6; } 7762 else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764 $as_echo "no" >&6; } 7765 fi 7766 7767 7768 test -n "$LS" && break 7769 done 7770 7771 else 7772 # If it succeeded, then it was overridden by the user. We will use it 7773 # for the tool. 7774 7775 # First remove it from the list of overridden variables, so we can test 7776 # for unknown variables in the end. 7777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7778 7779 # Check if the provided tool contains a complete path. 7780 tool_specified="$LS" 7781 tool_basename="${tool_specified##*/}" 7782 if test "x$tool_basename" = "x$tool_specified"; then 7783 # A command without a complete path is provided, search $PATH. 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7785 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7786 # Extract the first word of "$tool_basename", so it can be a program name with args. 7787 set dummy $tool_basename; ac_word=$2 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7789 $as_echo_n "checking for $ac_word... " >&6; } 7790 if ${ac_cv_path_LS+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792 else 7793 case $LS in 7794 [\\/]* | ?:[\\/]*) 7795 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7796 ;; 7797 *) 7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799 for as_dir in $PATH 7800 do 7801 IFS=$as_save_IFS 7802 test -z "$as_dir" && as_dir=. 7803 for ac_exec_ext in '' $ac_executable_extensions; do 7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7805 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7807 break 2 7808 fi 7809 done 7810 done 7811 IFS=$as_save_IFS 7812 7813 ;; 7814 esac 7815 fi 7816 LS=$ac_cv_path_LS 7817 if test -n "$LS"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7819 $as_echo "$LS" >&6; } 7820 else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822 $as_echo "no" >&6; } 7823 fi 7824 7825 7826 if test "x$LS" = x; then 7827 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7828 fi 7829 else 7830 # Otherwise we believe it is a complete path. Use it as it is. 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7832 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7834 $as_echo_n "checking for LS... " >&6; } 7835 if test ! -x "$tool_specified"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7837 $as_echo "not found" >&6; } 7838 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7839 fi 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7841 $as_echo "$tool_specified" >&6; } 7842 fi 7843 fi 7844 fi 7845 7846 7847 7848 if test "x$LS" = x; then 7849 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7850 fi 7851 7852 7853 7854 7855 7856 # Publish this variable in the help. 7857 7858 7859 if test "x$MKDIR" = x; then 7860 # The variable is not set by user, try to locate tool using the code snippet 7861 for ac_prog in mkdir 7862 do 7863 # Extract the first word of "$ac_prog", so it can be a program name with args. 7864 set dummy $ac_prog; ac_word=$2 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866 $as_echo_n "checking for $ac_word... " >&6; } 7867 if ${ac_cv_path_MKDIR+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869 else 7870 case $MKDIR in 7871 [\\/]* | ?:[\\/]*) 7872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7873 ;; 7874 *) 7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876 for as_dir in $PATH 7877 do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886 done 7887 done 7888 IFS=$as_save_IFS 7889 7890 ;; 7891 esac 7892 fi 7893 MKDIR=$ac_cv_path_MKDIR 7894 if test -n "$MKDIR"; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7896 $as_echo "$MKDIR" >&6; } 7897 else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899 $as_echo "no" >&6; } 7900 fi 7901 7902 7903 test -n "$MKDIR" && break 7904 done 7905 7906 else 7907 # The variable is set, but is it from the command line or the environment? 7908 7909 # Try to remove the string !MKDIR! from our list. 7910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7912 # If it failed, the variable was not from the command line. Ignore it, 7913 # but warn the user (except for BASH, which is always set by the calling BASH). 7914 if test "xMKDIR" != xBASH; then 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7916 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7917 fi 7918 # Try to locate tool using the code snippet 7919 for ac_prog in mkdir 7920 do 7921 # Extract the first word of "$ac_prog", so it can be a program name with args. 7922 set dummy $ac_prog; ac_word=$2 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7924 $as_echo_n "checking for $ac_word... " >&6; } 7925 if ${ac_cv_path_MKDIR+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927 else 7928 case $MKDIR in 7929 [\\/]* | ?:[\\/]*) 7930 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7931 ;; 7932 *) 7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7934 for as_dir in $PATH 7935 do 7936 IFS=$as_save_IFS 7937 test -z "$as_dir" && as_dir=. 7938 for ac_exec_ext in '' $ac_executable_extensions; do 7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7940 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7942 break 2 7943 fi 7944 done 7945 done 7946 IFS=$as_save_IFS 7947 7948 ;; 7949 esac 7950 fi 7951 MKDIR=$ac_cv_path_MKDIR 7952 if test -n "$MKDIR"; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7954 $as_echo "$MKDIR" >&6; } 7955 else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957 $as_echo "no" >&6; } 7958 fi 7959 7960 7961 test -n "$MKDIR" && break 7962 done 7963 7964 else 7965 # If it succeeded, then it was overridden by the user. We will use it 7966 # for the tool. 7967 7968 # First remove it from the list of overridden variables, so we can test 7969 # for unknown variables in the end. 7970 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7971 7972 # Check if the provided tool contains a complete path. 7973 tool_specified="$MKDIR" 7974 tool_basename="${tool_specified##*/}" 7975 if test "x$tool_basename" = "x$tool_specified"; then 7976 # A command without a complete path is provided, search $PATH. 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7978 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7979 # Extract the first word of "$tool_basename", so it can be a program name with args. 7980 set dummy $tool_basename; ac_word=$2 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982 $as_echo_n "checking for $ac_word... " >&6; } 7983 if ${ac_cv_path_MKDIR+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985 else 7986 case $MKDIR in 7987 [\\/]* | ?:[\\/]*) 7988 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7989 ;; 7990 *) 7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7992 for as_dir in $PATH 7993 do 7994 IFS=$as_save_IFS 7995 test -z "$as_dir" && as_dir=. 7996 for ac_exec_ext in '' $ac_executable_extensions; do 7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7998 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8000 break 2 8001 fi 8002 done 8003 done 8004 IFS=$as_save_IFS 8005 8006 ;; 8007 esac 8008 fi 8009 MKDIR=$ac_cv_path_MKDIR 8010 if test -n "$MKDIR"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8012 $as_echo "$MKDIR" >&6; } 8013 else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015 $as_echo "no" >&6; } 8016 fi 8017 8018 8019 if test "x$MKDIR" = x; then 8020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8021 fi 8022 else 8023 # Otherwise we believe it is a complete path. Use it as it is. 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8025 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8027 $as_echo_n "checking for MKDIR... " >&6; } 8028 if test ! -x "$tool_specified"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8030 $as_echo "not found" >&6; } 8031 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8032 fi 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8034 $as_echo "$tool_specified" >&6; } 8035 fi 8036 fi 8037 fi 8038 8039 8040 8041 if test "x$MKDIR" = x; then 8042 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8043 fi 8044 8045 8046 8047 8048 8049 # Publish this variable in the help. 8050 8051 8052 if test "x$MKTEMP" = x; then 8053 # The variable is not set by user, try to locate tool using the code snippet 8054 for ac_prog in mktemp 8055 do 8056 # Extract the first word of "$ac_prog", so it can be a program name with args. 8057 set dummy $ac_prog; ac_word=$2 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8059 $as_echo_n "checking for $ac_word... " >&6; } 8060 if ${ac_cv_path_MKTEMP+:} false; then : 8061 $as_echo_n "(cached) " >&6 8062 else 8063 case $MKTEMP in 8064 [\\/]* | ?:[\\/]*) 8065 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8066 ;; 8067 *) 8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8069 for as_dir in $PATH 8070 do 8071 IFS=$as_save_IFS 8072 test -z "$as_dir" && as_dir=. 8073 for ac_exec_ext in '' $ac_executable_extensions; do 8074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8075 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8077 break 2 8078 fi 8079 done 8080 done 8081 IFS=$as_save_IFS 8082 8083 ;; 8084 esac 8085 fi 8086 MKTEMP=$ac_cv_path_MKTEMP 8087 if test -n "$MKTEMP"; then 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8089 $as_echo "$MKTEMP" >&6; } 8090 else 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092 $as_echo "no" >&6; } 8093 fi 8094 8095 8096 test -n "$MKTEMP" && break 8097 done 8098 8099 else 8100 # The variable is set, but is it from the command line or the environment? 8101 8102 # Try to remove the string !MKTEMP! from our list. 8103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8105 # If it failed, the variable was not from the command line. Ignore it, 8106 # but warn the user (except for BASH, which is always set by the calling BASH). 8107 if test "xMKTEMP" != xBASH; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8109 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8110 fi 8111 # Try to locate tool using the code snippet 8112 for ac_prog in mktemp 8113 do 8114 # Extract the first word of "$ac_prog", so it can be a program name with args. 8115 set dummy $ac_prog; ac_word=$2 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8117 $as_echo_n "checking for $ac_word... " >&6; } 8118 if ${ac_cv_path_MKTEMP+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120 else 8121 case $MKTEMP in 8122 [\\/]* | ?:[\\/]*) 8123 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8124 ;; 8125 *) 8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127 for as_dir in $PATH 8128 do 8129 IFS=$as_save_IFS 8130 test -z "$as_dir" && as_dir=. 8131 for ac_exec_ext in '' $ac_executable_extensions; do 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8133 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8135 break 2 8136 fi 8137 done 8138 done 8139 IFS=$as_save_IFS 8140 8141 ;; 8142 esac 8143 fi 8144 MKTEMP=$ac_cv_path_MKTEMP 8145 if test -n "$MKTEMP"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8147 $as_echo "$MKTEMP" >&6; } 8148 else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150 $as_echo "no" >&6; } 8151 fi 8152 8153 8154 test -n "$MKTEMP" && break 8155 done 8156 8157 else 8158 # If it succeeded, then it was overridden by the user. We will use it 8159 # for the tool. 8160 8161 # First remove it from the list of overridden variables, so we can test 8162 # for unknown variables in the end. 8163 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8164 8165 # Check if the provided tool contains a complete path. 8166 tool_specified="$MKTEMP" 8167 tool_basename="${tool_specified##*/}" 8168 if test "x$tool_basename" = "x$tool_specified"; then 8169 # A command without a complete path is provided, search $PATH. 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8171 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8172 # Extract the first word of "$tool_basename", so it can be a program name with args. 8173 set dummy $tool_basename; ac_word=$2 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8175 $as_echo_n "checking for $ac_word... " >&6; } 8176 if ${ac_cv_path_MKTEMP+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178 else 8179 case $MKTEMP in 8180 [\\/]* | ?:[\\/]*) 8181 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8182 ;; 8183 *) 8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185 for as_dir in $PATH 8186 do 8187 IFS=$as_save_IFS 8188 test -z "$as_dir" && as_dir=. 8189 for ac_exec_ext in '' $ac_executable_extensions; do 8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8191 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8193 break 2 8194 fi 8195 done 8196 done 8197 IFS=$as_save_IFS 8198 8199 ;; 8200 esac 8201 fi 8202 MKTEMP=$ac_cv_path_MKTEMP 8203 if test -n "$MKTEMP"; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8205 $as_echo "$MKTEMP" >&6; } 8206 else 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8208 $as_echo "no" >&6; } 8209 fi 8210 8211 8212 if test "x$MKTEMP" = x; then 8213 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8214 fi 8215 else 8216 # Otherwise we believe it is a complete path. Use it as it is. 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8218 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8220 $as_echo_n "checking for MKTEMP... " >&6; } 8221 if test ! -x "$tool_specified"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8223 $as_echo "not found" >&6; } 8224 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8225 fi 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8227 $as_echo "$tool_specified" >&6; } 8228 fi 8229 fi 8230 fi 8231 8232 8233 8234 if test "x$MKTEMP" = x; then 8235 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8236 fi 8237 8238 8239 8240 8241 8242 # Publish this variable in the help. 8243 8244 8245 if test "x$MV" = x; then 8246 # The variable is not set by user, try to locate tool using the code snippet 8247 for ac_prog in mv 8248 do 8249 # Extract the first word of "$ac_prog", so it can be a program name with args. 8250 set dummy $ac_prog; ac_word=$2 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8252 $as_echo_n "checking for $ac_word... " >&6; } 8253 if ${ac_cv_path_MV+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255 else 8256 case $MV in 8257 [\\/]* | ?:[\\/]*) 8258 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8259 ;; 8260 *) 8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262 for as_dir in $PATH 8263 do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272 done 8273 done 8274 IFS=$as_save_IFS 8275 8276 ;; 8277 esac 8278 fi 8279 MV=$ac_cv_path_MV 8280 if test -n "$MV"; then 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8282 $as_echo "$MV" >&6; } 8283 else 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285 $as_echo "no" >&6; } 8286 fi 8287 8288 8289 test -n "$MV" && break 8290 done 8291 8292 else 8293 # The variable is set, but is it from the command line or the environment? 8294 8295 # Try to remove the string !MV! from our list. 8296 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8297 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8298 # If it failed, the variable was not from the command line. Ignore it, 8299 # but warn the user (except for BASH, which is always set by the calling BASH). 8300 if test "xMV" != xBASH; then 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8302 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8303 fi 8304 # Try to locate tool using the code snippet 8305 for ac_prog in mv 8306 do 8307 # Extract the first word of "$ac_prog", so it can be a program name with args. 8308 set dummy $ac_prog; ac_word=$2 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310 $as_echo_n "checking for $ac_word... " >&6; } 8311 if ${ac_cv_path_MV+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313 else 8314 case $MV in 8315 [\\/]* | ?:[\\/]*) 8316 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8317 ;; 8318 *) 8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8320 for as_dir in $PATH 8321 do 8322 IFS=$as_save_IFS 8323 test -z "$as_dir" && as_dir=. 8324 for ac_exec_ext in '' $ac_executable_extensions; do 8325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8326 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8328 break 2 8329 fi 8330 done 8331 done 8332 IFS=$as_save_IFS 8333 8334 ;; 8335 esac 8336 fi 8337 MV=$ac_cv_path_MV 8338 if test -n "$MV"; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8340 $as_echo "$MV" >&6; } 8341 else 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8343 $as_echo "no" >&6; } 8344 fi 8345 8346 8347 test -n "$MV" && break 8348 done 8349 8350 else 8351 # If it succeeded, then it was overridden by the user. We will use it 8352 # for the tool. 8353 8354 # First remove it from the list of overridden variables, so we can test 8355 # for unknown variables in the end. 8356 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8357 8358 # Check if the provided tool contains a complete path. 8359 tool_specified="$MV" 8360 tool_basename="${tool_specified##*/}" 8361 if test "x$tool_basename" = "x$tool_specified"; then 8362 # A command without a complete path is provided, search $PATH. 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8364 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8365 # Extract the first word of "$tool_basename", so it can be a program name with args. 8366 set dummy $tool_basename; ac_word=$2 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8368 $as_echo_n "checking for $ac_word... " >&6; } 8369 if ${ac_cv_path_MV+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371 else 8372 case $MV in 8373 [\\/]* | ?:[\\/]*) 8374 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8375 ;; 8376 *) 8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378 for as_dir in $PATH 8379 do 8380 IFS=$as_save_IFS 8381 test -z "$as_dir" && as_dir=. 8382 for ac_exec_ext in '' $ac_executable_extensions; do 8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8384 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8386 break 2 8387 fi 8388 done 8389 done 8390 IFS=$as_save_IFS 8391 8392 ;; 8393 esac 8394 fi 8395 MV=$ac_cv_path_MV 8396 if test -n "$MV"; then 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8398 $as_echo "$MV" >&6; } 8399 else 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8401 $as_echo "no" >&6; } 8402 fi 8403 8404 8405 if test "x$MV" = x; then 8406 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8407 fi 8408 else 8409 # Otherwise we believe it is a complete path. Use it as it is. 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8411 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8413 $as_echo_n "checking for MV... " >&6; } 8414 if test ! -x "$tool_specified"; then 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8416 $as_echo "not found" >&6; } 8417 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8418 fi 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8420 $as_echo "$tool_specified" >&6; } 8421 fi 8422 fi 8423 fi 8424 8425 8426 8427 if test "x$MV" = x; then 8428 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8429 fi 8430 8431 8432 8433 8434 8435 # Publish this variable in the help. 8436 8437 8438 if test "x$NAWK" = x; then 8439 # The variable is not set by user, try to locate tool using the code snippet 8440 for ac_prog in nawk gawk awk 8441 do 8442 # Extract the first word of "$ac_prog", so it can be a program name with args. 8443 set dummy $ac_prog; ac_word=$2 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8445 $as_echo_n "checking for $ac_word... " >&6; } 8446 if ${ac_cv_path_NAWK+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448 else 8449 case $NAWK in 8450 [\\/]* | ?:[\\/]*) 8451 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8452 ;; 8453 *) 8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455 for as_dir in $PATH 8456 do 8457 IFS=$as_save_IFS 8458 test -z "$as_dir" && as_dir=. 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8461 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8463 break 2 8464 fi 8465 done 8466 done 8467 IFS=$as_save_IFS 8468 8469 ;; 8470 esac 8471 fi 8472 NAWK=$ac_cv_path_NAWK 8473 if test -n "$NAWK"; then 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8475 $as_echo "$NAWK" >&6; } 8476 else 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8478 $as_echo "no" >&6; } 8479 fi 8480 8481 8482 test -n "$NAWK" && break 8483 done 8484 8485 else 8486 # The variable is set, but is it from the command line or the environment? 8487 8488 # Try to remove the string !NAWK! from our list. 8489 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8490 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8491 # If it failed, the variable was not from the command line. Ignore it, 8492 # but warn the user (except for BASH, which is always set by the calling BASH). 8493 if test "xNAWK" != xBASH; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8495 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8496 fi 8497 # Try to locate tool using the code snippet 8498 for ac_prog in nawk gawk awk 8499 do 8500 # Extract the first word of "$ac_prog", so it can be a program name with args. 8501 set dummy $ac_prog; ac_word=$2 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8503 $as_echo_n "checking for $ac_word... " >&6; } 8504 if ${ac_cv_path_NAWK+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506 else 8507 case $NAWK in 8508 [\\/]* | ?:[\\/]*) 8509 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8510 ;; 8511 *) 8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8513 for as_dir in $PATH 8514 do 8515 IFS=$as_save_IFS 8516 test -z "$as_dir" && as_dir=. 8517 for ac_exec_ext in '' $ac_executable_extensions; do 8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8519 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8521 break 2 8522 fi 8523 done 8524 done 8525 IFS=$as_save_IFS 8526 8527 ;; 8528 esac 8529 fi 8530 NAWK=$ac_cv_path_NAWK 8531 if test -n "$NAWK"; then 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8533 $as_echo "$NAWK" >&6; } 8534 else 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8536 $as_echo "no" >&6; } 8537 fi 8538 8539 8540 test -n "$NAWK" && break 8541 done 8542 8543 else 8544 # If it succeeded, then it was overridden by the user. We will use it 8545 # for the tool. 8546 8547 # First remove it from the list of overridden variables, so we can test 8548 # for unknown variables in the end. 8549 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8550 8551 # Check if the provided tool contains a complete path. 8552 tool_specified="$NAWK" 8553 tool_basename="${tool_specified##*/}" 8554 if test "x$tool_basename" = "x$tool_specified"; then 8555 # A command without a complete path is provided, search $PATH. 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8557 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8558 # Extract the first word of "$tool_basename", so it can be a program name with args. 8559 set dummy $tool_basename; ac_word=$2 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8561 $as_echo_n "checking for $ac_word... " >&6; } 8562 if ${ac_cv_path_NAWK+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564 else 8565 case $NAWK in 8566 [\\/]* | ?:[\\/]*) 8567 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8568 ;; 8569 *) 8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571 for as_dir in $PATH 8572 do 8573 IFS=$as_save_IFS 8574 test -z "$as_dir" && as_dir=. 8575 for ac_exec_ext in '' $ac_executable_extensions; do 8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8577 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8579 break 2 8580 fi 8581 done 8582 done 8583 IFS=$as_save_IFS 8584 8585 ;; 8586 esac 8587 fi 8588 NAWK=$ac_cv_path_NAWK 8589 if test -n "$NAWK"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8591 $as_echo "$NAWK" >&6; } 8592 else 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8594 $as_echo "no" >&6; } 8595 fi 8596 8597 8598 if test "x$NAWK" = x; then 8599 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8600 fi 8601 else 8602 # Otherwise we believe it is a complete path. Use it as it is. 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8604 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8606 $as_echo_n "checking for NAWK... " >&6; } 8607 if test ! -x "$tool_specified"; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8609 $as_echo "not found" >&6; } 8610 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8611 fi 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8613 $as_echo "$tool_specified" >&6; } 8614 fi 8615 fi 8616 fi 8617 8618 8619 8620 if test "x$NAWK" = x; then 8621 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8622 fi 8623 8624 8625 8626 8627 8628 # Publish this variable in the help. 8629 8630 8631 if test "x$PRINTF" = x; then 8632 # The variable is not set by user, try to locate tool using the code snippet 8633 for ac_prog in printf 8634 do 8635 # Extract the first word of "$ac_prog", so it can be a program name with args. 8636 set dummy $ac_prog; ac_word=$2 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8638 $as_echo_n "checking for $ac_word... " >&6; } 8639 if ${ac_cv_path_PRINTF+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641 else 8642 case $PRINTF in 8643 [\\/]* | ?:[\\/]*) 8644 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8645 ;; 8646 *) 8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8648 for as_dir in $PATH 8649 do 8650 IFS=$as_save_IFS 8651 test -z "$as_dir" && as_dir=. 8652 for ac_exec_ext in '' $ac_executable_extensions; do 8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8654 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8656 break 2 8657 fi 8658 done 8659 done 8660 IFS=$as_save_IFS 8661 8662 ;; 8663 esac 8664 fi 8665 PRINTF=$ac_cv_path_PRINTF 8666 if test -n "$PRINTF"; then 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8668 $as_echo "$PRINTF" >&6; } 8669 else 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8671 $as_echo "no" >&6; } 8672 fi 8673 8674 8675 test -n "$PRINTF" && break 8676 done 8677 8678 else 8679 # The variable is set, but is it from the command line or the environment? 8680 8681 # Try to remove the string !PRINTF! from our list. 8682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8684 # If it failed, the variable was not from the command line. Ignore it, 8685 # but warn the user (except for BASH, which is always set by the calling BASH). 8686 if test "xPRINTF" != xBASH; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8688 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8689 fi 8690 # Try to locate tool using the code snippet 8691 for ac_prog in printf 8692 do 8693 # Extract the first word of "$ac_prog", so it can be a program name with args. 8694 set dummy $ac_prog; ac_word=$2 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8696 $as_echo_n "checking for $ac_word... " >&6; } 8697 if ${ac_cv_path_PRINTF+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699 else 8700 case $PRINTF in 8701 [\\/]* | ?:[\\/]*) 8702 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8703 ;; 8704 *) 8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8706 for as_dir in $PATH 8707 do 8708 IFS=$as_save_IFS 8709 test -z "$as_dir" && as_dir=. 8710 for ac_exec_ext in '' $ac_executable_extensions; do 8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8712 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8714 break 2 8715 fi 8716 done 8717 done 8718 IFS=$as_save_IFS 8719 8720 ;; 8721 esac 8722 fi 8723 PRINTF=$ac_cv_path_PRINTF 8724 if test -n "$PRINTF"; then 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8726 $as_echo "$PRINTF" >&6; } 8727 else 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8729 $as_echo "no" >&6; } 8730 fi 8731 8732 8733 test -n "$PRINTF" && break 8734 done 8735 8736 else 8737 # If it succeeded, then it was overridden by the user. We will use it 8738 # for the tool. 8739 8740 # First remove it from the list of overridden variables, so we can test 8741 # for unknown variables in the end. 8742 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8743 8744 # Check if the provided tool contains a complete path. 8745 tool_specified="$PRINTF" 8746 tool_basename="${tool_specified##*/}" 8747 if test "x$tool_basename" = "x$tool_specified"; then 8748 # A command without a complete path is provided, search $PATH. 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8750 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8751 # Extract the first word of "$tool_basename", so it can be a program name with args. 8752 set dummy $tool_basename; ac_word=$2 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8754 $as_echo_n "checking for $ac_word... " >&6; } 8755 if ${ac_cv_path_PRINTF+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757 else 8758 case $PRINTF in 8759 [\\/]* | ?:[\\/]*) 8760 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8761 ;; 8762 *) 8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8764 for as_dir in $PATH 8765 do 8766 IFS=$as_save_IFS 8767 test -z "$as_dir" && as_dir=. 8768 for ac_exec_ext in '' $ac_executable_extensions; do 8769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8770 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8772 break 2 8773 fi 8774 done 8775 done 8776 IFS=$as_save_IFS 8777 8778 ;; 8779 esac 8780 fi 8781 PRINTF=$ac_cv_path_PRINTF 8782 if test -n "$PRINTF"; then 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8784 $as_echo "$PRINTF" >&6; } 8785 else 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8787 $as_echo "no" >&6; } 8788 fi 8789 8790 8791 if test "x$PRINTF" = x; then 8792 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8793 fi 8794 else 8795 # Otherwise we believe it is a complete path. Use it as it is. 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8797 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8799 $as_echo_n "checking for PRINTF... " >&6; } 8800 if test ! -x "$tool_specified"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8802 $as_echo "not found" >&6; } 8803 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8804 fi 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8806 $as_echo "$tool_specified" >&6; } 8807 fi 8808 fi 8809 fi 8810 8811 8812 8813 if test "x$PRINTF" = x; then 8814 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8815 fi 8816 8817 8818 8819 8820 8821 # Publish this variable in the help. 8822 8823 8824 if test "x$RM" = x; then 8825 # The variable is not set by user, try to locate tool using the code snippet 8826 for ac_prog in rm 8827 do 8828 # Extract the first word of "$ac_prog", so it can be a program name with args. 8829 set dummy $ac_prog; ac_word=$2 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8831 $as_echo_n "checking for $ac_word... " >&6; } 8832 if ${ac_cv_path_RM+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834 else 8835 case $RM in 8836 [\\/]* | ?:[\\/]*) 8837 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8838 ;; 8839 *) 8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8841 for as_dir in $PATH 8842 do 8843 IFS=$as_save_IFS 8844 test -z "$as_dir" && as_dir=. 8845 for ac_exec_ext in '' $ac_executable_extensions; do 8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8847 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8849 break 2 8850 fi 8851 done 8852 done 8853 IFS=$as_save_IFS 8854 8855 ;; 8856 esac 8857 fi 8858 RM=$ac_cv_path_RM 8859 if test -n "$RM"; then 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8861 $as_echo "$RM" >&6; } 8862 else 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8864 $as_echo "no" >&6; } 8865 fi 8866 8867 8868 test -n "$RM" && break 8869 done 8870 8871 else 8872 # The variable is set, but is it from the command line or the environment? 8873 8874 # Try to remove the string !RM! from our list. 8875 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8876 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8877 # If it failed, the variable was not from the command line. Ignore it, 8878 # but warn the user (except for BASH, which is always set by the calling BASH). 8879 if test "xRM" != xBASH; then 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8881 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8882 fi 8883 # Try to locate tool using the code snippet 8884 for ac_prog in rm 8885 do 8886 # Extract the first word of "$ac_prog", so it can be a program name with args. 8887 set dummy $ac_prog; ac_word=$2 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8889 $as_echo_n "checking for $ac_word... " >&6; } 8890 if ${ac_cv_path_RM+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892 else 8893 case $RM in 8894 [\\/]* | ?:[\\/]*) 8895 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8896 ;; 8897 *) 8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8899 for as_dir in $PATH 8900 do 8901 IFS=$as_save_IFS 8902 test -z "$as_dir" && as_dir=. 8903 for ac_exec_ext in '' $ac_executable_extensions; do 8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8905 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8907 break 2 8908 fi 8909 done 8910 done 8911 IFS=$as_save_IFS 8912 8913 ;; 8914 esac 8915 fi 8916 RM=$ac_cv_path_RM 8917 if test -n "$RM"; then 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8919 $as_echo "$RM" >&6; } 8920 else 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8922 $as_echo "no" >&6; } 8923 fi 8924 8925 8926 test -n "$RM" && break 8927 done 8928 8929 else 8930 # If it succeeded, then it was overridden by the user. We will use it 8931 # for the tool. 8932 8933 # First remove it from the list of overridden variables, so we can test 8934 # for unknown variables in the end. 8935 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8936 8937 # Check if the provided tool contains a complete path. 8938 tool_specified="$RM" 8939 tool_basename="${tool_specified##*/}" 8940 if test "x$tool_basename" = "x$tool_specified"; then 8941 # A command without a complete path is provided, search $PATH. 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8943 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8944 # Extract the first word of "$tool_basename", so it can be a program name with args. 8945 set dummy $tool_basename; ac_word=$2 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8947 $as_echo_n "checking for $ac_word... " >&6; } 8948 if ${ac_cv_path_RM+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950 else 8951 case $RM in 8952 [\\/]* | ?:[\\/]*) 8953 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8954 ;; 8955 *) 8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8957 for as_dir in $PATH 8958 do 8959 IFS=$as_save_IFS 8960 test -z "$as_dir" && as_dir=. 8961 for ac_exec_ext in '' $ac_executable_extensions; do 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8963 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8965 break 2 8966 fi 8967 done 8968 done 8969 IFS=$as_save_IFS 8970 8971 ;; 8972 esac 8973 fi 8974 RM=$ac_cv_path_RM 8975 if test -n "$RM"; then 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8977 $as_echo "$RM" >&6; } 8978 else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980 $as_echo "no" >&6; } 8981 fi 8982 8983 8984 if test "x$RM" = x; then 8985 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8986 fi 8987 else 8988 # Otherwise we believe it is a complete path. Use it as it is. 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8990 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8992 $as_echo_n "checking for RM... " >&6; } 8993 if test ! -x "$tool_specified"; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8995 $as_echo "not found" >&6; } 8996 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 8997 fi 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8999 $as_echo "$tool_specified" >&6; } 9000 fi 9001 fi 9002 fi 9003 9004 9005 9006 if test "x$RM" = x; then 9007 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9008 fi 9009 9010 9011 9012 9013 9014 # Publish this variable in the help. 9015 9016 9017 if test "x$SH" = x; then 9018 # The variable is not set by user, try to locate tool using the code snippet 9019 for ac_prog in sh 9020 do 9021 # Extract the first word of "$ac_prog", so it can be a program name with args. 9022 set dummy $ac_prog; ac_word=$2 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9024 $as_echo_n "checking for $ac_word... " >&6; } 9025 if ${ac_cv_path_SH+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027 else 9028 case $SH in 9029 [\\/]* | ?:[\\/]*) 9030 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9031 ;; 9032 *) 9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9034 for as_dir in $PATH 9035 do 9036 IFS=$as_save_IFS 9037 test -z "$as_dir" && as_dir=. 9038 for ac_exec_ext in '' $ac_executable_extensions; do 9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9040 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9042 break 2 9043 fi 9044 done 9045 done 9046 IFS=$as_save_IFS 9047 9048 ;; 9049 esac 9050 fi 9051 SH=$ac_cv_path_SH 9052 if test -n "$SH"; then 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9054 $as_echo "$SH" >&6; } 9055 else 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9057 $as_echo "no" >&6; } 9058 fi 9059 9060 9061 test -n "$SH" && break 9062 done 9063 9064 else 9065 # The variable is set, but is it from the command line or the environment? 9066 9067 # Try to remove the string !SH! from our list. 9068 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9069 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9070 # If it failed, the variable was not from the command line. Ignore it, 9071 # but warn the user (except for BASH, which is always set by the calling BASH). 9072 if test "xSH" != xBASH; then 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9074 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9075 fi 9076 # Try to locate tool using the code snippet 9077 for ac_prog in sh 9078 do 9079 # Extract the first word of "$ac_prog", so it can be a program name with args. 9080 set dummy $ac_prog; ac_word=$2 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9082 $as_echo_n "checking for $ac_word... " >&6; } 9083 if ${ac_cv_path_SH+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085 else 9086 case $SH in 9087 [\\/]* | ?:[\\/]*) 9088 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9089 ;; 9090 *) 9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9092 for as_dir in $PATH 9093 do 9094 IFS=$as_save_IFS 9095 test -z "$as_dir" && as_dir=. 9096 for ac_exec_ext in '' $ac_executable_extensions; do 9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9098 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9100 break 2 9101 fi 9102 done 9103 done 9104 IFS=$as_save_IFS 9105 9106 ;; 9107 esac 9108 fi 9109 SH=$ac_cv_path_SH 9110 if test -n "$SH"; then 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9112 $as_echo "$SH" >&6; } 9113 else 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9115 $as_echo "no" >&6; } 9116 fi 9117 9118 9119 test -n "$SH" && break 9120 done 9121 9122 else 9123 # If it succeeded, then it was overridden by the user. We will use it 9124 # for the tool. 9125 9126 # First remove it from the list of overridden variables, so we can test 9127 # for unknown variables in the end. 9128 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9129 9130 # Check if the provided tool contains a complete path. 9131 tool_specified="$SH" 9132 tool_basename="${tool_specified##*/}" 9133 if test "x$tool_basename" = "x$tool_specified"; then 9134 # A command without a complete path is provided, search $PATH. 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9136 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9137 # Extract the first word of "$tool_basename", so it can be a program name with args. 9138 set dummy $tool_basename; ac_word=$2 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9140 $as_echo_n "checking for $ac_word... " >&6; } 9141 if ${ac_cv_path_SH+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143 else 9144 case $SH in 9145 [\\/]* | ?:[\\/]*) 9146 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9147 ;; 9148 *) 9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9150 for as_dir in $PATH 9151 do 9152 IFS=$as_save_IFS 9153 test -z "$as_dir" && as_dir=. 9154 for ac_exec_ext in '' $ac_executable_extensions; do 9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9156 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9158 break 2 9159 fi 9160 done 9161 done 9162 IFS=$as_save_IFS 9163 9164 ;; 9165 esac 9166 fi 9167 SH=$ac_cv_path_SH 9168 if test -n "$SH"; then 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9170 $as_echo "$SH" >&6; } 9171 else 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173 $as_echo "no" >&6; } 9174 fi 9175 9176 9177 if test "x$SH" = x; then 9178 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9179 fi 9180 else 9181 # Otherwise we believe it is a complete path. Use it as it is. 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9183 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9185 $as_echo_n "checking for SH... " >&6; } 9186 if test ! -x "$tool_specified"; then 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9188 $as_echo "not found" >&6; } 9189 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9190 fi 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9192 $as_echo "$tool_specified" >&6; } 9193 fi 9194 fi 9195 fi 9196 9197 9198 9199 if test "x$SH" = x; then 9200 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9201 fi 9202 9203 9204 9205 9206 9207 # Publish this variable in the help. 9208 9209 9210 if test "x$SORT" = x; then 9211 # The variable is not set by user, try to locate tool using the code snippet 9212 for ac_prog in sort 9213 do 9214 # Extract the first word of "$ac_prog", so it can be a program name with args. 9215 set dummy $ac_prog; ac_word=$2 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9217 $as_echo_n "checking for $ac_word... " >&6; } 9218 if ${ac_cv_path_SORT+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220 else 9221 case $SORT in 9222 [\\/]* | ?:[\\/]*) 9223 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9224 ;; 9225 *) 9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9227 for as_dir in $PATH 9228 do 9229 IFS=$as_save_IFS 9230 test -z "$as_dir" && as_dir=. 9231 for ac_exec_ext in '' $ac_executable_extensions; do 9232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9233 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9235 break 2 9236 fi 9237 done 9238 done 9239 IFS=$as_save_IFS 9240 9241 ;; 9242 esac 9243 fi 9244 SORT=$ac_cv_path_SORT 9245 if test -n "$SORT"; then 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9247 $as_echo "$SORT" >&6; } 9248 else 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9250 $as_echo "no" >&6; } 9251 fi 9252 9253 9254 test -n "$SORT" && break 9255 done 9256 9257 else 9258 # The variable is set, but is it from the command line or the environment? 9259 9260 # Try to remove the string !SORT! from our list. 9261 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9262 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9263 # If it failed, the variable was not from the command line. Ignore it, 9264 # but warn the user (except for BASH, which is always set by the calling BASH). 9265 if test "xSORT" != xBASH; then 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9267 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9268 fi 9269 # Try to locate tool using the code snippet 9270 for ac_prog in sort 9271 do 9272 # Extract the first word of "$ac_prog", so it can be a program name with args. 9273 set dummy $ac_prog; ac_word=$2 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9275 $as_echo_n "checking for $ac_word... " >&6; } 9276 if ${ac_cv_path_SORT+:} false; then : 9277 $as_echo_n "(cached) " >&6 9278 else 9279 case $SORT in 9280 [\\/]* | ?:[\\/]*) 9281 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9282 ;; 9283 *) 9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9285 for as_dir in $PATH 9286 do 9287 IFS=$as_save_IFS 9288 test -z "$as_dir" && as_dir=. 9289 for ac_exec_ext in '' $ac_executable_extensions; do 9290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9291 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9293 break 2 9294 fi 9295 done 9296 done 9297 IFS=$as_save_IFS 9298 9299 ;; 9300 esac 9301 fi 9302 SORT=$ac_cv_path_SORT 9303 if test -n "$SORT"; then 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9305 $as_echo "$SORT" >&6; } 9306 else 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9308 $as_echo "no" >&6; } 9309 fi 9310 9311 9312 test -n "$SORT" && break 9313 done 9314 9315 else 9316 # If it succeeded, then it was overridden by the user. We will use it 9317 # for the tool. 9318 9319 # First remove it from the list of overridden variables, so we can test 9320 # for unknown variables in the end. 9321 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9322 9323 # Check if the provided tool contains a complete path. 9324 tool_specified="$SORT" 9325 tool_basename="${tool_specified##*/}" 9326 if test "x$tool_basename" = "x$tool_specified"; then 9327 # A command without a complete path is provided, search $PATH. 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9329 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9330 # Extract the first word of "$tool_basename", so it can be a program name with args. 9331 set dummy $tool_basename; ac_word=$2 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9333 $as_echo_n "checking for $ac_word... " >&6; } 9334 if ${ac_cv_path_SORT+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336 else 9337 case $SORT in 9338 [\\/]* | ?:[\\/]*) 9339 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9340 ;; 9341 *) 9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9343 for as_dir in $PATH 9344 do 9345 IFS=$as_save_IFS 9346 test -z "$as_dir" && as_dir=. 9347 for ac_exec_ext in '' $ac_executable_extensions; do 9348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9349 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9351 break 2 9352 fi 9353 done 9354 done 9355 IFS=$as_save_IFS 9356 9357 ;; 9358 esac 9359 fi 9360 SORT=$ac_cv_path_SORT 9361 if test -n "$SORT"; then 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9363 $as_echo "$SORT" >&6; } 9364 else 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9366 $as_echo "no" >&6; } 9367 fi 9368 9369 9370 if test "x$SORT" = x; then 9371 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9372 fi 9373 else 9374 # Otherwise we believe it is a complete path. Use it as it is. 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9376 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9378 $as_echo_n "checking for SORT... " >&6; } 9379 if test ! -x "$tool_specified"; then 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9381 $as_echo "not found" >&6; } 9382 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9383 fi 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9385 $as_echo "$tool_specified" >&6; } 9386 fi 9387 fi 9388 fi 9389 9390 9391 9392 if test "x$SORT" = x; then 9393 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9394 fi 9395 9396 9397 9398 9399 9400 # Publish this variable in the help. 9401 9402 9403 if test "x$TAIL" = x; then 9404 # The variable is not set by user, try to locate tool using the code snippet 9405 for ac_prog in tail 9406 do 9407 # Extract the first word of "$ac_prog", so it can be a program name with args. 9408 set dummy $ac_prog; ac_word=$2 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9410 $as_echo_n "checking for $ac_word... " >&6; } 9411 if ${ac_cv_path_TAIL+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413 else 9414 case $TAIL in 9415 [\\/]* | ?:[\\/]*) 9416 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9417 ;; 9418 *) 9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9420 for as_dir in $PATH 9421 do 9422 IFS=$as_save_IFS 9423 test -z "$as_dir" && as_dir=. 9424 for ac_exec_ext in '' $ac_executable_extensions; do 9425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9426 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9428 break 2 9429 fi 9430 done 9431 done 9432 IFS=$as_save_IFS 9433 9434 ;; 9435 esac 9436 fi 9437 TAIL=$ac_cv_path_TAIL 9438 if test -n "$TAIL"; then 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9440 $as_echo "$TAIL" >&6; } 9441 else 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9443 $as_echo "no" >&6; } 9444 fi 9445 9446 9447 test -n "$TAIL" && break 9448 done 9449 9450 else 9451 # The variable is set, but is it from the command line or the environment? 9452 9453 # Try to remove the string !TAIL! from our list. 9454 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9455 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9456 # If it failed, the variable was not from the command line. Ignore it, 9457 # but warn the user (except for BASH, which is always set by the calling BASH). 9458 if test "xTAIL" != xBASH; then 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9460 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9461 fi 9462 # Try to locate tool using the code snippet 9463 for ac_prog in tail 9464 do 9465 # Extract the first word of "$ac_prog", so it can be a program name with args. 9466 set dummy $ac_prog; ac_word=$2 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9468 $as_echo_n "checking for $ac_word... " >&6; } 9469 if ${ac_cv_path_TAIL+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471 else 9472 case $TAIL in 9473 [\\/]* | ?:[\\/]*) 9474 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9475 ;; 9476 *) 9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9478 for as_dir in $PATH 9479 do 9480 IFS=$as_save_IFS 9481 test -z "$as_dir" && as_dir=. 9482 for ac_exec_ext in '' $ac_executable_extensions; do 9483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9484 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9486 break 2 9487 fi 9488 done 9489 done 9490 IFS=$as_save_IFS 9491 9492 ;; 9493 esac 9494 fi 9495 TAIL=$ac_cv_path_TAIL 9496 if test -n "$TAIL"; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9498 $as_echo "$TAIL" >&6; } 9499 else 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9501 $as_echo "no" >&6; } 9502 fi 9503 9504 9505 test -n "$TAIL" && break 9506 done 9507 9508 else 9509 # If it succeeded, then it was overridden by the user. We will use it 9510 # for the tool. 9511 9512 # First remove it from the list of overridden variables, so we can test 9513 # for unknown variables in the end. 9514 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9515 9516 # Check if the provided tool contains a complete path. 9517 tool_specified="$TAIL" 9518 tool_basename="${tool_specified##*/}" 9519 if test "x$tool_basename" = "x$tool_specified"; then 9520 # A command without a complete path is provided, search $PATH. 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9522 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9523 # Extract the first word of "$tool_basename", so it can be a program name with args. 9524 set dummy $tool_basename; ac_word=$2 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526 $as_echo_n "checking for $ac_word... " >&6; } 9527 if ${ac_cv_path_TAIL+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529 else 9530 case $TAIL in 9531 [\\/]* | ?:[\\/]*) 9532 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9533 ;; 9534 *) 9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9536 for as_dir in $PATH 9537 do 9538 IFS=$as_save_IFS 9539 test -z "$as_dir" && as_dir=. 9540 for ac_exec_ext in '' $ac_executable_extensions; do 9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9542 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9544 break 2 9545 fi 9546 done 9547 done 9548 IFS=$as_save_IFS 9549 9550 ;; 9551 esac 9552 fi 9553 TAIL=$ac_cv_path_TAIL 9554 if test -n "$TAIL"; then 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9556 $as_echo "$TAIL" >&6; } 9557 else 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9559 $as_echo "no" >&6; } 9560 fi 9561 9562 9563 if test "x$TAIL" = x; then 9564 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9565 fi 9566 else 9567 # Otherwise we believe it is a complete path. Use it as it is. 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9569 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9571 $as_echo_n "checking for TAIL... " >&6; } 9572 if test ! -x "$tool_specified"; then 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9574 $as_echo "not found" >&6; } 9575 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9576 fi 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9578 $as_echo "$tool_specified" >&6; } 9579 fi 9580 fi 9581 fi 9582 9583 9584 9585 if test "x$TAIL" = x; then 9586 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9587 fi 9588 9589 9590 9591 9592 9593 # Publish this variable in the help. 9594 9595 9596 if test "x$TAR" = x; then 9597 # The variable is not set by user, try to locate tool using the code snippet 9598 for ac_prog in tar 9599 do 9600 # Extract the first word of "$ac_prog", so it can be a program name with args. 9601 set dummy $ac_prog; ac_word=$2 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9603 $as_echo_n "checking for $ac_word... " >&6; } 9604 if ${ac_cv_path_TAR+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606 else 9607 case $TAR in 9608 [\\/]* | ?:[\\/]*) 9609 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9610 ;; 9611 *) 9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9613 for as_dir in $PATH 9614 do 9615 IFS=$as_save_IFS 9616 test -z "$as_dir" && as_dir=. 9617 for ac_exec_ext in '' $ac_executable_extensions; do 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9619 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9621 break 2 9622 fi 9623 done 9624 done 9625 IFS=$as_save_IFS 9626 9627 ;; 9628 esac 9629 fi 9630 TAR=$ac_cv_path_TAR 9631 if test -n "$TAR"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9633 $as_echo "$TAR" >&6; } 9634 else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636 $as_echo "no" >&6; } 9637 fi 9638 9639 9640 test -n "$TAR" && break 9641 done 9642 9643 else 9644 # The variable is set, but is it from the command line or the environment? 9645 9646 # Try to remove the string !TAR! from our list. 9647 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9648 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9649 # If it failed, the variable was not from the command line. Ignore it, 9650 # but warn the user (except for BASH, which is always set by the calling BASH). 9651 if test "xTAR" != xBASH; then 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9653 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9654 fi 9655 # Try to locate tool using the code snippet 9656 for ac_prog in tar 9657 do 9658 # Extract the first word of "$ac_prog", so it can be a program name with args. 9659 set dummy $ac_prog; ac_word=$2 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9661 $as_echo_n "checking for $ac_word... " >&6; } 9662 if ${ac_cv_path_TAR+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664 else 9665 case $TAR in 9666 [\\/]* | ?:[\\/]*) 9667 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9668 ;; 9669 *) 9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9671 for as_dir in $PATH 9672 do 9673 IFS=$as_save_IFS 9674 test -z "$as_dir" && as_dir=. 9675 for ac_exec_ext in '' $ac_executable_extensions; do 9676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9677 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9679 break 2 9680 fi 9681 done 9682 done 9683 IFS=$as_save_IFS 9684 9685 ;; 9686 esac 9687 fi 9688 TAR=$ac_cv_path_TAR 9689 if test -n "$TAR"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9691 $as_echo "$TAR" >&6; } 9692 else 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9694 $as_echo "no" >&6; } 9695 fi 9696 9697 9698 test -n "$TAR" && break 9699 done 9700 9701 else 9702 # If it succeeded, then it was overridden by the user. We will use it 9703 # for the tool. 9704 9705 # First remove it from the list of overridden variables, so we can test 9706 # for unknown variables in the end. 9707 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9708 9709 # Check if the provided tool contains a complete path. 9710 tool_specified="$TAR" 9711 tool_basename="${tool_specified##*/}" 9712 if test "x$tool_basename" = "x$tool_specified"; then 9713 # A command without a complete path is provided, search $PATH. 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9715 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9716 # Extract the first word of "$tool_basename", so it can be a program name with args. 9717 set dummy $tool_basename; ac_word=$2 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9719 $as_echo_n "checking for $ac_word... " >&6; } 9720 if ${ac_cv_path_TAR+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722 else 9723 case $TAR in 9724 [\\/]* | ?:[\\/]*) 9725 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9726 ;; 9727 *) 9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9729 for as_dir in $PATH 9730 do 9731 IFS=$as_save_IFS 9732 test -z "$as_dir" && as_dir=. 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9735 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9737 break 2 9738 fi 9739 done 9740 done 9741 IFS=$as_save_IFS 9742 9743 ;; 9744 esac 9745 fi 9746 TAR=$ac_cv_path_TAR 9747 if test -n "$TAR"; then 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9749 $as_echo "$TAR" >&6; } 9750 else 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9752 $as_echo "no" >&6; } 9753 fi 9754 9755 9756 if test "x$TAR" = x; then 9757 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9758 fi 9759 else 9760 # Otherwise we believe it is a complete path. Use it as it is. 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9762 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9764 $as_echo_n "checking for TAR... " >&6; } 9765 if test ! -x "$tool_specified"; then 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9767 $as_echo "not found" >&6; } 9768 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9769 fi 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9771 $as_echo "$tool_specified" >&6; } 9772 fi 9773 fi 9774 fi 9775 9776 9777 9778 if test "x$TAR" = x; then 9779 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9780 fi 9781 9782 9783 9784 9785 9786 # Publish this variable in the help. 9787 9788 9789 if test "x$TEE" = x; then 9790 # The variable is not set by user, try to locate tool using the code snippet 9791 for ac_prog in tee 9792 do 9793 # Extract the first word of "$ac_prog", so it can be a program name with args. 9794 set dummy $ac_prog; ac_word=$2 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9796 $as_echo_n "checking for $ac_word... " >&6; } 9797 if ${ac_cv_path_TEE+:} false; then : 9798 $as_echo_n "(cached) " >&6 9799 else 9800 case $TEE in 9801 [\\/]* | ?:[\\/]*) 9802 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9803 ;; 9804 *) 9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9806 for as_dir in $PATH 9807 do 9808 IFS=$as_save_IFS 9809 test -z "$as_dir" && as_dir=. 9810 for ac_exec_ext in '' $ac_executable_extensions; do 9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9812 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9814 break 2 9815 fi 9816 done 9817 done 9818 IFS=$as_save_IFS 9819 9820 ;; 9821 esac 9822 fi 9823 TEE=$ac_cv_path_TEE 9824 if test -n "$TEE"; then 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9826 $as_echo "$TEE" >&6; } 9827 else 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9829 $as_echo "no" >&6; } 9830 fi 9831 9832 9833 test -n "$TEE" && break 9834 done 9835 9836 else 9837 # The variable is set, but is it from the command line or the environment? 9838 9839 # Try to remove the string !TEE! from our list. 9840 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9841 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9842 # If it failed, the variable was not from the command line. Ignore it, 9843 # but warn the user (except for BASH, which is always set by the calling BASH). 9844 if test "xTEE" != xBASH; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9846 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9847 fi 9848 # Try to locate tool using the code snippet 9849 for ac_prog in tee 9850 do 9851 # Extract the first word of "$ac_prog", so it can be a program name with args. 9852 set dummy $ac_prog; ac_word=$2 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9854 $as_echo_n "checking for $ac_word... " >&6; } 9855 if ${ac_cv_path_TEE+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857 else 9858 case $TEE in 9859 [\\/]* | ?:[\\/]*) 9860 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9861 ;; 9862 *) 9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9864 for as_dir in $PATH 9865 do 9866 IFS=$as_save_IFS 9867 test -z "$as_dir" && as_dir=. 9868 for ac_exec_ext in '' $ac_executable_extensions; do 9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9870 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9872 break 2 9873 fi 9874 done 9875 done 9876 IFS=$as_save_IFS 9877 9878 ;; 9879 esac 9880 fi 9881 TEE=$ac_cv_path_TEE 9882 if test -n "$TEE"; then 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9884 $as_echo "$TEE" >&6; } 9885 else 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9887 $as_echo "no" >&6; } 9888 fi 9889 9890 9891 test -n "$TEE" && break 9892 done 9893 9894 else 9895 # If it succeeded, then it was overridden by the user. We will use it 9896 # for the tool. 9897 9898 # First remove it from the list of overridden variables, so we can test 9899 # for unknown variables in the end. 9900 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9901 9902 # Check if the provided tool contains a complete path. 9903 tool_specified="$TEE" 9904 tool_basename="${tool_specified##*/}" 9905 if test "x$tool_basename" = "x$tool_specified"; then 9906 # A command without a complete path is provided, search $PATH. 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9908 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9909 # Extract the first word of "$tool_basename", so it can be a program name with args. 9910 set dummy $tool_basename; ac_word=$2 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9912 $as_echo_n "checking for $ac_word... " >&6; } 9913 if ${ac_cv_path_TEE+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915 else 9916 case $TEE in 9917 [\\/]* | ?:[\\/]*) 9918 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9919 ;; 9920 *) 9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9922 for as_dir in $PATH 9923 do 9924 IFS=$as_save_IFS 9925 test -z "$as_dir" && as_dir=. 9926 for ac_exec_ext in '' $ac_executable_extensions; do 9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9928 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9930 break 2 9931 fi 9932 done 9933 done 9934 IFS=$as_save_IFS 9935 9936 ;; 9937 esac 9938 fi 9939 TEE=$ac_cv_path_TEE 9940 if test -n "$TEE"; then 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9942 $as_echo "$TEE" >&6; } 9943 else 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9945 $as_echo "no" >&6; } 9946 fi 9947 9948 9949 if test "x$TEE" = x; then 9950 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9951 fi 9952 else 9953 # Otherwise we believe it is a complete path. Use it as it is. 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9955 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9957 $as_echo_n "checking for TEE... " >&6; } 9958 if test ! -x "$tool_specified"; then 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9960 $as_echo "not found" >&6; } 9961 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9962 fi 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9964 $as_echo "$tool_specified" >&6; } 9965 fi 9966 fi 9967 fi 9968 9969 9970 9971 if test "x$TEE" = x; then 9972 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9973 fi 9974 9975 9976 9977 9978 9979 # Publish this variable in the help. 9980 9981 9982 if test "x$TOUCH" = x; then 9983 # The variable is not set by user, try to locate tool using the code snippet 9984 for ac_prog in touch 9985 do 9986 # Extract the first word of "$ac_prog", so it can be a program name with args. 9987 set dummy $ac_prog; ac_word=$2 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9989 $as_echo_n "checking for $ac_word... " >&6; } 9990 if ${ac_cv_path_TOUCH+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992 else 9993 case $TOUCH in 9994 [\\/]* | ?:[\\/]*) 9995 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 9996 ;; 9997 *) 9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9999 for as_dir in $PATH 10000 do 10001 IFS=$as_save_IFS 10002 test -z "$as_dir" && as_dir=. 10003 for ac_exec_ext in '' $ac_executable_extensions; do 10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10005 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10007 break 2 10008 fi 10009 done 10010 done 10011 IFS=$as_save_IFS 10012 10013 ;; 10014 esac 10015 fi 10016 TOUCH=$ac_cv_path_TOUCH 10017 if test -n "$TOUCH"; then 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10019 $as_echo "$TOUCH" >&6; } 10020 else 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10022 $as_echo "no" >&6; } 10023 fi 10024 10025 10026 test -n "$TOUCH" && break 10027 done 10028 10029 else 10030 # The variable is set, but is it from the command line or the environment? 10031 10032 # Try to remove the string !TOUCH! from our list. 10033 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10034 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10035 # If it failed, the variable was not from the command line. Ignore it, 10036 # but warn the user (except for BASH, which is always set by the calling BASH). 10037 if test "xTOUCH" != xBASH; then 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10039 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10040 fi 10041 # Try to locate tool using the code snippet 10042 for ac_prog in touch 10043 do 10044 # Extract the first word of "$ac_prog", so it can be a program name with args. 10045 set dummy $ac_prog; ac_word=$2 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10047 $as_echo_n "checking for $ac_word... " >&6; } 10048 if ${ac_cv_path_TOUCH+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050 else 10051 case $TOUCH in 10052 [\\/]* | ?:[\\/]*) 10053 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10054 ;; 10055 *) 10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10057 for as_dir in $PATH 10058 do 10059 IFS=$as_save_IFS 10060 test -z "$as_dir" && as_dir=. 10061 for ac_exec_ext in '' $ac_executable_extensions; do 10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10063 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10065 break 2 10066 fi 10067 done 10068 done 10069 IFS=$as_save_IFS 10070 10071 ;; 10072 esac 10073 fi 10074 TOUCH=$ac_cv_path_TOUCH 10075 if test -n "$TOUCH"; then 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10077 $as_echo "$TOUCH" >&6; } 10078 else 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10080 $as_echo "no" >&6; } 10081 fi 10082 10083 10084 test -n "$TOUCH" && break 10085 done 10086 10087 else 10088 # If it succeeded, then it was overridden by the user. We will use it 10089 # for the tool. 10090 10091 # First remove it from the list of overridden variables, so we can test 10092 # for unknown variables in the end. 10093 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10094 10095 # Check if the provided tool contains a complete path. 10096 tool_specified="$TOUCH" 10097 tool_basename="${tool_specified##*/}" 10098 if test "x$tool_basename" = "x$tool_specified"; then 10099 # A command without a complete path is provided, search $PATH. 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10101 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10102 # Extract the first word of "$tool_basename", so it can be a program name with args. 10103 set dummy $tool_basename; ac_word=$2 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10105 $as_echo_n "checking for $ac_word... " >&6; } 10106 if ${ac_cv_path_TOUCH+:} false; then : 10107 $as_echo_n "(cached) " >&6 10108 else 10109 case $TOUCH in 10110 [\\/]* | ?:[\\/]*) 10111 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10112 ;; 10113 *) 10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10115 for as_dir in $PATH 10116 do 10117 IFS=$as_save_IFS 10118 test -z "$as_dir" && as_dir=. 10119 for ac_exec_ext in '' $ac_executable_extensions; do 10120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10121 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10123 break 2 10124 fi 10125 done 10126 done 10127 IFS=$as_save_IFS 10128 10129 ;; 10130 esac 10131 fi 10132 TOUCH=$ac_cv_path_TOUCH 10133 if test -n "$TOUCH"; then 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10135 $as_echo "$TOUCH" >&6; } 10136 else 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10138 $as_echo "no" >&6; } 10139 fi 10140 10141 10142 if test "x$TOUCH" = x; then 10143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10144 fi 10145 else 10146 # Otherwise we believe it is a complete path. Use it as it is. 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10148 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10150 $as_echo_n "checking for TOUCH... " >&6; } 10151 if test ! -x "$tool_specified"; then 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10153 $as_echo "not found" >&6; } 10154 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10155 fi 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10157 $as_echo "$tool_specified" >&6; } 10158 fi 10159 fi 10160 fi 10161 10162 10163 10164 if test "x$TOUCH" = x; then 10165 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10166 fi 10167 10168 10169 10170 10171 10172 # Publish this variable in the help. 10173 10174 10175 if test "x$TR" = x; then 10176 # The variable is not set by user, try to locate tool using the code snippet 10177 for ac_prog in tr 10178 do 10179 # Extract the first word of "$ac_prog", so it can be a program name with args. 10180 set dummy $ac_prog; ac_word=$2 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10182 $as_echo_n "checking for $ac_word... " >&6; } 10183 if ${ac_cv_path_TR+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185 else 10186 case $TR in 10187 [\\/]* | ?:[\\/]*) 10188 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10189 ;; 10190 *) 10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10192 for as_dir in $PATH 10193 do 10194 IFS=$as_save_IFS 10195 test -z "$as_dir" && as_dir=. 10196 for ac_exec_ext in '' $ac_executable_extensions; do 10197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10198 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10200 break 2 10201 fi 10202 done 10203 done 10204 IFS=$as_save_IFS 10205 10206 ;; 10207 esac 10208 fi 10209 TR=$ac_cv_path_TR 10210 if test -n "$TR"; then 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10212 $as_echo "$TR" >&6; } 10213 else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215 $as_echo "no" >&6; } 10216 fi 10217 10218 10219 test -n "$TR" && break 10220 done 10221 10222 else 10223 # The variable is set, but is it from the command line or the environment? 10224 10225 # Try to remove the string !TR! from our list. 10226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10228 # If it failed, the variable was not from the command line. Ignore it, 10229 # but warn the user (except for BASH, which is always set by the calling BASH). 10230 if test "xTR" != xBASH; then 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10232 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10233 fi 10234 # Try to locate tool using the code snippet 10235 for ac_prog in tr 10236 do 10237 # Extract the first word of "$ac_prog", so it can be a program name with args. 10238 set dummy $ac_prog; ac_word=$2 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10240 $as_echo_n "checking for $ac_word... " >&6; } 10241 if ${ac_cv_path_TR+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243 else 10244 case $TR in 10245 [\\/]* | ?:[\\/]*) 10246 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10247 ;; 10248 *) 10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10250 for as_dir in $PATH 10251 do 10252 IFS=$as_save_IFS 10253 test -z "$as_dir" && as_dir=. 10254 for ac_exec_ext in '' $ac_executable_extensions; do 10255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10256 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10258 break 2 10259 fi 10260 done 10261 done 10262 IFS=$as_save_IFS 10263 10264 ;; 10265 esac 10266 fi 10267 TR=$ac_cv_path_TR 10268 if test -n "$TR"; then 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10270 $as_echo "$TR" >&6; } 10271 else 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10273 $as_echo "no" >&6; } 10274 fi 10275 10276 10277 test -n "$TR" && break 10278 done 10279 10280 else 10281 # If it succeeded, then it was overridden by the user. We will use it 10282 # for the tool. 10283 10284 # First remove it from the list of overridden variables, so we can test 10285 # for unknown variables in the end. 10286 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10287 10288 # Check if the provided tool contains a complete path. 10289 tool_specified="$TR" 10290 tool_basename="${tool_specified##*/}" 10291 if test "x$tool_basename" = "x$tool_specified"; then 10292 # A command without a complete path is provided, search $PATH. 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10294 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10295 # Extract the first word of "$tool_basename", so it can be a program name with args. 10296 set dummy $tool_basename; ac_word=$2 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10298 $as_echo_n "checking for $ac_word... " >&6; } 10299 if ${ac_cv_path_TR+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301 else 10302 case $TR in 10303 [\\/]* | ?:[\\/]*) 10304 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10305 ;; 10306 *) 10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10308 for as_dir in $PATH 10309 do 10310 IFS=$as_save_IFS 10311 test -z "$as_dir" && as_dir=. 10312 for ac_exec_ext in '' $ac_executable_extensions; do 10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10314 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10316 break 2 10317 fi 10318 done 10319 done 10320 IFS=$as_save_IFS 10321 10322 ;; 10323 esac 10324 fi 10325 TR=$ac_cv_path_TR 10326 if test -n "$TR"; then 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10328 $as_echo "$TR" >&6; } 10329 else 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10331 $as_echo "no" >&6; } 10332 fi 10333 10334 10335 if test "x$TR" = x; then 10336 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10337 fi 10338 else 10339 # Otherwise we believe it is a complete path. Use it as it is. 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10341 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10343 $as_echo_n "checking for TR... " >&6; } 10344 if test ! -x "$tool_specified"; then 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10346 $as_echo "not found" >&6; } 10347 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10348 fi 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10350 $as_echo "$tool_specified" >&6; } 10351 fi 10352 fi 10353 fi 10354 10355 10356 10357 if test "x$TR" = x; then 10358 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10359 fi 10360 10361 10362 10363 10364 10365 # Publish this variable in the help. 10366 10367 10368 if test "x$UNAME" = x; then 10369 # The variable is not set by user, try to locate tool using the code snippet 10370 for ac_prog in uname 10371 do 10372 # Extract the first word of "$ac_prog", so it can be a program name with args. 10373 set dummy $ac_prog; ac_word=$2 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10375 $as_echo_n "checking for $ac_word... " >&6; } 10376 if ${ac_cv_path_UNAME+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378 else 10379 case $UNAME in 10380 [\\/]* | ?:[\\/]*) 10381 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10382 ;; 10383 *) 10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10385 for as_dir in $PATH 10386 do 10387 IFS=$as_save_IFS 10388 test -z "$as_dir" && as_dir=. 10389 for ac_exec_ext in '' $ac_executable_extensions; do 10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10391 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10393 break 2 10394 fi 10395 done 10396 done 10397 IFS=$as_save_IFS 10398 10399 ;; 10400 esac 10401 fi 10402 UNAME=$ac_cv_path_UNAME 10403 if test -n "$UNAME"; then 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10405 $as_echo "$UNAME" >&6; } 10406 else 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10408 $as_echo "no" >&6; } 10409 fi 10410 10411 10412 test -n "$UNAME" && break 10413 done 10414 10415 else 10416 # The variable is set, but is it from the command line or the environment? 10417 10418 # Try to remove the string !UNAME! from our list. 10419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10421 # If it failed, the variable was not from the command line. Ignore it, 10422 # but warn the user (except for BASH, which is always set by the calling BASH). 10423 if test "xUNAME" != xBASH; then 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10425 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10426 fi 10427 # Try to locate tool using the code snippet 10428 for ac_prog in uname 10429 do 10430 # Extract the first word of "$ac_prog", so it can be a program name with args. 10431 set dummy $ac_prog; ac_word=$2 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10433 $as_echo_n "checking for $ac_word... " >&6; } 10434 if ${ac_cv_path_UNAME+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436 else 10437 case $UNAME in 10438 [\\/]* | ?:[\\/]*) 10439 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10440 ;; 10441 *) 10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10443 for as_dir in $PATH 10444 do 10445 IFS=$as_save_IFS 10446 test -z "$as_dir" && as_dir=. 10447 for ac_exec_ext in '' $ac_executable_extensions; do 10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10449 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10451 break 2 10452 fi 10453 done 10454 done 10455 IFS=$as_save_IFS 10456 10457 ;; 10458 esac 10459 fi 10460 UNAME=$ac_cv_path_UNAME 10461 if test -n "$UNAME"; then 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10463 $as_echo "$UNAME" >&6; } 10464 else 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10466 $as_echo "no" >&6; } 10467 fi 10468 10469 10470 test -n "$UNAME" && break 10471 done 10472 10473 else 10474 # If it succeeded, then it was overridden by the user. We will use it 10475 # for the tool. 10476 10477 # First remove it from the list of overridden variables, so we can test 10478 # for unknown variables in the end. 10479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10480 10481 # Check if the provided tool contains a complete path. 10482 tool_specified="$UNAME" 10483 tool_basename="${tool_specified##*/}" 10484 if test "x$tool_basename" = "x$tool_specified"; then 10485 # A command without a complete path is provided, search $PATH. 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10487 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10488 # Extract the first word of "$tool_basename", so it can be a program name with args. 10489 set dummy $tool_basename; ac_word=$2 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10491 $as_echo_n "checking for $ac_word... " >&6; } 10492 if ${ac_cv_path_UNAME+:} false; then : 10493 $as_echo_n "(cached) " >&6 10494 else 10495 case $UNAME in 10496 [\\/]* | ?:[\\/]*) 10497 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10498 ;; 10499 *) 10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10501 for as_dir in $PATH 10502 do 10503 IFS=$as_save_IFS 10504 test -z "$as_dir" && as_dir=. 10505 for ac_exec_ext in '' $ac_executable_extensions; do 10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10507 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10509 break 2 10510 fi 10511 done 10512 done 10513 IFS=$as_save_IFS 10514 10515 ;; 10516 esac 10517 fi 10518 UNAME=$ac_cv_path_UNAME 10519 if test -n "$UNAME"; then 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10521 $as_echo "$UNAME" >&6; } 10522 else 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10524 $as_echo "no" >&6; } 10525 fi 10526 10527 10528 if test "x$UNAME" = x; then 10529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10530 fi 10531 else 10532 # Otherwise we believe it is a complete path. Use it as it is. 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10534 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10536 $as_echo_n "checking for UNAME... " >&6; } 10537 if test ! -x "$tool_specified"; then 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10539 $as_echo "not found" >&6; } 10540 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10541 fi 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10543 $as_echo "$tool_specified" >&6; } 10544 fi 10545 fi 10546 fi 10547 10548 10549 10550 if test "x$UNAME" = x; then 10551 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10552 fi 10553 10554 10555 10556 10557 10558 # Publish this variable in the help. 10559 10560 10561 if test "x$UNIQ" = x; then 10562 # The variable is not set by user, try to locate tool using the code snippet 10563 for ac_prog in uniq 10564 do 10565 # Extract the first word of "$ac_prog", so it can be a program name with args. 10566 set dummy $ac_prog; ac_word=$2 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10568 $as_echo_n "checking for $ac_word... " >&6; } 10569 if ${ac_cv_path_UNIQ+:} false; then : 10570 $as_echo_n "(cached) " >&6 10571 else 10572 case $UNIQ in 10573 [\\/]* | ?:[\\/]*) 10574 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10575 ;; 10576 *) 10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10578 for as_dir in $PATH 10579 do 10580 IFS=$as_save_IFS 10581 test -z "$as_dir" && as_dir=. 10582 for ac_exec_ext in '' $ac_executable_extensions; do 10583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10584 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10586 break 2 10587 fi 10588 done 10589 done 10590 IFS=$as_save_IFS 10591 10592 ;; 10593 esac 10594 fi 10595 UNIQ=$ac_cv_path_UNIQ 10596 if test -n "$UNIQ"; then 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10598 $as_echo "$UNIQ" >&6; } 10599 else 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10601 $as_echo "no" >&6; } 10602 fi 10603 10604 10605 test -n "$UNIQ" && break 10606 done 10607 10608 else 10609 # The variable is set, but is it from the command line or the environment? 10610 10611 # Try to remove the string !UNIQ! from our list. 10612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10614 # If it failed, the variable was not from the command line. Ignore it, 10615 # but warn the user (except for BASH, which is always set by the calling BASH). 10616 if test "xUNIQ" != xBASH; then 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10618 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10619 fi 10620 # Try to locate tool using the code snippet 10621 for ac_prog in uniq 10622 do 10623 # Extract the first word of "$ac_prog", so it can be a program name with args. 10624 set dummy $ac_prog; ac_word=$2 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10626 $as_echo_n "checking for $ac_word... " >&6; } 10627 if ${ac_cv_path_UNIQ+:} false; then : 10628 $as_echo_n "(cached) " >&6 10629 else 10630 case $UNIQ in 10631 [\\/]* | ?:[\\/]*) 10632 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10633 ;; 10634 *) 10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10636 for as_dir in $PATH 10637 do 10638 IFS=$as_save_IFS 10639 test -z "$as_dir" && as_dir=. 10640 for ac_exec_ext in '' $ac_executable_extensions; do 10641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10642 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10644 break 2 10645 fi 10646 done 10647 done 10648 IFS=$as_save_IFS 10649 10650 ;; 10651 esac 10652 fi 10653 UNIQ=$ac_cv_path_UNIQ 10654 if test -n "$UNIQ"; then 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10656 $as_echo "$UNIQ" >&6; } 10657 else 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10659 $as_echo "no" >&6; } 10660 fi 10661 10662 10663 test -n "$UNIQ" && break 10664 done 10665 10666 else 10667 # If it succeeded, then it was overridden by the user. We will use it 10668 # for the tool. 10669 10670 # First remove it from the list of overridden variables, so we can test 10671 # for unknown variables in the end. 10672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10673 10674 # Check if the provided tool contains a complete path. 10675 tool_specified="$UNIQ" 10676 tool_basename="${tool_specified##*/}" 10677 if test "x$tool_basename" = "x$tool_specified"; then 10678 # A command without a complete path is provided, search $PATH. 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10680 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10681 # Extract the first word of "$tool_basename", so it can be a program name with args. 10682 set dummy $tool_basename; ac_word=$2 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10684 $as_echo_n "checking for $ac_word... " >&6; } 10685 if ${ac_cv_path_UNIQ+:} false; then : 10686 $as_echo_n "(cached) " >&6 10687 else 10688 case $UNIQ in 10689 [\\/]* | ?:[\\/]*) 10690 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10691 ;; 10692 *) 10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10694 for as_dir in $PATH 10695 do 10696 IFS=$as_save_IFS 10697 test -z "$as_dir" && as_dir=. 10698 for ac_exec_ext in '' $ac_executable_extensions; do 10699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10700 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10702 break 2 10703 fi 10704 done 10705 done 10706 IFS=$as_save_IFS 10707 10708 ;; 10709 esac 10710 fi 10711 UNIQ=$ac_cv_path_UNIQ 10712 if test -n "$UNIQ"; then 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10714 $as_echo "$UNIQ" >&6; } 10715 else 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10717 $as_echo "no" >&6; } 10718 fi 10719 10720 10721 if test "x$UNIQ" = x; then 10722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10723 fi 10724 else 10725 # Otherwise we believe it is a complete path. Use it as it is. 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10727 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10729 $as_echo_n "checking for UNIQ... " >&6; } 10730 if test ! -x "$tool_specified"; then 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10732 $as_echo "not found" >&6; } 10733 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10734 fi 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10736 $as_echo "$tool_specified" >&6; } 10737 fi 10738 fi 10739 fi 10740 10741 10742 10743 if test "x$UNIQ" = x; then 10744 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10745 fi 10746 10747 10748 10749 10750 10751 # Publish this variable in the help. 10752 10753 10754 if test "x$WC" = x; then 10755 # The variable is not set by user, try to locate tool using the code snippet 10756 for ac_prog in wc 10757 do 10758 # Extract the first word of "$ac_prog", so it can be a program name with args. 10759 set dummy $ac_prog; ac_word=$2 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10761 $as_echo_n "checking for $ac_word... " >&6; } 10762 if ${ac_cv_path_WC+:} false; then : 10763 $as_echo_n "(cached) " >&6 10764 else 10765 case $WC in 10766 [\\/]* | ?:[\\/]*) 10767 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10768 ;; 10769 *) 10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10771 for as_dir in $PATH 10772 do 10773 IFS=$as_save_IFS 10774 test -z "$as_dir" && as_dir=. 10775 for ac_exec_ext in '' $ac_executable_extensions; do 10776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10777 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10779 break 2 10780 fi 10781 done 10782 done 10783 IFS=$as_save_IFS 10784 10785 ;; 10786 esac 10787 fi 10788 WC=$ac_cv_path_WC 10789 if test -n "$WC"; then 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10791 $as_echo "$WC" >&6; } 10792 else 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10794 $as_echo "no" >&6; } 10795 fi 10796 10797 10798 test -n "$WC" && break 10799 done 10800 10801 else 10802 # The variable is set, but is it from the command line or the environment? 10803 10804 # Try to remove the string !WC! from our list. 10805 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10806 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10807 # If it failed, the variable was not from the command line. Ignore it, 10808 # but warn the user (except for BASH, which is always set by the calling BASH). 10809 if test "xWC" != xBASH; then 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10811 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10812 fi 10813 # Try to locate tool using the code snippet 10814 for ac_prog in wc 10815 do 10816 # Extract the first word of "$ac_prog", so it can be a program name with args. 10817 set dummy $ac_prog; ac_word=$2 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10819 $as_echo_n "checking for $ac_word... " >&6; } 10820 if ${ac_cv_path_WC+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822 else 10823 case $WC in 10824 [\\/]* | ?:[\\/]*) 10825 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10826 ;; 10827 *) 10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10829 for as_dir in $PATH 10830 do 10831 IFS=$as_save_IFS 10832 test -z "$as_dir" && as_dir=. 10833 for ac_exec_ext in '' $ac_executable_extensions; do 10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10835 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10837 break 2 10838 fi 10839 done 10840 done 10841 IFS=$as_save_IFS 10842 10843 ;; 10844 esac 10845 fi 10846 WC=$ac_cv_path_WC 10847 if test -n "$WC"; then 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10849 $as_echo "$WC" >&6; } 10850 else 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10852 $as_echo "no" >&6; } 10853 fi 10854 10855 10856 test -n "$WC" && break 10857 done 10858 10859 else 10860 # If it succeeded, then it was overridden by the user. We will use it 10861 # for the tool. 10862 10863 # First remove it from the list of overridden variables, so we can test 10864 # for unknown variables in the end. 10865 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10866 10867 # Check if the provided tool contains a complete path. 10868 tool_specified="$WC" 10869 tool_basename="${tool_specified##*/}" 10870 if test "x$tool_basename" = "x$tool_specified"; then 10871 # A command without a complete path is provided, search $PATH. 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10873 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10874 # Extract the first word of "$tool_basename", so it can be a program name with args. 10875 set dummy $tool_basename; ac_word=$2 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10877 $as_echo_n "checking for $ac_word... " >&6; } 10878 if ${ac_cv_path_WC+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880 else 10881 case $WC in 10882 [\\/]* | ?:[\\/]*) 10883 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10884 ;; 10885 *) 10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10887 for as_dir in $PATH 10888 do 10889 IFS=$as_save_IFS 10890 test -z "$as_dir" && as_dir=. 10891 for ac_exec_ext in '' $ac_executable_extensions; do 10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10893 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10895 break 2 10896 fi 10897 done 10898 done 10899 IFS=$as_save_IFS 10900 10901 ;; 10902 esac 10903 fi 10904 WC=$ac_cv_path_WC 10905 if test -n "$WC"; then 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10907 $as_echo "$WC" >&6; } 10908 else 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10910 $as_echo "no" >&6; } 10911 fi 10912 10913 10914 if test "x$WC" = x; then 10915 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10916 fi 10917 else 10918 # Otherwise we believe it is a complete path. Use it as it is. 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10920 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10922 $as_echo_n "checking for WC... " >&6; } 10923 if test ! -x "$tool_specified"; then 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10925 $as_echo "not found" >&6; } 10926 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10927 fi 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10929 $as_echo "$tool_specified" >&6; } 10930 fi 10931 fi 10932 fi 10933 10934 10935 10936 if test "x$WC" = x; then 10937 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10938 fi 10939 10940 10941 10942 10943 10944 # Publish this variable in the help. 10945 10946 10947 if test "x$WHICH" = x; then 10948 # The variable is not set by user, try to locate tool using the code snippet 10949 for ac_prog in which 10950 do 10951 # Extract the first word of "$ac_prog", so it can be a program name with args. 10952 set dummy $ac_prog; ac_word=$2 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10954 $as_echo_n "checking for $ac_word... " >&6; } 10955 if ${ac_cv_path_WHICH+:} false; then : 10956 $as_echo_n "(cached) " >&6 10957 else 10958 case $WHICH in 10959 [\\/]* | ?:[\\/]*) 10960 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10961 ;; 10962 *) 10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10964 for as_dir in $PATH 10965 do 10966 IFS=$as_save_IFS 10967 test -z "$as_dir" && as_dir=. 10968 for ac_exec_ext in '' $ac_executable_extensions; do 10969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10970 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10972 break 2 10973 fi 10974 done 10975 done 10976 IFS=$as_save_IFS 10977 10978 ;; 10979 esac 10980 fi 10981 WHICH=$ac_cv_path_WHICH 10982 if test -n "$WHICH"; then 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10984 $as_echo "$WHICH" >&6; } 10985 else 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10987 $as_echo "no" >&6; } 10988 fi 10989 10990 10991 test -n "$WHICH" && break 10992 done 10993 10994 else 10995 # The variable is set, but is it from the command line or the environment? 10996 10997 # Try to remove the string !WHICH! from our list. 10998 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 10999 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11000 # If it failed, the variable was not from the command line. Ignore it, 11001 # but warn the user (except for BASH, which is always set by the calling BASH). 11002 if test "xWHICH" != xBASH; then 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11004 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11005 fi 11006 # Try to locate tool using the code snippet 11007 for ac_prog in which 11008 do 11009 # Extract the first word of "$ac_prog", so it can be a program name with args. 11010 set dummy $ac_prog; ac_word=$2 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11012 $as_echo_n "checking for $ac_word... " >&6; } 11013 if ${ac_cv_path_WHICH+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015 else 11016 case $WHICH in 11017 [\\/]* | ?:[\\/]*) 11018 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11019 ;; 11020 *) 11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11022 for as_dir in $PATH 11023 do 11024 IFS=$as_save_IFS 11025 test -z "$as_dir" && as_dir=. 11026 for ac_exec_ext in '' $ac_executable_extensions; do 11027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11028 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11030 break 2 11031 fi 11032 done 11033 done 11034 IFS=$as_save_IFS 11035 11036 ;; 11037 esac 11038 fi 11039 WHICH=$ac_cv_path_WHICH 11040 if test -n "$WHICH"; then 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11042 $as_echo "$WHICH" >&6; } 11043 else 11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11045 $as_echo "no" >&6; } 11046 fi 11047 11048 11049 test -n "$WHICH" && break 11050 done 11051 11052 else 11053 # If it succeeded, then it was overridden by the user. We will use it 11054 # for the tool. 11055 11056 # First remove it from the list of overridden variables, so we can test 11057 # for unknown variables in the end. 11058 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11059 11060 # Check if the provided tool contains a complete path. 11061 tool_specified="$WHICH" 11062 tool_basename="${tool_specified##*/}" 11063 if test "x$tool_basename" = "x$tool_specified"; then 11064 # A command without a complete path is provided, search $PATH. 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11066 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11067 # Extract the first word of "$tool_basename", so it can be a program name with args. 11068 set dummy $tool_basename; ac_word=$2 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11070 $as_echo_n "checking for $ac_word... " >&6; } 11071 if ${ac_cv_path_WHICH+:} false; then : 11072 $as_echo_n "(cached) " >&6 11073 else 11074 case $WHICH in 11075 [\\/]* | ?:[\\/]*) 11076 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11077 ;; 11078 *) 11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11080 for as_dir in $PATH 11081 do 11082 IFS=$as_save_IFS 11083 test -z "$as_dir" && as_dir=. 11084 for ac_exec_ext in '' $ac_executable_extensions; do 11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11086 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11088 break 2 11089 fi 11090 done 11091 done 11092 IFS=$as_save_IFS 11093 11094 ;; 11095 esac 11096 fi 11097 WHICH=$ac_cv_path_WHICH 11098 if test -n "$WHICH"; then 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11100 $as_echo "$WHICH" >&6; } 11101 else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103 $as_echo "no" >&6; } 11104 fi 11105 11106 11107 if test "x$WHICH" = x; then 11108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11109 fi 11110 else 11111 # Otherwise we believe it is a complete path. Use it as it is. 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11113 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11115 $as_echo_n "checking for WHICH... " >&6; } 11116 if test ! -x "$tool_specified"; then 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11118 $as_echo "not found" >&6; } 11119 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11120 fi 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11122 $as_echo "$tool_specified" >&6; } 11123 fi 11124 fi 11125 fi 11126 11127 11128 11129 if test "x$WHICH" = x; then 11130 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11131 fi 11132 11133 11134 11135 11136 11137 # Publish this variable in the help. 11138 11139 11140 if test "x$XARGS" = x; then 11141 # The variable is not set by user, try to locate tool using the code snippet 11142 for ac_prog in xargs 11143 do 11144 # Extract the first word of "$ac_prog", so it can be a program name with args. 11145 set dummy $ac_prog; ac_word=$2 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11147 $as_echo_n "checking for $ac_word... " >&6; } 11148 if ${ac_cv_path_XARGS+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150 else 11151 case $XARGS in 11152 [\\/]* | ?:[\\/]*) 11153 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11154 ;; 11155 *) 11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157 for as_dir in $PATH 11158 do 11159 IFS=$as_save_IFS 11160 test -z "$as_dir" && as_dir=. 11161 for ac_exec_ext in '' $ac_executable_extensions; do 11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11163 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11165 break 2 11166 fi 11167 done 11168 done 11169 IFS=$as_save_IFS 11170 11171 ;; 11172 esac 11173 fi 11174 XARGS=$ac_cv_path_XARGS 11175 if test -n "$XARGS"; then 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11177 $as_echo "$XARGS" >&6; } 11178 else 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11180 $as_echo "no" >&6; } 11181 fi 11182 11183 11184 test -n "$XARGS" && break 11185 done 11186 11187 else 11188 # The variable is set, but is it from the command line or the environment? 11189 11190 # Try to remove the string !XARGS! from our list. 11191 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11192 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11193 # If it failed, the variable was not from the command line. Ignore it, 11194 # but warn the user (except for BASH, which is always set by the calling BASH). 11195 if test "xXARGS" != xBASH; then 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11197 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11198 fi 11199 # Try to locate tool using the code snippet 11200 for ac_prog in xargs 11201 do 11202 # Extract the first word of "$ac_prog", so it can be a program name with args. 11203 set dummy $ac_prog; ac_word=$2 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11205 $as_echo_n "checking for $ac_word... " >&6; } 11206 if ${ac_cv_path_XARGS+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208 else 11209 case $XARGS in 11210 [\\/]* | ?:[\\/]*) 11211 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11212 ;; 11213 *) 11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11215 for as_dir in $PATH 11216 do 11217 IFS=$as_save_IFS 11218 test -z "$as_dir" && as_dir=. 11219 for ac_exec_ext in '' $ac_executable_extensions; do 11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11221 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11223 break 2 11224 fi 11225 done 11226 done 11227 IFS=$as_save_IFS 11228 11229 ;; 11230 esac 11231 fi 11232 XARGS=$ac_cv_path_XARGS 11233 if test -n "$XARGS"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11235 $as_echo "$XARGS" >&6; } 11236 else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238 $as_echo "no" >&6; } 11239 fi 11240 11241 11242 test -n "$XARGS" && break 11243 done 11244 11245 else 11246 # If it succeeded, then it was overridden by the user. We will use it 11247 # for the tool. 11248 11249 # First remove it from the list of overridden variables, so we can test 11250 # for unknown variables in the end. 11251 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11252 11253 # Check if the provided tool contains a complete path. 11254 tool_specified="$XARGS" 11255 tool_basename="${tool_specified##*/}" 11256 if test "x$tool_basename" = "x$tool_specified"; then 11257 # A command without a complete path is provided, search $PATH. 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11259 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11260 # Extract the first word of "$tool_basename", so it can be a program name with args. 11261 set dummy $tool_basename; ac_word=$2 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11263 $as_echo_n "checking for $ac_word... " >&6; } 11264 if ${ac_cv_path_XARGS+:} false; then : 11265 $as_echo_n "(cached) " >&6 11266 else 11267 case $XARGS in 11268 [\\/]* | ?:[\\/]*) 11269 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11270 ;; 11271 *) 11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11273 for as_dir in $PATH 11274 do 11275 IFS=$as_save_IFS 11276 test -z "$as_dir" && as_dir=. 11277 for ac_exec_ext in '' $ac_executable_extensions; do 11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11279 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11281 break 2 11282 fi 11283 done 11284 done 11285 IFS=$as_save_IFS 11286 11287 ;; 11288 esac 11289 fi 11290 XARGS=$ac_cv_path_XARGS 11291 if test -n "$XARGS"; then 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11293 $as_echo "$XARGS" >&6; } 11294 else 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11296 $as_echo "no" >&6; } 11297 fi 11298 11299 11300 if test "x$XARGS" = x; then 11301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11302 fi 11303 else 11304 # Otherwise we believe it is a complete path. Use it as it is. 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11306 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11308 $as_echo_n "checking for XARGS... " >&6; } 11309 if test ! -x "$tool_specified"; then 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11311 $as_echo "not found" >&6; } 11312 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11313 fi 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11315 $as_echo "$tool_specified" >&6; } 11316 fi 11317 fi 11318 fi 11319 11320 11321 11322 if test "x$XARGS" = x; then 11323 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11324 fi 11325 11326 11327 11328 # Then required tools that require some special treatment. 11329 11330 11331 # Publish this variable in the help. 11332 11333 11334 if test "x$AWK" = x; then 11335 # The variable is not set by user, try to locate tool using the code snippet 11336 for ac_prog in gawk mawk nawk awk 11337 do 11338 # Extract the first word of "$ac_prog", so it can be a program name with args. 11339 set dummy $ac_prog; ac_word=$2 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11341 $as_echo_n "checking for $ac_word... " >&6; } 11342 if ${ac_cv_prog_AWK+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344 else 11345 if test -n "$AWK"; then 11346 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11347 else 11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11349 for as_dir in $PATH 11350 do 11351 IFS=$as_save_IFS 11352 test -z "$as_dir" && as_dir=. 11353 for ac_exec_ext in '' $ac_executable_extensions; do 11354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11355 ac_cv_prog_AWK="$ac_prog" 11356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11357 break 2 11358 fi 11359 done 11360 done 11361 IFS=$as_save_IFS 11362 11363 fi 11364 fi 11365 AWK=$ac_cv_prog_AWK 11366 if test -n "$AWK"; then 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11368 $as_echo "$AWK" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371 $as_echo "no" >&6; } 11372 fi 11373 11374 11375 test -n "$AWK" && break 11376 done 11377 11378 else 11379 # The variable is set, but is it from the command line or the environment? 11380 11381 # Try to remove the string !AWK! from our list. 11382 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11383 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11384 # If it failed, the variable was not from the command line. Ignore it, 11385 # but warn the user (except for BASH, which is always set by the calling BASH). 11386 if test "xAWK" != xBASH; then 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11388 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11389 fi 11390 # Try to locate tool using the code snippet 11391 for ac_prog in gawk mawk nawk awk 11392 do 11393 # Extract the first word of "$ac_prog", so it can be a program name with args. 11394 set dummy $ac_prog; ac_word=$2 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11396 $as_echo_n "checking for $ac_word... " >&6; } 11397 if ${ac_cv_prog_AWK+:} false; then : 11398 $as_echo_n "(cached) " >&6 11399 else 11400 if test -n "$AWK"; then 11401 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11402 else 11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11404 for as_dir in $PATH 11405 do 11406 IFS=$as_save_IFS 11407 test -z "$as_dir" && as_dir=. 11408 for ac_exec_ext in '' $ac_executable_extensions; do 11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11410 ac_cv_prog_AWK="$ac_prog" 11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11412 break 2 11413 fi 11414 done 11415 done 11416 IFS=$as_save_IFS 11417 11418 fi 11419 fi 11420 AWK=$ac_cv_prog_AWK 11421 if test -n "$AWK"; then 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11423 $as_echo "$AWK" >&6; } 11424 else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11426 $as_echo "no" >&6; } 11427 fi 11428 11429 11430 test -n "$AWK" && break 11431 done 11432 11433 else 11434 # If it succeeded, then it was overridden by the user. We will use it 11435 # for the tool. 11436 11437 # First remove it from the list of overridden variables, so we can test 11438 # for unknown variables in the end. 11439 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11440 11441 # Check if the provided tool contains a complete path. 11442 tool_specified="$AWK" 11443 tool_basename="${tool_specified##*/}" 11444 if test "x$tool_basename" = "x$tool_specified"; then 11445 # A command without a complete path is provided, search $PATH. 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11447 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11448 # Extract the first word of "$tool_basename", so it can be a program name with args. 11449 set dummy $tool_basename; ac_word=$2 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11451 $as_echo_n "checking for $ac_word... " >&6; } 11452 if ${ac_cv_path_AWK+:} false; then : 11453 $as_echo_n "(cached) " >&6 11454 else 11455 case $AWK in 11456 [\\/]* | ?:[\\/]*) 11457 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11458 ;; 11459 *) 11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11461 for as_dir in $PATH 11462 do 11463 IFS=$as_save_IFS 11464 test -z "$as_dir" && as_dir=. 11465 for ac_exec_ext in '' $ac_executable_extensions; do 11466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11467 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11469 break 2 11470 fi 11471 done 11472 done 11473 IFS=$as_save_IFS 11474 11475 ;; 11476 esac 11477 fi 11478 AWK=$ac_cv_path_AWK 11479 if test -n "$AWK"; then 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11481 $as_echo "$AWK" >&6; } 11482 else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11484 $as_echo "no" >&6; } 11485 fi 11486 11487 11488 if test "x$AWK" = x; then 11489 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11490 fi 11491 else 11492 # Otherwise we believe it is a complete path. Use it as it is. 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11494 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11496 $as_echo_n "checking for AWK... " >&6; } 11497 if test ! -x "$tool_specified"; then 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11499 $as_echo "not found" >&6; } 11500 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11501 fi 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11503 $as_echo "$tool_specified" >&6; } 11504 fi 11505 fi 11506 fi 11507 11508 11509 if test "x$AWK" = x; then 11510 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11511 fi 11512 11513 11514 11515 11516 # Publish this variable in the help. 11517 11518 11519 if test "x$GREP" = x; then 11520 # The variable is not set by user, try to locate tool using the code snippet 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11522 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11523 if ${ac_cv_path_GREP+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525 else 11526 if test -z "$GREP"; then 11527 ac_path_GREP_found=false 11528 # Loop through the user's path and test for each of PROGNAME-LIST 11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11531 do 11532 IFS=$as_save_IFS 11533 test -z "$as_dir" && as_dir=. 11534 for ac_prog in grep ggrep; do 11535 for ac_exec_ext in '' $ac_executable_extensions; do 11536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11537 as_fn_executable_p "$ac_path_GREP" || continue 11538 # Check for GNU ac_path_GREP and select it if it is found. 11539 # Check for GNU $ac_path_GREP 11540 case `"$ac_path_GREP" --version 2>&1` in 11541 *GNU*) 11542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11543 *) 11544 ac_count=0 11545 $as_echo_n 0123456789 >"conftest.in" 11546 while : 11547 do 11548 cat "conftest.in" "conftest.in" >"conftest.tmp" 11549 mv "conftest.tmp" "conftest.in" 11550 cp "conftest.in" "conftest.nl" 11551 $as_echo 'GREP' >> "conftest.nl" 11552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11554 as_fn_arith $ac_count + 1 && ac_count=$as_val 11555 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11556 # Best one so far, save it but keep looking for a better one 11557 ac_cv_path_GREP="$ac_path_GREP" 11558 ac_path_GREP_max=$ac_count 11559 fi 11560 # 10*(2^10) chars as input seems more than enough 11561 test $ac_count -gt 10 && break 11562 done 11563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11564 esac 11565 11566 $ac_path_GREP_found && break 3 11567 done 11568 done 11569 done 11570 IFS=$as_save_IFS 11571 if test -z "$ac_cv_path_GREP"; then 11572 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11573 fi 11574 else 11575 ac_cv_path_GREP=$GREP 11576 fi 11577 11578 fi 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11580 $as_echo "$ac_cv_path_GREP" >&6; } 11581 GREP="$ac_cv_path_GREP" 11582 11583 11584 else 11585 # The variable is set, but is it from the command line or the environment? 11586 11587 # Try to remove the string !GREP! from our list. 11588 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11589 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11590 # If it failed, the variable was not from the command line. Ignore it, 11591 # but warn the user (except for BASH, which is always set by the calling BASH). 11592 if test "xGREP" != xBASH; then 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11594 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11595 fi 11596 # Try to locate tool using the code snippet 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11598 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11599 if ${ac_cv_path_GREP+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601 else 11602 if test -z "$GREP"; then 11603 ac_path_GREP_found=false 11604 # Loop through the user's path and test for each of PROGNAME-LIST 11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11607 do 11608 IFS=$as_save_IFS 11609 test -z "$as_dir" && as_dir=. 11610 for ac_prog in grep ggrep; do 11611 for ac_exec_ext in '' $ac_executable_extensions; do 11612 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11613 as_fn_executable_p "$ac_path_GREP" || continue 11614 # Check for GNU ac_path_GREP and select it if it is found. 11615 # Check for GNU $ac_path_GREP 11616 case `"$ac_path_GREP" --version 2>&1` in 11617 *GNU*) 11618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11619 *) 11620 ac_count=0 11621 $as_echo_n 0123456789 >"conftest.in" 11622 while : 11623 do 11624 cat "conftest.in" "conftest.in" >"conftest.tmp" 11625 mv "conftest.tmp" "conftest.in" 11626 cp "conftest.in" "conftest.nl" 11627 $as_echo 'GREP' >> "conftest.nl" 11628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11630 as_fn_arith $ac_count + 1 && ac_count=$as_val 11631 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11632 # Best one so far, save it but keep looking for a better one 11633 ac_cv_path_GREP="$ac_path_GREP" 11634 ac_path_GREP_max=$ac_count 11635 fi 11636 # 10*(2^10) chars as input seems more than enough 11637 test $ac_count -gt 10 && break 11638 done 11639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11640 esac 11641 11642 $ac_path_GREP_found && break 3 11643 done 11644 done 11645 done 11646 IFS=$as_save_IFS 11647 if test -z "$ac_cv_path_GREP"; then 11648 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11649 fi 11650 else 11651 ac_cv_path_GREP=$GREP 11652 fi 11653 11654 fi 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11656 $as_echo "$ac_cv_path_GREP" >&6; } 11657 GREP="$ac_cv_path_GREP" 11658 11659 11660 else 11661 # If it succeeded, then it was overridden by the user. We will use it 11662 # for the tool. 11663 11664 # First remove it from the list of overridden variables, so we can test 11665 # for unknown variables in the end. 11666 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11667 11668 # Check if the provided tool contains a complete path. 11669 tool_specified="$GREP" 11670 tool_basename="${tool_specified##*/}" 11671 if test "x$tool_basename" = "x$tool_specified"; then 11672 # A command without a complete path is provided, search $PATH. 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11674 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11675 # Extract the first word of "$tool_basename", so it can be a program name with args. 11676 set dummy $tool_basename; ac_word=$2 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11678 $as_echo_n "checking for $ac_word... " >&6; } 11679 if ${ac_cv_path_GREP+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681 else 11682 case $GREP in 11683 [\\/]* | ?:[\\/]*) 11684 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11685 ;; 11686 *) 11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11688 for as_dir in $PATH 11689 do 11690 IFS=$as_save_IFS 11691 test -z "$as_dir" && as_dir=. 11692 for ac_exec_ext in '' $ac_executable_extensions; do 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11694 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11696 break 2 11697 fi 11698 done 11699 done 11700 IFS=$as_save_IFS 11701 11702 ;; 11703 esac 11704 fi 11705 GREP=$ac_cv_path_GREP 11706 if test -n "$GREP"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11708 $as_echo "$GREP" >&6; } 11709 else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711 $as_echo "no" >&6; } 11712 fi 11713 11714 11715 if test "x$GREP" = x; then 11716 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11717 fi 11718 else 11719 # Otherwise we believe it is a complete path. Use it as it is. 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11721 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11723 $as_echo_n "checking for GREP... " >&6; } 11724 if test ! -x "$tool_specified"; then 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11726 $as_echo "not found" >&6; } 11727 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11728 fi 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11730 $as_echo "$tool_specified" >&6; } 11731 fi 11732 fi 11733 fi 11734 11735 11736 if test "x$GREP" = x; then 11737 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11738 fi 11739 11740 11741 11742 11743 # Publish this variable in the help. 11744 11745 11746 if test "x$EGREP" = x; then 11747 # The variable is not set by user, try to locate tool using the code snippet 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11749 $as_echo_n "checking for egrep... " >&6; } 11750 if ${ac_cv_path_EGREP+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752 else 11753 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11754 then ac_cv_path_EGREP="$GREP -E" 11755 else 11756 if test -z "$EGREP"; then 11757 ac_path_EGREP_found=false 11758 # Loop through the user's path and test for each of PROGNAME-LIST 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11761 do 11762 IFS=$as_save_IFS 11763 test -z "$as_dir" && as_dir=. 11764 for ac_prog in egrep; do 11765 for ac_exec_ext in '' $ac_executable_extensions; do 11766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11767 as_fn_executable_p "$ac_path_EGREP" || continue 11768 # Check for GNU ac_path_EGREP and select it if it is found. 11769 # Check for GNU $ac_path_EGREP 11770 case `"$ac_path_EGREP" --version 2>&1` in 11771 *GNU*) 11772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11773 *) 11774 ac_count=0 11775 $as_echo_n 0123456789 >"conftest.in" 11776 while : 11777 do 11778 cat "conftest.in" "conftest.in" >"conftest.tmp" 11779 mv "conftest.tmp" "conftest.in" 11780 cp "conftest.in" "conftest.nl" 11781 $as_echo 'EGREP' >> "conftest.nl" 11782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11784 as_fn_arith $ac_count + 1 && ac_count=$as_val 11785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11786 # Best one so far, save it but keep looking for a better one 11787 ac_cv_path_EGREP="$ac_path_EGREP" 11788 ac_path_EGREP_max=$ac_count 11789 fi 11790 # 10*(2^10) chars as input seems more than enough 11791 test $ac_count -gt 10 && break 11792 done 11793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11794 esac 11795 11796 $ac_path_EGREP_found && break 3 11797 done 11798 done 11799 done 11800 IFS=$as_save_IFS 11801 if test -z "$ac_cv_path_EGREP"; then 11802 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11803 fi 11804 else 11805 ac_cv_path_EGREP=$EGREP 11806 fi 11807 11808 fi 11809 fi 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11811 $as_echo "$ac_cv_path_EGREP" >&6; } 11812 EGREP="$ac_cv_path_EGREP" 11813 11814 11815 else 11816 # The variable is set, but is it from the command line or the environment? 11817 11818 # Try to remove the string !EGREP! from our list. 11819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11821 # If it failed, the variable was not from the command line. Ignore it, 11822 # but warn the user (except for BASH, which is always set by the calling BASH). 11823 if test "xEGREP" != xBASH; then 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11825 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11826 fi 11827 # Try to locate tool using the code snippet 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11829 $as_echo_n "checking for egrep... " >&6; } 11830 if ${ac_cv_path_EGREP+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832 else 11833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11834 then ac_cv_path_EGREP="$GREP -E" 11835 else 11836 if test -z "$EGREP"; then 11837 ac_path_EGREP_found=false 11838 # Loop through the user's path and test for each of PROGNAME-LIST 11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11841 do 11842 IFS=$as_save_IFS 11843 test -z "$as_dir" && as_dir=. 11844 for ac_prog in egrep; do 11845 for ac_exec_ext in '' $ac_executable_extensions; do 11846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11847 as_fn_executable_p "$ac_path_EGREP" || continue 11848 # Check for GNU ac_path_EGREP and select it if it is found. 11849 # Check for GNU $ac_path_EGREP 11850 case `"$ac_path_EGREP" --version 2>&1` in 11851 *GNU*) 11852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11853 *) 11854 ac_count=0 11855 $as_echo_n 0123456789 >"conftest.in" 11856 while : 11857 do 11858 cat "conftest.in" "conftest.in" >"conftest.tmp" 11859 mv "conftest.tmp" "conftest.in" 11860 cp "conftest.in" "conftest.nl" 11861 $as_echo 'EGREP' >> "conftest.nl" 11862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11864 as_fn_arith $ac_count + 1 && ac_count=$as_val 11865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11866 # Best one so far, save it but keep looking for a better one 11867 ac_cv_path_EGREP="$ac_path_EGREP" 11868 ac_path_EGREP_max=$ac_count 11869 fi 11870 # 10*(2^10) chars as input seems more than enough 11871 test $ac_count -gt 10 && break 11872 done 11873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11874 esac 11875 11876 $ac_path_EGREP_found && break 3 11877 done 11878 done 11879 done 11880 IFS=$as_save_IFS 11881 if test -z "$ac_cv_path_EGREP"; then 11882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11883 fi 11884 else 11885 ac_cv_path_EGREP=$EGREP 11886 fi 11887 11888 fi 11889 fi 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11891 $as_echo "$ac_cv_path_EGREP" >&6; } 11892 EGREP="$ac_cv_path_EGREP" 11893 11894 11895 else 11896 # If it succeeded, then it was overridden by the user. We will use it 11897 # for the tool. 11898 11899 # First remove it from the list of overridden variables, so we can test 11900 # for unknown variables in the end. 11901 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11902 11903 # Check if the provided tool contains a complete path. 11904 tool_specified="$EGREP" 11905 tool_basename="${tool_specified##*/}" 11906 if test "x$tool_basename" = "x$tool_specified"; then 11907 # A command without a complete path is provided, search $PATH. 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11909 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11910 # Extract the first word of "$tool_basename", so it can be a program name with args. 11911 set dummy $tool_basename; ac_word=$2 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11913 $as_echo_n "checking for $ac_word... " >&6; } 11914 if ${ac_cv_path_EGREP+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916 else 11917 case $EGREP in 11918 [\\/]* | ?:[\\/]*) 11919 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11920 ;; 11921 *) 11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11923 for as_dir in $PATH 11924 do 11925 IFS=$as_save_IFS 11926 test -z "$as_dir" && as_dir=. 11927 for ac_exec_ext in '' $ac_executable_extensions; do 11928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11929 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11931 break 2 11932 fi 11933 done 11934 done 11935 IFS=$as_save_IFS 11936 11937 ;; 11938 esac 11939 fi 11940 EGREP=$ac_cv_path_EGREP 11941 if test -n "$EGREP"; then 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11943 $as_echo "$EGREP" >&6; } 11944 else 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11946 $as_echo "no" >&6; } 11947 fi 11948 11949 11950 if test "x$EGREP" = x; then 11951 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11952 fi 11953 else 11954 # Otherwise we believe it is a complete path. Use it as it is. 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11956 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11958 $as_echo_n "checking for EGREP... " >&6; } 11959 if test ! -x "$tool_specified"; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11961 $as_echo "not found" >&6; } 11962 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11963 fi 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11965 $as_echo "$tool_specified" >&6; } 11966 fi 11967 fi 11968 fi 11969 11970 11971 if test "x$EGREP" = x; then 11972 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11973 fi 11974 11975 11976 11977 11978 # Publish this variable in the help. 11979 11980 11981 if test "x$FGREP" = x; then 11982 # The variable is not set by user, try to locate tool using the code snippet 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11984 $as_echo_n "checking for fgrep... " >&6; } 11985 if ${ac_cv_path_FGREP+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987 else 11988 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11989 then ac_cv_path_FGREP="$GREP -F" 11990 else 11991 if test -z "$FGREP"; then 11992 ac_path_FGREP_found=false 11993 # Loop through the user's path and test for each of PROGNAME-LIST 11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11996 do 11997 IFS=$as_save_IFS 11998 test -z "$as_dir" && as_dir=. 11999 for ac_prog in fgrep; do 12000 for ac_exec_ext in '' $ac_executable_extensions; do 12001 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12002 as_fn_executable_p "$ac_path_FGREP" || continue 12003 # Check for GNU ac_path_FGREP and select it if it is found. 12004 # Check for GNU $ac_path_FGREP 12005 case `"$ac_path_FGREP" --version 2>&1` in 12006 *GNU*) 12007 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12008 *) 12009 ac_count=0 12010 $as_echo_n 0123456789 >"conftest.in" 12011 while : 12012 do 12013 cat "conftest.in" "conftest.in" >"conftest.tmp" 12014 mv "conftest.tmp" "conftest.in" 12015 cp "conftest.in" "conftest.nl" 12016 $as_echo 'FGREP' >> "conftest.nl" 12017 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12019 as_fn_arith $ac_count + 1 && ac_count=$as_val 12020 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12021 # Best one so far, save it but keep looking for a better one 12022 ac_cv_path_FGREP="$ac_path_FGREP" 12023 ac_path_FGREP_max=$ac_count 12024 fi 12025 # 10*(2^10) chars as input seems more than enough 12026 test $ac_count -gt 10 && break 12027 done 12028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12029 esac 12030 12031 $ac_path_FGREP_found && break 3 12032 done 12033 done 12034 done 12035 IFS=$as_save_IFS 12036 if test -z "$ac_cv_path_FGREP"; then 12037 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12038 fi 12039 else 12040 ac_cv_path_FGREP=$FGREP 12041 fi 12042 12043 fi 12044 fi 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12046 $as_echo "$ac_cv_path_FGREP" >&6; } 12047 FGREP="$ac_cv_path_FGREP" 12048 12049 12050 else 12051 # The variable is set, but is it from the command line or the environment? 12052 12053 # Try to remove the string !FGREP! from our list. 12054 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12055 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12056 # If it failed, the variable was not from the command line. Ignore it, 12057 # but warn the user (except for BASH, which is always set by the calling BASH). 12058 if test "xFGREP" != xBASH; then 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12060 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12061 fi 12062 # Try to locate tool using the code snippet 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12064 $as_echo_n "checking for fgrep... " >&6; } 12065 if ${ac_cv_path_FGREP+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067 else 12068 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12069 then ac_cv_path_FGREP="$GREP -F" 12070 else 12071 if test -z "$FGREP"; then 12072 ac_path_FGREP_found=false 12073 # Loop through the user's path and test for each of PROGNAME-LIST 12074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12076 do 12077 IFS=$as_save_IFS 12078 test -z "$as_dir" && as_dir=. 12079 for ac_prog in fgrep; do 12080 for ac_exec_ext in '' $ac_executable_extensions; do 12081 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12082 as_fn_executable_p "$ac_path_FGREP" || continue 12083 # Check for GNU ac_path_FGREP and select it if it is found. 12084 # Check for GNU $ac_path_FGREP 12085 case `"$ac_path_FGREP" --version 2>&1` in 12086 *GNU*) 12087 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12088 *) 12089 ac_count=0 12090 $as_echo_n 0123456789 >"conftest.in" 12091 while : 12092 do 12093 cat "conftest.in" "conftest.in" >"conftest.tmp" 12094 mv "conftest.tmp" "conftest.in" 12095 cp "conftest.in" "conftest.nl" 12096 $as_echo 'FGREP' >> "conftest.nl" 12097 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12099 as_fn_arith $ac_count + 1 && ac_count=$as_val 12100 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12101 # Best one so far, save it but keep looking for a better one 12102 ac_cv_path_FGREP="$ac_path_FGREP" 12103 ac_path_FGREP_max=$ac_count 12104 fi 12105 # 10*(2^10) chars as input seems more than enough 12106 test $ac_count -gt 10 && break 12107 done 12108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12109 esac 12110 12111 $ac_path_FGREP_found && break 3 12112 done 12113 done 12114 done 12115 IFS=$as_save_IFS 12116 if test -z "$ac_cv_path_FGREP"; then 12117 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12118 fi 12119 else 12120 ac_cv_path_FGREP=$FGREP 12121 fi 12122 12123 fi 12124 fi 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12126 $as_echo "$ac_cv_path_FGREP" >&6; } 12127 FGREP="$ac_cv_path_FGREP" 12128 12129 12130 else 12131 # If it succeeded, then it was overridden by the user. We will use it 12132 # for the tool. 12133 12134 # First remove it from the list of overridden variables, so we can test 12135 # for unknown variables in the end. 12136 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12137 12138 # Check if the provided tool contains a complete path. 12139 tool_specified="$FGREP" 12140 tool_basename="${tool_specified##*/}" 12141 if test "x$tool_basename" = "x$tool_specified"; then 12142 # A command without a complete path is provided, search $PATH. 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12144 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12145 # Extract the first word of "$tool_basename", so it can be a program name with args. 12146 set dummy $tool_basename; ac_word=$2 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12148 $as_echo_n "checking for $ac_word... " >&6; } 12149 if ${ac_cv_path_FGREP+:} false; then : 12150 $as_echo_n "(cached) " >&6 12151 else 12152 case $FGREP in 12153 [\\/]* | ?:[\\/]*) 12154 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12155 ;; 12156 *) 12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12158 for as_dir in $PATH 12159 do 12160 IFS=$as_save_IFS 12161 test -z "$as_dir" && as_dir=. 12162 for ac_exec_ext in '' $ac_executable_extensions; do 12163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12164 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12166 break 2 12167 fi 12168 done 12169 done 12170 IFS=$as_save_IFS 12171 12172 ;; 12173 esac 12174 fi 12175 FGREP=$ac_cv_path_FGREP 12176 if test -n "$FGREP"; then 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12178 $as_echo "$FGREP" >&6; } 12179 else 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12181 $as_echo "no" >&6; } 12182 fi 12183 12184 12185 if test "x$FGREP" = x; then 12186 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12187 fi 12188 else 12189 # Otherwise we believe it is a complete path. Use it as it is. 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12191 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12193 $as_echo_n "checking for FGREP... " >&6; } 12194 if test ! -x "$tool_specified"; then 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12196 $as_echo "not found" >&6; } 12197 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12198 fi 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12200 $as_echo "$tool_specified" >&6; } 12201 fi 12202 fi 12203 fi 12204 12205 12206 if test "x$FGREP" = x; then 12207 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12208 fi 12209 12210 12211 12212 12213 # Publish this variable in the help. 12214 12215 12216 if test "x$SED" = x; then 12217 # The variable is not set by user, try to locate tool using the code snippet 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12219 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12220 if ${ac_cv_path_SED+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222 else 12223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12224 for ac_i in 1 2 3 4 5 6 7; do 12225 ac_script="$ac_script$as_nl$ac_script" 12226 done 12227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12228 { ac_script=; unset ac_script;} 12229 if test -z "$SED"; then 12230 ac_path_SED_found=false 12231 # Loop through the user's path and test for each of PROGNAME-LIST 12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12233 for as_dir in $PATH 12234 do 12235 IFS=$as_save_IFS 12236 test -z "$as_dir" && as_dir=. 12237 for ac_prog in sed gsed; do 12238 for ac_exec_ext in '' $ac_executable_extensions; do 12239 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12240 as_fn_executable_p "$ac_path_SED" || continue 12241 # Check for GNU ac_path_SED and select it if it is found. 12242 # Check for GNU $ac_path_SED 12243 case `"$ac_path_SED" --version 2>&1` in 12244 *GNU*) 12245 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12246 *) 12247 ac_count=0 12248 $as_echo_n 0123456789 >"conftest.in" 12249 while : 12250 do 12251 cat "conftest.in" "conftest.in" >"conftest.tmp" 12252 mv "conftest.tmp" "conftest.in" 12253 cp "conftest.in" "conftest.nl" 12254 $as_echo '' >> "conftest.nl" 12255 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12257 as_fn_arith $ac_count + 1 && ac_count=$as_val 12258 if test $ac_count -gt ${ac_path_SED_max-0}; then 12259 # Best one so far, save it but keep looking for a better one 12260 ac_cv_path_SED="$ac_path_SED" 12261 ac_path_SED_max=$ac_count 12262 fi 12263 # 10*(2^10) chars as input seems more than enough 12264 test $ac_count -gt 10 && break 12265 done 12266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12267 esac 12268 12269 $ac_path_SED_found && break 3 12270 done 12271 done 12272 done 12273 IFS=$as_save_IFS 12274 if test -z "$ac_cv_path_SED"; then 12275 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12276 fi 12277 else 12278 ac_cv_path_SED=$SED 12279 fi 12280 12281 fi 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12283 $as_echo "$ac_cv_path_SED" >&6; } 12284 SED="$ac_cv_path_SED" 12285 rm -f conftest.sed 12286 12287 else 12288 # The variable is set, but is it from the command line or the environment? 12289 12290 # Try to remove the string !SED! from our list. 12291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12293 # If it failed, the variable was not from the command line. Ignore it, 12294 # but warn the user (except for BASH, which is always set by the calling BASH). 12295 if test "xSED" != xBASH; then 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12297 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12298 fi 12299 # Try to locate tool using the code snippet 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12301 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12302 if ${ac_cv_path_SED+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304 else 12305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12306 for ac_i in 1 2 3 4 5 6 7; do 12307 ac_script="$ac_script$as_nl$ac_script" 12308 done 12309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12310 { ac_script=; unset ac_script;} 12311 if test -z "$SED"; then 12312 ac_path_SED_found=false 12313 # Loop through the user's path and test for each of PROGNAME-LIST 12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12315 for as_dir in $PATH 12316 do 12317 IFS=$as_save_IFS 12318 test -z "$as_dir" && as_dir=. 12319 for ac_prog in sed gsed; do 12320 for ac_exec_ext in '' $ac_executable_extensions; do 12321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12322 as_fn_executable_p "$ac_path_SED" || continue 12323 # Check for GNU ac_path_SED and select it if it is found. 12324 # Check for GNU $ac_path_SED 12325 case `"$ac_path_SED" --version 2>&1` in 12326 *GNU*) 12327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12328 *) 12329 ac_count=0 12330 $as_echo_n 0123456789 >"conftest.in" 12331 while : 12332 do 12333 cat "conftest.in" "conftest.in" >"conftest.tmp" 12334 mv "conftest.tmp" "conftest.in" 12335 cp "conftest.in" "conftest.nl" 12336 $as_echo '' >> "conftest.nl" 12337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12339 as_fn_arith $ac_count + 1 && ac_count=$as_val 12340 if test $ac_count -gt ${ac_path_SED_max-0}; then 12341 # Best one so far, save it but keep looking for a better one 12342 ac_cv_path_SED="$ac_path_SED" 12343 ac_path_SED_max=$ac_count 12344 fi 12345 # 10*(2^10) chars as input seems more than enough 12346 test $ac_count -gt 10 && break 12347 done 12348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12349 esac 12350 12351 $ac_path_SED_found && break 3 12352 done 12353 done 12354 done 12355 IFS=$as_save_IFS 12356 if test -z "$ac_cv_path_SED"; then 12357 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12358 fi 12359 else 12360 ac_cv_path_SED=$SED 12361 fi 12362 12363 fi 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12365 $as_echo "$ac_cv_path_SED" >&6; } 12366 SED="$ac_cv_path_SED" 12367 rm -f conftest.sed 12368 12369 else 12370 # If it succeeded, then it was overridden by the user. We will use it 12371 # for the tool. 12372 12373 # First remove it from the list of overridden variables, so we can test 12374 # for unknown variables in the end. 12375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12376 12377 # Check if the provided tool contains a complete path. 12378 tool_specified="$SED" 12379 tool_basename="${tool_specified##*/}" 12380 if test "x$tool_basename" = "x$tool_specified"; then 12381 # A command without a complete path is provided, search $PATH. 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12383 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12384 # Extract the first word of "$tool_basename", so it can be a program name with args. 12385 set dummy $tool_basename; ac_word=$2 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12387 $as_echo_n "checking for $ac_word... " >&6; } 12388 if ${ac_cv_path_SED+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390 else 12391 case $SED in 12392 [\\/]* | ?:[\\/]*) 12393 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12394 ;; 12395 *) 12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12397 for as_dir in $PATH 12398 do 12399 IFS=$as_save_IFS 12400 test -z "$as_dir" && as_dir=. 12401 for ac_exec_ext in '' $ac_executable_extensions; do 12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12403 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12405 break 2 12406 fi 12407 done 12408 done 12409 IFS=$as_save_IFS 12410 12411 ;; 12412 esac 12413 fi 12414 SED=$ac_cv_path_SED 12415 if test -n "$SED"; then 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12417 $as_echo "$SED" >&6; } 12418 else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420 $as_echo "no" >&6; } 12421 fi 12422 12423 12424 if test "x$SED" = x; then 12425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12426 fi 12427 else 12428 # Otherwise we believe it is a complete path. Use it as it is. 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12430 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12432 $as_echo_n "checking for SED... " >&6; } 12433 if test ! -x "$tool_specified"; then 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12435 $as_echo "not found" >&6; } 12436 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12437 fi 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12439 $as_echo "$tool_specified" >&6; } 12440 fi 12441 fi 12442 fi 12443 12444 12445 if test "x$SED" = x; then 12446 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12447 fi 12448 12449 12450 12451 # Always force rm. 12452 RM="$RM -f" 12453 12454 # pwd behaves differently on various platforms and some don't support the -L flag. 12455 # Always use the bash builtin pwd to get uniform behavior. 12456 THEPWDCMD=pwd 12457 12458 # These are not required on all platforms 12459 12460 12461 # Publish this variable in the help. 12462 12463 12464 if test "x$CYGPATH" = x; then 12465 # The variable is not set by user, try to locate tool using the code snippet 12466 for ac_prog in cygpath 12467 do 12468 # Extract the first word of "$ac_prog", so it can be a program name with args. 12469 set dummy $ac_prog; ac_word=$2 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12471 $as_echo_n "checking for $ac_word... " >&6; } 12472 if ${ac_cv_path_CYGPATH+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474 else 12475 case $CYGPATH in 12476 [\\/]* | ?:[\\/]*) 12477 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12478 ;; 12479 *) 12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12481 for as_dir in $PATH 12482 do 12483 IFS=$as_save_IFS 12484 test -z "$as_dir" && as_dir=. 12485 for ac_exec_ext in '' $ac_executable_extensions; do 12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12487 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12489 break 2 12490 fi 12491 done 12492 done 12493 IFS=$as_save_IFS 12494 12495 ;; 12496 esac 12497 fi 12498 CYGPATH=$ac_cv_path_CYGPATH 12499 if test -n "$CYGPATH"; then 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12501 $as_echo "$CYGPATH" >&6; } 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504 $as_echo "no" >&6; } 12505 fi 12506 12507 12508 test -n "$CYGPATH" && break 12509 done 12510 12511 else 12512 # The variable is set, but is it from the command line or the environment? 12513 12514 # Try to remove the string !CYGPATH! from our list. 12515 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12516 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12517 # If it failed, the variable was not from the command line. Ignore it, 12518 # but warn the user (except for BASH, which is always set by the calling BASH). 12519 if test "xCYGPATH" != xBASH; then 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12521 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12522 fi 12523 # Try to locate tool using the code snippet 12524 for ac_prog in cygpath 12525 do 12526 # Extract the first word of "$ac_prog", so it can be a program name with args. 12527 set dummy $ac_prog; ac_word=$2 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12529 $as_echo_n "checking for $ac_word... " >&6; } 12530 if ${ac_cv_path_CYGPATH+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532 else 12533 case $CYGPATH in 12534 [\\/]* | ?:[\\/]*) 12535 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12536 ;; 12537 *) 12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12539 for as_dir in $PATH 12540 do 12541 IFS=$as_save_IFS 12542 test -z "$as_dir" && as_dir=. 12543 for ac_exec_ext in '' $ac_executable_extensions; do 12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12545 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12547 break 2 12548 fi 12549 done 12550 done 12551 IFS=$as_save_IFS 12552 12553 ;; 12554 esac 12555 fi 12556 CYGPATH=$ac_cv_path_CYGPATH 12557 if test -n "$CYGPATH"; then 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12559 $as_echo "$CYGPATH" >&6; } 12560 else 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12562 $as_echo "no" >&6; } 12563 fi 12564 12565 12566 test -n "$CYGPATH" && break 12567 done 12568 12569 else 12570 # If it succeeded, then it was overridden by the user. We will use it 12571 # for the tool. 12572 12573 # First remove it from the list of overridden variables, so we can test 12574 # for unknown variables in the end. 12575 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12576 12577 # Check if the provided tool contains a complete path. 12578 tool_specified="$CYGPATH" 12579 tool_basename="${tool_specified##*/}" 12580 if test "x$tool_basename" = "x$tool_specified"; then 12581 # A command without a complete path is provided, search $PATH. 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12583 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12584 # Extract the first word of "$tool_basename", so it can be a program name with args. 12585 set dummy $tool_basename; ac_word=$2 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12587 $as_echo_n "checking for $ac_word... " >&6; } 12588 if ${ac_cv_path_CYGPATH+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590 else 12591 case $CYGPATH in 12592 [\\/]* | ?:[\\/]*) 12593 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12594 ;; 12595 *) 12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12597 for as_dir in $PATH 12598 do 12599 IFS=$as_save_IFS 12600 test -z "$as_dir" && as_dir=. 12601 for ac_exec_ext in '' $ac_executable_extensions; do 12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12603 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12605 break 2 12606 fi 12607 done 12608 done 12609 IFS=$as_save_IFS 12610 12611 ;; 12612 esac 12613 fi 12614 CYGPATH=$ac_cv_path_CYGPATH 12615 if test -n "$CYGPATH"; then 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12617 $as_echo "$CYGPATH" >&6; } 12618 else 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620 $as_echo "no" >&6; } 12621 fi 12622 12623 12624 if test "x$CYGPATH" = x; then 12625 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12626 fi 12627 else 12628 # Otherwise we believe it is a complete path. Use it as it is. 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12630 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12632 $as_echo_n "checking for CYGPATH... " >&6; } 12633 if test ! -x "$tool_specified"; then 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12635 $as_echo "not found" >&6; } 12636 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12637 fi 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12639 $as_echo "$tool_specified" >&6; } 12640 fi 12641 fi 12642 fi 12643 12644 12645 12646 12647 # Publish this variable in the help. 12648 12649 12650 if test "x$READLINK" = x; then 12651 # The variable is not set by user, try to locate tool using the code snippet 12652 for ac_prog in greadlink readlink 12653 do 12654 # Extract the first word of "$ac_prog", so it can be a program name with args. 12655 set dummy $ac_prog; ac_word=$2 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12657 $as_echo_n "checking for $ac_word... " >&6; } 12658 if ${ac_cv_path_READLINK+:} false; then : 12659 $as_echo_n "(cached) " >&6 12660 else 12661 case $READLINK in 12662 [\\/]* | ?:[\\/]*) 12663 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12664 ;; 12665 *) 12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12667 for as_dir in $PATH 12668 do 12669 IFS=$as_save_IFS 12670 test -z "$as_dir" && as_dir=. 12671 for ac_exec_ext in '' $ac_executable_extensions; do 12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12673 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12675 break 2 12676 fi 12677 done 12678 done 12679 IFS=$as_save_IFS 12680 12681 ;; 12682 esac 12683 fi 12684 READLINK=$ac_cv_path_READLINK 12685 if test -n "$READLINK"; then 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12687 $as_echo "$READLINK" >&6; } 12688 else 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12690 $as_echo "no" >&6; } 12691 fi 12692 12693 12694 test -n "$READLINK" && break 12695 done 12696 12697 else 12698 # The variable is set, but is it from the command line or the environment? 12699 12700 # Try to remove the string !READLINK! from our list. 12701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12703 # If it failed, the variable was not from the command line. Ignore it, 12704 # but warn the user (except for BASH, which is always set by the calling BASH). 12705 if test "xREADLINK" != xBASH; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12707 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12708 fi 12709 # Try to locate tool using the code snippet 12710 for ac_prog in greadlink readlink 12711 do 12712 # Extract the first word of "$ac_prog", so it can be a program name with args. 12713 set dummy $ac_prog; ac_word=$2 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12715 $as_echo_n "checking for $ac_word... " >&6; } 12716 if ${ac_cv_path_READLINK+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718 else 12719 case $READLINK in 12720 [\\/]* | ?:[\\/]*) 12721 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12722 ;; 12723 *) 12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12725 for as_dir in $PATH 12726 do 12727 IFS=$as_save_IFS 12728 test -z "$as_dir" && as_dir=. 12729 for ac_exec_ext in '' $ac_executable_extensions; do 12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12731 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12733 break 2 12734 fi 12735 done 12736 done 12737 IFS=$as_save_IFS 12738 12739 ;; 12740 esac 12741 fi 12742 READLINK=$ac_cv_path_READLINK 12743 if test -n "$READLINK"; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12745 $as_echo "$READLINK" >&6; } 12746 else 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12748 $as_echo "no" >&6; } 12749 fi 12750 12751 12752 test -n "$READLINK" && break 12753 done 12754 12755 else 12756 # If it succeeded, then it was overridden by the user. We will use it 12757 # for the tool. 12758 12759 # First remove it from the list of overridden variables, so we can test 12760 # for unknown variables in the end. 12761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12762 12763 # Check if the provided tool contains a complete path. 12764 tool_specified="$READLINK" 12765 tool_basename="${tool_specified##*/}" 12766 if test "x$tool_basename" = "x$tool_specified"; then 12767 # A command without a complete path is provided, search $PATH. 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12769 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12770 # Extract the first word of "$tool_basename", so it can be a program name with args. 12771 set dummy $tool_basename; ac_word=$2 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12773 $as_echo_n "checking for $ac_word... " >&6; } 12774 if ${ac_cv_path_READLINK+:} false; then : 12775 $as_echo_n "(cached) " >&6 12776 else 12777 case $READLINK in 12778 [\\/]* | ?:[\\/]*) 12779 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12780 ;; 12781 *) 12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12783 for as_dir in $PATH 12784 do 12785 IFS=$as_save_IFS 12786 test -z "$as_dir" && as_dir=. 12787 for ac_exec_ext in '' $ac_executable_extensions; do 12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12789 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12791 break 2 12792 fi 12793 done 12794 done 12795 IFS=$as_save_IFS 12796 12797 ;; 12798 esac 12799 fi 12800 READLINK=$ac_cv_path_READLINK 12801 if test -n "$READLINK"; then 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12803 $as_echo "$READLINK" >&6; } 12804 else 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12806 $as_echo "no" >&6; } 12807 fi 12808 12809 12810 if test "x$READLINK" = x; then 12811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12812 fi 12813 else 12814 # Otherwise we believe it is a complete path. Use it as it is. 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12816 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12818 $as_echo_n "checking for READLINK... " >&6; } 12819 if test ! -x "$tool_specified"; then 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12821 $as_echo "not found" >&6; } 12822 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12823 fi 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12825 $as_echo "$tool_specified" >&6; } 12826 fi 12827 fi 12828 fi 12829 12830 12831 12832 12833 # Publish this variable in the help. 12834 12835 12836 if test "x$DF" = x; then 12837 # The variable is not set by user, try to locate tool using the code snippet 12838 for ac_prog in df 12839 do 12840 # Extract the first word of "$ac_prog", so it can be a program name with args. 12841 set dummy $ac_prog; ac_word=$2 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843 $as_echo_n "checking for $ac_word... " >&6; } 12844 if ${ac_cv_path_DF+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846 else 12847 case $DF in 12848 [\\/]* | ?:[\\/]*) 12849 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12850 ;; 12851 *) 12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12853 for as_dir in $PATH 12854 do 12855 IFS=$as_save_IFS 12856 test -z "$as_dir" && as_dir=. 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12859 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863 done 12864 done 12865 IFS=$as_save_IFS 12866 12867 ;; 12868 esac 12869 fi 12870 DF=$ac_cv_path_DF 12871 if test -n "$DF"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12873 $as_echo "$DF" >&6; } 12874 else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876 $as_echo "no" >&6; } 12877 fi 12878 12879 12880 test -n "$DF" && break 12881 done 12882 12883 else 12884 # The variable is set, but is it from the command line or the environment? 12885 12886 # Try to remove the string !DF! from our list. 12887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12889 # If it failed, the variable was not from the command line. Ignore it, 12890 # but warn the user (except for BASH, which is always set by the calling BASH). 12891 if test "xDF" != xBASH; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12893 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12894 fi 12895 # Try to locate tool using the code snippet 12896 for ac_prog in df 12897 do 12898 # Extract the first word of "$ac_prog", so it can be a program name with args. 12899 set dummy $ac_prog; ac_word=$2 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12901 $as_echo_n "checking for $ac_word... " >&6; } 12902 if ${ac_cv_path_DF+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904 else 12905 case $DF in 12906 [\\/]* | ?:[\\/]*) 12907 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12908 ;; 12909 *) 12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12911 for as_dir in $PATH 12912 do 12913 IFS=$as_save_IFS 12914 test -z "$as_dir" && as_dir=. 12915 for ac_exec_ext in '' $ac_executable_extensions; do 12916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12917 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12919 break 2 12920 fi 12921 done 12922 done 12923 IFS=$as_save_IFS 12924 12925 ;; 12926 esac 12927 fi 12928 DF=$ac_cv_path_DF 12929 if test -n "$DF"; then 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12931 $as_echo "$DF" >&6; } 12932 else 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12934 $as_echo "no" >&6; } 12935 fi 12936 12937 12938 test -n "$DF" && break 12939 done 12940 12941 else 12942 # If it succeeded, then it was overridden by the user. We will use it 12943 # for the tool. 12944 12945 # First remove it from the list of overridden variables, so we can test 12946 # for unknown variables in the end. 12947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12948 12949 # Check if the provided tool contains a complete path. 12950 tool_specified="$DF" 12951 tool_basename="${tool_specified##*/}" 12952 if test "x$tool_basename" = "x$tool_specified"; then 12953 # A command without a complete path is provided, search $PATH. 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12955 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12956 # Extract the first word of "$tool_basename", so it can be a program name with args. 12957 set dummy $tool_basename; ac_word=$2 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12959 $as_echo_n "checking for $ac_word... " >&6; } 12960 if ${ac_cv_path_DF+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962 else 12963 case $DF in 12964 [\\/]* | ?:[\\/]*) 12965 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12966 ;; 12967 *) 12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12969 for as_dir in $PATH 12970 do 12971 IFS=$as_save_IFS 12972 test -z "$as_dir" && as_dir=. 12973 for ac_exec_ext in '' $ac_executable_extensions; do 12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12975 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12977 break 2 12978 fi 12979 done 12980 done 12981 IFS=$as_save_IFS 12982 12983 ;; 12984 esac 12985 fi 12986 DF=$ac_cv_path_DF 12987 if test -n "$DF"; then 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12989 $as_echo "$DF" >&6; } 12990 else 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12992 $as_echo "no" >&6; } 12993 fi 12994 12995 12996 if test "x$DF" = x; then 12997 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12998 fi 12999 else 13000 # Otherwise we believe it is a complete path. Use it as it is. 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13002 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13004 $as_echo_n "checking for DF... " >&6; } 13005 if test ! -x "$tool_specified"; then 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13007 $as_echo "not found" >&6; } 13008 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13009 fi 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13011 $as_echo "$tool_specified" >&6; } 13012 fi 13013 fi 13014 fi 13015 13016 13017 13018 13019 # Publish this variable in the help. 13020 13021 13022 if test "x$SETFILE" = x; then 13023 # The variable is not set by user, try to locate tool using the code snippet 13024 for ac_prog in SetFile 13025 do 13026 # Extract the first word of "$ac_prog", so it can be a program name with args. 13027 set dummy $ac_prog; ac_word=$2 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13029 $as_echo_n "checking for $ac_word... " >&6; } 13030 if ${ac_cv_path_SETFILE+:} false; then : 13031 $as_echo_n "(cached) " >&6 13032 else 13033 case $SETFILE in 13034 [\\/]* | ?:[\\/]*) 13035 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13036 ;; 13037 *) 13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13039 for as_dir in $PATH 13040 do 13041 IFS=$as_save_IFS 13042 test -z "$as_dir" && as_dir=. 13043 for ac_exec_ext in '' $ac_executable_extensions; do 13044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13045 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13047 break 2 13048 fi 13049 done 13050 done 13051 IFS=$as_save_IFS 13052 13053 ;; 13054 esac 13055 fi 13056 SETFILE=$ac_cv_path_SETFILE 13057 if test -n "$SETFILE"; then 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13059 $as_echo "$SETFILE" >&6; } 13060 else 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13062 $as_echo "no" >&6; } 13063 fi 13064 13065 13066 test -n "$SETFILE" && break 13067 done 13068 13069 else 13070 # The variable is set, but is it from the command line or the environment? 13071 13072 # Try to remove the string !SETFILE! from our list. 13073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13075 # If it failed, the variable was not from the command line. Ignore it, 13076 # but warn the user (except for BASH, which is always set by the calling BASH). 13077 if test "xSETFILE" != xBASH; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13079 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13080 fi 13081 # Try to locate tool using the code snippet 13082 for ac_prog in SetFile 13083 do 13084 # Extract the first word of "$ac_prog", so it can be a program name with args. 13085 set dummy $ac_prog; ac_word=$2 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13087 $as_echo_n "checking for $ac_word... " >&6; } 13088 if ${ac_cv_path_SETFILE+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090 else 13091 case $SETFILE in 13092 [\\/]* | ?:[\\/]*) 13093 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13094 ;; 13095 *) 13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13097 for as_dir in $PATH 13098 do 13099 IFS=$as_save_IFS 13100 test -z "$as_dir" && as_dir=. 13101 for ac_exec_ext in '' $ac_executable_extensions; do 13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13103 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13105 break 2 13106 fi 13107 done 13108 done 13109 IFS=$as_save_IFS 13110 13111 ;; 13112 esac 13113 fi 13114 SETFILE=$ac_cv_path_SETFILE 13115 if test -n "$SETFILE"; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13117 $as_echo "$SETFILE" >&6; } 13118 else 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13120 $as_echo "no" >&6; } 13121 fi 13122 13123 13124 test -n "$SETFILE" && break 13125 done 13126 13127 else 13128 # If it succeeded, then it was overridden by the user. We will use it 13129 # for the tool. 13130 13131 # First remove it from the list of overridden variables, so we can test 13132 # for unknown variables in the end. 13133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13134 13135 # Check if the provided tool contains a complete path. 13136 tool_specified="$SETFILE" 13137 tool_basename="${tool_specified##*/}" 13138 if test "x$tool_basename" = "x$tool_specified"; then 13139 # A command without a complete path is provided, search $PATH. 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13141 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13142 # Extract the first word of "$tool_basename", so it can be a program name with args. 13143 set dummy $tool_basename; ac_word=$2 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13145 $as_echo_n "checking for $ac_word... " >&6; } 13146 if ${ac_cv_path_SETFILE+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148 else 13149 case $SETFILE in 13150 [\\/]* | ?:[\\/]*) 13151 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13152 ;; 13153 *) 13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13155 for as_dir in $PATH 13156 do 13157 IFS=$as_save_IFS 13158 test -z "$as_dir" && as_dir=. 13159 for ac_exec_ext in '' $ac_executable_extensions; do 13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13161 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13163 break 2 13164 fi 13165 done 13166 done 13167 IFS=$as_save_IFS 13168 13169 ;; 13170 esac 13171 fi 13172 SETFILE=$ac_cv_path_SETFILE 13173 if test -n "$SETFILE"; then 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13175 $as_echo "$SETFILE" >&6; } 13176 else 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13178 $as_echo "no" >&6; } 13179 fi 13180 13181 13182 if test "x$SETFILE" = x; then 13183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13184 fi 13185 else 13186 # Otherwise we believe it is a complete path. Use it as it is. 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13188 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13190 $as_echo_n "checking for SETFILE... " >&6; } 13191 if test ! -x "$tool_specified"; then 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13193 $as_echo "not found" >&6; } 13194 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13195 fi 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13197 $as_echo "$tool_specified" >&6; } 13198 fi 13199 fi 13200 fi 13201 13202 13203 13204 13205 # Publish this variable in the help. 13206 13207 13208 if test "x$CPIO" = x; then 13209 # The variable is not set by user, try to locate tool using the code snippet 13210 for ac_prog in cpio bsdcpio 13211 do 13212 # Extract the first word of "$ac_prog", so it can be a program name with args. 13213 set dummy $ac_prog; ac_word=$2 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13215 $as_echo_n "checking for $ac_word... " >&6; } 13216 if ${ac_cv_path_CPIO+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218 else 13219 case $CPIO in 13220 [\\/]* | ?:[\\/]*) 13221 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13222 ;; 13223 *) 13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13225 for as_dir in $PATH 13226 do 13227 IFS=$as_save_IFS 13228 test -z "$as_dir" && as_dir=. 13229 for ac_exec_ext in '' $ac_executable_extensions; do 13230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13231 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13233 break 2 13234 fi 13235 done 13236 done 13237 IFS=$as_save_IFS 13238 13239 ;; 13240 esac 13241 fi 13242 CPIO=$ac_cv_path_CPIO 13243 if test -n "$CPIO"; then 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13245 $as_echo "$CPIO" >&6; } 13246 else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248 $as_echo "no" >&6; } 13249 fi 13250 13251 13252 test -n "$CPIO" && break 13253 done 13254 13255 else 13256 # The variable is set, but is it from the command line or the environment? 13257 13258 # Try to remove the string !CPIO! from our list. 13259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13261 # If it failed, the variable was not from the command line. Ignore it, 13262 # but warn the user (except for BASH, which is always set by the calling BASH). 13263 if test "xCPIO" != xBASH; then 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13265 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13266 fi 13267 # Try to locate tool using the code snippet 13268 for ac_prog in cpio bsdcpio 13269 do 13270 # Extract the first word of "$ac_prog", so it can be a program name with args. 13271 set dummy $ac_prog; ac_word=$2 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13273 $as_echo_n "checking for $ac_word... " >&6; } 13274 if ${ac_cv_path_CPIO+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276 else 13277 case $CPIO in 13278 [\\/]* | ?:[\\/]*) 13279 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13280 ;; 13281 *) 13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13283 for as_dir in $PATH 13284 do 13285 IFS=$as_save_IFS 13286 test -z "$as_dir" && as_dir=. 13287 for ac_exec_ext in '' $ac_executable_extensions; do 13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13289 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13291 break 2 13292 fi 13293 done 13294 done 13295 IFS=$as_save_IFS 13296 13297 ;; 13298 esac 13299 fi 13300 CPIO=$ac_cv_path_CPIO 13301 if test -n "$CPIO"; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13303 $as_echo "$CPIO" >&6; } 13304 else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13306 $as_echo "no" >&6; } 13307 fi 13308 13309 13310 test -n "$CPIO" && break 13311 done 13312 13313 else 13314 # If it succeeded, then it was overridden by the user. We will use it 13315 # for the tool. 13316 13317 # First remove it from the list of overridden variables, so we can test 13318 # for unknown variables in the end. 13319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13320 13321 # Check if the provided tool contains a complete path. 13322 tool_specified="$CPIO" 13323 tool_basename="${tool_specified##*/}" 13324 if test "x$tool_basename" = "x$tool_specified"; then 13325 # A command without a complete path is provided, search $PATH. 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13327 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13328 # Extract the first word of "$tool_basename", so it can be a program name with args. 13329 set dummy $tool_basename; ac_word=$2 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13331 $as_echo_n "checking for $ac_word... " >&6; } 13332 if ${ac_cv_path_CPIO+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334 else 13335 case $CPIO in 13336 [\\/]* | ?:[\\/]*) 13337 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13338 ;; 13339 *) 13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13341 for as_dir in $PATH 13342 do 13343 IFS=$as_save_IFS 13344 test -z "$as_dir" && as_dir=. 13345 for ac_exec_ext in '' $ac_executable_extensions; do 13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13347 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13349 break 2 13350 fi 13351 done 13352 done 13353 IFS=$as_save_IFS 13354 13355 ;; 13356 esac 13357 fi 13358 CPIO=$ac_cv_path_CPIO 13359 if test -n "$CPIO"; then 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13361 $as_echo "$CPIO" >&6; } 13362 else 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13364 $as_echo "no" >&6; } 13365 fi 13366 13367 13368 if test "x$CPIO" = x; then 13369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13370 fi 13371 else 13372 # Otherwise we believe it is a complete path. Use it as it is. 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13374 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13376 $as_echo_n "checking for CPIO... " >&6; } 13377 if test ! -x "$tool_specified"; then 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13379 $as_echo "not found" >&6; } 13380 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13381 fi 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13383 $as_echo "$tool_specified" >&6; } 13384 fi 13385 fi 13386 fi 13387 13388 13389 13390 13391 # Now we can determine OpenJDK build and target platforms. This is required to 13392 # have early on. 13393 # Make sure we can run config.sub. 13394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13395 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13396 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13398 $as_echo_n "checking build system type... " >&6; } 13399 if ${ac_cv_build+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401 else 13402 ac_build_alias=$build_alias 13403 test "x$ac_build_alias" = x && 13404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13405 test "x$ac_build_alias" = x && 13406 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13409 13410 fi 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13412 $as_echo "$ac_cv_build" >&6; } 13413 case $ac_cv_build in 13414 *-*-*) ;; 13415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13416 esac 13417 build=$ac_cv_build 13418 ac_save_IFS=$IFS; IFS='-' 13419 set x $ac_cv_build 13420 shift 13421 build_cpu=$1 13422 build_vendor=$2 13423 shift; shift 13424 # Remember, the first character of IFS is used to create $*, 13425 # except with old shells: 13426 build_os=$* 13427 IFS=$ac_save_IFS 13428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13429 13430 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13432 $as_echo_n "checking host system type... " >&6; } 13433 if ${ac_cv_host+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435 else 13436 if test "x$host_alias" = x; then 13437 ac_cv_host=$ac_cv_build 13438 else 13439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13441 fi 13442 13443 fi 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13445 $as_echo "$ac_cv_host" >&6; } 13446 case $ac_cv_host in 13447 *-*-*) ;; 13448 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13449 esac 13450 host=$ac_cv_host 13451 ac_save_IFS=$IFS; IFS='-' 13452 set x $ac_cv_host 13453 shift 13454 host_cpu=$1 13455 host_vendor=$2 13456 shift; shift 13457 # Remember, the first character of IFS is used to create $*, 13458 # except with old shells: 13459 host_os=$* 13460 IFS=$ac_save_IFS 13461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13462 13463 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13465 $as_echo_n "checking target system type... " >&6; } 13466 if ${ac_cv_target+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468 else 13469 if test "x$target_alias" = x; then 13470 ac_cv_target=$ac_cv_host 13471 else 13472 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13474 fi 13475 13476 fi 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13478 $as_echo "$ac_cv_target" >&6; } 13479 case $ac_cv_target in 13480 *-*-*) ;; 13481 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13482 esac 13483 target=$ac_cv_target 13484 ac_save_IFS=$IFS; IFS='-' 13485 set x $ac_cv_target 13486 shift 13487 target_cpu=$1 13488 target_vendor=$2 13489 shift; shift 13490 # Remember, the first character of IFS is used to create $*, 13491 # except with old shells: 13492 target_os=$* 13493 IFS=$ac_save_IFS 13494 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13495 13496 13497 # The aliases save the names the user supplied, while $host etc. 13498 # will get canonicalized. 13499 test -n "$target_alias" && 13500 test "$program_prefix$program_suffix$program_transform_name" = \ 13501 NONENONEs,x,x, && 13502 program_prefix=${target_alias}- 13503 13504 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13505 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13506 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13507 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13508 # to use the configure naming style. 13509 13510 13511 13512 13513 13514 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13515 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13516 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13517 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13518 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13519 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13520 13521 13522 13523 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13524 13525 case "$build_os" in 13526 *linux*) 13527 VAR_OS=linux 13528 VAR_OS_API=posix 13529 VAR_OS_ENV=linux 13530 ;; 13531 *solaris*) 13532 VAR_OS=solaris 13533 VAR_OS_API=posix 13534 VAR_OS_ENV=solaris 13535 ;; 13536 *darwin*) 13537 VAR_OS=macosx 13538 VAR_OS_API=posix 13539 VAR_OS_ENV=macosx 13540 ;; 13541 *bsd*) 13542 VAR_OS=bsd 13543 VAR_OS_API=posix 13544 VAR_OS_ENV=bsd 13545 ;; 13546 *cygwin*) 13547 VAR_OS=windows 13548 VAR_OS_API=winapi 13549 VAR_OS_ENV=windows.cygwin 13550 ;; 13551 *mingw*) 13552 VAR_OS=windows 13553 VAR_OS_API=winapi 13554 VAR_OS_ENV=windows.msys 13555 ;; 13556 *aix*) 13557 VAR_OS=aix 13558 VAR_OS_API=posix 13559 VAR_OS_ENV=aix 13560 ;; 13561 *) 13562 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13563 ;; 13564 esac 13565 13566 13567 # First argument is the cpu name from the trip/quad 13568 case "$build_cpu" in 13569 x86_64) 13570 VAR_CPU=x86_64 13571 VAR_CPU_ARCH=x86 13572 VAR_CPU_BITS=64 13573 VAR_CPU_ENDIAN=little 13574 ;; 13575 i?86) 13576 VAR_CPU=x86 13577 VAR_CPU_ARCH=x86 13578 VAR_CPU_BITS=32 13579 VAR_CPU_ENDIAN=little 13580 ;; 13581 arm*) 13582 VAR_CPU=arm 13583 VAR_CPU_ARCH=arm 13584 VAR_CPU_BITS=32 13585 VAR_CPU_ENDIAN=little 13586 ;; 13587 powerpc) 13588 VAR_CPU=ppc 13589 VAR_CPU_ARCH=ppc 13590 VAR_CPU_BITS=32 13591 VAR_CPU_ENDIAN=big 13592 ;; 13593 powerpc64) 13594 VAR_CPU=ppc64 13595 VAR_CPU_ARCH=ppc 13596 VAR_CPU_BITS=64 13597 VAR_CPU_ENDIAN=big 13598 ;; 13599 powerpc64le) 13600 VAR_CPU=ppc64 13601 VAR_CPU_ARCH=ppc 13602 VAR_CPU_BITS=64 13603 VAR_CPU_ENDIAN=little 13604 ;; 13605 s390) 13606 VAR_CPU=s390 13607 VAR_CPU_ARCH=s390 13608 VAR_CPU_BITS=32 13609 VAR_CPU_ENDIAN=big 13610 ;; 13611 s390x) 13612 VAR_CPU=s390x 13613 VAR_CPU_ARCH=s390 13614 VAR_CPU_BITS=64 13615 VAR_CPU_ENDIAN=big 13616 ;; 13617 sparc) 13618 VAR_CPU=sparc 13619 VAR_CPU_ARCH=sparc 13620 VAR_CPU_BITS=32 13621 VAR_CPU_ENDIAN=big 13622 ;; 13623 sparcv9|sparc64) 13624 VAR_CPU=sparcv9 13625 VAR_CPU_ARCH=sparc 13626 VAR_CPU_BITS=64 13627 VAR_CPU_ENDIAN=big 13628 ;; 13629 *) 13630 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13631 ;; 13632 esac 13633 13634 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13635 OPENJDK_BUILD_OS="$VAR_OS" 13636 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13637 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13638 OPENJDK_BUILD_CPU="$VAR_CPU" 13639 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13640 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13641 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13642 13643 13644 13645 13646 13647 13648 13649 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13651 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13653 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13654 13655 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13656 13657 case "$host_os" in 13658 *linux*) 13659 VAR_OS=linux 13660 VAR_OS_API=posix 13661 VAR_OS_ENV=linux 13662 ;; 13663 *solaris*) 13664 VAR_OS=solaris 13665 VAR_OS_API=posix 13666 VAR_OS_ENV=solaris 13667 ;; 13668 *darwin*) 13669 VAR_OS=macosx 13670 VAR_OS_API=posix 13671 VAR_OS_ENV=macosx 13672 ;; 13673 *bsd*) 13674 VAR_OS=bsd 13675 VAR_OS_API=posix 13676 VAR_OS_ENV=bsd 13677 ;; 13678 *cygwin*) 13679 VAR_OS=windows 13680 VAR_OS_API=winapi 13681 VAR_OS_ENV=windows.cygwin 13682 ;; 13683 *mingw*) 13684 VAR_OS=windows 13685 VAR_OS_API=winapi 13686 VAR_OS_ENV=windows.msys 13687 ;; 13688 *aix*) 13689 VAR_OS=aix 13690 VAR_OS_API=posix 13691 VAR_OS_ENV=aix 13692 ;; 13693 *) 13694 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13695 ;; 13696 esac 13697 13698 13699 # First argument is the cpu name from the trip/quad 13700 case "$host_cpu" in 13701 x86_64) 13702 VAR_CPU=x86_64 13703 VAR_CPU_ARCH=x86 13704 VAR_CPU_BITS=64 13705 VAR_CPU_ENDIAN=little 13706 ;; 13707 i?86) 13708 VAR_CPU=x86 13709 VAR_CPU_ARCH=x86 13710 VAR_CPU_BITS=32 13711 VAR_CPU_ENDIAN=little 13712 ;; 13713 arm*) 13714 VAR_CPU=arm 13715 VAR_CPU_ARCH=arm 13716 VAR_CPU_BITS=32 13717 VAR_CPU_ENDIAN=little 13718 ;; 13719 powerpc) 13720 VAR_CPU=ppc 13721 VAR_CPU_ARCH=ppc 13722 VAR_CPU_BITS=32 13723 VAR_CPU_ENDIAN=big 13724 ;; 13725 powerpc64) 13726 VAR_CPU=ppc64 13727 VAR_CPU_ARCH=ppc 13728 VAR_CPU_BITS=64 13729 VAR_CPU_ENDIAN=big 13730 ;; 13731 powerpc64le) 13732 VAR_CPU=ppc64 13733 VAR_CPU_ARCH=ppc 13734 VAR_CPU_BITS=64 13735 VAR_CPU_ENDIAN=little 13736 ;; 13737 s390) 13738 VAR_CPU=s390 13739 VAR_CPU_ARCH=s390 13740 VAR_CPU_BITS=32 13741 VAR_CPU_ENDIAN=big 13742 ;; 13743 s390x) 13744 VAR_CPU=s390x 13745 VAR_CPU_ARCH=s390 13746 VAR_CPU_BITS=64 13747 VAR_CPU_ENDIAN=big 13748 ;; 13749 sparc) 13750 VAR_CPU=sparc 13751 VAR_CPU_ARCH=sparc 13752 VAR_CPU_BITS=32 13753 VAR_CPU_ENDIAN=big 13754 ;; 13755 sparcv9|sparc64) 13756 VAR_CPU=sparcv9 13757 VAR_CPU_ARCH=sparc 13758 VAR_CPU_BITS=64 13759 VAR_CPU_ENDIAN=big 13760 ;; 13761 *) 13762 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13763 ;; 13764 esac 13765 13766 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13767 OPENJDK_TARGET_OS="$VAR_OS" 13768 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13769 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13770 OPENJDK_TARGET_CPU="$VAR_CPU" 13771 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13772 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13773 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13774 13775 13776 13777 13778 13779 13780 13781 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13783 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13785 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13786 13787 13788 13789 # Check whether --with-target-bits was given. 13790 if test "${with_target_bits+set}" = set; then : 13791 withval=$with_target_bits; 13792 fi 13793 13794 13795 # We have three types of compiles: 13796 # native == normal compilation, target system == build system 13797 # cross == traditional cross compilation, target system != build system; special toolchain needed 13798 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13799 # 13800 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13801 # We're doing a proper cross-compilation 13802 COMPILE_TYPE="cross" 13803 else 13804 COMPILE_TYPE="native" 13805 fi 13806 13807 if test "x$with_target_bits" != x; then 13808 if test "x$COMPILE_TYPE" = "xcross"; then 13809 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13810 fi 13811 13812 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13813 # A reduced build is requested 13814 COMPILE_TYPE="reduced" 13815 OPENJDK_TARGET_CPU_BITS=32 13816 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13817 OPENJDK_TARGET_CPU=x86 13818 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13819 OPENJDK_TARGET_CPU=sparc 13820 else 13821 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13822 fi 13823 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13824 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 13825 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13827 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13828 else 13829 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13830 fi 13831 fi 13832 13833 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13835 $as_echo_n "checking compilation type... " >&6; } 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13837 $as_echo "$COMPILE_TYPE" >&6; } 13838 13839 13840 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13841 REQUIRED_OS_NAME=SunOS 13842 REQUIRED_OS_VERSION=5.10 13843 fi 13844 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13845 REQUIRED_OS_NAME=Linux 13846 REQUIRED_OS_VERSION=2.6 13847 fi 13848 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13849 REQUIRED_OS_NAME=Windows 13850 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13851 REQUIRED_OS_VERSION=5.2 13852 else 13853 REQUIRED_OS_VERSION=5.1 13854 fi 13855 fi 13856 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13857 REQUIRED_OS_NAME=Darwin 13858 REQUIRED_OS_VERSION=11.2 13859 fi 13860 13861 13862 13863 13864 13865 # Also store the legacy naming of the cpu. 13866 # Ie i586 and amd64 instead of x86 and x86_64 13867 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13868 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13869 OPENJDK_TARGET_CPU_LEGACY="i586" 13870 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13871 # On all platforms except MacOSX replace x86_64 with amd64. 13872 OPENJDK_TARGET_CPU_LEGACY="amd64" 13873 fi 13874 13875 13876 # And the second legacy naming of the cpu. 13877 # Ie i386 and amd64 instead of x86 and x86_64. 13878 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13879 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13880 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13881 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13882 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13883 fi 13884 13885 13886 # This is the name of the cpu (but using i386 and amd64 instead of 13887 # x86 and x86_64, respectively), preceeded by a /, to be used when 13888 # locating libraries. On macosx, it's empty, though. 13889 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13890 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13891 OPENJDK_TARGET_CPU_LIBDIR="" 13892 fi 13893 13894 13895 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13896 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13897 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13898 OPENJDK_TARGET_CPU_ISADIR="" 13899 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13900 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13901 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13902 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13903 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13904 fi 13905 fi 13906 13907 13908 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13909 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13910 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13911 # On linux only, we replace x86 with i386. 13912 OPENJDK_TARGET_CPU_OSARCH="i386" 13913 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13914 # On all platforms except macosx, we replace x86_64 with amd64. 13915 OPENJDK_TARGET_CPU_OSARCH="amd64" 13916 fi 13917 13918 13919 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13920 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13921 OPENJDK_TARGET_CPU_JLI="i386" 13922 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13923 # On all platforms except macosx, we replace x86_64 with amd64. 13924 OPENJDK_TARGET_CPU_JLI="amd64" 13925 fi 13926 # Now setup the -D flags for building libjli. 13927 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13928 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13929 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13930 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13931 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13932 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13933 fi 13934 fi 13935 13936 13937 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13938 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13939 OPENJDK_TARGET_OS_API_DIR="unix" 13940 fi 13941 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13942 OPENJDK_TARGET_OS_API_DIR="windows" 13943 fi 13944 13945 13946 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13947 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13948 else 13949 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13950 fi 13951 13952 13953 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13954 A_LP64="LP64:=" 13955 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13956 # unpack200.exe 13957 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13958 ADD_LP64="-D_LP64=1" 13959 fi 13960 fi 13961 LP64=$A_LP64 13962 13963 13964 if test "x$COMPILE_TYPE" = "xcross"; then 13965 # FIXME: ... or should this include reduced builds..? 13966 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13967 else 13968 DEFINE_CROSS_COMPILE_ARCH="" 13969 fi 13970 13971 13972 # ZERO_ARCHDEF is used to enable architecture-specific code 13973 case "${OPENJDK_TARGET_CPU}" in 13974 ppc*) ZERO_ARCHDEF=PPC ;; 13975 s390*) ZERO_ARCHDEF=S390 ;; 13976 sparc*) ZERO_ARCHDEF=SPARC ;; 13977 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13978 x86) ZERO_ARCHDEF=IA32 ;; 13979 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13980 esac 13981 13982 13983 13984 13985 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13986 13987 # Save the current directory this script was started from 13988 CURDIR="$PWD" 13989 13990 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13991 PATH_SEP=";" 13992 13993 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13994 if test $SRC_ROOT_LENGTH -gt 100; then 13995 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13996 fi 13997 13998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14000 $as_echo_n "checking cygwin release... " >&6; } 14001 CYGWIN_VERSION=`$UNAME -r` 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14003 $as_echo "$CYGWIN_VERSION" >&6; } 14004 WINDOWS_ENV_VENDOR='cygwin' 14005 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14006 14007 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14008 if test "x$CYGWIN_VERSION_OK" = x; then 14009 { $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 14010 $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;} 14011 as_fn_error $? "Cannot continue" "$LINENO" 5 14012 fi 14013 if test "x$CYGPATH" = x; then 14014 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14015 fi 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14017 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14018 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14019 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14020 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14021 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14023 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14024 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14025 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14026 if test "x$test_cygdrive_prefix" = x; then 14027 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14028 fi 14029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14031 $as_echo_n "checking msys release... " >&6; } 14032 MSYS_VERSION=`$UNAME -r` 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14034 $as_echo "$MSYS_VERSION" >&6; } 14035 14036 WINDOWS_ENV_VENDOR='msys' 14037 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14038 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14040 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14041 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14042 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14043 14044 windows_path="$MSYS_ROOT_PATH" 14045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14046 unix_path=`$CYGPATH -u "$windows_path"` 14047 MSYS_ROOT_PATH="$unix_path" 14048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14050 MSYS_ROOT_PATH="$unix_path" 14051 fi 14052 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14054 $as_echo "$MSYS_ROOT_PATH" >&6; } 14055 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14056 else 14057 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14058 fi 14059 14060 # Test if windows or unix (cygwin/msys) find is first in path. 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14062 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14063 FIND_BINARY_OUTPUT=`find --version 2>&1` 14064 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14066 $as_echo "unix style" >&6; } 14067 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14069 $as_echo "Windows" >&6; } 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14071 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14072 { $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 14073 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14074 as_fn_error $? "Cannot continue" "$LINENO" 5 14075 else 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14077 $as_echo "unknown" >&6; } 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14079 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14080 fi 14081 14082 else 14083 PATH_SEP=":" 14084 fi 14085 14086 14087 # We get the top-level directory from the supporting wrappers. 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14089 $as_echo_n "checking for top-level directory... " >&6; } 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14091 $as_echo "$TOPDIR" >&6; } 14092 14093 14094 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14095 14096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14097 14098 # Input might be given as Windows format, start by converting to 14099 # unix format. 14100 path="$CURDIR" 14101 new_path=`$CYGPATH -u "$path"` 14102 14103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14106 # "foo.exe" is OK but "foo" is an error. 14107 # 14108 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14109 # It is also a way to make sure we got the proper file name for the real test later on. 14110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14111 if test "x$test_shortpath" = x; then 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14113 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14114 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14115 fi 14116 14117 # Call helper function which possibly converts this using DOS-style short mode. 14118 # If so, the updated path is stored in $new_path. 14119 14120 input_path="$new_path" 14121 # Check if we need to convert this using DOS-style short mode. If the path 14122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14123 # take no chances and rewrite it. 14124 # Note: m4 eats our [], so we need to use [ and ] instead. 14125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14126 if test "x$has_forbidden_chars" != x; then 14127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14128 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14129 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14130 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14131 # Going to short mode and back again did indeed matter. Since short mode is 14132 # case insensitive, let's make it lowercase to improve readability. 14133 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14134 # Now convert it back to Unix-stile (cygpath) 14135 input_path=`$CYGPATH -u "$shortmode_path"` 14136 new_path="$input_path" 14137 fi 14138 fi 14139 14140 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14141 if test "x$test_cygdrive_prefix" = x; then 14142 # As a simple fix, exclude /usr/bin since it's not a real path. 14143 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14144 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14145 # a path prefixed by /cygdrive for fixpath to work. 14146 new_path="$CYGWIN_ROOT_PATH$input_path" 14147 fi 14148 fi 14149 14150 14151 if test "x$path" != "x$new_path"; then 14152 CURDIR="$new_path" 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14154 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14155 fi 14156 14157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14158 14159 path="$CURDIR" 14160 has_colon=`$ECHO $path | $GREP ^.:` 14161 new_path="$path" 14162 if test "x$has_colon" = x; then 14163 # Not in mixed or Windows style, start by that. 14164 new_path=`cmd //c echo $path` 14165 fi 14166 14167 14168 input_path="$new_path" 14169 # Check if we need to convert this using DOS-style short mode. If the path 14170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14171 # take no chances and rewrite it. 14172 # Note: m4 eats our [], so we need to use [ and ] instead. 14173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14174 if test "x$has_forbidden_chars" != x; then 14175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14176 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14177 fi 14178 14179 14180 windows_path="$new_path" 14181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14182 unix_path=`$CYGPATH -u "$windows_path"` 14183 new_path="$unix_path" 14184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14186 new_path="$unix_path" 14187 fi 14188 14189 if test "x$path" != "x$new_path"; then 14190 CURDIR="$new_path" 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14192 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14193 fi 14194 14195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14197 14198 else 14199 # We're on a posix platform. Hooray! :) 14200 path="$CURDIR" 14201 has_space=`$ECHO "$path" | $GREP " "` 14202 if test "x$has_space" != x; then 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14204 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14205 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14206 fi 14207 14208 # Use eval to expand a potential ~ 14209 eval path="$path" 14210 if test ! -f "$path" && test ! -d "$path"; then 14211 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14212 fi 14213 14214 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14215 fi 14216 14217 14218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14219 14220 # Input might be given as Windows format, start by converting to 14221 # unix format. 14222 path="$TOPDIR" 14223 new_path=`$CYGPATH -u "$path"` 14224 14225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14228 # "foo.exe" is OK but "foo" is an error. 14229 # 14230 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14231 # It is also a way to make sure we got the proper file name for the real test later on. 14232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14233 if test "x$test_shortpath" = x; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14235 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14236 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14237 fi 14238 14239 # Call helper function which possibly converts this using DOS-style short mode. 14240 # If so, the updated path is stored in $new_path. 14241 14242 input_path="$new_path" 14243 # Check if we need to convert this using DOS-style short mode. If the path 14244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14245 # take no chances and rewrite it. 14246 # Note: m4 eats our [], so we need to use [ and ] instead. 14247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14248 if test "x$has_forbidden_chars" != x; then 14249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14250 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14251 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14252 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14253 # Going to short mode and back again did indeed matter. Since short mode is 14254 # case insensitive, let's make it lowercase to improve readability. 14255 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14256 # Now convert it back to Unix-stile (cygpath) 14257 input_path=`$CYGPATH -u "$shortmode_path"` 14258 new_path="$input_path" 14259 fi 14260 fi 14261 14262 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14263 if test "x$test_cygdrive_prefix" = x; then 14264 # As a simple fix, exclude /usr/bin since it's not a real path. 14265 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14266 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14267 # a path prefixed by /cygdrive for fixpath to work. 14268 new_path="$CYGWIN_ROOT_PATH$input_path" 14269 fi 14270 fi 14271 14272 14273 if test "x$path" != "x$new_path"; then 14274 TOPDIR="$new_path" 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14276 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14277 fi 14278 14279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14280 14281 path="$TOPDIR" 14282 has_colon=`$ECHO $path | $GREP ^.:` 14283 new_path="$path" 14284 if test "x$has_colon" = x; then 14285 # Not in mixed or Windows style, start by that. 14286 new_path=`cmd //c echo $path` 14287 fi 14288 14289 14290 input_path="$new_path" 14291 # Check if we need to convert this using DOS-style short mode. If the path 14292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14293 # take no chances and rewrite it. 14294 # Note: m4 eats our [], so we need to use [ and ] instead. 14295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14296 if test "x$has_forbidden_chars" != x; then 14297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14298 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14299 fi 14300 14301 14302 windows_path="$new_path" 14303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14304 unix_path=`$CYGPATH -u "$windows_path"` 14305 new_path="$unix_path" 14306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14308 new_path="$unix_path" 14309 fi 14310 14311 if test "x$path" != "x$new_path"; then 14312 TOPDIR="$new_path" 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14314 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14315 fi 14316 14317 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14318 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14319 14320 else 14321 # We're on a posix platform. Hooray! :) 14322 path="$TOPDIR" 14323 has_space=`$ECHO "$path" | $GREP " "` 14324 if test "x$has_space" != x; then 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14326 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14327 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14328 fi 14329 14330 # Use eval to expand a potential ~ 14331 eval path="$path" 14332 if test ! -f "$path" && test ! -d "$path"; then 14333 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14334 fi 14335 14336 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14337 fi 14338 14339 # SRC_ROOT is a traditional alias for TOPDIR. 14340 SRC_ROOT=$TOPDIR 14341 14342 # Locate the directory of this script. 14343 AUTOCONF_DIR=$TOPDIR/common/autoconf 14344 14345 14346 # Setup default logging of stdout and stderr to build.log in the output root. 14347 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14348 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14349 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14350 14351 14352 14353 14354 14355 # Check if it's a pure open build or if custom sources are to be used. 14356 14357 # Check whether --enable-openjdk-only was given. 14358 if test "${enable_openjdk_only+set}" = set; then : 14359 enableval=$enable_openjdk_only; 14360 else 14361 enable_openjdk_only="no" 14362 fi 14363 14364 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14366 $as_echo_n "checking for presence of closed sources... " >&6; } 14367 if test -d "$SRC_ROOT/jdk/src/closed"; then 14368 CLOSED_SOURCE_PRESENT=yes 14369 else 14370 CLOSED_SOURCE_PRESENT=no 14371 fi 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14373 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14374 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14376 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14377 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14379 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14380 14381 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14382 OPENJDK=true 14383 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14385 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14386 fi 14387 else 14388 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14389 OPENJDK=true 14390 else 14391 OPENJDK=false 14392 fi 14393 fi 14394 14395 if test "x$OPENJDK" = "xtrue"; then 14396 SET_OPENJDK="OPENJDK=true" 14397 fi 14398 14399 14400 14401 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14402 # the IncludeCustomExtension macro. 14403 14404 14405 # Check whether --with-custom-make-dir was given. 14406 if test "${with_custom_make_dir+set}" = set; then : 14407 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 14408 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14409 fi 14410 14411 14412 14413 14414 # These are needed to be able to create a configuration name (and thus the output directory) 14415 14416 ############################################################################### 14417 # 14418 # Check which variant of the JDK that we want to build. 14419 # Currently we have: 14420 # normal: standard edition 14421 # but the custom make system may add other variants 14422 # 14423 # Effectively the JDK variant gives a name to a specific set of 14424 # modules to compile into the JDK. In the future, these modules 14425 # might even be Jigsaw modules. 14426 # 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14428 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14429 14430 # Check whether --with-jdk-variant was given. 14431 if test "${with_jdk_variant+set}" = set; then : 14432 withval=$with_jdk_variant; 14433 fi 14434 14435 14436 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14437 JDK_VARIANT="normal" 14438 else 14439 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14440 fi 14441 14442 14443 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14445 $as_echo "$JDK_VARIANT" >&6; } 14446 14447 14448 ############################################################################### 14449 # 14450 # Check which interpreter of the JVM we want to build. 14451 # Currently we have: 14452 # template: Template interpreter (the default) 14453 # cpp : C++ interpreter 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14455 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14456 14457 # Check whether --with-jvm-interpreter was given. 14458 if test "${with_jvm_interpreter+set}" = set; then : 14459 withval=$with_jvm_interpreter; 14460 fi 14461 14462 14463 if test "x$with_jvm_interpreter" = x; then 14464 with_jvm_interpreter="template" 14465 fi 14466 14467 JVM_INTERPRETER="$with_jvm_interpreter" 14468 14469 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14470 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14471 fi 14472 14473 14474 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14476 $as_echo "$with_jvm_interpreter" >&6; } 14477 14478 14479 14480 ############################################################################### 14481 # 14482 # Check which variants of the JVM that we want to build. 14483 # Currently we have: 14484 # server: normal interpreter and a tiered C1/C2 compiler 14485 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14486 # minimal1: reduced form of client with optional VM services and features stripped out 14487 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14488 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14489 # zero: no machine code interpreter, no compiler 14490 # zeroshark: zero interpreter and shark/llvm compiler backend 14491 # core: interpreter only, no compiler (only works on some platforms) 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14493 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14494 14495 # Check whether --with-jvm-variants was given. 14496 if test "${with_jvm_variants+set}" = set; then : 14497 withval=$with_jvm_variants; 14498 fi 14499 14500 14501 if test "x$with_jvm_variants" = x; then 14502 with_jvm_variants="server" 14503 fi 14504 14505 JVM_VARIANTS=",$with_jvm_variants," 14506 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,//'` 14507 14508 if test "x$TEST_VARIANTS" != "x,"; then 14509 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14510 fi 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14512 $as_echo "$with_jvm_variants" >&6; } 14513 14514 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14515 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14516 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14517 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14518 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14519 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14520 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14521 14522 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14523 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14524 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14525 fi 14526 fi 14527 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14528 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14529 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14530 fi 14531 fi 14532 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14533 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14534 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14535 fi 14536 fi 14537 14538 # Replace the commas with AND for use in the build directory name. 14539 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14540 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/'` 14541 if test "x$COUNT_VARIANTS" != "x,1"; then 14542 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14543 else 14544 BUILDING_MULTIPLE_JVM_VARIANTS=no 14545 fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 INCLUDE_SA=true 14557 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14558 INCLUDE_SA=false 14559 fi 14560 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14561 INCLUDE_SA=false 14562 fi 14563 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14564 INCLUDE_SA=false 14565 fi 14566 14567 14568 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14569 MACOSX_UNIVERSAL="true" 14570 fi 14571 14572 14573 14574 14575 ############################################################################### 14576 # 14577 # Set the debug level 14578 # release: no debug information, all optimizations, no asserts. 14579 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14580 # fastdebug: debug information (-g), all optimizations, all asserts 14581 # slowdebug: debug information (-g), no optimizations, all asserts 14582 # 14583 DEBUG_LEVEL="release" 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14585 $as_echo_n "checking which debug level to use... " >&6; } 14586 # Check whether --enable-debug was given. 14587 if test "${enable_debug+set}" = set; then : 14588 enableval=$enable_debug; 14589 ENABLE_DEBUG="${enableval}" 14590 DEBUG_LEVEL="fastdebug" 14591 14592 else 14593 ENABLE_DEBUG="no" 14594 fi 14595 14596 14597 14598 # Check whether --with-debug-level was given. 14599 if test "${with_debug_level+set}" = set; then : 14600 withval=$with_debug_level; 14601 DEBUG_LEVEL="${withval}" 14602 if test "x$ENABLE_DEBUG" = xyes; then 14603 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14604 fi 14605 14606 fi 14607 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14609 $as_echo "$DEBUG_LEVEL" >&6; } 14610 14611 if test "x$DEBUG_LEVEL" != xrelease && \ 14612 test "x$DEBUG_LEVEL" != xoptimized && \ 14613 test "x$DEBUG_LEVEL" != xfastdebug && \ 14614 test "x$DEBUG_LEVEL" != xslowdebug; then 14615 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14616 fi 14617 14618 14619 ############################################################################### 14620 # 14621 # Setup legacy vars/targets and new vars to deal with different debug levels. 14622 # 14623 14624 case $DEBUG_LEVEL in 14625 release ) 14626 VARIANT="OPT" 14627 FASTDEBUG="false" 14628 DEBUG_CLASSFILES="false" 14629 BUILD_VARIANT_RELEASE="" 14630 HOTSPOT_DEBUG_LEVEL="product" 14631 HOTSPOT_EXPORT="product" 14632 ;; 14633 fastdebug ) 14634 VARIANT="DBG" 14635 FASTDEBUG="true" 14636 DEBUG_CLASSFILES="true" 14637 BUILD_VARIANT_RELEASE="-fastdebug" 14638 HOTSPOT_DEBUG_LEVEL="fastdebug" 14639 HOTSPOT_EXPORT="fastdebug" 14640 ;; 14641 slowdebug ) 14642 VARIANT="DBG" 14643 FASTDEBUG="false" 14644 DEBUG_CLASSFILES="true" 14645 BUILD_VARIANT_RELEASE="-debug" 14646 HOTSPOT_DEBUG_LEVEL="debug" 14647 HOTSPOT_EXPORT="debug" 14648 ;; 14649 optimized ) 14650 VARIANT="OPT" 14651 FASTDEBUG="false" 14652 DEBUG_CLASSFILES="false" 14653 BUILD_VARIANT_RELEASE="-optimized" 14654 HOTSPOT_DEBUG_LEVEL="optimized" 14655 HOTSPOT_EXPORT="optimized" 14656 ;; 14657 esac 14658 14659 # The debug level 'optimized' is a little special because it is currently only 14660 # applicable to the HotSpot build where it means to build a completely 14661 # optimized version of the VM without any debugging code (like for the 14662 # 'release' debug level which is called 'product' in the HotSpot build) but 14663 # with the exception that it can contain additional code which is otherwise 14664 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14665 # test new and/or experimental features which are not intended for customer 14666 # shipment. Because these new features need to be tested and benchmarked in 14667 # real world scenarios, we want to build the containing JDK at the 'release' 14668 # debug level. 14669 if test "x$DEBUG_LEVEL" = xoptimized; then 14670 DEBUG_LEVEL="release" 14671 fi 14672 14673 ##### 14674 # Generate the legacy makefile targets for hotspot. 14675 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14676 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14677 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14678 # But until then ... 14679 HOTSPOT_TARGET="" 14680 14681 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14682 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14683 fi 14684 14685 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14686 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14687 fi 14688 14689 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14690 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14691 fi 14692 14693 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14694 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14695 fi 14696 14697 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14698 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14699 fi 14700 14701 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14702 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14703 fi 14704 14705 if test "x$JVM_VARIANT_CORE" = xtrue; then 14706 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14707 fi 14708 14709 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14710 14711 # On Macosx universal binaries are produced, but they only contain 14712 # 64 bit intel. This invalidates control of which jvms are built 14713 # from configure, but only server is valid anyway. Fix this 14714 # when hotspot makefiles are rewritten. 14715 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14716 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14717 fi 14718 14719 ##### 14720 14721 14722 14723 14724 14725 14726 14727 14728 # With basic setup done, call the custom early hook. 14729 14730 14731 # Check if we have devkits, extra paths or sysroot set. 14732 14733 14734 # Check whether --with-devkit was given. 14735 if test "${with_devkit+set}" = set; then : 14736 withval=$with_devkit; 14737 14738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14739 14740 # Input might be given as Windows format, start by converting to 14741 # unix format. 14742 path="$with_devkit" 14743 new_path=`$CYGPATH -u "$path"` 14744 14745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14748 # "foo.exe" is OK but "foo" is an error. 14749 # 14750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14751 # It is also a way to make sure we got the proper file name for the real test later on. 14752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14753 if test "x$test_shortpath" = x; then 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14755 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14756 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14757 fi 14758 14759 # Call helper function which possibly converts this using DOS-style short mode. 14760 # If so, the updated path is stored in $new_path. 14761 14762 input_path="$new_path" 14763 # Check if we need to convert this using DOS-style short mode. If the path 14764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14765 # take no chances and rewrite it. 14766 # Note: m4 eats our [], so we need to use [ and ] instead. 14767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14768 if test "x$has_forbidden_chars" != x; then 14769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14773 # Going to short mode and back again did indeed matter. Since short mode is 14774 # case insensitive, let's make it lowercase to improve readability. 14775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14776 # Now convert it back to Unix-stile (cygpath) 14777 input_path=`$CYGPATH -u "$shortmode_path"` 14778 new_path="$input_path" 14779 fi 14780 fi 14781 14782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14783 if test "x$test_cygdrive_prefix" = x; then 14784 # As a simple fix, exclude /usr/bin since it's not a real path. 14785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14787 # a path prefixed by /cygdrive for fixpath to work. 14788 new_path="$CYGWIN_ROOT_PATH$input_path" 14789 fi 14790 fi 14791 14792 14793 if test "x$path" != "x$new_path"; then 14794 with_devkit="$new_path" 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14796 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14797 fi 14798 14799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14800 14801 path="$with_devkit" 14802 has_colon=`$ECHO $path | $GREP ^.:` 14803 new_path="$path" 14804 if test "x$has_colon" = x; then 14805 # Not in mixed or Windows style, start by that. 14806 new_path=`cmd //c echo $path` 14807 fi 14808 14809 14810 input_path="$new_path" 14811 # Check if we need to convert this using DOS-style short mode. If the path 14812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14813 # take no chances and rewrite it. 14814 # Note: m4 eats our [], so we need to use [ and ] instead. 14815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14816 if test "x$has_forbidden_chars" != x; then 14817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14819 fi 14820 14821 14822 windows_path="$new_path" 14823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14824 unix_path=`$CYGPATH -u "$windows_path"` 14825 new_path="$unix_path" 14826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14828 new_path="$unix_path" 14829 fi 14830 14831 if test "x$path" != "x$new_path"; then 14832 with_devkit="$new_path" 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14834 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14835 fi 14836 14837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14839 14840 else 14841 # We're on a posix platform. Hooray! :) 14842 path="$with_devkit" 14843 has_space=`$ECHO "$path" | $GREP " "` 14844 if test "x$has_space" != x; then 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14846 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14848 fi 14849 14850 # Use eval to expand a potential ~ 14851 eval path="$path" 14852 if test ! -f "$path" && test ! -d "$path"; then 14853 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14854 fi 14855 14856 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14857 fi 14858 14859 DEVKIT_ROOT="$with_devkit" 14860 # Check for a meta data info file in the root of the devkit 14861 if test -f "$DEVKIT_ROOT/devkit.info"; then 14862 # This potentially sets the following: 14863 # DEVKIT_NAME: A descriptive name of the devkit 14864 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14865 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14866 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14867 . $DEVKIT_ROOT/devkit.info 14868 fi 14869 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14871 $as_echo_n "checking for devkit... " >&6; } 14872 if test "x$DEVKIT_NAME" != x; then 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14874 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14875 else 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14877 $as_echo "$DEVKIT_ROOT" >&6; } 14878 fi 14879 14880 if test "x$DEVKIT_EXTRA_PATH" != x; then 14881 14882 if test "x$DEVKIT_EXTRA_PATH" != x; then 14883 if test "x$EXTRA_PATH" = x; then 14884 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14885 else 14886 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14887 fi 14888 fi 14889 14890 fi 14891 14892 # Fallback default of just /bin if DEVKIT_PATH is not defined 14893 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14894 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14895 fi 14896 14897 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14898 if test "x$TOOLCHAIN_PATH" = x; then 14899 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14900 else 14901 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14902 fi 14903 fi 14904 14905 14906 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14907 # places for backwards compatiblity. 14908 if test "x$DEVKIT_SYSROOT" != x; then 14909 SYSROOT="$DEVKIT_SYSROOT" 14910 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14911 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14912 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14913 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14914 fi 14915 14916 14917 fi 14918 14919 14920 # You can force the sysroot if the sysroot encoded into the compiler tools 14921 # is not correct. 14922 14923 # Check whether --with-sys-root was given. 14924 if test "${with_sys_root+set}" = set; then : 14925 withval=$with_sys_root; SYSROOT=$with_sys_root 14926 14927 fi 14928 14929 14930 14931 # Check whether --with-sysroot was given. 14932 if test "${with_sysroot+set}" = set; then : 14933 withval=$with_sysroot; SYSROOT=$with_sysroot 14934 14935 fi 14936 14937 14938 14939 # Check whether --with-tools-dir was given. 14940 if test "${with_tools_dir+set}" = set; then : 14941 withval=$with_tools_dir; 14942 if test "x$with_tools_dir" != x; then 14943 if test "x$TOOLCHAIN_PATH" = x; then 14944 TOOLCHAIN_PATH="$with_tools_dir" 14945 else 14946 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14947 fi 14948 fi 14949 14950 14951 fi 14952 14953 14954 14955 # Check whether --with-toolchain-path was given. 14956 if test "${with_toolchain_path+set}" = set; then : 14957 withval=$with_toolchain_path; 14958 if test "x$with_toolchain_path" != x; then 14959 if test "x$TOOLCHAIN_PATH" = x; then 14960 TOOLCHAIN_PATH="$with_toolchain_path" 14961 else 14962 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14963 fi 14964 fi 14965 14966 14967 fi 14968 14969 14970 14971 # Check whether --with-extra-path was given. 14972 if test "${with_extra_path+set}" = set; then : 14973 withval=$with_extra_path; 14974 if test "x$with_extra_path" != x; then 14975 if test "x$EXTRA_PATH" = x; then 14976 EXTRA_PATH="$with_extra_path" 14977 else 14978 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14979 fi 14980 fi 14981 14982 14983 fi 14984 14985 14986 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 14987 # detect if Xcode is installed by running xcodebuild -version 14988 # if no Xcode installed, xcodebuild exits with 1 14989 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 14990 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 14991 # We need to use xcodebuild in the toolchain dir provided by the user, this will 14992 # fall back on the stub binary in /usr/bin/xcodebuild 14993 # Extract the first word of "xcodebuild", so it can be a program name with args. 14994 set dummy xcodebuild; ac_word=$2 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14996 $as_echo_n "checking for $ac_word... " >&6; } 14997 if ${ac_cv_path_XCODEBUILD+:} false; then : 14998 $as_echo_n "(cached) " >&6 14999 else 15000 case $XCODEBUILD in 15001 [\\/]* | ?:[\\/]*) 15002 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15003 ;; 15004 *) 15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15006 for as_dir in $TOOLCHAIN_PATH 15007 do 15008 IFS=$as_save_IFS 15009 test -z "$as_dir" && as_dir=. 15010 for ac_exec_ext in '' $ac_executable_extensions; do 15011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15012 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15014 break 2 15015 fi 15016 done 15017 done 15018 IFS=$as_save_IFS 15019 15020 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15021 ;; 15022 esac 15023 fi 15024 XCODEBUILD=$ac_cv_path_XCODEBUILD 15025 if test -n "$XCODEBUILD"; then 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15027 $as_echo "$XCODEBUILD" >&6; } 15028 else 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15030 $as_echo "no" >&6; } 15031 fi 15032 15033 15034 else 15035 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15036 # when only the command line tools are installed there are no SDKs, so headers 15037 # are copied into the system frameworks 15038 XCODEBUILD= 15039 15040 fi 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15043 $as_echo_n "checking for sdk name... " >&6; } 15044 15045 # Check whether --with-sdk-name was given. 15046 if test "${with_sdk_name+set}" = set; then : 15047 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15048 15049 fi 15050 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15052 $as_echo "$SDKNAME" >&6; } 15053 15054 # if toolchain path is specified then don't rely on system headers, they may not compile 15055 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15056 test -z "$TOOLCHAIN_PATH" && \ 15057 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15058 15059 if test -z "$SYSROOT"; then 15060 if test -n "$XCODEBUILD"; then 15061 # if we don't have system headers, use default SDK name (last resort) 15062 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15063 SDKNAME=${SDKNAME:-macosx} 15064 fi 15065 15066 if test -n "$SDKNAME"; then 15067 # Call xcodebuild to determine SYSROOT 15068 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15069 fi 15070 else 15071 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15072 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 15073 fi 15074 fi 15075 else 15076 # warn user if --with-sdk-name was also set 15077 if test -n "$with_sdk_name"; then 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15079 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15080 fi 15081 fi 15082 15083 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15084 # If no system framework headers, then SYSROOT must be set, or we won't build 15085 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 15086 fi 15087 15088 # Perform a basic sanity test 15089 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15090 if test -z "$SYSROOT"; then 15091 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 15092 else 15093 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15094 fi 15095 fi 15096 15097 # set SDKROOT too, Xcode tools will pick it up 15098 SDKROOT=$SYSROOT 15099 15100 fi 15101 15102 # Prepend the extra path to the global path 15103 15104 if test "x$EXTRA_PATH" != x; then 15105 if test "x$PATH" = x; then 15106 PATH="$EXTRA_PATH" 15107 else 15108 PATH="$EXTRA_PATH:$PATH" 15109 fi 15110 fi 15111 15112 15113 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15114 # Add extra search paths on solaris for utilities like ar and as etc... 15115 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15116 fi 15117 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15119 $as_echo_n "checking for sysroot... " >&6; } 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15121 $as_echo "$SYSROOT" >&6; } 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15123 $as_echo_n "checking for toolchain path... " >&6; } 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15125 $as_echo "$TOOLCHAIN_PATH" >&6; } 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15127 $as_echo_n "checking for extra path... " >&6; } 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15129 $as_echo "$EXTRA_PATH" >&6; } 15130 15131 15132 # To properly create a configuration name, we need to have the OpenJDK target 15133 # and options (variants and debug level) parsed. 15134 15135 15136 15137 # Check whether --with-conf-name was given. 15138 if test "${with_conf_name+set}" = set; then : 15139 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15140 fi 15141 15142 15143 # Test from where we are running configure, in or outside of src root. 15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15145 $as_echo_n "checking where to store configuration... " >&6; } 15146 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15147 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15148 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15149 # We are running configure from the src root. 15150 # Create a default ./build/target-variant-debuglevel output root. 15151 if test "x${CONF_NAME}" = x; then 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15153 $as_echo "in default location" >&6; } 15154 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15155 else 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15157 $as_echo "in build directory with custom name" >&6; } 15158 fi 15159 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15160 $MKDIR -p "$OUTPUT_ROOT" 15161 if test ! -d "$OUTPUT_ROOT"; then 15162 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15163 fi 15164 else 15165 # We are running configure from outside of the src dir. 15166 # Then use the current directory as output dir! 15167 # If configuration is situated in normal build directory, just use the build 15168 # directory name as configuration name, otherwise use the complete path. 15169 if test "x${CONF_NAME}" = x; then 15170 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15171 fi 15172 OUTPUT_ROOT="$CURDIR" 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15174 $as_echo "in current directory" >&6; } 15175 15176 # WARNING: This might be a bad thing to do. You need to be sure you want to 15177 # have a configuration in this directory. Do some sanity checks! 15178 15179 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15180 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15181 # other files 15182 files_present=`$LS $OUTPUT_ROOT` 15183 # Configure has already touched config.log and confdefs.h in the current dir when this check 15184 # is performed. 15185 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15186 | $TR -d '\n'` 15187 if test "x$filtered_files" != x; then 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15189 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15191 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15193 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15195 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15197 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15199 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15201 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15202 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15203 fi 15204 fi 15205 fi 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15207 $as_echo_n "checking what configuration name to use... " >&6; } 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15209 $as_echo "$CONF_NAME" >&6; } 15210 15211 15212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15213 15214 # Input might be given as Windows format, start by converting to 15215 # unix format. 15216 path="$OUTPUT_ROOT" 15217 new_path=`$CYGPATH -u "$path"` 15218 15219 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15220 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15221 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15222 # "foo.exe" is OK but "foo" is an error. 15223 # 15224 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15225 # It is also a way to make sure we got the proper file name for the real test later on. 15226 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15227 if test "x$test_shortpath" = x; then 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15229 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15230 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15231 fi 15232 15233 # Call helper function which possibly converts this using DOS-style short mode. 15234 # If so, the updated path is stored in $new_path. 15235 15236 input_path="$new_path" 15237 # Check if we need to convert this using DOS-style short mode. If the path 15238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15239 # take no chances and rewrite it. 15240 # Note: m4 eats our [], so we need to use [ and ] instead. 15241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15242 if test "x$has_forbidden_chars" != x; then 15243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15244 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15245 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15246 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15247 # Going to short mode and back again did indeed matter. Since short mode is 15248 # case insensitive, let's make it lowercase to improve readability. 15249 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15250 # Now convert it back to Unix-stile (cygpath) 15251 input_path=`$CYGPATH -u "$shortmode_path"` 15252 new_path="$input_path" 15253 fi 15254 fi 15255 15256 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15257 if test "x$test_cygdrive_prefix" = x; then 15258 # As a simple fix, exclude /usr/bin since it's not a real path. 15259 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15260 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15261 # a path prefixed by /cygdrive for fixpath to work. 15262 new_path="$CYGWIN_ROOT_PATH$input_path" 15263 fi 15264 fi 15265 15266 15267 if test "x$path" != "x$new_path"; then 15268 OUTPUT_ROOT="$new_path" 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15270 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15271 fi 15272 15273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15274 15275 path="$OUTPUT_ROOT" 15276 has_colon=`$ECHO $path | $GREP ^.:` 15277 new_path="$path" 15278 if test "x$has_colon" = x; then 15279 # Not in mixed or Windows style, start by that. 15280 new_path=`cmd //c echo $path` 15281 fi 15282 15283 15284 input_path="$new_path" 15285 # Check if we need to convert this using DOS-style short mode. If the path 15286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15287 # take no chances and rewrite it. 15288 # Note: m4 eats our [], so we need to use [ and ] instead. 15289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15290 if test "x$has_forbidden_chars" != x; then 15291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15292 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15293 fi 15294 15295 15296 windows_path="$new_path" 15297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15298 unix_path=`$CYGPATH -u "$windows_path"` 15299 new_path="$unix_path" 15300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15302 new_path="$unix_path" 15303 fi 15304 15305 if test "x$path" != "x$new_path"; then 15306 OUTPUT_ROOT="$new_path" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15308 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15309 fi 15310 15311 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15312 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15313 15314 else 15315 # We're on a posix platform. Hooray! :) 15316 path="$OUTPUT_ROOT" 15317 has_space=`$ECHO "$path" | $GREP " "` 15318 if test "x$has_space" != x; then 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15320 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15321 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15322 fi 15323 15324 # Use eval to expand a potential ~ 15325 eval path="$path" 15326 if test ! -f "$path" && test ! -d "$path"; then 15327 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15328 fi 15329 15330 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15331 fi 15332 15333 15334 SPEC=$OUTPUT_ROOT/spec.gmk 15335 15336 CONF_NAME=$CONF_NAME 15337 15338 OUTPUT_ROOT=$OUTPUT_ROOT 15339 15340 15341 # Most of the probed defines are put into config.h 15342 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15343 15344 # The spec.gmk file contains all variables for the make system. 15345 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15346 15347 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15348 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15349 15350 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15351 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15352 15353 # The compare.sh is used to compare the build output to other builds. 15354 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15355 15356 # Spec.sh is currently used by compare-objects.sh 15357 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15358 15359 # The generated Makefile knows where the spec.gmk is and where the source is. 15360 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15361 # which will look for generated configurations 15362 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15363 15364 15365 15366 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15367 15368 for ac_prog in apt-get yum port pkgutil pkgadd 15369 do 15370 # Extract the first word of "$ac_prog", so it can be a program name with args. 15371 set dummy $ac_prog; ac_word=$2 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15373 $as_echo_n "checking for $ac_word... " >&6; } 15374 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15375 $as_echo_n "(cached) " >&6 15376 else 15377 if test -n "$PKGHANDLER"; then 15378 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15379 else 15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15381 for as_dir in $PATH 15382 do 15383 IFS=$as_save_IFS 15384 test -z "$as_dir" && as_dir=. 15385 for ac_exec_ext in '' $ac_executable_extensions; do 15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15387 ac_cv_prog_PKGHANDLER="$ac_prog" 15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15389 break 2 15390 fi 15391 done 15392 done 15393 IFS=$as_save_IFS 15394 15395 fi 15396 fi 15397 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15398 if test -n "$PKGHANDLER"; then 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15400 $as_echo "$PKGHANDLER" >&6; } 15401 else 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15403 $as_echo "no" >&6; } 15404 fi 15405 15406 15407 test -n "$PKGHANDLER" && break 15408 done 15409 15410 15411 15412 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15413 15414 15415 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15416 if test "x$MAKE" != x; then 15417 # User has supplied a make, test it. 15418 if test ! -f "$MAKE"; then 15419 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15420 fi 15421 15422 MAKE_CANDIDATE=""$MAKE"" 15423 DESCRIPTION="user supplied MAKE=$MAKE" 15424 if test "x$MAKE_CANDIDATE" != x; then 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15426 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15427 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15428 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15429 if test "x$IS_GNU_MAKE" = x; then 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15431 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15432 else 15433 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15434 if test "x$IS_MODERN_MAKE" = x; then 15435 { $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 15436 $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;} 15437 else 15438 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15440 MAKE_EXPECTED_ENV='cygwin' 15441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15442 MAKE_EXPECTED_ENV='msys' 15443 else 15444 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15445 fi 15446 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15447 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15448 else 15449 # Not relevant for non-Windows 15450 IS_MAKE_CORRECT_ENV=true 15451 fi 15452 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15453 { $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 15454 $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;} 15455 else 15456 FOUND_MAKE=$MAKE_CANDIDATE 15457 15458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15459 15460 # First separate the path from the arguments. This will split at the first 15461 # space. 15462 complete="$FOUND_MAKE" 15463 path="${complete%% *}" 15464 tmp="$complete EOL" 15465 arguments="${tmp#* }" 15466 15467 # Input might be given as Windows format, start by converting to 15468 # unix format. 15469 new_path=`$CYGPATH -u "$path"` 15470 15471 # Now try to locate executable using which 15472 new_path=`$WHICH "$new_path" 2> /dev/null` 15473 # bat and cmd files are not always considered executable in cygwin causing which 15474 # to not find them 15475 if test "x$new_path" = x \ 15476 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15477 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15478 new_path=`$CYGPATH -u "$path"` 15479 fi 15480 if test "x$new_path" = x; then 15481 # Oops. Which didn't find the executable. 15482 # The splitting of arguments from the executable at a space might have been incorrect, 15483 # since paths with space are more likely in Windows. Give it another try with the whole 15484 # argument. 15485 path="$complete" 15486 arguments="EOL" 15487 new_path=`$CYGPATH -u "$path"` 15488 new_path=`$WHICH "$new_path" 2> /dev/null` 15489 # bat and cmd files are not always considered executable in cygwin causing which 15490 # to not find them 15491 if test "x$new_path" = x \ 15492 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15493 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15494 new_path=`$CYGPATH -u "$path"` 15495 fi 15496 if test "x$new_path" = x; then 15497 # It's still not found. Now this is an unrecoverable error. 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15499 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15500 has_space=`$ECHO "$complete" | $GREP " "` 15501 if test "x$has_space" != x; then 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15503 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15504 fi 15505 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15506 fi 15507 fi 15508 15509 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15510 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15511 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15512 # "foo.exe" is OK but "foo" is an error. 15513 # 15514 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15515 # It is also a way to make sure we got the proper file name for the real test later on. 15516 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15517 if test "x$test_shortpath" = x; then 15518 # Short path failed, file does not exist as specified. 15519 # Try adding .exe or .cmd 15520 if test -f "${new_path}.exe"; then 15521 input_to_shortpath="${new_path}.exe" 15522 elif test -f "${new_path}.cmd"; then 15523 input_to_shortpath="${new_path}.cmd" 15524 else 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15526 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15528 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15529 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15530 fi 15531 else 15532 input_to_shortpath="$new_path" 15533 fi 15534 15535 # Call helper function which possibly converts this using DOS-style short mode. 15536 # If so, the updated path is stored in $new_path. 15537 new_path="$input_to_shortpath" 15538 15539 input_path="$input_to_shortpath" 15540 # Check if we need to convert this using DOS-style short mode. If the path 15541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15542 # take no chances and rewrite it. 15543 # Note: m4 eats our [], so we need to use [ and ] instead. 15544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15545 if test "x$has_forbidden_chars" != x; then 15546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15547 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15548 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15549 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15550 # Going to short mode and back again did indeed matter. Since short mode is 15551 # case insensitive, let's make it lowercase to improve readability. 15552 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15553 # Now convert it back to Unix-stile (cygpath) 15554 input_path=`$CYGPATH -u "$shortmode_path"` 15555 new_path="$input_path" 15556 fi 15557 fi 15558 15559 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15560 if test "x$test_cygdrive_prefix" = x; then 15561 # As a simple fix, exclude /usr/bin since it's not a real path. 15562 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15563 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15564 # a path prefixed by /cygdrive for fixpath to work. 15565 new_path="$CYGWIN_ROOT_PATH$input_path" 15566 fi 15567 fi 15568 15569 # remove trailing .exe if any 15570 new_path="${new_path/%.exe/}" 15571 15572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15573 15574 # First separate the path from the arguments. This will split at the first 15575 # space. 15576 complete="$FOUND_MAKE" 15577 path="${complete%% *}" 15578 tmp="$complete EOL" 15579 arguments="${tmp#* }" 15580 15581 # Input might be given as Windows format, start by converting to 15582 # unix format. 15583 new_path="$path" 15584 15585 windows_path="$new_path" 15586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15587 unix_path=`$CYGPATH -u "$windows_path"` 15588 new_path="$unix_path" 15589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15590 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15591 new_path="$unix_path" 15592 fi 15593 15594 15595 # Now try to locate executable using which 15596 new_path=`$WHICH "$new_path" 2> /dev/null` 15597 15598 if test "x$new_path" = x; then 15599 # Oops. Which didn't find the executable. 15600 # The splitting of arguments from the executable at a space might have been incorrect, 15601 # since paths with space are more likely in Windows. Give it another try with the whole 15602 # argument. 15603 path="$complete" 15604 arguments="EOL" 15605 new_path="$path" 15606 15607 windows_path="$new_path" 15608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15609 unix_path=`$CYGPATH -u "$windows_path"` 15610 new_path="$unix_path" 15611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15613 new_path="$unix_path" 15614 fi 15615 15616 15617 new_path=`$WHICH "$new_path" 2> /dev/null` 15618 # bat and cmd files are not always considered executable in MSYS causing which 15619 # to not find them 15620 if test "x$new_path" = x \ 15621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15623 new_path="$path" 15624 15625 windows_path="$new_path" 15626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15627 unix_path=`$CYGPATH -u "$windows_path"` 15628 new_path="$unix_path" 15629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15631 new_path="$unix_path" 15632 fi 15633 15634 fi 15635 15636 if test "x$new_path" = x; then 15637 # It's still not found. Now this is an unrecoverable error. 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15639 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15640 has_space=`$ECHO "$complete" | $GREP " "` 15641 if test "x$has_space" != x; then 15642 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15643 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15644 fi 15645 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15646 fi 15647 fi 15648 15649 # Now new_path has a complete unix path to the binary 15650 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15651 # Keep paths in /bin as-is, but remove trailing .exe if any 15652 new_path="${new_path/%.exe/}" 15653 # Do not save /bin paths to all_fixpath_prefixes! 15654 else 15655 # Not in mixed or Windows style, start by that. 15656 new_path=`cmd //c echo $new_path` 15657 15658 input_path="$new_path" 15659 # Check if we need to convert this using DOS-style short mode. If the path 15660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15661 # take no chances and rewrite it. 15662 # Note: m4 eats our [], so we need to use [ and ] instead. 15663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15664 if test "x$has_forbidden_chars" != x; then 15665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15666 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15667 fi 15668 15669 # Output is in $new_path 15670 15671 windows_path="$new_path" 15672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15673 unix_path=`$CYGPATH -u "$windows_path"` 15674 new_path="$unix_path" 15675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15677 new_path="$unix_path" 15678 fi 15679 15680 # remove trailing .exe if any 15681 new_path="${new_path/%.exe/}" 15682 15683 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15684 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15685 fi 15686 15687 else 15688 # We're on a posix platform. Hooray! :) 15689 # First separate the path from the arguments. This will split at the first 15690 # space. 15691 complete="$FOUND_MAKE" 15692 path="${complete%% *}" 15693 tmp="$complete EOL" 15694 arguments="${tmp#* }" 15695 15696 # Cannot rely on the command "which" here since it doesn't always work. 15697 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15698 if test -z "$is_absolute_path"; then 15699 # Path to executable is not absolute. Find it. 15700 IFS_save="$IFS" 15701 IFS=: 15702 for p in $PATH; do 15703 if test -f "$p/$path" && test -x "$p/$path"; then 15704 new_path="$p/$path" 15705 break 15706 fi 15707 done 15708 IFS="$IFS_save" 15709 else 15710 # This is an absolute path, we can use it without further modifications. 15711 new_path="$path" 15712 fi 15713 15714 if test "x$new_path" = x; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15716 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15717 has_space=`$ECHO "$complete" | $GREP " "` 15718 if test "x$has_space" != x; then 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15720 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15721 fi 15722 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15723 fi 15724 fi 15725 15726 # Now join together the path and the arguments once again 15727 if test "x$arguments" != xEOL; then 15728 new_complete="$new_path ${arguments% *}" 15729 else 15730 new_complete="$new_path" 15731 fi 15732 15733 if test "x$complete" != "x$new_complete"; then 15734 FOUND_MAKE="$new_complete" 15735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15736 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15737 fi 15738 15739 fi 15740 fi 15741 fi 15742 fi 15743 15744 if test "x$FOUND_MAKE" = x; then 15745 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15746 fi 15747 else 15748 # Try our hardest to locate a correct version of GNU make 15749 for ac_prog in gmake 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_GMAKE+:} false; then : 15756 $as_echo_n "(cached) " >&6 15757 else 15758 case $CHECK_GMAKE in 15759 [\\/]* | ?:[\\/]*) 15760 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # 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_GMAKE="$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_GMAKE=$ac_cv_path_CHECK_GMAKE 15782 if test -n "$CHECK_GMAKE"; then 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15784 $as_echo "$CHECK_GMAKE" >&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_GMAKE" && break 15792 done 15793 15794 15795 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15796 DESCRIPTION="gmake 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 # bat and cmd files are not always considered executable in MSYS causing which 15992 # to not find them 15993 if test "x$new_path" = x \ 15994 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15995 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15996 new_path="$path" 15997 15998 windows_path="$new_path" 15999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16000 unix_path=`$CYGPATH -u "$windows_path"` 16001 new_path="$unix_path" 16002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16003 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16004 new_path="$unix_path" 16005 fi 16006 16007 fi 16008 16009 if test "x$new_path" = x; then 16010 # It's still not found. Now this is an unrecoverable error. 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16012 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16013 has_space=`$ECHO "$complete" | $GREP " "` 16014 if test "x$has_space" != x; then 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16016 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16017 fi 16018 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16019 fi 16020 fi 16021 16022 # Now new_path has a complete unix path to the binary 16023 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16024 # Keep paths in /bin as-is, but remove trailing .exe if any 16025 new_path="${new_path/%.exe/}" 16026 # Do not save /bin paths to all_fixpath_prefixes! 16027 else 16028 # Not in mixed or Windows style, start by that. 16029 new_path=`cmd //c echo $new_path` 16030 16031 input_path="$new_path" 16032 # Check if we need to convert this using DOS-style short mode. If the path 16033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16034 # take no chances and rewrite it. 16035 # Note: m4 eats our [], so we need to use [ and ] instead. 16036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16037 if test "x$has_forbidden_chars" != x; then 16038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16039 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16040 fi 16041 16042 # Output is in $new_path 16043 16044 windows_path="$new_path" 16045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16046 unix_path=`$CYGPATH -u "$windows_path"` 16047 new_path="$unix_path" 16048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16050 new_path="$unix_path" 16051 fi 16052 16053 # remove trailing .exe if any 16054 new_path="${new_path/%.exe/}" 16055 16056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16058 fi 16059 16060 else 16061 # We're on a posix platform. Hooray! :) 16062 # First separate the path from the arguments. This will split at the first 16063 # space. 16064 complete="$FOUND_MAKE" 16065 path="${complete%% *}" 16066 tmp="$complete EOL" 16067 arguments="${tmp#* }" 16068 16069 # Cannot rely on the command "which" here since it doesn't always work. 16070 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16071 if test -z "$is_absolute_path"; then 16072 # Path to executable is not absolute. Find it. 16073 IFS_save="$IFS" 16074 IFS=: 16075 for p in $PATH; do 16076 if test -f "$p/$path" && test -x "$p/$path"; then 16077 new_path="$p/$path" 16078 break 16079 fi 16080 done 16081 IFS="$IFS_save" 16082 else 16083 # This is an absolute path, we can use it without further modifications. 16084 new_path="$path" 16085 fi 16086 16087 if test "x$new_path" = x; then 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16089 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16090 has_space=`$ECHO "$complete" | $GREP " "` 16091 if test "x$has_space" != x; then 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16093 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16094 fi 16095 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16096 fi 16097 fi 16098 16099 # Now join together the path and the arguments once again 16100 if test "x$arguments" != xEOL; then 16101 new_complete="$new_path ${arguments% *}" 16102 else 16103 new_complete="$new_path" 16104 fi 16105 16106 if test "x$complete" != "x$new_complete"; then 16107 FOUND_MAKE="$new_complete" 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16109 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16110 fi 16111 16112 fi 16113 fi 16114 fi 16115 fi 16116 16117 16118 if test "x$FOUND_MAKE" = x; then 16119 for ac_prog in make 16120 do 16121 # Extract the first word of "$ac_prog", so it can be a program name with args. 16122 set dummy $ac_prog; ac_word=$2 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16124 $as_echo_n "checking for $ac_word... " >&6; } 16125 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16126 $as_echo_n "(cached) " >&6 16127 else 16128 case $CHECK_MAKE in 16129 [\\/]* | ?:[\\/]*) 16130 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16131 ;; 16132 *) 16133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16134 for as_dir in $PATH 16135 do 16136 IFS=$as_save_IFS 16137 test -z "$as_dir" && as_dir=. 16138 for ac_exec_ext in '' $ac_executable_extensions; do 16139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16140 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16142 break 2 16143 fi 16144 done 16145 done 16146 IFS=$as_save_IFS 16147 16148 ;; 16149 esac 16150 fi 16151 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16152 if test -n "$CHECK_MAKE"; then 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16154 $as_echo "$CHECK_MAKE" >&6; } 16155 else 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16157 $as_echo "no" >&6; } 16158 fi 16159 16160 16161 test -n "$CHECK_MAKE" && break 16162 done 16163 16164 16165 MAKE_CANDIDATE=""$CHECK_MAKE"" 16166 DESCRIPTION="make in PATH" 16167 if test "x$MAKE_CANDIDATE" != x; then 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16169 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16170 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16171 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16172 if test "x$IS_GNU_MAKE" = x; then 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16174 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16175 else 16176 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16177 if test "x$IS_MODERN_MAKE" = x; then 16178 { $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 16179 $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;} 16180 else 16181 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16183 MAKE_EXPECTED_ENV='cygwin' 16184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16185 MAKE_EXPECTED_ENV='msys' 16186 else 16187 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16188 fi 16189 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16190 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16191 else 16192 # Not relevant for non-Windows 16193 IS_MAKE_CORRECT_ENV=true 16194 fi 16195 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16196 { $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 16197 $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;} 16198 else 16199 FOUND_MAKE=$MAKE_CANDIDATE 16200 16201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16202 16203 # First separate the path from the arguments. This will split at the first 16204 # space. 16205 complete="$FOUND_MAKE" 16206 path="${complete%% *}" 16207 tmp="$complete EOL" 16208 arguments="${tmp#* }" 16209 16210 # Input might be given as Windows format, start by converting to 16211 # unix format. 16212 new_path=`$CYGPATH -u "$path"` 16213 16214 # Now try to locate executable using which 16215 new_path=`$WHICH "$new_path" 2> /dev/null` 16216 # bat and cmd files are not always considered executable in cygwin causing which 16217 # to not find them 16218 if test "x$new_path" = x \ 16219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16221 new_path=`$CYGPATH -u "$path"` 16222 fi 16223 if test "x$new_path" = x; then 16224 # Oops. Which didn't find the executable. 16225 # The splitting of arguments from the executable at a space might have been incorrect, 16226 # since paths with space are more likely in Windows. Give it another try with the whole 16227 # argument. 16228 path="$complete" 16229 arguments="EOL" 16230 new_path=`$CYGPATH -u "$path"` 16231 new_path=`$WHICH "$new_path" 2> /dev/null` 16232 # bat and cmd files are not always considered executable in cygwin causing which 16233 # to not find them 16234 if test "x$new_path" = x \ 16235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16237 new_path=`$CYGPATH -u "$path"` 16238 fi 16239 if test "x$new_path" = x; then 16240 # It's still not found. Now this is an unrecoverable error. 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16242 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16243 has_space=`$ECHO "$complete" | $GREP " "` 16244 if test "x$has_space" != x; then 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16246 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16247 fi 16248 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16249 fi 16250 fi 16251 16252 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16253 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16254 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16255 # "foo.exe" is OK but "foo" is an error. 16256 # 16257 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16258 # It is also a way to make sure we got the proper file name for the real test later on. 16259 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16260 if test "x$test_shortpath" = x; then 16261 # Short path failed, file does not exist as specified. 16262 # Try adding .exe or .cmd 16263 if test -f "${new_path}.exe"; then 16264 input_to_shortpath="${new_path}.exe" 16265 elif test -f "${new_path}.cmd"; then 16266 input_to_shortpath="${new_path}.cmd" 16267 else 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16271 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16272 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16273 fi 16274 else 16275 input_to_shortpath="$new_path" 16276 fi 16277 16278 # Call helper function which possibly converts this using DOS-style short mode. 16279 # If so, the updated path is stored in $new_path. 16280 new_path="$input_to_shortpath" 16281 16282 input_path="$input_to_shortpath" 16283 # Check if we need to convert this using DOS-style short mode. If the path 16284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16285 # take no chances and rewrite it. 16286 # Note: m4 eats our [], so we need to use [ and ] instead. 16287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16288 if test "x$has_forbidden_chars" != x; then 16289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16293 # Going to short mode and back again did indeed matter. Since short mode is 16294 # case insensitive, let's make it lowercase to improve readability. 16295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16296 # Now convert it back to Unix-stile (cygpath) 16297 input_path=`$CYGPATH -u "$shortmode_path"` 16298 new_path="$input_path" 16299 fi 16300 fi 16301 16302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16303 if test "x$test_cygdrive_prefix" = x; then 16304 # As a simple fix, exclude /usr/bin since it's not a real path. 16305 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16307 # a path prefixed by /cygdrive for fixpath to work. 16308 new_path="$CYGWIN_ROOT_PATH$input_path" 16309 fi 16310 fi 16311 16312 # remove trailing .exe if any 16313 new_path="${new_path/%.exe/}" 16314 16315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16316 16317 # First separate the path from the arguments. This will split at the first 16318 # space. 16319 complete="$FOUND_MAKE" 16320 path="${complete%% *}" 16321 tmp="$complete EOL" 16322 arguments="${tmp#* }" 16323 16324 # Input might be given as Windows format, start by converting to 16325 # unix format. 16326 new_path="$path" 16327 16328 windows_path="$new_path" 16329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16330 unix_path=`$CYGPATH -u "$windows_path"` 16331 new_path="$unix_path" 16332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16334 new_path="$unix_path" 16335 fi 16336 16337 16338 # Now try to locate executable using which 16339 new_path=`$WHICH "$new_path" 2> /dev/null` 16340 16341 if test "x$new_path" = x; then 16342 # Oops. Which didn't find the executable. 16343 # The splitting of arguments from the executable at a space might have been incorrect, 16344 # since paths with space are more likely in Windows. Give it another try with the whole 16345 # argument. 16346 path="$complete" 16347 arguments="EOL" 16348 new_path="$path" 16349 16350 windows_path="$new_path" 16351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16352 unix_path=`$CYGPATH -u "$windows_path"` 16353 new_path="$unix_path" 16354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16356 new_path="$unix_path" 16357 fi 16358 16359 16360 new_path=`$WHICH "$new_path" 2> /dev/null` 16361 # bat and cmd files are not always considered executable in MSYS causing which 16362 # to not find them 16363 if test "x$new_path" = x \ 16364 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16365 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16366 new_path="$path" 16367 16368 windows_path="$new_path" 16369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16370 unix_path=`$CYGPATH -u "$windows_path"` 16371 new_path="$unix_path" 16372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16374 new_path="$unix_path" 16375 fi 16376 16377 fi 16378 16379 if test "x$new_path" = x; then 16380 # It's still not found. Now this is an unrecoverable error. 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16382 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16383 has_space=`$ECHO "$complete" | $GREP " "` 16384 if test "x$has_space" != x; then 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16386 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16387 fi 16388 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16389 fi 16390 fi 16391 16392 # Now new_path has a complete unix path to the binary 16393 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16394 # Keep paths in /bin as-is, but remove trailing .exe if any 16395 new_path="${new_path/%.exe/}" 16396 # Do not save /bin paths to all_fixpath_prefixes! 16397 else 16398 # Not in mixed or Windows style, start by that. 16399 new_path=`cmd //c echo $new_path` 16400 16401 input_path="$new_path" 16402 # Check if we need to convert this using DOS-style short mode. If the path 16403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16404 # take no chances and rewrite it. 16405 # Note: m4 eats our [], so we need to use [ and ] instead. 16406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16407 if test "x$has_forbidden_chars" != x; then 16408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16409 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16410 fi 16411 16412 # Output is in $new_path 16413 16414 windows_path="$new_path" 16415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16416 unix_path=`$CYGPATH -u "$windows_path"` 16417 new_path="$unix_path" 16418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16420 new_path="$unix_path" 16421 fi 16422 16423 # remove trailing .exe if any 16424 new_path="${new_path/%.exe/}" 16425 16426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16428 fi 16429 16430 else 16431 # We're on a posix platform. Hooray! :) 16432 # First separate the path from the arguments. This will split at the first 16433 # space. 16434 complete="$FOUND_MAKE" 16435 path="${complete%% *}" 16436 tmp="$complete EOL" 16437 arguments="${tmp#* }" 16438 16439 # Cannot rely on the command "which" here since it doesn't always work. 16440 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16441 if test -z "$is_absolute_path"; then 16442 # Path to executable is not absolute. Find it. 16443 IFS_save="$IFS" 16444 IFS=: 16445 for p in $PATH; do 16446 if test -f "$p/$path" && test -x "$p/$path"; then 16447 new_path="$p/$path" 16448 break 16449 fi 16450 done 16451 IFS="$IFS_save" 16452 else 16453 # This is an absolute path, we can use it without further modifications. 16454 new_path="$path" 16455 fi 16456 16457 if test "x$new_path" = x; then 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16459 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16460 has_space=`$ECHO "$complete" | $GREP " "` 16461 if test "x$has_space" != x; then 16462 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16463 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16464 fi 16465 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16466 fi 16467 fi 16468 16469 # Now join together the path and the arguments once again 16470 if test "x$arguments" != xEOL; then 16471 new_complete="$new_path ${arguments% *}" 16472 else 16473 new_complete="$new_path" 16474 fi 16475 16476 if test "x$complete" != "x$new_complete"; then 16477 FOUND_MAKE="$new_complete" 16478 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16479 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16480 fi 16481 16482 fi 16483 fi 16484 fi 16485 fi 16486 16487 fi 16488 16489 if test "x$FOUND_MAKE" = x; then 16490 if test "x$TOOLCHAIN_PATH" != x; then 16491 # We have a toolchain path, check that as well before giving up. 16492 OLD_PATH=$PATH 16493 PATH=$TOOLCHAIN_PATH:$PATH 16494 for ac_prog in gmake 16495 do 16496 # Extract the first word of "$ac_prog", so it can be a program name with args. 16497 set dummy $ac_prog; ac_word=$2 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16499 $as_echo_n "checking for $ac_word... " >&6; } 16500 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16501 $as_echo_n "(cached) " >&6 16502 else 16503 case $CHECK_TOOLSDIR_GMAKE in 16504 [\\/]* | ?:[\\/]*) 16505 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16506 ;; 16507 *) 16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16509 for as_dir in $PATH 16510 do 16511 IFS=$as_save_IFS 16512 test -z "$as_dir" && as_dir=. 16513 for ac_exec_ext in '' $ac_executable_extensions; do 16514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16515 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16517 break 2 16518 fi 16519 done 16520 done 16521 IFS=$as_save_IFS 16522 16523 ;; 16524 esac 16525 fi 16526 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16527 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16529 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16530 else 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16532 $as_echo "no" >&6; } 16533 fi 16534 16535 16536 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16537 done 16538 16539 16540 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16541 DESCRIPTION="gmake in tools-dir" 16542 if test "x$MAKE_CANDIDATE" != x; then 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16544 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16545 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16546 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16547 if test "x$IS_GNU_MAKE" = x; then 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16549 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16550 else 16551 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16552 if test "x$IS_MODERN_MAKE" = x; then 16553 { $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 16554 $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;} 16555 else 16556 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16558 MAKE_EXPECTED_ENV='cygwin' 16559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16560 MAKE_EXPECTED_ENV='msys' 16561 else 16562 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16563 fi 16564 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16565 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16566 else 16567 # Not relevant for non-Windows 16568 IS_MAKE_CORRECT_ENV=true 16569 fi 16570 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16571 { $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 16572 $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;} 16573 else 16574 FOUND_MAKE=$MAKE_CANDIDATE 16575 16576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16577 16578 # First separate the path from the arguments. This will split at the first 16579 # space. 16580 complete="$FOUND_MAKE" 16581 path="${complete%% *}" 16582 tmp="$complete EOL" 16583 arguments="${tmp#* }" 16584 16585 # Input might be given as Windows format, start by converting to 16586 # unix format. 16587 new_path=`$CYGPATH -u "$path"` 16588 16589 # Now try to locate executable using which 16590 new_path=`$WHICH "$new_path" 2> /dev/null` 16591 # bat and cmd files are not always considered executable in cygwin causing which 16592 # to not find them 16593 if test "x$new_path" = x \ 16594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16596 new_path=`$CYGPATH -u "$path"` 16597 fi 16598 if test "x$new_path" = x; then 16599 # Oops. Which didn't find the executable. 16600 # The splitting of arguments from the executable at a space might have been incorrect, 16601 # since paths with space are more likely in Windows. Give it another try with the whole 16602 # argument. 16603 path="$complete" 16604 arguments="EOL" 16605 new_path=`$CYGPATH -u "$path"` 16606 new_path=`$WHICH "$new_path" 2> /dev/null` 16607 # bat and cmd files are not always considered executable in cygwin causing which 16608 # to not find them 16609 if test "x$new_path" = x \ 16610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16612 new_path=`$CYGPATH -u "$path"` 16613 fi 16614 if test "x$new_path" = x; then 16615 # It's still not found. Now this is an unrecoverable error. 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16617 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16618 has_space=`$ECHO "$complete" | $GREP " "` 16619 if test "x$has_space" != x; then 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16621 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16622 fi 16623 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16624 fi 16625 fi 16626 16627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16630 # "foo.exe" is OK but "foo" is an error. 16631 # 16632 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16633 # It is also a way to make sure we got the proper file name for the real test later on. 16634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16635 if test "x$test_shortpath" = x; then 16636 # Short path failed, file does not exist as specified. 16637 # Try adding .exe or .cmd 16638 if test -f "${new_path}.exe"; then 16639 input_to_shortpath="${new_path}.exe" 16640 elif test -f "${new_path}.cmd"; then 16641 input_to_shortpath="${new_path}.cmd" 16642 else 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16644 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16646 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16647 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16648 fi 16649 else 16650 input_to_shortpath="$new_path" 16651 fi 16652 16653 # Call helper function which possibly converts this using DOS-style short mode. 16654 # If so, the updated path is stored in $new_path. 16655 new_path="$input_to_shortpath" 16656 16657 input_path="$input_to_shortpath" 16658 # Check if we need to convert this using DOS-style short mode. If the path 16659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16660 # take no chances and rewrite it. 16661 # Note: m4 eats our [], so we need to use [ and ] instead. 16662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16663 if test "x$has_forbidden_chars" != x; then 16664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16668 # Going to short mode and back again did indeed matter. Since short mode is 16669 # case insensitive, let's make it lowercase to improve readability. 16670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16671 # Now convert it back to Unix-stile (cygpath) 16672 input_path=`$CYGPATH -u "$shortmode_path"` 16673 new_path="$input_path" 16674 fi 16675 fi 16676 16677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16678 if test "x$test_cygdrive_prefix" = x; then 16679 # As a simple fix, exclude /usr/bin since it's not a real path. 16680 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16682 # a path prefixed by /cygdrive for fixpath to work. 16683 new_path="$CYGWIN_ROOT_PATH$input_path" 16684 fi 16685 fi 16686 16687 # remove trailing .exe if any 16688 new_path="${new_path/%.exe/}" 16689 16690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16691 16692 # First separate the path from the arguments. This will split at the first 16693 # space. 16694 complete="$FOUND_MAKE" 16695 path="${complete%% *}" 16696 tmp="$complete EOL" 16697 arguments="${tmp#* }" 16698 16699 # Input might be given as Windows format, start by converting to 16700 # unix format. 16701 new_path="$path" 16702 16703 windows_path="$new_path" 16704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16705 unix_path=`$CYGPATH -u "$windows_path"` 16706 new_path="$unix_path" 16707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16709 new_path="$unix_path" 16710 fi 16711 16712 16713 # Now try to locate executable using which 16714 new_path=`$WHICH "$new_path" 2> /dev/null` 16715 16716 if test "x$new_path" = x; then 16717 # Oops. Which didn't find the executable. 16718 # The splitting of arguments from the executable at a space might have been incorrect, 16719 # since paths with space are more likely in Windows. Give it another try with the whole 16720 # argument. 16721 path="$complete" 16722 arguments="EOL" 16723 new_path="$path" 16724 16725 windows_path="$new_path" 16726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16727 unix_path=`$CYGPATH -u "$windows_path"` 16728 new_path="$unix_path" 16729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16731 new_path="$unix_path" 16732 fi 16733 16734 16735 new_path=`$WHICH "$new_path" 2> /dev/null` 16736 # bat and cmd files are not always considered executable in MSYS causing which 16737 # to not find them 16738 if test "x$new_path" = x \ 16739 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16740 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16741 new_path="$path" 16742 16743 windows_path="$new_path" 16744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16745 unix_path=`$CYGPATH -u "$windows_path"` 16746 new_path="$unix_path" 16747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16749 new_path="$unix_path" 16750 fi 16751 16752 fi 16753 16754 if test "x$new_path" = x; then 16755 # It's still not found. Now this is an unrecoverable error. 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16757 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16758 has_space=`$ECHO "$complete" | $GREP " "` 16759 if test "x$has_space" != x; then 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16761 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16762 fi 16763 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16764 fi 16765 fi 16766 16767 # Now new_path has a complete unix path to the binary 16768 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16769 # Keep paths in /bin as-is, but remove trailing .exe if any 16770 new_path="${new_path/%.exe/}" 16771 # Do not save /bin paths to all_fixpath_prefixes! 16772 else 16773 # Not in mixed or Windows style, start by that. 16774 new_path=`cmd //c echo $new_path` 16775 16776 input_path="$new_path" 16777 # Check if we need to convert this using DOS-style short mode. If the path 16778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16779 # take no chances and rewrite it. 16780 # Note: m4 eats our [], so we need to use [ and ] instead. 16781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16782 if test "x$has_forbidden_chars" != x; then 16783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16785 fi 16786 16787 # Output is in $new_path 16788 16789 windows_path="$new_path" 16790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16791 unix_path=`$CYGPATH -u "$windows_path"` 16792 new_path="$unix_path" 16793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16795 new_path="$unix_path" 16796 fi 16797 16798 # remove trailing .exe if any 16799 new_path="${new_path/%.exe/}" 16800 16801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16803 fi 16804 16805 else 16806 # We're on a posix platform. Hooray! :) 16807 # First separate the path from the arguments. This will split at the first 16808 # space. 16809 complete="$FOUND_MAKE" 16810 path="${complete%% *}" 16811 tmp="$complete EOL" 16812 arguments="${tmp#* }" 16813 16814 # Cannot rely on the command "which" here since it doesn't always work. 16815 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16816 if test -z "$is_absolute_path"; then 16817 # Path to executable is not absolute. Find it. 16818 IFS_save="$IFS" 16819 IFS=: 16820 for p in $PATH; do 16821 if test -f "$p/$path" && test -x "$p/$path"; then 16822 new_path="$p/$path" 16823 break 16824 fi 16825 done 16826 IFS="$IFS_save" 16827 else 16828 # This is an absolute path, we can use it without further modifications. 16829 new_path="$path" 16830 fi 16831 16832 if test "x$new_path" = x; then 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16834 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16835 has_space=`$ECHO "$complete" | $GREP " "` 16836 if test "x$has_space" != x; then 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16838 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16839 fi 16840 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16841 fi 16842 fi 16843 16844 # Now join together the path and the arguments once again 16845 if test "x$arguments" != xEOL; then 16846 new_complete="$new_path ${arguments% *}" 16847 else 16848 new_complete="$new_path" 16849 fi 16850 16851 if test "x$complete" != "x$new_complete"; then 16852 FOUND_MAKE="$new_complete" 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16854 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16855 fi 16856 16857 fi 16858 fi 16859 fi 16860 fi 16861 16862 if test "x$FOUND_MAKE" = x; then 16863 for ac_prog in make 16864 do 16865 # Extract the first word of "$ac_prog", so it can be a program name with args. 16866 set dummy $ac_prog; ac_word=$2 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16868 $as_echo_n "checking for $ac_word... " >&6; } 16869 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16870 $as_echo_n "(cached) " >&6 16871 else 16872 case $CHECK_TOOLSDIR_MAKE in 16873 [\\/]* | ?:[\\/]*) 16874 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16875 ;; 16876 *) 16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16878 for as_dir in $PATH 16879 do 16880 IFS=$as_save_IFS 16881 test -z "$as_dir" && as_dir=. 16882 for ac_exec_ext in '' $ac_executable_extensions; do 16883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16884 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16886 break 2 16887 fi 16888 done 16889 done 16890 IFS=$as_save_IFS 16891 16892 ;; 16893 esac 16894 fi 16895 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16896 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16898 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16899 else 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16901 $as_echo "no" >&6; } 16902 fi 16903 16904 16905 test -n "$CHECK_TOOLSDIR_MAKE" && break 16906 done 16907 16908 16909 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16910 DESCRIPTION="make in tools-dir" 16911 if test "x$MAKE_CANDIDATE" != x; then 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16913 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16914 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16915 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16916 if test "x$IS_GNU_MAKE" = x; then 16917 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16918 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16919 else 16920 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16921 if test "x$IS_MODERN_MAKE" = x; then 16922 { $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 16923 $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;} 16924 else 16925 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16927 MAKE_EXPECTED_ENV='cygwin' 16928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16929 MAKE_EXPECTED_ENV='msys' 16930 else 16931 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16932 fi 16933 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16934 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16935 else 16936 # Not relevant for non-Windows 16937 IS_MAKE_CORRECT_ENV=true 16938 fi 16939 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16940 { $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 16941 $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;} 16942 else 16943 FOUND_MAKE=$MAKE_CANDIDATE 16944 16945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16946 16947 # First separate the path from the arguments. This will split at the first 16948 # space. 16949 complete="$FOUND_MAKE" 16950 path="${complete%% *}" 16951 tmp="$complete EOL" 16952 arguments="${tmp#* }" 16953 16954 # Input might be given as Windows format, start by converting to 16955 # unix format. 16956 new_path=`$CYGPATH -u "$path"` 16957 16958 # Now try to locate executable using which 16959 new_path=`$WHICH "$new_path" 2> /dev/null` 16960 # bat and cmd files are not always considered executable in cygwin causing which 16961 # to not find them 16962 if test "x$new_path" = x \ 16963 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16964 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16965 new_path=`$CYGPATH -u "$path"` 16966 fi 16967 if test "x$new_path" = x; then 16968 # Oops. Which didn't find the executable. 16969 # The splitting of arguments from the executable at a space might have been incorrect, 16970 # since paths with space are more likely in Windows. Give it another try with the whole 16971 # argument. 16972 path="$complete" 16973 arguments="EOL" 16974 new_path=`$CYGPATH -u "$path"` 16975 new_path=`$WHICH "$new_path" 2> /dev/null` 16976 # bat and cmd files are not always considered executable in cygwin causing which 16977 # to not find them 16978 if test "x$new_path" = x \ 16979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16981 new_path=`$CYGPATH -u "$path"` 16982 fi 16983 if test "x$new_path" = x; then 16984 # It's still not found. Now this is an unrecoverable error. 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16987 has_space=`$ECHO "$complete" | $GREP " "` 16988 if test "x$has_space" != x; then 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16990 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16991 fi 16992 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16993 fi 16994 fi 16995 16996 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16997 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16998 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16999 # "foo.exe" is OK but "foo" is an error. 17000 # 17001 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17002 # It is also a way to make sure we got the proper file name for the real test later on. 17003 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17004 if test "x$test_shortpath" = x; then 17005 # Short path failed, file does not exist as specified. 17006 # Try adding .exe or .cmd 17007 if test -f "${new_path}.exe"; then 17008 input_to_shortpath="${new_path}.exe" 17009 elif test -f "${new_path}.cmd"; then 17010 input_to_shortpath="${new_path}.cmd" 17011 else 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17013 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17014 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17015 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17016 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17017 fi 17018 else 17019 input_to_shortpath="$new_path" 17020 fi 17021 17022 # Call helper function which possibly converts this using DOS-style short mode. 17023 # If so, the updated path is stored in $new_path. 17024 new_path="$input_to_shortpath" 17025 17026 input_path="$input_to_shortpath" 17027 # Check if we need to convert this using DOS-style short mode. If the path 17028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17029 # take no chances and rewrite it. 17030 # Note: m4 eats our [], so we need to use [ and ] instead. 17031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17032 if test "x$has_forbidden_chars" != x; then 17033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17034 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17035 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17036 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17037 # Going to short mode and back again did indeed matter. Since short mode is 17038 # case insensitive, let's make it lowercase to improve readability. 17039 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17040 # Now convert it back to Unix-stile (cygpath) 17041 input_path=`$CYGPATH -u "$shortmode_path"` 17042 new_path="$input_path" 17043 fi 17044 fi 17045 17046 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17047 if test "x$test_cygdrive_prefix" = x; then 17048 # As a simple fix, exclude /usr/bin since it's not a real path. 17049 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17050 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17051 # a path prefixed by /cygdrive for fixpath to work. 17052 new_path="$CYGWIN_ROOT_PATH$input_path" 17053 fi 17054 fi 17055 17056 # remove trailing .exe if any 17057 new_path="${new_path/%.exe/}" 17058 17059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17060 17061 # First separate the path from the arguments. This will split at the first 17062 # space. 17063 complete="$FOUND_MAKE" 17064 path="${complete%% *}" 17065 tmp="$complete EOL" 17066 arguments="${tmp#* }" 17067 17068 # Input might be given as Windows format, start by converting to 17069 # unix format. 17070 new_path="$path" 17071 17072 windows_path="$new_path" 17073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17074 unix_path=`$CYGPATH -u "$windows_path"` 17075 new_path="$unix_path" 17076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17077 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17078 new_path="$unix_path" 17079 fi 17080 17081 17082 # Now try to locate executable using which 17083 new_path=`$WHICH "$new_path" 2> /dev/null` 17084 17085 if test "x$new_path" = x; then 17086 # Oops. Which didn't find the executable. 17087 # The splitting of arguments from the executable at a space might have been incorrect, 17088 # since paths with space are more likely in Windows. Give it another try with the whole 17089 # argument. 17090 path="$complete" 17091 arguments="EOL" 17092 new_path="$path" 17093 17094 windows_path="$new_path" 17095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17096 unix_path=`$CYGPATH -u "$windows_path"` 17097 new_path="$unix_path" 17098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17100 new_path="$unix_path" 17101 fi 17102 17103 17104 new_path=`$WHICH "$new_path" 2> /dev/null` 17105 # bat and cmd files are not always considered executable in MSYS causing which 17106 # to not find them 17107 if test "x$new_path" = x \ 17108 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17109 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17110 new_path="$path" 17111 17112 windows_path="$new_path" 17113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17114 unix_path=`$CYGPATH -u "$windows_path"` 17115 new_path="$unix_path" 17116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17118 new_path="$unix_path" 17119 fi 17120 17121 fi 17122 17123 if test "x$new_path" = x; then 17124 # It's still not found. Now this is an unrecoverable error. 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17126 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17127 has_space=`$ECHO "$complete" | $GREP " "` 17128 if test "x$has_space" != x; then 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17130 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17131 fi 17132 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17133 fi 17134 fi 17135 17136 # Now new_path has a complete unix path to the binary 17137 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17138 # Keep paths in /bin as-is, but remove trailing .exe if any 17139 new_path="${new_path/%.exe/}" 17140 # Do not save /bin paths to all_fixpath_prefixes! 17141 else 17142 # Not in mixed or Windows style, start by that. 17143 new_path=`cmd //c echo $new_path` 17144 17145 input_path="$new_path" 17146 # Check if we need to convert this using DOS-style short mode. If the path 17147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17148 # take no chances and rewrite it. 17149 # Note: m4 eats our [], so we need to use [ and ] instead. 17150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17151 if test "x$has_forbidden_chars" != x; then 17152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17154 fi 17155 17156 # Output is in $new_path 17157 17158 windows_path="$new_path" 17159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17160 unix_path=`$CYGPATH -u "$windows_path"` 17161 new_path="$unix_path" 17162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17164 new_path="$unix_path" 17165 fi 17166 17167 # remove trailing .exe if any 17168 new_path="${new_path/%.exe/}" 17169 17170 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17171 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17172 fi 17173 17174 else 17175 # We're on a posix platform. Hooray! :) 17176 # First separate the path from the arguments. This will split at the first 17177 # space. 17178 complete="$FOUND_MAKE" 17179 path="${complete%% *}" 17180 tmp="$complete EOL" 17181 arguments="${tmp#* }" 17182 17183 # Cannot rely on the command "which" here since it doesn't always work. 17184 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17185 if test -z "$is_absolute_path"; then 17186 # Path to executable is not absolute. Find it. 17187 IFS_save="$IFS" 17188 IFS=: 17189 for p in $PATH; do 17190 if test -f "$p/$path" && test -x "$p/$path"; then 17191 new_path="$p/$path" 17192 break 17193 fi 17194 done 17195 IFS="$IFS_save" 17196 else 17197 # This is an absolute path, we can use it without further modifications. 17198 new_path="$path" 17199 fi 17200 17201 if test "x$new_path" = x; then 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17203 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17204 has_space=`$ECHO "$complete" | $GREP " "` 17205 if test "x$has_space" != x; then 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17207 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17208 fi 17209 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17210 fi 17211 fi 17212 17213 # Now join together the path and the arguments once again 17214 if test "x$arguments" != xEOL; then 17215 new_complete="$new_path ${arguments% *}" 17216 else 17217 new_complete="$new_path" 17218 fi 17219 17220 if test "x$complete" != "x$new_complete"; then 17221 FOUND_MAKE="$new_complete" 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17223 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17224 fi 17225 17226 fi 17227 fi 17228 fi 17229 fi 17230 17231 fi 17232 PATH=$OLD_PATH 17233 fi 17234 fi 17235 17236 if test "x$FOUND_MAKE" = x; then 17237 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 17238 fi 17239 fi 17240 17241 MAKE=$FOUND_MAKE 17242 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17244 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17245 17246 17247 # Check if make supports the output sync option and if so, setup using it. 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17249 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17250 if $MAKE --version -O > /dev/null 2>&1; then 17251 OUTPUT_SYNC_SUPPORTED=true 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17253 $as_echo "yes" >&6; } 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17255 $as_echo_n "checking for output-sync value... " >&6; } 17256 17257 # Check whether --with-output-sync was given. 17258 if test "${with_output_sync+set}" = set; then : 17259 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17260 fi 17261 17262 if test "x$OUTPUT_SYNC" = "x"; then 17263 OUTPUT_SYNC=none 17264 fi 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17266 $as_echo "$OUTPUT_SYNC" >&6; } 17267 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17268 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17269 fi 17270 else 17271 OUTPUT_SYNC_SUPPORTED=false 17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17273 $as_echo "no" >&6; } 17274 fi 17275 17276 17277 17278 17279 17280 17281 # Test if find supports -delete 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17283 $as_echo_n "checking if find supports -delete... " >&6; } 17284 FIND_DELETE="-delete" 17285 17286 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17287 17288 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17289 17290 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17291 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17292 # No, it does not. 17293 rm $DELETEDIR/TestIfFindSupportsDelete 17294 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17295 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17296 FIND_DELETE="-print | xargs rm" 17297 else 17298 FIND_DELETE="-exec rm \{\} \+" 17299 fi 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17301 $as_echo "no" >&6; } 17302 else 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17304 $as_echo "yes" >&6; } 17305 fi 17306 rmdir $DELETEDIR 17307 17308 17309 17310 # These tools might not be installed by default, 17311 # need hint on how to install them. 17312 17313 17314 17315 # Publish this variable in the help. 17316 17317 17318 if test "x$UNZIP" = x; then 17319 # The variable is not set by user, try to locate tool using the code snippet 17320 for ac_prog in unzip 17321 do 17322 # Extract the first word of "$ac_prog", so it can be a program name with args. 17323 set dummy $ac_prog; ac_word=$2 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17325 $as_echo_n "checking for $ac_word... " >&6; } 17326 if ${ac_cv_path_UNZIP+:} false; then : 17327 $as_echo_n "(cached) " >&6 17328 else 17329 case $UNZIP in 17330 [\\/]* | ?:[\\/]*) 17331 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17332 ;; 17333 *) 17334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17335 for as_dir in $PATH 17336 do 17337 IFS=$as_save_IFS 17338 test -z "$as_dir" && as_dir=. 17339 for ac_exec_ext in '' $ac_executable_extensions; do 17340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17341 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17343 break 2 17344 fi 17345 done 17346 done 17347 IFS=$as_save_IFS 17348 17349 ;; 17350 esac 17351 fi 17352 UNZIP=$ac_cv_path_UNZIP 17353 if test -n "$UNZIP"; then 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17355 $as_echo "$UNZIP" >&6; } 17356 else 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17358 $as_echo "no" >&6; } 17359 fi 17360 17361 17362 test -n "$UNZIP" && break 17363 done 17364 17365 else 17366 # The variable is set, but is it from the command line or the environment? 17367 17368 # Try to remove the string !UNZIP! from our list. 17369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17371 # If it failed, the variable was not from the command line. Ignore it, 17372 # but warn the user (except for BASH, which is always set by the calling BASH). 17373 if test "xUNZIP" != xBASH; then 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17375 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17376 fi 17377 # Try to locate tool using the code snippet 17378 for ac_prog in unzip 17379 do 17380 # Extract the first word of "$ac_prog", so it can be a program name with args. 17381 set dummy $ac_prog; ac_word=$2 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17383 $as_echo_n "checking for $ac_word... " >&6; } 17384 if ${ac_cv_path_UNZIP+:} false; then : 17385 $as_echo_n "(cached) " >&6 17386 else 17387 case $UNZIP in 17388 [\\/]* | ?:[\\/]*) 17389 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17390 ;; 17391 *) 17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17393 for as_dir in $PATH 17394 do 17395 IFS=$as_save_IFS 17396 test -z "$as_dir" && as_dir=. 17397 for ac_exec_ext in '' $ac_executable_extensions; do 17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17399 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17401 break 2 17402 fi 17403 done 17404 done 17405 IFS=$as_save_IFS 17406 17407 ;; 17408 esac 17409 fi 17410 UNZIP=$ac_cv_path_UNZIP 17411 if test -n "$UNZIP"; then 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17413 $as_echo "$UNZIP" >&6; } 17414 else 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17416 $as_echo "no" >&6; } 17417 fi 17418 17419 17420 test -n "$UNZIP" && break 17421 done 17422 17423 else 17424 # If it succeeded, then it was overridden by the user. We will use it 17425 # for the tool. 17426 17427 # First remove it from the list of overridden variables, so we can test 17428 # for unknown variables in the end. 17429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17430 17431 # Check if the provided tool contains a complete path. 17432 tool_specified="$UNZIP" 17433 tool_basename="${tool_specified##*/}" 17434 if test "x$tool_basename" = "x$tool_specified"; then 17435 # A command without a complete path is provided, search $PATH. 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17437 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17438 # Extract the first word of "$tool_basename", so it can be a program name with args. 17439 set dummy $tool_basename; ac_word=$2 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17441 $as_echo_n "checking for $ac_word... " >&6; } 17442 if ${ac_cv_path_UNZIP+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444 else 17445 case $UNZIP in 17446 [\\/]* | ?:[\\/]*) 17447 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17448 ;; 17449 *) 17450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17451 for as_dir in $PATH 17452 do 17453 IFS=$as_save_IFS 17454 test -z "$as_dir" && as_dir=. 17455 for ac_exec_ext in '' $ac_executable_extensions; do 17456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17457 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17459 break 2 17460 fi 17461 done 17462 done 17463 IFS=$as_save_IFS 17464 17465 ;; 17466 esac 17467 fi 17468 UNZIP=$ac_cv_path_UNZIP 17469 if test -n "$UNZIP"; then 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17471 $as_echo "$UNZIP" >&6; } 17472 else 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17474 $as_echo "no" >&6; } 17475 fi 17476 17477 17478 if test "x$UNZIP" = x; then 17479 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17480 fi 17481 else 17482 # Otherwise we believe it is a complete path. Use it as it is. 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17484 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17486 $as_echo_n "checking for UNZIP... " >&6; } 17487 if test ! -x "$tool_specified"; then 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17489 $as_echo "not found" >&6; } 17490 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17491 fi 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17493 $as_echo "$tool_specified" >&6; } 17494 fi 17495 fi 17496 fi 17497 17498 17499 17500 if test "x$UNZIP" = x; then 17501 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17502 fi 17503 17504 17505 17506 17507 17508 # Publish this variable in the help. 17509 17510 17511 if test "x$ZIP" = x; then 17512 # The variable is not set by user, try to locate tool using the code snippet 17513 for ac_prog in zip 17514 do 17515 # Extract the first word of "$ac_prog", so it can be a program name with args. 17516 set dummy $ac_prog; ac_word=$2 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17518 $as_echo_n "checking for $ac_word... " >&6; } 17519 if ${ac_cv_path_ZIP+:} false; then : 17520 $as_echo_n "(cached) " >&6 17521 else 17522 case $ZIP in 17523 [\\/]* | ?:[\\/]*) 17524 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17525 ;; 17526 *) 17527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17528 for as_dir in $PATH 17529 do 17530 IFS=$as_save_IFS 17531 test -z "$as_dir" && as_dir=. 17532 for ac_exec_ext in '' $ac_executable_extensions; do 17533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17534 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17536 break 2 17537 fi 17538 done 17539 done 17540 IFS=$as_save_IFS 17541 17542 ;; 17543 esac 17544 fi 17545 ZIP=$ac_cv_path_ZIP 17546 if test -n "$ZIP"; then 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17548 $as_echo "$ZIP" >&6; } 17549 else 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17551 $as_echo "no" >&6; } 17552 fi 17553 17554 17555 test -n "$ZIP" && break 17556 done 17557 17558 else 17559 # The variable is set, but is it from the command line or the environment? 17560 17561 # Try to remove the string !ZIP! from our list. 17562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17564 # If it failed, the variable was not from the command line. Ignore it, 17565 # but warn the user (except for BASH, which is always set by the calling BASH). 17566 if test "xZIP" != xBASH; then 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17568 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17569 fi 17570 # Try to locate tool using the code snippet 17571 for ac_prog in zip 17572 do 17573 # Extract the first word of "$ac_prog", so it can be a program name with args. 17574 set dummy $ac_prog; ac_word=$2 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17576 $as_echo_n "checking for $ac_word... " >&6; } 17577 if ${ac_cv_path_ZIP+:} false; then : 17578 $as_echo_n "(cached) " >&6 17579 else 17580 case $ZIP in 17581 [\\/]* | ?:[\\/]*) 17582 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17583 ;; 17584 *) 17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17586 for as_dir in $PATH 17587 do 17588 IFS=$as_save_IFS 17589 test -z "$as_dir" && as_dir=. 17590 for ac_exec_ext in '' $ac_executable_extensions; do 17591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17592 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17594 break 2 17595 fi 17596 done 17597 done 17598 IFS=$as_save_IFS 17599 17600 ;; 17601 esac 17602 fi 17603 ZIP=$ac_cv_path_ZIP 17604 if test -n "$ZIP"; then 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17606 $as_echo "$ZIP" >&6; } 17607 else 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17609 $as_echo "no" >&6; } 17610 fi 17611 17612 17613 test -n "$ZIP" && break 17614 done 17615 17616 else 17617 # If it succeeded, then it was overridden by the user. We will use it 17618 # for the tool. 17619 17620 # First remove it from the list of overridden variables, so we can test 17621 # for unknown variables in the end. 17622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17623 17624 # Check if the provided tool contains a complete path. 17625 tool_specified="$ZIP" 17626 tool_basename="${tool_specified##*/}" 17627 if test "x$tool_basename" = "x$tool_specified"; then 17628 # A command without a complete path is provided, search $PATH. 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17630 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17631 # Extract the first word of "$tool_basename", so it can be a program name with args. 17632 set dummy $tool_basename; ac_word=$2 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17634 $as_echo_n "checking for $ac_word... " >&6; } 17635 if ${ac_cv_path_ZIP+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637 else 17638 case $ZIP in 17639 [\\/]* | ?:[\\/]*) 17640 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17641 ;; 17642 *) 17643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17644 for as_dir in $PATH 17645 do 17646 IFS=$as_save_IFS 17647 test -z "$as_dir" && as_dir=. 17648 for ac_exec_ext in '' $ac_executable_extensions; do 17649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17650 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17652 break 2 17653 fi 17654 done 17655 done 17656 IFS=$as_save_IFS 17657 17658 ;; 17659 esac 17660 fi 17661 ZIP=$ac_cv_path_ZIP 17662 if test -n "$ZIP"; then 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17664 $as_echo "$ZIP" >&6; } 17665 else 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17667 $as_echo "no" >&6; } 17668 fi 17669 17670 17671 if test "x$ZIP" = x; then 17672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17673 fi 17674 else 17675 # Otherwise we believe it is a complete path. Use it as it is. 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17677 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17679 $as_echo_n "checking for ZIP... " >&6; } 17680 if test ! -x "$tool_specified"; then 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17682 $as_echo "not found" >&6; } 17683 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17684 fi 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17686 $as_echo "$tool_specified" >&6; } 17687 fi 17688 fi 17689 fi 17690 17691 17692 17693 if test "x$ZIP" = x; then 17694 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17695 fi 17696 17697 17698 17699 # Non-required basic tools 17700 17701 17702 17703 # Publish this variable in the help. 17704 17705 17706 if test "x$LDD" = x; then 17707 # The variable is not set by user, try to locate tool using the code snippet 17708 for ac_prog in ldd 17709 do 17710 # Extract the first word of "$ac_prog", so it can be a program name with args. 17711 set dummy $ac_prog; ac_word=$2 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17713 $as_echo_n "checking for $ac_word... " >&6; } 17714 if ${ac_cv_path_LDD+:} false; then : 17715 $as_echo_n "(cached) " >&6 17716 else 17717 case $LDD in 17718 [\\/]* | ?:[\\/]*) 17719 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17720 ;; 17721 *) 17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17723 for as_dir in $PATH 17724 do 17725 IFS=$as_save_IFS 17726 test -z "$as_dir" && as_dir=. 17727 for ac_exec_ext in '' $ac_executable_extensions; do 17728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17729 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17731 break 2 17732 fi 17733 done 17734 done 17735 IFS=$as_save_IFS 17736 17737 ;; 17738 esac 17739 fi 17740 LDD=$ac_cv_path_LDD 17741 if test -n "$LDD"; then 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17743 $as_echo "$LDD" >&6; } 17744 else 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17746 $as_echo "no" >&6; } 17747 fi 17748 17749 17750 test -n "$LDD" && break 17751 done 17752 17753 else 17754 # The variable is set, but is it from the command line or the environment? 17755 17756 # Try to remove the string !LDD! from our list. 17757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17759 # If it failed, the variable was not from the command line. Ignore it, 17760 # but warn the user (except for BASH, which is always set by the calling BASH). 17761 if test "xLDD" != xBASH; then 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17763 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17764 fi 17765 # Try to locate tool using the code snippet 17766 for ac_prog in ldd 17767 do 17768 # Extract the first word of "$ac_prog", so it can be a program name with args. 17769 set dummy $ac_prog; ac_word=$2 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17771 $as_echo_n "checking for $ac_word... " >&6; } 17772 if ${ac_cv_path_LDD+:} false; then : 17773 $as_echo_n "(cached) " >&6 17774 else 17775 case $LDD in 17776 [\\/]* | ?:[\\/]*) 17777 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17778 ;; 17779 *) 17780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17781 for as_dir in $PATH 17782 do 17783 IFS=$as_save_IFS 17784 test -z "$as_dir" && as_dir=. 17785 for ac_exec_ext in '' $ac_executable_extensions; do 17786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17787 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17789 break 2 17790 fi 17791 done 17792 done 17793 IFS=$as_save_IFS 17794 17795 ;; 17796 esac 17797 fi 17798 LDD=$ac_cv_path_LDD 17799 if test -n "$LDD"; then 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17801 $as_echo "$LDD" >&6; } 17802 else 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17804 $as_echo "no" >&6; } 17805 fi 17806 17807 17808 test -n "$LDD" && break 17809 done 17810 17811 else 17812 # If it succeeded, then it was overridden by the user. We will use it 17813 # for the tool. 17814 17815 # First remove it from the list of overridden variables, so we can test 17816 # for unknown variables in the end. 17817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17818 17819 # Check if the provided tool contains a complete path. 17820 tool_specified="$LDD" 17821 tool_basename="${tool_specified##*/}" 17822 if test "x$tool_basename" = "x$tool_specified"; then 17823 # A command without a complete path is provided, search $PATH. 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17825 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17826 # Extract the first word of "$tool_basename", so it can be a program name with args. 17827 set dummy $tool_basename; ac_word=$2 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17829 $as_echo_n "checking for $ac_word... " >&6; } 17830 if ${ac_cv_path_LDD+:} false; then : 17831 $as_echo_n "(cached) " >&6 17832 else 17833 case $LDD in 17834 [\\/]* | ?:[\\/]*) 17835 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17836 ;; 17837 *) 17838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17839 for as_dir in $PATH 17840 do 17841 IFS=$as_save_IFS 17842 test -z "$as_dir" && as_dir=. 17843 for ac_exec_ext in '' $ac_executable_extensions; do 17844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17845 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17847 break 2 17848 fi 17849 done 17850 done 17851 IFS=$as_save_IFS 17852 17853 ;; 17854 esac 17855 fi 17856 LDD=$ac_cv_path_LDD 17857 if test -n "$LDD"; then 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17859 $as_echo "$LDD" >&6; } 17860 else 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17862 $as_echo "no" >&6; } 17863 fi 17864 17865 17866 if test "x$LDD" = x; then 17867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17868 fi 17869 else 17870 # Otherwise we believe it is a complete path. Use it as it is. 17871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17872 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17874 $as_echo_n "checking for LDD... " >&6; } 17875 if test ! -x "$tool_specified"; then 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17877 $as_echo "not found" >&6; } 17878 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17879 fi 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17881 $as_echo "$tool_specified" >&6; } 17882 fi 17883 fi 17884 fi 17885 17886 17887 if test "x$LDD" = "x"; then 17888 # List shared lib dependencies is used for 17889 # debug output and checking for forbidden dependencies. 17890 # We can build without it. 17891 LDD="true" 17892 fi 17893 17894 17895 # Publish this variable in the help. 17896 17897 17898 if test "x$OTOOL" = x; then 17899 # The variable is not set by user, try to locate tool using the code snippet 17900 for ac_prog in otool 17901 do 17902 # Extract the first word of "$ac_prog", so it can be a program name with args. 17903 set dummy $ac_prog; ac_word=$2 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17905 $as_echo_n "checking for $ac_word... " >&6; } 17906 if ${ac_cv_path_OTOOL+:} false; then : 17907 $as_echo_n "(cached) " >&6 17908 else 17909 case $OTOOL in 17910 [\\/]* | ?:[\\/]*) 17911 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17912 ;; 17913 *) 17914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17915 for as_dir in $PATH 17916 do 17917 IFS=$as_save_IFS 17918 test -z "$as_dir" && as_dir=. 17919 for ac_exec_ext in '' $ac_executable_extensions; do 17920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17921 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17923 break 2 17924 fi 17925 done 17926 done 17927 IFS=$as_save_IFS 17928 17929 ;; 17930 esac 17931 fi 17932 OTOOL=$ac_cv_path_OTOOL 17933 if test -n "$OTOOL"; then 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17935 $as_echo "$OTOOL" >&6; } 17936 else 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17938 $as_echo "no" >&6; } 17939 fi 17940 17941 17942 test -n "$OTOOL" && break 17943 done 17944 17945 else 17946 # The variable is set, but is it from the command line or the environment? 17947 17948 # Try to remove the string !OTOOL! from our list. 17949 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17950 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17951 # If it failed, the variable was not from the command line. Ignore it, 17952 # but warn the user (except for BASH, which is always set by the calling BASH). 17953 if test "xOTOOL" != xBASH; then 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17955 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17956 fi 17957 # Try to locate tool using the code snippet 17958 for ac_prog in otool 17959 do 17960 # Extract the first word of "$ac_prog", so it can be a program name with args. 17961 set dummy $ac_prog; ac_word=$2 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17963 $as_echo_n "checking for $ac_word... " >&6; } 17964 if ${ac_cv_path_OTOOL+:} false; then : 17965 $as_echo_n "(cached) " >&6 17966 else 17967 case $OTOOL in 17968 [\\/]* | ?:[\\/]*) 17969 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17970 ;; 17971 *) 17972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17973 for as_dir in $PATH 17974 do 17975 IFS=$as_save_IFS 17976 test -z "$as_dir" && as_dir=. 17977 for ac_exec_ext in '' $ac_executable_extensions; do 17978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17979 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17981 break 2 17982 fi 17983 done 17984 done 17985 IFS=$as_save_IFS 17986 17987 ;; 17988 esac 17989 fi 17990 OTOOL=$ac_cv_path_OTOOL 17991 if test -n "$OTOOL"; then 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17993 $as_echo "$OTOOL" >&6; } 17994 else 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17996 $as_echo "no" >&6; } 17997 fi 17998 17999 18000 test -n "$OTOOL" && break 18001 done 18002 18003 else 18004 # If it succeeded, then it was overridden by the user. We will use it 18005 # for the tool. 18006 18007 # First remove it from the list of overridden variables, so we can test 18008 # for unknown variables in the end. 18009 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18010 18011 # Check if the provided tool contains a complete path. 18012 tool_specified="$OTOOL" 18013 tool_basename="${tool_specified##*/}" 18014 if test "x$tool_basename" = "x$tool_specified"; then 18015 # A command without a complete path is provided, search $PATH. 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18017 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18018 # Extract the first word of "$tool_basename", so it can be a program name with args. 18019 set dummy $tool_basename; ac_word=$2 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18021 $as_echo_n "checking for $ac_word... " >&6; } 18022 if ${ac_cv_path_OTOOL+:} false; then : 18023 $as_echo_n "(cached) " >&6 18024 else 18025 case $OTOOL in 18026 [\\/]* | ?:[\\/]*) 18027 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18028 ;; 18029 *) 18030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18031 for as_dir in $PATH 18032 do 18033 IFS=$as_save_IFS 18034 test -z "$as_dir" && as_dir=. 18035 for ac_exec_ext in '' $ac_executable_extensions; do 18036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18037 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18039 break 2 18040 fi 18041 done 18042 done 18043 IFS=$as_save_IFS 18044 18045 ;; 18046 esac 18047 fi 18048 OTOOL=$ac_cv_path_OTOOL 18049 if test -n "$OTOOL"; then 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18051 $as_echo "$OTOOL" >&6; } 18052 else 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18054 $as_echo "no" >&6; } 18055 fi 18056 18057 18058 if test "x$OTOOL" = x; then 18059 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18060 fi 18061 else 18062 # Otherwise we believe it is a complete path. Use it as it is. 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18064 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18066 $as_echo_n "checking for OTOOL... " >&6; } 18067 if test ! -x "$tool_specified"; then 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18069 $as_echo "not found" >&6; } 18070 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18071 fi 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18073 $as_echo "$tool_specified" >&6; } 18074 fi 18075 fi 18076 fi 18077 18078 18079 if test "x$OTOOL" = "x"; then 18080 OTOOL="true" 18081 fi 18082 18083 18084 # Publish this variable in the help. 18085 18086 18087 if test "x$READELF" = x; then 18088 # The variable is not set by user, try to locate tool using the code snippet 18089 for ac_prog in greadelf readelf 18090 do 18091 # Extract the first word of "$ac_prog", so it can be a program name with args. 18092 set dummy $ac_prog; ac_word=$2 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18094 $as_echo_n "checking for $ac_word... " >&6; } 18095 if ${ac_cv_path_READELF+:} false; then : 18096 $as_echo_n "(cached) " >&6 18097 else 18098 case $READELF in 18099 [\\/]* | ?:[\\/]*) 18100 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18101 ;; 18102 *) 18103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18104 for as_dir in $PATH 18105 do 18106 IFS=$as_save_IFS 18107 test -z "$as_dir" && as_dir=. 18108 for ac_exec_ext in '' $ac_executable_extensions; do 18109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18110 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18112 break 2 18113 fi 18114 done 18115 done 18116 IFS=$as_save_IFS 18117 18118 ;; 18119 esac 18120 fi 18121 READELF=$ac_cv_path_READELF 18122 if test -n "$READELF"; then 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18124 $as_echo "$READELF" >&6; } 18125 else 18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18127 $as_echo "no" >&6; } 18128 fi 18129 18130 18131 test -n "$READELF" && break 18132 done 18133 18134 else 18135 # The variable is set, but is it from the command line or the environment? 18136 18137 # Try to remove the string !READELF! from our list. 18138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18140 # If it failed, the variable was not from the command line. Ignore it, 18141 # but warn the user (except for BASH, which is always set by the calling BASH). 18142 if test "xREADELF" != xBASH; then 18143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18144 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18145 fi 18146 # Try to locate tool using the code snippet 18147 for ac_prog in greadelf readelf 18148 do 18149 # Extract the first word of "$ac_prog", so it can be a program name with args. 18150 set dummy $ac_prog; ac_word=$2 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18152 $as_echo_n "checking for $ac_word... " >&6; } 18153 if ${ac_cv_path_READELF+:} false; then : 18154 $as_echo_n "(cached) " >&6 18155 else 18156 case $READELF in 18157 [\\/]* | ?:[\\/]*) 18158 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18159 ;; 18160 *) 18161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18162 for as_dir in $PATH 18163 do 18164 IFS=$as_save_IFS 18165 test -z "$as_dir" && as_dir=. 18166 for ac_exec_ext in '' $ac_executable_extensions; do 18167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18168 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18170 break 2 18171 fi 18172 done 18173 done 18174 IFS=$as_save_IFS 18175 18176 ;; 18177 esac 18178 fi 18179 READELF=$ac_cv_path_READELF 18180 if test -n "$READELF"; then 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18182 $as_echo "$READELF" >&6; } 18183 else 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18185 $as_echo "no" >&6; } 18186 fi 18187 18188 18189 test -n "$READELF" && break 18190 done 18191 18192 else 18193 # If it succeeded, then it was overridden by the user. We will use it 18194 # for the tool. 18195 18196 # First remove it from the list of overridden variables, so we can test 18197 # for unknown variables in the end. 18198 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18199 18200 # Check if the provided tool contains a complete path. 18201 tool_specified="$READELF" 18202 tool_basename="${tool_specified##*/}" 18203 if test "x$tool_basename" = "x$tool_specified"; then 18204 # A command without a complete path is provided, search $PATH. 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18206 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18207 # Extract the first word of "$tool_basename", so it can be a program name with args. 18208 set dummy $tool_basename; ac_word=$2 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18210 $as_echo_n "checking for $ac_word... " >&6; } 18211 if ${ac_cv_path_READELF+:} false; then : 18212 $as_echo_n "(cached) " >&6 18213 else 18214 case $READELF in 18215 [\\/]* | ?:[\\/]*) 18216 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18217 ;; 18218 *) 18219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18220 for as_dir in $PATH 18221 do 18222 IFS=$as_save_IFS 18223 test -z "$as_dir" && as_dir=. 18224 for ac_exec_ext in '' $ac_executable_extensions; do 18225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18226 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18228 break 2 18229 fi 18230 done 18231 done 18232 IFS=$as_save_IFS 18233 18234 ;; 18235 esac 18236 fi 18237 READELF=$ac_cv_path_READELF 18238 if test -n "$READELF"; then 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18240 $as_echo "$READELF" >&6; } 18241 else 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18243 $as_echo "no" >&6; } 18244 fi 18245 18246 18247 if test "x$READELF" = x; then 18248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18249 fi 18250 else 18251 # Otherwise we believe it is a complete path. Use it as it is. 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18253 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18255 $as_echo_n "checking for READELF... " >&6; } 18256 if test ! -x "$tool_specified"; then 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18258 $as_echo "not found" >&6; } 18259 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18260 fi 18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18262 $as_echo "$tool_specified" >&6; } 18263 fi 18264 fi 18265 fi 18266 18267 18268 18269 18270 # Publish this variable in the help. 18271 18272 18273 if test "x$HG" = x; then 18274 # The variable is not set by user, try to locate tool using the code snippet 18275 for ac_prog in hg 18276 do 18277 # Extract the first word of "$ac_prog", so it can be a program name with args. 18278 set dummy $ac_prog; ac_word=$2 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18280 $as_echo_n "checking for $ac_word... " >&6; } 18281 if ${ac_cv_path_HG+:} false; then : 18282 $as_echo_n "(cached) " >&6 18283 else 18284 case $HG in 18285 [\\/]* | ?:[\\/]*) 18286 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18287 ;; 18288 *) 18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18290 for as_dir in $PATH 18291 do 18292 IFS=$as_save_IFS 18293 test -z "$as_dir" && as_dir=. 18294 for ac_exec_ext in '' $ac_executable_extensions; do 18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18296 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18298 break 2 18299 fi 18300 done 18301 done 18302 IFS=$as_save_IFS 18303 18304 ;; 18305 esac 18306 fi 18307 HG=$ac_cv_path_HG 18308 if test -n "$HG"; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18310 $as_echo "$HG" >&6; } 18311 else 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18313 $as_echo "no" >&6; } 18314 fi 18315 18316 18317 test -n "$HG" && break 18318 done 18319 18320 else 18321 # The variable is set, but is it from the command line or the environment? 18322 18323 # Try to remove the string !HG! from our list. 18324 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18325 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18326 # If it failed, the variable was not from the command line. Ignore it, 18327 # but warn the user (except for BASH, which is always set by the calling BASH). 18328 if test "xHG" != xBASH; then 18329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18330 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18331 fi 18332 # Try to locate tool using the code snippet 18333 for ac_prog in hg 18334 do 18335 # Extract the first word of "$ac_prog", so it can be a program name with args. 18336 set dummy $ac_prog; ac_word=$2 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18338 $as_echo_n "checking for $ac_word... " >&6; } 18339 if ${ac_cv_path_HG+:} false; then : 18340 $as_echo_n "(cached) " >&6 18341 else 18342 case $HG in 18343 [\\/]* | ?:[\\/]*) 18344 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18345 ;; 18346 *) 18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18348 for as_dir in $PATH 18349 do 18350 IFS=$as_save_IFS 18351 test -z "$as_dir" && as_dir=. 18352 for ac_exec_ext in '' $ac_executable_extensions; do 18353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18354 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18356 break 2 18357 fi 18358 done 18359 done 18360 IFS=$as_save_IFS 18361 18362 ;; 18363 esac 18364 fi 18365 HG=$ac_cv_path_HG 18366 if test -n "$HG"; then 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18368 $as_echo "$HG" >&6; } 18369 else 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18371 $as_echo "no" >&6; } 18372 fi 18373 18374 18375 test -n "$HG" && break 18376 done 18377 18378 else 18379 # If it succeeded, then it was overridden by the user. We will use it 18380 # for the tool. 18381 18382 # First remove it from the list of overridden variables, so we can test 18383 # for unknown variables in the end. 18384 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18385 18386 # Check if the provided tool contains a complete path. 18387 tool_specified="$HG" 18388 tool_basename="${tool_specified##*/}" 18389 if test "x$tool_basename" = "x$tool_specified"; then 18390 # A command without a complete path is provided, search $PATH. 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18392 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18393 # Extract the first word of "$tool_basename", so it can be a program name with args. 18394 set dummy $tool_basename; ac_word=$2 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18396 $as_echo_n "checking for $ac_word... " >&6; } 18397 if ${ac_cv_path_HG+:} false; then : 18398 $as_echo_n "(cached) " >&6 18399 else 18400 case $HG in 18401 [\\/]* | ?:[\\/]*) 18402 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18403 ;; 18404 *) 18405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18406 for as_dir in $PATH 18407 do 18408 IFS=$as_save_IFS 18409 test -z "$as_dir" && as_dir=. 18410 for ac_exec_ext in '' $ac_executable_extensions; do 18411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18412 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18414 break 2 18415 fi 18416 done 18417 done 18418 IFS=$as_save_IFS 18419 18420 ;; 18421 esac 18422 fi 18423 HG=$ac_cv_path_HG 18424 if test -n "$HG"; then 18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18426 $as_echo "$HG" >&6; } 18427 else 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18429 $as_echo "no" >&6; } 18430 fi 18431 18432 18433 if test "x$HG" = x; then 18434 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18435 fi 18436 else 18437 # Otherwise we believe it is a complete path. Use it as it is. 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18439 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18441 $as_echo_n "checking for HG... " >&6; } 18442 if test ! -x "$tool_specified"; then 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18444 $as_echo "not found" >&6; } 18445 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18446 fi 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18448 $as_echo "$tool_specified" >&6; } 18449 fi 18450 fi 18451 fi 18452 18453 18454 18455 18456 # Publish this variable in the help. 18457 18458 18459 if test "x$STAT" = x; then 18460 # The variable is not set by user, try to locate tool using the code snippet 18461 for ac_prog in stat 18462 do 18463 # Extract the first word of "$ac_prog", so it can be a program name with args. 18464 set dummy $ac_prog; ac_word=$2 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18466 $as_echo_n "checking for $ac_word... " >&6; } 18467 if ${ac_cv_path_STAT+:} false; then : 18468 $as_echo_n "(cached) " >&6 18469 else 18470 case $STAT in 18471 [\\/]* | ?:[\\/]*) 18472 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18473 ;; 18474 *) 18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18476 for as_dir in $PATH 18477 do 18478 IFS=$as_save_IFS 18479 test -z "$as_dir" && as_dir=. 18480 for ac_exec_ext in '' $ac_executable_extensions; do 18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18482 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18484 break 2 18485 fi 18486 done 18487 done 18488 IFS=$as_save_IFS 18489 18490 ;; 18491 esac 18492 fi 18493 STAT=$ac_cv_path_STAT 18494 if test -n "$STAT"; then 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18496 $as_echo "$STAT" >&6; } 18497 else 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18499 $as_echo "no" >&6; } 18500 fi 18501 18502 18503 test -n "$STAT" && break 18504 done 18505 18506 else 18507 # The variable is set, but is it from the command line or the environment? 18508 18509 # Try to remove the string !STAT! from our list. 18510 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18511 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18512 # If it failed, the variable was not from the command line. Ignore it, 18513 # but warn the user (except for BASH, which is always set by the calling BASH). 18514 if test "xSTAT" != xBASH; then 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18516 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18517 fi 18518 # Try to locate tool using the code snippet 18519 for ac_prog in stat 18520 do 18521 # Extract the first word of "$ac_prog", so it can be a program name with args. 18522 set dummy $ac_prog; ac_word=$2 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18524 $as_echo_n "checking for $ac_word... " >&6; } 18525 if ${ac_cv_path_STAT+:} false; then : 18526 $as_echo_n "(cached) " >&6 18527 else 18528 case $STAT in 18529 [\\/]* | ?:[\\/]*) 18530 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18531 ;; 18532 *) 18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18534 for as_dir in $PATH 18535 do 18536 IFS=$as_save_IFS 18537 test -z "$as_dir" && as_dir=. 18538 for ac_exec_ext in '' $ac_executable_extensions; do 18539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18540 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18542 break 2 18543 fi 18544 done 18545 done 18546 IFS=$as_save_IFS 18547 18548 ;; 18549 esac 18550 fi 18551 STAT=$ac_cv_path_STAT 18552 if test -n "$STAT"; then 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18554 $as_echo "$STAT" >&6; } 18555 else 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18557 $as_echo "no" >&6; } 18558 fi 18559 18560 18561 test -n "$STAT" && break 18562 done 18563 18564 else 18565 # If it succeeded, then it was overridden by the user. We will use it 18566 # for the tool. 18567 18568 # First remove it from the list of overridden variables, so we can test 18569 # for unknown variables in the end. 18570 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18571 18572 # Check if the provided tool contains a complete path. 18573 tool_specified="$STAT" 18574 tool_basename="${tool_specified##*/}" 18575 if test "x$tool_basename" = "x$tool_specified"; then 18576 # A command without a complete path is provided, search $PATH. 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18578 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18579 # Extract the first word of "$tool_basename", so it can be a program name with args. 18580 set dummy $tool_basename; ac_word=$2 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18582 $as_echo_n "checking for $ac_word... " >&6; } 18583 if ${ac_cv_path_STAT+:} false; then : 18584 $as_echo_n "(cached) " >&6 18585 else 18586 case $STAT in 18587 [\\/]* | ?:[\\/]*) 18588 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18589 ;; 18590 *) 18591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18592 for as_dir in $PATH 18593 do 18594 IFS=$as_save_IFS 18595 test -z "$as_dir" && as_dir=. 18596 for ac_exec_ext in '' $ac_executable_extensions; do 18597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18598 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18600 break 2 18601 fi 18602 done 18603 done 18604 IFS=$as_save_IFS 18605 18606 ;; 18607 esac 18608 fi 18609 STAT=$ac_cv_path_STAT 18610 if test -n "$STAT"; then 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18612 $as_echo "$STAT" >&6; } 18613 else 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18615 $as_echo "no" >&6; } 18616 fi 18617 18618 18619 if test "x$STAT" = x; then 18620 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18621 fi 18622 else 18623 # Otherwise we believe it is a complete path. Use it as it is. 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18625 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18627 $as_echo_n "checking for STAT... " >&6; } 18628 if test ! -x "$tool_specified"; then 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18630 $as_echo "not found" >&6; } 18631 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18632 fi 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18634 $as_echo "$tool_specified" >&6; } 18635 fi 18636 fi 18637 fi 18638 18639 18640 18641 18642 # Publish this variable in the help. 18643 18644 18645 if test "x$TIME" = x; then 18646 # The variable is not set by user, try to locate tool using the code snippet 18647 for ac_prog in time 18648 do 18649 # Extract the first word of "$ac_prog", so it can be a program name with args. 18650 set dummy $ac_prog; ac_word=$2 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18652 $as_echo_n "checking for $ac_word... " >&6; } 18653 if ${ac_cv_path_TIME+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655 else 18656 case $TIME in 18657 [\\/]* | ?:[\\/]*) 18658 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18659 ;; 18660 *) 18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18662 for as_dir in $PATH 18663 do 18664 IFS=$as_save_IFS 18665 test -z "$as_dir" && as_dir=. 18666 for ac_exec_ext in '' $ac_executable_extensions; do 18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18668 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18670 break 2 18671 fi 18672 done 18673 done 18674 IFS=$as_save_IFS 18675 18676 ;; 18677 esac 18678 fi 18679 TIME=$ac_cv_path_TIME 18680 if test -n "$TIME"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18682 $as_echo "$TIME" >&6; } 18683 else 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18685 $as_echo "no" >&6; } 18686 fi 18687 18688 18689 test -n "$TIME" && break 18690 done 18691 18692 else 18693 # The variable is set, but is it from the command line or the environment? 18694 18695 # Try to remove the string !TIME! from our list. 18696 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18697 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18698 # If it failed, the variable was not from the command line. Ignore it, 18699 # but warn the user (except for BASH, which is always set by the calling BASH). 18700 if test "xTIME" != xBASH; then 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18702 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18703 fi 18704 # Try to locate tool using the code snippet 18705 for ac_prog in time 18706 do 18707 # Extract the first word of "$ac_prog", so it can be a program name with args. 18708 set dummy $ac_prog; ac_word=$2 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18710 $as_echo_n "checking for $ac_word... " >&6; } 18711 if ${ac_cv_path_TIME+:} false; then : 18712 $as_echo_n "(cached) " >&6 18713 else 18714 case $TIME in 18715 [\\/]* | ?:[\\/]*) 18716 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18717 ;; 18718 *) 18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18720 for as_dir in $PATH 18721 do 18722 IFS=$as_save_IFS 18723 test -z "$as_dir" && as_dir=. 18724 for ac_exec_ext in '' $ac_executable_extensions; do 18725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18726 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18728 break 2 18729 fi 18730 done 18731 done 18732 IFS=$as_save_IFS 18733 18734 ;; 18735 esac 18736 fi 18737 TIME=$ac_cv_path_TIME 18738 if test -n "$TIME"; then 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18740 $as_echo "$TIME" >&6; } 18741 else 18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18743 $as_echo "no" >&6; } 18744 fi 18745 18746 18747 test -n "$TIME" && break 18748 done 18749 18750 else 18751 # If it succeeded, then it was overridden by the user. We will use it 18752 # for the tool. 18753 18754 # First remove it from the list of overridden variables, so we can test 18755 # for unknown variables in the end. 18756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18757 18758 # Check if the provided tool contains a complete path. 18759 tool_specified="$TIME" 18760 tool_basename="${tool_specified##*/}" 18761 if test "x$tool_basename" = "x$tool_specified"; then 18762 # A command without a complete path is provided, search $PATH. 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18764 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18765 # Extract the first word of "$tool_basename", so it can be a program name with args. 18766 set dummy $tool_basename; ac_word=$2 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18768 $as_echo_n "checking for $ac_word... " >&6; } 18769 if ${ac_cv_path_TIME+:} false; then : 18770 $as_echo_n "(cached) " >&6 18771 else 18772 case $TIME in 18773 [\\/]* | ?:[\\/]*) 18774 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18775 ;; 18776 *) 18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18778 for as_dir in $PATH 18779 do 18780 IFS=$as_save_IFS 18781 test -z "$as_dir" && as_dir=. 18782 for ac_exec_ext in '' $ac_executable_extensions; do 18783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18784 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18786 break 2 18787 fi 18788 done 18789 done 18790 IFS=$as_save_IFS 18791 18792 ;; 18793 esac 18794 fi 18795 TIME=$ac_cv_path_TIME 18796 if test -n "$TIME"; then 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18798 $as_echo "$TIME" >&6; } 18799 else 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18801 $as_echo "no" >&6; } 18802 fi 18803 18804 18805 if test "x$TIME" = x; then 18806 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18807 fi 18808 else 18809 # Otherwise we believe it is a complete path. Use it as it is. 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18811 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18813 $as_echo_n "checking for TIME... " >&6; } 18814 if test ! -x "$tool_specified"; then 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18816 $as_echo "not found" >&6; } 18817 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18818 fi 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18820 $as_echo "$tool_specified" >&6; } 18821 fi 18822 fi 18823 fi 18824 18825 18826 # Check if it's GNU time 18827 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18828 if test "x$IS_GNU_TIME" != x; then 18829 IS_GNU_TIME=yes 18830 else 18831 IS_GNU_TIME=no 18832 fi 18833 18834 18835 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18836 18837 18838 18839 # Publish this variable in the help. 18840 18841 18842 if test "x$COMM" = x; then 18843 # The variable is not set by user, try to locate tool using the code snippet 18844 for ac_prog in comm 18845 do 18846 # Extract the first word of "$ac_prog", so it can be a program name with args. 18847 set dummy $ac_prog; ac_word=$2 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18849 $as_echo_n "checking for $ac_word... " >&6; } 18850 if ${ac_cv_path_COMM+:} false; then : 18851 $as_echo_n "(cached) " >&6 18852 else 18853 case $COMM in 18854 [\\/]* | ?:[\\/]*) 18855 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18856 ;; 18857 *) 18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18859 for as_dir in $PATH 18860 do 18861 IFS=$as_save_IFS 18862 test -z "$as_dir" && as_dir=. 18863 for ac_exec_ext in '' $ac_executable_extensions; do 18864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18865 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18867 break 2 18868 fi 18869 done 18870 done 18871 IFS=$as_save_IFS 18872 18873 ;; 18874 esac 18875 fi 18876 COMM=$ac_cv_path_COMM 18877 if test -n "$COMM"; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18879 $as_echo "$COMM" >&6; } 18880 else 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18882 $as_echo "no" >&6; } 18883 fi 18884 18885 18886 test -n "$COMM" && break 18887 done 18888 18889 else 18890 # The variable is set, but is it from the command line or the environment? 18891 18892 # Try to remove the string !COMM! from our list. 18893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18895 # If it failed, the variable was not from the command line. Ignore it, 18896 # but warn the user (except for BASH, which is always set by the calling BASH). 18897 if test "xCOMM" != xBASH; then 18898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18899 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18900 fi 18901 # Try to locate tool using the code snippet 18902 for ac_prog in comm 18903 do 18904 # Extract the first word of "$ac_prog", so it can be a program name with args. 18905 set dummy $ac_prog; ac_word=$2 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907 $as_echo_n "checking for $ac_word... " >&6; } 18908 if ${ac_cv_path_COMM+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910 else 18911 case $COMM in 18912 [\\/]* | ?:[\\/]*) 18913 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18914 ;; 18915 *) 18916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18917 for as_dir in $PATH 18918 do 18919 IFS=$as_save_IFS 18920 test -z "$as_dir" && as_dir=. 18921 for ac_exec_ext in '' $ac_executable_extensions; do 18922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18923 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18925 break 2 18926 fi 18927 done 18928 done 18929 IFS=$as_save_IFS 18930 18931 ;; 18932 esac 18933 fi 18934 COMM=$ac_cv_path_COMM 18935 if test -n "$COMM"; then 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18937 $as_echo "$COMM" >&6; } 18938 else 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18940 $as_echo "no" >&6; } 18941 fi 18942 18943 18944 test -n "$COMM" && break 18945 done 18946 18947 else 18948 # If it succeeded, then it was overridden by the user. We will use it 18949 # for the tool. 18950 18951 # First remove it from the list of overridden variables, so we can test 18952 # for unknown variables in the end. 18953 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18954 18955 # Check if the provided tool contains a complete path. 18956 tool_specified="$COMM" 18957 tool_basename="${tool_specified##*/}" 18958 if test "x$tool_basename" = "x$tool_specified"; then 18959 # A command without a complete path is provided, search $PATH. 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18961 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18962 # Extract the first word of "$tool_basename", so it can be a program name with args. 18963 set dummy $tool_basename; ac_word=$2 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18965 $as_echo_n "checking for $ac_word... " >&6; } 18966 if ${ac_cv_path_COMM+:} false; then : 18967 $as_echo_n "(cached) " >&6 18968 else 18969 case $COMM in 18970 [\\/]* | ?:[\\/]*) 18971 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18972 ;; 18973 *) 18974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18975 for as_dir in $PATH 18976 do 18977 IFS=$as_save_IFS 18978 test -z "$as_dir" && as_dir=. 18979 for ac_exec_ext in '' $ac_executable_extensions; do 18980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18981 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18983 break 2 18984 fi 18985 done 18986 done 18987 IFS=$as_save_IFS 18988 18989 ;; 18990 esac 18991 fi 18992 COMM=$ac_cv_path_COMM 18993 if test -n "$COMM"; then 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18995 $as_echo "$COMM" >&6; } 18996 else 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18998 $as_echo "no" >&6; } 18999 fi 19000 19001 19002 if test "x$COMM" = x; then 19003 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19004 fi 19005 else 19006 # Otherwise we believe it is a complete path. Use it as it is. 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 19008 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 19010 $as_echo_n "checking for COMM... " >&6; } 19011 if test ! -x "$tool_specified"; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19013 $as_echo "not found" >&6; } 19014 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 19015 fi 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19017 $as_echo "$tool_specified" >&6; } 19018 fi 19019 fi 19020 fi 19021 19022 19023 19024 if test "x$COMM" = x; then 19025 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 19026 fi 19027 19028 19029 fi 19030 19031 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19032 19033 19034 19035 # Publish this variable in the help. 19036 19037 19038 if test "x$DSYMUTIL" = x; then 19039 # The variable is not set by user, try to locate tool using the code snippet 19040 for ac_prog in dsymutil 19041 do 19042 # Extract the first word of "$ac_prog", so it can be a program name with args. 19043 set dummy $ac_prog; ac_word=$2 19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19045 $as_echo_n "checking for $ac_word... " >&6; } 19046 if ${ac_cv_path_DSYMUTIL+:} false; then : 19047 $as_echo_n "(cached) " >&6 19048 else 19049 case $DSYMUTIL in 19050 [\\/]* | ?:[\\/]*) 19051 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19052 ;; 19053 *) 19054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19055 for as_dir in $PATH 19056 do 19057 IFS=$as_save_IFS 19058 test -z "$as_dir" && as_dir=. 19059 for ac_exec_ext in '' $ac_executable_extensions; do 19060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19061 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19063 break 2 19064 fi 19065 done 19066 done 19067 IFS=$as_save_IFS 19068 19069 ;; 19070 esac 19071 fi 19072 DSYMUTIL=$ac_cv_path_DSYMUTIL 19073 if test -n "$DSYMUTIL"; then 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19075 $as_echo "$DSYMUTIL" >&6; } 19076 else 19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19078 $as_echo "no" >&6; } 19079 fi 19080 19081 19082 test -n "$DSYMUTIL" && break 19083 done 19084 19085 else 19086 # The variable is set, but is it from the command line or the environment? 19087 19088 # Try to remove the string !DSYMUTIL! from our list. 19089 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19090 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19091 # If it failed, the variable was not from the command line. Ignore it, 19092 # but warn the user (except for BASH, which is always set by the calling BASH). 19093 if test "xDSYMUTIL" != xBASH; then 19094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19095 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19096 fi 19097 # Try to locate tool using the code snippet 19098 for ac_prog in dsymutil 19099 do 19100 # Extract the first word of "$ac_prog", so it can be a program name with args. 19101 set dummy $ac_prog; ac_word=$2 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19103 $as_echo_n "checking for $ac_word... " >&6; } 19104 if ${ac_cv_path_DSYMUTIL+:} false; then : 19105 $as_echo_n "(cached) " >&6 19106 else 19107 case $DSYMUTIL in 19108 [\\/]* | ?:[\\/]*) 19109 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19110 ;; 19111 *) 19112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19113 for as_dir in $PATH 19114 do 19115 IFS=$as_save_IFS 19116 test -z "$as_dir" && as_dir=. 19117 for ac_exec_ext in '' $ac_executable_extensions; do 19118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19119 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19121 break 2 19122 fi 19123 done 19124 done 19125 IFS=$as_save_IFS 19126 19127 ;; 19128 esac 19129 fi 19130 DSYMUTIL=$ac_cv_path_DSYMUTIL 19131 if test -n "$DSYMUTIL"; then 19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19133 $as_echo "$DSYMUTIL" >&6; } 19134 else 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136 $as_echo "no" >&6; } 19137 fi 19138 19139 19140 test -n "$DSYMUTIL" && break 19141 done 19142 19143 else 19144 # If it succeeded, then it was overridden by the user. We will use it 19145 # for the tool. 19146 19147 # First remove it from the list of overridden variables, so we can test 19148 # for unknown variables in the end. 19149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19150 19151 # Check if the provided tool contains a complete path. 19152 tool_specified="$DSYMUTIL" 19153 tool_basename="${tool_specified##*/}" 19154 if test "x$tool_basename" = "x$tool_specified"; then 19155 # A command without a complete path is provided, search $PATH. 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19157 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19158 # Extract the first word of "$tool_basename", so it can be a program name with args. 19159 set dummy $tool_basename; ac_word=$2 19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19161 $as_echo_n "checking for $ac_word... " >&6; } 19162 if ${ac_cv_path_DSYMUTIL+:} false; then : 19163 $as_echo_n "(cached) " >&6 19164 else 19165 case $DSYMUTIL in 19166 [\\/]* | ?:[\\/]*) 19167 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19168 ;; 19169 *) 19170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19171 for as_dir in $PATH 19172 do 19173 IFS=$as_save_IFS 19174 test -z "$as_dir" && as_dir=. 19175 for ac_exec_ext in '' $ac_executable_extensions; do 19176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19177 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19179 break 2 19180 fi 19181 done 19182 done 19183 IFS=$as_save_IFS 19184 19185 ;; 19186 esac 19187 fi 19188 DSYMUTIL=$ac_cv_path_DSYMUTIL 19189 if test -n "$DSYMUTIL"; then 19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19191 $as_echo "$DSYMUTIL" >&6; } 19192 else 19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19194 $as_echo "no" >&6; } 19195 fi 19196 19197 19198 if test "x$DSYMUTIL" = x; then 19199 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19200 fi 19201 else 19202 # Otherwise we believe it is a complete path. Use it as it is. 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19204 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19206 $as_echo_n "checking for DSYMUTIL... " >&6; } 19207 if test ! -x "$tool_specified"; then 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19209 $as_echo "not found" >&6; } 19210 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19211 fi 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19213 $as_echo "$tool_specified" >&6; } 19214 fi 19215 fi 19216 fi 19217 19218 19219 19220 if test "x$DSYMUTIL" = x; then 19221 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19222 fi 19223 19224 19225 19226 19227 19228 # Publish this variable in the help. 19229 19230 19231 if test "x$XATTR" = x; then 19232 # The variable is not set by user, try to locate tool using the code snippet 19233 for ac_prog in xattr 19234 do 19235 # Extract the first word of "$ac_prog", so it can be a program name with args. 19236 set dummy $ac_prog; ac_word=$2 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19238 $as_echo_n "checking for $ac_word... " >&6; } 19239 if ${ac_cv_path_XATTR+:} false; then : 19240 $as_echo_n "(cached) " >&6 19241 else 19242 case $XATTR in 19243 [\\/]* | ?:[\\/]*) 19244 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19245 ;; 19246 *) 19247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19248 for as_dir in $PATH 19249 do 19250 IFS=$as_save_IFS 19251 test -z "$as_dir" && as_dir=. 19252 for ac_exec_ext in '' $ac_executable_extensions; do 19253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19254 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19256 break 2 19257 fi 19258 done 19259 done 19260 IFS=$as_save_IFS 19261 19262 ;; 19263 esac 19264 fi 19265 XATTR=$ac_cv_path_XATTR 19266 if test -n "$XATTR"; then 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19268 $as_echo "$XATTR" >&6; } 19269 else 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19271 $as_echo "no" >&6; } 19272 fi 19273 19274 19275 test -n "$XATTR" && break 19276 done 19277 19278 else 19279 # The variable is set, but is it from the command line or the environment? 19280 19281 # Try to remove the string !XATTR! from our list. 19282 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19283 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19284 # If it failed, the variable was not from the command line. Ignore it, 19285 # but warn the user (except for BASH, which is always set by the calling BASH). 19286 if test "xXATTR" != xBASH; then 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19288 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19289 fi 19290 # Try to locate tool using the code snippet 19291 for ac_prog in xattr 19292 do 19293 # Extract the first word of "$ac_prog", so it can be a program name with args. 19294 set dummy $ac_prog; ac_word=$2 19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19296 $as_echo_n "checking for $ac_word... " >&6; } 19297 if ${ac_cv_path_XATTR+:} false; then : 19298 $as_echo_n "(cached) " >&6 19299 else 19300 case $XATTR in 19301 [\\/]* | ?:[\\/]*) 19302 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19303 ;; 19304 *) 19305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19306 for as_dir in $PATH 19307 do 19308 IFS=$as_save_IFS 19309 test -z "$as_dir" && as_dir=. 19310 for ac_exec_ext in '' $ac_executable_extensions; do 19311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19312 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19314 break 2 19315 fi 19316 done 19317 done 19318 IFS=$as_save_IFS 19319 19320 ;; 19321 esac 19322 fi 19323 XATTR=$ac_cv_path_XATTR 19324 if test -n "$XATTR"; then 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19326 $as_echo "$XATTR" >&6; } 19327 else 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19329 $as_echo "no" >&6; } 19330 fi 19331 19332 19333 test -n "$XATTR" && break 19334 done 19335 19336 else 19337 # If it succeeded, then it was overridden by the user. We will use it 19338 # for the tool. 19339 19340 # First remove it from the list of overridden variables, so we can test 19341 # for unknown variables in the end. 19342 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19343 19344 # Check if the provided tool contains a complete path. 19345 tool_specified="$XATTR" 19346 tool_basename="${tool_specified##*/}" 19347 if test "x$tool_basename" = "x$tool_specified"; then 19348 # A command without a complete path is provided, search $PATH. 19349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19350 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19351 # Extract the first word of "$tool_basename", so it can be a program name with args. 19352 set dummy $tool_basename; ac_word=$2 19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19354 $as_echo_n "checking for $ac_word... " >&6; } 19355 if ${ac_cv_path_XATTR+:} false; then : 19356 $as_echo_n "(cached) " >&6 19357 else 19358 case $XATTR in 19359 [\\/]* | ?:[\\/]*) 19360 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19361 ;; 19362 *) 19363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19364 for as_dir in $PATH 19365 do 19366 IFS=$as_save_IFS 19367 test -z "$as_dir" && as_dir=. 19368 for ac_exec_ext in '' $ac_executable_extensions; do 19369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19370 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19372 break 2 19373 fi 19374 done 19375 done 19376 IFS=$as_save_IFS 19377 19378 ;; 19379 esac 19380 fi 19381 XATTR=$ac_cv_path_XATTR 19382 if test -n "$XATTR"; then 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19384 $as_echo "$XATTR" >&6; } 19385 else 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19387 $as_echo "no" >&6; } 19388 fi 19389 19390 19391 if test "x$XATTR" = x; then 19392 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19393 fi 19394 else 19395 # Otherwise we believe it is a complete path. Use it as it is. 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19397 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19399 $as_echo_n "checking for XATTR... " >&6; } 19400 if test ! -x "$tool_specified"; then 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19402 $as_echo "not found" >&6; } 19403 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19404 fi 19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19406 $as_echo "$tool_specified" >&6; } 19407 fi 19408 fi 19409 fi 19410 19411 19412 19413 if test "x$XATTR" = x; then 19414 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19415 fi 19416 19417 19418 19419 19420 # Publish this variable in the help. 19421 19422 19423 if test "x$CODESIGN" = x; then 19424 # The variable is not set by user, try to locate tool using the code snippet 19425 for ac_prog in codesign 19426 do 19427 # Extract the first word of "$ac_prog", so it can be a program name with args. 19428 set dummy $ac_prog; ac_word=$2 19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19430 $as_echo_n "checking for $ac_word... " >&6; } 19431 if ${ac_cv_path_CODESIGN+:} false; then : 19432 $as_echo_n "(cached) " >&6 19433 else 19434 case $CODESIGN in 19435 [\\/]* | ?:[\\/]*) 19436 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19437 ;; 19438 *) 19439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19440 for as_dir in $PATH 19441 do 19442 IFS=$as_save_IFS 19443 test -z "$as_dir" && as_dir=. 19444 for ac_exec_ext in '' $ac_executable_extensions; do 19445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19446 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19448 break 2 19449 fi 19450 done 19451 done 19452 IFS=$as_save_IFS 19453 19454 ;; 19455 esac 19456 fi 19457 CODESIGN=$ac_cv_path_CODESIGN 19458 if test -n "$CODESIGN"; then 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19460 $as_echo "$CODESIGN" >&6; } 19461 else 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19463 $as_echo "no" >&6; } 19464 fi 19465 19466 19467 test -n "$CODESIGN" && break 19468 done 19469 19470 else 19471 # The variable is set, but is it from the command line or the environment? 19472 19473 # Try to remove the string !CODESIGN! from our list. 19474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19476 # If it failed, the variable was not from the command line. Ignore it, 19477 # but warn the user (except for BASH, which is always set by the calling BASH). 19478 if test "xCODESIGN" != xBASH; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19480 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19481 fi 19482 # Try to locate tool using the code snippet 19483 for ac_prog in codesign 19484 do 19485 # Extract the first word of "$ac_prog", so it can be a program name with args. 19486 set dummy $ac_prog; ac_word=$2 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19488 $as_echo_n "checking for $ac_word... " >&6; } 19489 if ${ac_cv_path_CODESIGN+:} false; then : 19490 $as_echo_n "(cached) " >&6 19491 else 19492 case $CODESIGN in 19493 [\\/]* | ?:[\\/]*) 19494 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19495 ;; 19496 *) 19497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19498 for as_dir in $PATH 19499 do 19500 IFS=$as_save_IFS 19501 test -z "$as_dir" && as_dir=. 19502 for ac_exec_ext in '' $ac_executable_extensions; do 19503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19504 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19506 break 2 19507 fi 19508 done 19509 done 19510 IFS=$as_save_IFS 19511 19512 ;; 19513 esac 19514 fi 19515 CODESIGN=$ac_cv_path_CODESIGN 19516 if test -n "$CODESIGN"; then 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19518 $as_echo "$CODESIGN" >&6; } 19519 else 19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19521 $as_echo "no" >&6; } 19522 fi 19523 19524 19525 test -n "$CODESIGN" && break 19526 done 19527 19528 else 19529 # If it succeeded, then it was overridden by the user. We will use it 19530 # for the tool. 19531 19532 # First remove it from the list of overridden variables, so we can test 19533 # for unknown variables in the end. 19534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19535 19536 # Check if the provided tool contains a complete path. 19537 tool_specified="$CODESIGN" 19538 tool_basename="${tool_specified##*/}" 19539 if test "x$tool_basename" = "x$tool_specified"; then 19540 # A command without a complete path is provided, search $PATH. 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19542 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19543 # Extract the first word of "$tool_basename", so it can be a program name with args. 19544 set dummy $tool_basename; ac_word=$2 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19546 $as_echo_n "checking for $ac_word... " >&6; } 19547 if ${ac_cv_path_CODESIGN+:} false; then : 19548 $as_echo_n "(cached) " >&6 19549 else 19550 case $CODESIGN in 19551 [\\/]* | ?:[\\/]*) 19552 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19553 ;; 19554 *) 19555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19556 for as_dir in $PATH 19557 do 19558 IFS=$as_save_IFS 19559 test -z "$as_dir" && as_dir=. 19560 for ac_exec_ext in '' $ac_executable_extensions; do 19561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19562 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19564 break 2 19565 fi 19566 done 19567 done 19568 IFS=$as_save_IFS 19569 19570 ;; 19571 esac 19572 fi 19573 CODESIGN=$ac_cv_path_CODESIGN 19574 if test -n "$CODESIGN"; then 19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19576 $as_echo "$CODESIGN" >&6; } 19577 else 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19579 $as_echo "no" >&6; } 19580 fi 19581 19582 19583 if test "x$CODESIGN" = x; then 19584 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19585 fi 19586 else 19587 # Otherwise we believe it is a complete path. Use it as it is. 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19589 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19591 $as_echo_n "checking for CODESIGN... " >&6; } 19592 if test ! -x "$tool_specified"; then 19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19594 $as_echo "not found" >&6; } 19595 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19596 fi 19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19598 $as_echo "$tool_specified" >&6; } 19599 fi 19600 fi 19601 fi 19602 19603 19604 if test "x$CODESIGN" != "x"; then 19605 # Verify that the openjdk_codesign certificate is present 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19607 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19608 rm -f codesign-testfile 19609 touch codesign-testfile 19610 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19611 rm -f codesign-testfile 19612 if test "x$CODESIGN" = x; then 19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19614 $as_echo "no" >&6; } 19615 else 19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19617 $as_echo "yes" >&6; } 19618 fi 19619 fi 19620 fi 19621 19622 19623 # Check if pkg-config is available. 19624 19625 19626 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19627 if test -n "$ac_tool_prefix"; then 19628 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19629 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19631 $as_echo_n "checking for $ac_word... " >&6; } 19632 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19633 $as_echo_n "(cached) " >&6 19634 else 19635 case $PKG_CONFIG in 19636 [\\/]* | ?:[\\/]*) 19637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19638 ;; 19639 *) 19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19641 for as_dir in $PATH 19642 do 19643 IFS=$as_save_IFS 19644 test -z "$as_dir" && as_dir=. 19645 for ac_exec_ext in '' $ac_executable_extensions; do 19646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19649 break 2 19650 fi 19651 done 19652 done 19653 IFS=$as_save_IFS 19654 19655 ;; 19656 esac 19657 fi 19658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19659 if test -n "$PKG_CONFIG"; then 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19661 $as_echo "$PKG_CONFIG" >&6; } 19662 else 19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19664 $as_echo "no" >&6; } 19665 fi 19666 19667 19668 fi 19669 if test -z "$ac_cv_path_PKG_CONFIG"; then 19670 ac_pt_PKG_CONFIG=$PKG_CONFIG 19671 # Extract the first word of "pkg-config", so it can be a program name with args. 19672 set dummy pkg-config; ac_word=$2 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19674 $as_echo_n "checking for $ac_word... " >&6; } 19675 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19676 $as_echo_n "(cached) " >&6 19677 else 19678 case $ac_pt_PKG_CONFIG in 19679 [\\/]* | ?:[\\/]*) 19680 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19681 ;; 19682 *) 19683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19684 for as_dir in $PATH 19685 do 19686 IFS=$as_save_IFS 19687 test -z "$as_dir" && as_dir=. 19688 for ac_exec_ext in '' $ac_executable_extensions; do 19689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19690 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19692 break 2 19693 fi 19694 done 19695 done 19696 IFS=$as_save_IFS 19697 19698 ;; 19699 esac 19700 fi 19701 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19702 if test -n "$ac_pt_PKG_CONFIG"; then 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19704 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19705 else 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19707 $as_echo "no" >&6; } 19708 fi 19709 19710 if test "x$ac_pt_PKG_CONFIG" = x; then 19711 PKG_CONFIG="" 19712 else 19713 case $cross_compiling:$ac_tool_warned in 19714 yes:) 19715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19717 ac_tool_warned=yes ;; 19718 esac 19719 PKG_CONFIG=$ac_pt_PKG_CONFIG 19720 fi 19721 else 19722 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19723 fi 19724 19725 fi 19726 if test -n "$PKG_CONFIG"; then 19727 _pkg_min_version=0.9.0 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19729 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19730 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19732 $as_echo "yes" >&6; } 19733 else 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19735 $as_echo "no" >&6; } 19736 PKG_CONFIG="" 19737 fi 19738 19739 fi 19740 19741 # After basic tools have been setup, we can check build os specific details. 19742 19743 ############################################################################### 19744 19745 # Note that this is the build platform OS version! 19746 19747 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19748 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19749 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19750 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19751 19752 19753 19754 19755 19756 # Setup builddeps, for automatic downloading of tools we need. 19757 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19758 # boot-jdk setup, but we need to have basic tools setup first. 19759 19760 19761 # Check whether --with-builddeps-conf was given. 19762 if test "${with_builddeps_conf+set}" = set; then : 19763 withval=$with_builddeps_conf; 19764 fi 19765 19766 19767 19768 # Check whether --with-builddeps-server was given. 19769 if test "${with_builddeps_server+set}" = set; then : 19770 withval=$with_builddeps_server; 19771 fi 19772 19773 19774 19775 # Check whether --with-builddeps-dir was given. 19776 if test "${with_builddeps_dir+set}" = set; then : 19777 withval=$with_builddeps_dir; 19778 else 19779 with_builddeps_dir=/localhome/builddeps 19780 fi 19781 19782 19783 19784 # Check whether --with-builddeps-group was given. 19785 if test "${with_builddeps_group+set}" = set; then : 19786 withval=$with_builddeps_group; 19787 fi 19788 19789 19790 19791 19792 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19793 if test "x$with_builddeps_conf" != x; then 19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19795 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19796 builddepsfile=$with_builddeps_conf 19797 if test -s $builddepsfile; then 19798 . $builddepsfile 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19800 $as_echo "loaded!" >&6; } 19801 else 19802 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19803 fi 19804 else 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19806 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19807 builddepsfile=`mktemp` 19808 touch $builddepsfile 19809 # Put all found confs into a single file. 19810 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19811 # Source the file to acquire the variables 19812 if test -s $builddepsfile; then 19813 . $builddepsfile 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19815 $as_echo "found at least one!" >&6; } 19816 else 19817 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19818 fi 19819 fi 19820 # Create build and target names that use _ instead of "-" and ".". 19821 # This is necessary to use them in variable names. 19822 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19823 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19824 # Extract rewrite information for build and target 19825 eval rewritten_build=\${REWRITE_${build_var}} 19826 if test "x$rewritten_build" = x; then 19827 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19828 echo Build stays the same $rewritten_build 19829 else 19830 echo Rewriting build for builddeps into $rewritten_build 19831 fi 19832 eval rewritten_target=\${REWRITE_${target_var}} 19833 if test "x$rewritten_target" = x; then 19834 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19835 echo Target stays the same $rewritten_target 19836 else 19837 echo Rewriting target for builddeps into $rewritten_target 19838 fi 19839 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19840 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19841 fi 19842 for ac_prog in 7z unzip 19843 do 19844 # Extract the first word of "$ac_prog", so it can be a program name with args. 19845 set dummy $ac_prog; ac_word=$2 19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19847 $as_echo_n "checking for $ac_word... " >&6; } 19848 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19849 $as_echo_n "(cached) " >&6 19850 else 19851 if test -n "$BDEPS_UNZIP"; then 19852 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19853 else 19854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19855 for as_dir in $PATH 19856 do 19857 IFS=$as_save_IFS 19858 test -z "$as_dir" && as_dir=. 19859 for ac_exec_ext in '' $ac_executable_extensions; do 19860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19861 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19863 break 2 19864 fi 19865 done 19866 done 19867 IFS=$as_save_IFS 19868 19869 fi 19870 fi 19871 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19872 if test -n "$BDEPS_UNZIP"; then 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19874 $as_echo "$BDEPS_UNZIP" >&6; } 19875 else 19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19877 $as_echo "no" >&6; } 19878 fi 19879 19880 19881 test -n "$BDEPS_UNZIP" && break 19882 done 19883 19884 if test "x$BDEPS_UNZIP" = x7z; then 19885 BDEPS_UNZIP="7z x" 19886 fi 19887 19888 for ac_prog in wget lftp ftp 19889 do 19890 # Extract the first word of "$ac_prog", so it can be a program name with args. 19891 set dummy $ac_prog; ac_word=$2 19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19893 $as_echo_n "checking for $ac_word... " >&6; } 19894 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19895 $as_echo_n "(cached) " >&6 19896 else 19897 if test -n "$BDEPS_FTP"; then 19898 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19899 else 19900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19901 for as_dir in $PATH 19902 do 19903 IFS=$as_save_IFS 19904 test -z "$as_dir" && as_dir=. 19905 for ac_exec_ext in '' $ac_executable_extensions; do 19906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19907 ac_cv_prog_BDEPS_FTP="$ac_prog" 19908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19909 break 2 19910 fi 19911 done 19912 done 19913 IFS=$as_save_IFS 19914 19915 fi 19916 fi 19917 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19918 if test -n "$BDEPS_FTP"; then 19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19920 $as_echo "$BDEPS_FTP" >&6; } 19921 else 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19923 $as_echo "no" >&6; } 19924 fi 19925 19926 19927 test -n "$BDEPS_FTP" && break 19928 done 19929 19930 19931 19932 ############################################################################### 19933 # 19934 # Determine OpenJDK variants, options and version numbers. 19935 # 19936 ############################################################################### 19937 19938 # We need build & target for this. 19939 19940 19941 ############################################################################### 19942 # 19943 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19944 # We always build headless support. 19945 # 19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19947 $as_echo_n "checking headful support... " >&6; } 19948 # Check whether --enable-headful was given. 19949 if test "${enable_headful+set}" = set; then : 19950 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19951 else 19952 SUPPORT_HEADFUL=yes 19953 fi 19954 19955 19956 SUPPORT_HEADLESS=yes 19957 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19958 19959 if test "x$SUPPORT_HEADFUL" = xyes; then 19960 # We are building both headful and headless. 19961 headful_msg="include support for both headful and headless" 19962 fi 19963 19964 if test "x$SUPPORT_HEADFUL" = xno; then 19965 # Thus we are building headless only. 19966 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19967 headful_msg="headless only" 19968 fi 19969 19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19971 $as_echo "$headful_msg" >&6; } 19972 19973 19974 19975 19976 19977 # Control wether Hotspot runs Queens test after build. 19978 # Check whether --enable-hotspot-test-in-build was given. 19979 if test "${enable_hotspot_test_in_build+set}" = set; then : 19980 enableval=$enable_hotspot_test_in_build; 19981 else 19982 enable_hotspot_test_in_build=no 19983 fi 19984 19985 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19986 TEST_IN_BUILD=true 19987 else 19988 TEST_IN_BUILD=false 19989 fi 19990 19991 19992 ############################################################################### 19993 # 19994 # Choose cacerts source file 19995 # 19996 19997 # Check whether --with-cacerts-file was given. 19998 if test "${with_cacerts_file+set}" = set; then : 19999 withval=$with_cacerts_file; 20000 fi 20001 20002 if test "x$with_cacerts_file" != x; then 20003 CACERTS_FILE=$with_cacerts_file 20004 fi 20005 20006 20007 ############################################################################### 20008 # 20009 # Enable or disable unlimited crypto 20010 # 20011 # Check whether --enable-unlimited-crypto was given. 20012 if test "${enable_unlimited_crypto+set}" = set; then : 20013 enableval=$enable_unlimited_crypto; 20014 else 20015 enable_unlimited_crypto=no 20016 fi 20017 20018 if test "x$enable_unlimited_crypto" = "xyes"; then 20019 UNLIMITED_CRYPTO=true 20020 else 20021 UNLIMITED_CRYPTO=false 20022 fi 20023 20024 20025 ############################################################################### 20026 # 20027 # Enable or disable the elliptic curve crypto implementation 20028 # 20029 20030 20031 ############################################################################### 20032 # 20033 # --enable-rmiconnector-iiop 20034 # 20035 # Check whether --enable-rmiconnector-iiop was given. 20036 if test "${enable_rmiconnector_iiop+set}" = set; then : 20037 enableval=$enable_rmiconnector_iiop; 20038 fi 20039 20040 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20041 RMICONNECTOR_IIOP=true 20042 else 20043 RMICONNECTOR_IIOP=false 20044 fi 20045 20046 20047 ############################################################################### 20048 # 20049 # Compress jars 20050 # 20051 COMPRESS_JARS=false 20052 20053 20054 20055 20056 # Source the version numbers 20057 . $AUTOCONF_DIR/version-numbers 20058 20059 # Get the settings from parameters 20060 20061 # Check whether --with-milestone was given. 20062 if test "${with_milestone+set}" = set; then : 20063 withval=$with_milestone; 20064 fi 20065 20066 if test "x$with_milestone" = xyes; then 20067 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20068 elif test "x$with_milestone" != x; then 20069 MILESTONE="$with_milestone" 20070 fi 20071 if test "x$MILESTONE" = x; then 20072 MILESTONE=internal 20073 fi 20074 20075 20076 # Check whether --with-update-version was given. 20077 if test "${with_update_version+set}" = set; then : 20078 withval=$with_update_version; 20079 fi 20080 20081 if test "x$with_update_version" = xyes; then 20082 as_fn_error $? "Update version must have a value" "$LINENO" 5 20083 elif test "x$with_update_version" != x; then 20084 JDK_UPDATE_VERSION="$with_update_version" 20085 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20086 # to a bug in expr (which reduces it to just X). To work around this, we 20087 # always add a 0 to one digit update versions. 20088 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20089 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20090 fi 20091 fi 20092 20093 20094 # Check whether --with-user-release-suffix was given. 20095 if test "${with_user_release_suffix+set}" = set; then : 20096 withval=$with_user_release_suffix; 20097 fi 20098 20099 if test "x$with_user_release_suffix" = xyes; then 20100 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20101 elif test "x$with_user_release_suffix" != x; then 20102 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20103 fi 20104 20105 20106 # Check whether --with-build-number was given. 20107 if test "${with_build_number+set}" = set; then : 20108 withval=$with_build_number; 20109 fi 20110 20111 if test "x$with_build_number" = xyes; then 20112 as_fn_error $? "Build number must have a value" "$LINENO" 5 20113 elif test "x$with_build_number" != x; then 20114 JDK_BUILD_NUMBER="$with_build_number" 20115 fi 20116 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20117 if test "x$JDK_BUILD_NUMBER" = x; then 20118 JDK_BUILD_NUMBER=b00 20119 if test "x$USER_RELEASE_SUFFIX" = x; then 20120 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20121 # Avoid [:alnum:] since it depends on the locale. 20122 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20123 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20124 fi 20125 fi 20126 20127 # Now set the JDK version, milestone, build number etc. 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 COPYRIGHT_YEAR=`date +'%Y'` 20144 20145 20146 if test "x$JDK_UPDATE_VERSION" != x; then 20147 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20148 else 20149 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20150 fi 20151 20152 20153 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20154 20155 20156 20157 ############################################################################### 20158 # 20159 # Setup BootJDK, used to bootstrap the build. 20160 # 20161 ############################################################################### 20162 20163 20164 BOOT_JDK_FOUND=no 20165 20166 # Check whether --with-boot-jdk was given. 20167 if test "${with_boot_jdk+set}" = set; then : 20168 withval=$with_boot_jdk; 20169 fi 20170 20171 20172 # We look for the Boot JDK through various means, going from more certain to 20173 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20174 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20175 # must check if this is indeed valid; otherwise we'll continue looking. 20176 20177 # Test: Is bootjdk explicitely set by command line arguments? 20178 20179 if test "x$BOOT_JDK_FOUND" = xno; then 20180 # Now execute the test 20181 20182 if test "x$with_boot_jdk" != x; then 20183 BOOT_JDK=$with_boot_jdk 20184 BOOT_JDK_FOUND=maybe 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20186 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20187 fi 20188 20189 20190 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20191 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20192 # Do we have a bin/java? 20193 if test ! -x "$BOOT_JDK/bin/java"; then 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20196 BOOT_JDK_FOUND=no 20197 else 20198 # Do we have a bin/javac? 20199 if test ! -x "$BOOT_JDK/bin/javac"; then 20200 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20201 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20202 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20203 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20204 BOOT_JDK_FOUND=no 20205 else 20206 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20207 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20210 BOOT_JDK_FOUND=no 20211 else 20212 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20213 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20214 20215 # Extra M4 quote needed to protect [] in grep expression. 20216 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20217 if test "x$FOUND_CORRECT_VERSION" = x; then 20218 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20219 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20221 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20222 BOOT_JDK_FOUND=no 20223 else 20224 # We're done! :-) 20225 BOOT_JDK_FOUND=yes 20226 20227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20228 20229 # Input might be given as Windows format, start by converting to 20230 # unix format. 20231 path="$BOOT_JDK" 20232 new_path=`$CYGPATH -u "$path"` 20233 20234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20237 # "foo.exe" is OK but "foo" is an error. 20238 # 20239 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20240 # It is also a way to make sure we got the proper file name for the real test later on. 20241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20242 if test "x$test_shortpath" = x; then 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20244 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20245 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20246 fi 20247 20248 # Call helper function which possibly converts this using DOS-style short mode. 20249 # If so, the updated path is stored in $new_path. 20250 20251 input_path="$new_path" 20252 # Check if we need to convert this using DOS-style short mode. If the path 20253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20254 # take no chances and rewrite it. 20255 # Note: m4 eats our [], so we need to use [ and ] instead. 20256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20257 if test "x$has_forbidden_chars" != x; then 20258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20259 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20260 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20261 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20262 # Going to short mode and back again did indeed matter. Since short mode is 20263 # case insensitive, let's make it lowercase to improve readability. 20264 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20265 # Now convert it back to Unix-stile (cygpath) 20266 input_path=`$CYGPATH -u "$shortmode_path"` 20267 new_path="$input_path" 20268 fi 20269 fi 20270 20271 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20272 if test "x$test_cygdrive_prefix" = x; then 20273 # As a simple fix, exclude /usr/bin since it's not a real path. 20274 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20275 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20276 # a path prefixed by /cygdrive for fixpath to work. 20277 new_path="$CYGWIN_ROOT_PATH$input_path" 20278 fi 20279 fi 20280 20281 20282 if test "x$path" != "x$new_path"; then 20283 BOOT_JDK="$new_path" 20284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20285 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20286 fi 20287 20288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20289 20290 path="$BOOT_JDK" 20291 has_colon=`$ECHO $path | $GREP ^.:` 20292 new_path="$path" 20293 if test "x$has_colon" = x; then 20294 # Not in mixed or Windows style, start by that. 20295 new_path=`cmd //c echo $path` 20296 fi 20297 20298 20299 input_path="$new_path" 20300 # Check if we need to convert this using DOS-style short mode. If the path 20301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20302 # take no chances and rewrite it. 20303 # Note: m4 eats our [], so we need to use [ and ] instead. 20304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20305 if test "x$has_forbidden_chars" != x; then 20306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20308 fi 20309 20310 20311 windows_path="$new_path" 20312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20313 unix_path=`$CYGPATH -u "$windows_path"` 20314 new_path="$unix_path" 20315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20317 new_path="$unix_path" 20318 fi 20319 20320 if test "x$path" != "x$new_path"; then 20321 BOOT_JDK="$new_path" 20322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20323 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20324 fi 20325 20326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20328 20329 else 20330 # We're on a posix platform. Hooray! :) 20331 path="$BOOT_JDK" 20332 has_space=`$ECHO "$path" | $GREP " "` 20333 if test "x$has_space" != x; then 20334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20335 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20336 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20337 fi 20338 20339 # Use eval to expand a potential ~ 20340 eval path="$path" 20341 if test ! -f "$path" && test ! -d "$path"; then 20342 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20343 fi 20344 20345 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20346 fi 20347 20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20349 $as_echo_n "checking for Boot JDK... " >&6; } 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20351 $as_echo "$BOOT_JDK" >&6; } 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20353 $as_echo_n "checking Boot JDK version... " >&6; } 20354 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20356 $as_echo "$BOOT_JDK_VERSION" >&6; } 20357 fi # end check jdk version 20358 fi # end check rt.jar 20359 fi # end check javac 20360 fi # end check java 20361 fi # end check boot jdk found 20362 fi 20363 20364 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20365 # Having specified an argument which is incorrect will produce an instant failure; 20366 # we should not go on looking 20367 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20368 fi 20369 20370 # Test: Is bootjdk available from builddeps? 20371 20372 if test "x$BOOT_JDK_FOUND" = xno; then 20373 # Now execute the test 20374 20375 20376 20377 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20378 # Source the builddeps file again, to make sure it uses the latest variables! 20379 . $builddepsfile 20380 # Look for a target and build machine specific resource! 20381 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20382 if test "x$resource" = x; then 20383 # Ok, lets instead look for a target specific resource 20384 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20385 fi 20386 if test "x$resource" = x; then 20387 # Ok, lets instead look for a build specific resource 20388 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20389 fi 20390 if test "x$resource" = x; then 20391 # Ok, lets instead look for a generic resource 20392 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20393 resource=${builddep_bootjdk} 20394 fi 20395 if test "x$resource" != x; then 20396 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20397 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20398 # If the resource in the builddeps.conf file is an existing directory, 20399 # for example /java/linux/cups 20400 if test -d ${resource}; then 20401 depdir=${resource} 20402 else 20403 20404 # bootjdk is for example mymodule 20405 # $resource is for example libs/general/libmymod_1_2_3.zip 20406 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20407 # $with_builddeps_dir is for example /localhome/builddeps 20408 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20409 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20410 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20411 filename=`basename $resource` 20412 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20413 filebase=${filename%%.*} 20414 extension=${filename#*.} 20415 installdir=$with_builddeps_dir/$filebase 20416 if test ! -f $installdir/$filename.unpacked; then 20417 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20418 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20419 if test ! -d $installdir; then 20420 mkdir -p $installdir 20421 fi 20422 if test ! -d $installdir; then 20423 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20424 fi 20425 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20426 touch $tmpfile 20427 if test ! -f $tmpfile; then 20428 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20429 fi 20430 20431 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20432 # $tmpfile is the local file name for the downloaded file. 20433 VALID_TOOL=no 20434 if test "x$BDEPS_FTP" = xwget; then 20435 VALID_TOOL=yes 20436 wget -O $tmpfile $with_builddeps_server/$resource 20437 fi 20438 if test "x$BDEPS_FTP" = xlftp; then 20439 VALID_TOOL=yes 20440 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20441 fi 20442 if test "x$BDEPS_FTP" = xftp; then 20443 VALID_TOOL=yes 20444 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20445 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20446 FTPUSERPWD=${FTPSERVER%%@*} 20447 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20448 FTPUSER=${userpwd%%:*} 20449 FTPPWD=${userpwd#*@} 20450 FTPSERVER=${FTPSERVER#*@} 20451 else 20452 FTPUSER=ftp 20453 FTPPWD=ftp 20454 fi 20455 # the "pass" command does not work on some 20456 # ftp clients (read ftp.exe) but if it works, 20457 # passive mode is better! 20458 ( \ 20459 echo "user $FTPUSER $FTPPWD" ; \ 20460 echo "pass" ; \ 20461 echo "bin" ; \ 20462 echo "get $FTPPATH $tmpfile" ; \ 20463 ) | ftp -in $FTPSERVER 20464 fi 20465 if test "x$VALID_TOOL" != xyes; then 20466 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20467 fi 20468 20469 mv $tmpfile $installdir/$filename 20470 if test ! -s $installdir/$filename; then 20471 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20472 fi 20473 case "$extension" in 20474 zip) echo "Unzipping $installdir/$filename..." 20475 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20476 ;; 20477 tar.gz) echo "Untaring $installdir/$filename..." 20478 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20479 ;; 20480 tgz) echo "Untaring $installdir/$filename..." 20481 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20482 ;; 20483 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20484 ;; 20485 esac 20486 fi 20487 if test -f $installdir/$filename.unpacked; then 20488 depdir=$installdir 20489 fi 20490 20491 fi 20492 # Source the builddeps file again, because in the previous command, the depdir 20493 # was updated to point at the current build dependency install directory. 20494 . $builddepsfile 20495 # Now extract variables from the builddeps.conf files. 20496 theroot=${builddep_bootjdk_ROOT} 20497 thecflags=${builddep_bootjdk_CFLAGS} 20498 thelibs=${builddep_bootjdk_LIBS} 20499 if test "x$depdir" = x; then 20500 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20501 fi 20502 BOOT_JDK=$depdir 20503 if test "x$theroot" != x; then 20504 BOOT_JDK="$theroot" 20505 fi 20506 if test "x$thecflags" != x; then 20507 BOOT_JDK_CFLAGS="$thecflags" 20508 fi 20509 if test "x$thelibs" != x; then 20510 BOOT_JDK_LIBS="$thelibs" 20511 fi 20512 BOOT_JDK_FOUND=maybe 20513 else BOOT_JDK_FOUND=no 20514 20515 fi 20516 else BOOT_JDK_FOUND=no 20517 20518 fi 20519 20520 20521 20522 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20523 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20524 # Do we have a bin/java? 20525 if test ! -x "$BOOT_JDK/bin/java"; then 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20528 BOOT_JDK_FOUND=no 20529 else 20530 # Do we have a bin/javac? 20531 if test ! -x "$BOOT_JDK/bin/javac"; then 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20533 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20535 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20536 BOOT_JDK_FOUND=no 20537 else 20538 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20539 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20540 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20541 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20542 BOOT_JDK_FOUND=no 20543 else 20544 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20545 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20546 20547 # Extra M4 quote needed to protect [] in grep expression. 20548 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20549 if test "x$FOUND_CORRECT_VERSION" = x; then 20550 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20551 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20552 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20553 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20554 BOOT_JDK_FOUND=no 20555 else 20556 # We're done! :-) 20557 BOOT_JDK_FOUND=yes 20558 20559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20560 20561 # Input might be given as Windows format, start by converting to 20562 # unix format. 20563 path="$BOOT_JDK" 20564 new_path=`$CYGPATH -u "$path"` 20565 20566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20569 # "foo.exe" is OK but "foo" is an error. 20570 # 20571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20572 # It is also a way to make sure we got the proper file name for the real test later on. 20573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20574 if test "x$test_shortpath" = x; then 20575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20576 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20577 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20578 fi 20579 20580 # Call helper function which possibly converts this using DOS-style short mode. 20581 # If so, the updated path is stored in $new_path. 20582 20583 input_path="$new_path" 20584 # Check if we need to convert this using DOS-style short mode. If the path 20585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20586 # take no chances and rewrite it. 20587 # Note: m4 eats our [], so we need to use [ and ] instead. 20588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20589 if test "x$has_forbidden_chars" != x; then 20590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20594 # Going to short mode and back again did indeed matter. Since short mode is 20595 # case insensitive, let's make it lowercase to improve readability. 20596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20597 # Now convert it back to Unix-stile (cygpath) 20598 input_path=`$CYGPATH -u "$shortmode_path"` 20599 new_path="$input_path" 20600 fi 20601 fi 20602 20603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20604 if test "x$test_cygdrive_prefix" = x; then 20605 # As a simple fix, exclude /usr/bin since it's not a real path. 20606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20608 # a path prefixed by /cygdrive for fixpath to work. 20609 new_path="$CYGWIN_ROOT_PATH$input_path" 20610 fi 20611 fi 20612 20613 20614 if test "x$path" != "x$new_path"; then 20615 BOOT_JDK="$new_path" 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20617 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20618 fi 20619 20620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20621 20622 path="$BOOT_JDK" 20623 has_colon=`$ECHO $path | $GREP ^.:` 20624 new_path="$path" 20625 if test "x$has_colon" = x; then 20626 # Not in mixed or Windows style, start by that. 20627 new_path=`cmd //c echo $path` 20628 fi 20629 20630 20631 input_path="$new_path" 20632 # Check if we need to convert this using DOS-style short mode. If the path 20633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20634 # take no chances and rewrite it. 20635 # Note: m4 eats our [], so we need to use [ and ] instead. 20636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20637 if test "x$has_forbidden_chars" != x; then 20638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20640 fi 20641 20642 20643 windows_path="$new_path" 20644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20645 unix_path=`$CYGPATH -u "$windows_path"` 20646 new_path="$unix_path" 20647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20649 new_path="$unix_path" 20650 fi 20651 20652 if test "x$path" != "x$new_path"; then 20653 BOOT_JDK="$new_path" 20654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20655 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20656 fi 20657 20658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20660 20661 else 20662 # We're on a posix platform. Hooray! :) 20663 path="$BOOT_JDK" 20664 has_space=`$ECHO "$path" | $GREP " "` 20665 if test "x$has_space" != x; then 20666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20669 fi 20670 20671 # Use eval to expand a potential ~ 20672 eval path="$path" 20673 if test ! -f "$path" && test ! -d "$path"; then 20674 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20675 fi 20676 20677 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20678 fi 20679 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20681 $as_echo_n "checking for Boot JDK... " >&6; } 20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20683 $as_echo "$BOOT_JDK" >&6; } 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20685 $as_echo_n "checking Boot JDK version... " >&6; } 20686 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20688 $as_echo "$BOOT_JDK_VERSION" >&6; } 20689 fi # end check jdk version 20690 fi # end check rt.jar 20691 fi # end check javac 20692 fi # end check java 20693 fi # end check boot jdk found 20694 fi 20695 20696 20697 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20698 20699 if test "x$BOOT_JDK_FOUND" = xno; then 20700 # Now execute the test 20701 20702 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20703 # First check at user selected default 20704 20705 if test "x$BOOT_JDK_FOUND" = xno; then 20706 # Now execute the test 20707 20708 if test -x /usr/libexec/java_home; then 20709 BOOT_JDK=`/usr/libexec/java_home ` 20710 BOOT_JDK_FOUND=maybe 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20712 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20713 fi 20714 20715 20716 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20717 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20718 # Do we have a bin/java? 20719 if test ! -x "$BOOT_JDK/bin/java"; then 20720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20722 BOOT_JDK_FOUND=no 20723 else 20724 # Do we have a bin/javac? 20725 if test ! -x "$BOOT_JDK/bin/javac"; then 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20730 BOOT_JDK_FOUND=no 20731 else 20732 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20733 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20736 BOOT_JDK_FOUND=no 20737 else 20738 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20739 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20740 20741 # Extra M4 quote needed to protect [] in grep expression. 20742 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20743 if test "x$FOUND_CORRECT_VERSION" = x; then 20744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20747 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20748 BOOT_JDK_FOUND=no 20749 else 20750 # We're done! :-) 20751 BOOT_JDK_FOUND=yes 20752 20753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20754 20755 # Input might be given as Windows format, start by converting to 20756 # unix format. 20757 path="$BOOT_JDK" 20758 new_path=`$CYGPATH -u "$path"` 20759 20760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20763 # "foo.exe" is OK but "foo" is an error. 20764 # 20765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20766 # It is also a way to make sure we got the proper file name for the real test later on. 20767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20768 if test "x$test_shortpath" = x; then 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20770 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20771 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20772 fi 20773 20774 # Call helper function which possibly converts this using DOS-style short mode. 20775 # If so, the updated path is stored in $new_path. 20776 20777 input_path="$new_path" 20778 # Check if we need to convert this using DOS-style short mode. If the path 20779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20780 # take no chances and rewrite it. 20781 # Note: m4 eats our [], so we need to use [ and ] instead. 20782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20783 if test "x$has_forbidden_chars" != x; then 20784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20788 # Going to short mode and back again did indeed matter. Since short mode is 20789 # case insensitive, let's make it lowercase to improve readability. 20790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20791 # Now convert it back to Unix-stile (cygpath) 20792 input_path=`$CYGPATH -u "$shortmode_path"` 20793 new_path="$input_path" 20794 fi 20795 fi 20796 20797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20798 if test "x$test_cygdrive_prefix" = x; then 20799 # As a simple fix, exclude /usr/bin since it's not a real path. 20800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20802 # a path prefixed by /cygdrive for fixpath to work. 20803 new_path="$CYGWIN_ROOT_PATH$input_path" 20804 fi 20805 fi 20806 20807 20808 if test "x$path" != "x$new_path"; then 20809 BOOT_JDK="$new_path" 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20811 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20812 fi 20813 20814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20815 20816 path="$BOOT_JDK" 20817 has_colon=`$ECHO $path | $GREP ^.:` 20818 new_path="$path" 20819 if test "x$has_colon" = x; then 20820 # Not in mixed or Windows style, start by that. 20821 new_path=`cmd //c echo $path` 20822 fi 20823 20824 20825 input_path="$new_path" 20826 # Check if we need to convert this using DOS-style short mode. If the path 20827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20828 # take no chances and rewrite it. 20829 # Note: m4 eats our [], so we need to use [ and ] instead. 20830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20831 if test "x$has_forbidden_chars" != x; then 20832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20834 fi 20835 20836 20837 windows_path="$new_path" 20838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20839 unix_path=`$CYGPATH -u "$windows_path"` 20840 new_path="$unix_path" 20841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20843 new_path="$unix_path" 20844 fi 20845 20846 if test "x$path" != "x$new_path"; then 20847 BOOT_JDK="$new_path" 20848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20850 fi 20851 20852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20854 20855 else 20856 # We're on a posix platform. Hooray! :) 20857 path="$BOOT_JDK" 20858 has_space=`$ECHO "$path" | $GREP " "` 20859 if test "x$has_space" != x; then 20860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20863 fi 20864 20865 # Use eval to expand a potential ~ 20866 eval path="$path" 20867 if test ! -f "$path" && test ! -d "$path"; then 20868 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20869 fi 20870 20871 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20872 fi 20873 20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20875 $as_echo_n "checking for Boot JDK... " >&6; } 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20877 $as_echo "$BOOT_JDK" >&6; } 20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20879 $as_echo_n "checking Boot JDK version... " >&6; } 20880 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20882 $as_echo "$BOOT_JDK_VERSION" >&6; } 20883 fi # end check jdk version 20884 fi # end check rt.jar 20885 fi # end check javac 20886 fi # end check java 20887 fi # end check boot jdk found 20888 fi 20889 20890 # If that did not work out (e.g. too old), try explicit versions instead 20891 20892 if test "x$BOOT_JDK_FOUND" = xno; then 20893 # Now execute the test 20894 20895 if test -x /usr/libexec/java_home; then 20896 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20897 BOOT_JDK_FOUND=maybe 20898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20899 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20900 fi 20901 20902 20903 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20904 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20905 # Do we have a bin/java? 20906 if test ! -x "$BOOT_JDK/bin/java"; then 20907 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20909 BOOT_JDK_FOUND=no 20910 else 20911 # Do we have a bin/javac? 20912 if test ! -x "$BOOT_JDK/bin/javac"; then 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20914 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20916 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20917 BOOT_JDK_FOUND=no 20918 else 20919 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20920 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20921 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20923 BOOT_JDK_FOUND=no 20924 else 20925 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20926 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20927 20928 # Extra M4 quote needed to protect [] in grep expression. 20929 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20930 if test "x$FOUND_CORRECT_VERSION" = x; then 20931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20933 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20934 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20935 BOOT_JDK_FOUND=no 20936 else 20937 # We're done! :-) 20938 BOOT_JDK_FOUND=yes 20939 20940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20941 20942 # Input might be given as Windows format, start by converting to 20943 # unix format. 20944 path="$BOOT_JDK" 20945 new_path=`$CYGPATH -u "$path"` 20946 20947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20950 # "foo.exe" is OK but "foo" is an error. 20951 # 20952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20953 # It is also a way to make sure we got the proper file name for the real test later on. 20954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20955 if test "x$test_shortpath" = x; then 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20958 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20959 fi 20960 20961 # Call helper function which possibly converts this using DOS-style short mode. 20962 # If so, the updated path is stored in $new_path. 20963 20964 input_path="$new_path" 20965 # Check if we need to convert this using DOS-style short mode. If the path 20966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20967 # take no chances and rewrite it. 20968 # Note: m4 eats our [], so we need to use [ and ] instead. 20969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20970 if test "x$has_forbidden_chars" != x; then 20971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20975 # Going to short mode and back again did indeed matter. Since short mode is 20976 # case insensitive, let's make it lowercase to improve readability. 20977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20978 # Now convert it back to Unix-stile (cygpath) 20979 input_path=`$CYGPATH -u "$shortmode_path"` 20980 new_path="$input_path" 20981 fi 20982 fi 20983 20984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20985 if test "x$test_cygdrive_prefix" = x; then 20986 # As a simple fix, exclude /usr/bin since it's not a real path. 20987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20989 # a path prefixed by /cygdrive for fixpath to work. 20990 new_path="$CYGWIN_ROOT_PATH$input_path" 20991 fi 20992 fi 20993 20994 20995 if test "x$path" != "x$new_path"; then 20996 BOOT_JDK="$new_path" 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20998 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20999 fi 21000 21001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21002 21003 path="$BOOT_JDK" 21004 has_colon=`$ECHO $path | $GREP ^.:` 21005 new_path="$path" 21006 if test "x$has_colon" = x; then 21007 # Not in mixed or Windows style, start by that. 21008 new_path=`cmd //c echo $path` 21009 fi 21010 21011 21012 input_path="$new_path" 21013 # Check if we need to convert this using DOS-style short mode. If the path 21014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21015 # take no chances and rewrite it. 21016 # Note: m4 eats our [], so we need to use [ and ] instead. 21017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21018 if test "x$has_forbidden_chars" != x; then 21019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21021 fi 21022 21023 21024 windows_path="$new_path" 21025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21026 unix_path=`$CYGPATH -u "$windows_path"` 21027 new_path="$unix_path" 21028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21030 new_path="$unix_path" 21031 fi 21032 21033 if test "x$path" != "x$new_path"; then 21034 BOOT_JDK="$new_path" 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21037 fi 21038 21039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21041 21042 else 21043 # We're on a posix platform. Hooray! :) 21044 path="$BOOT_JDK" 21045 has_space=`$ECHO "$path" | $GREP " "` 21046 if test "x$has_space" != x; then 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21050 fi 21051 21052 # Use eval to expand a potential ~ 21053 eval path="$path" 21054 if test ! -f "$path" && test ! -d "$path"; then 21055 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21056 fi 21057 21058 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21059 fi 21060 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21062 $as_echo_n "checking for Boot JDK... " >&6; } 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21064 $as_echo "$BOOT_JDK" >&6; } 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21066 $as_echo_n "checking Boot JDK version... " >&6; } 21067 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21069 $as_echo "$BOOT_JDK_VERSION" >&6; } 21070 fi # end check jdk version 21071 fi # end check rt.jar 21072 fi # end check javac 21073 fi # end check java 21074 fi # end check boot jdk found 21075 fi 21076 21077 21078 if test "x$BOOT_JDK_FOUND" = xno; then 21079 # Now execute the test 21080 21081 if test -x /usr/libexec/java_home; then 21082 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21083 BOOT_JDK_FOUND=maybe 21084 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21085 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21086 fi 21087 21088 21089 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21090 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21091 # Do we have a bin/java? 21092 if test ! -x "$BOOT_JDK/bin/java"; then 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21095 BOOT_JDK_FOUND=no 21096 else 21097 # Do we have a bin/javac? 21098 if test ! -x "$BOOT_JDK/bin/javac"; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21102 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21103 BOOT_JDK_FOUND=no 21104 else 21105 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21106 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21109 BOOT_JDK_FOUND=no 21110 else 21111 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21113 21114 # Extra M4 quote needed to protect [] in grep expression. 21115 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21116 if test "x$FOUND_CORRECT_VERSION" = x; then 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21119 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21121 BOOT_JDK_FOUND=no 21122 else 21123 # We're done! :-) 21124 BOOT_JDK_FOUND=yes 21125 21126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21127 21128 # Input might be given as Windows format, start by converting to 21129 # unix format. 21130 path="$BOOT_JDK" 21131 new_path=`$CYGPATH -u "$path"` 21132 21133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21136 # "foo.exe" is OK but "foo" is an error. 21137 # 21138 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21139 # It is also a way to make sure we got the proper file name for the real test later on. 21140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21141 if test "x$test_shortpath" = x; then 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21143 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21144 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21145 fi 21146 21147 # Call helper function which possibly converts this using DOS-style short mode. 21148 # If so, the updated path is stored in $new_path. 21149 21150 input_path="$new_path" 21151 # Check if we need to convert this using DOS-style short mode. If the path 21152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21153 # take no chances and rewrite it. 21154 # Note: m4 eats our [], so we need to use [ and ] instead. 21155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21156 if test "x$has_forbidden_chars" != x; then 21157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21161 # Going to short mode and back again did indeed matter. Since short mode is 21162 # case insensitive, let's make it lowercase to improve readability. 21163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21164 # Now convert it back to Unix-stile (cygpath) 21165 input_path=`$CYGPATH -u "$shortmode_path"` 21166 new_path="$input_path" 21167 fi 21168 fi 21169 21170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21171 if test "x$test_cygdrive_prefix" = x; then 21172 # As a simple fix, exclude /usr/bin since it's not a real path. 21173 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21175 # a path prefixed by /cygdrive for fixpath to work. 21176 new_path="$CYGWIN_ROOT_PATH$input_path" 21177 fi 21178 fi 21179 21180 21181 if test "x$path" != "x$new_path"; then 21182 BOOT_JDK="$new_path" 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21184 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21185 fi 21186 21187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21188 21189 path="$BOOT_JDK" 21190 has_colon=`$ECHO $path | $GREP ^.:` 21191 new_path="$path" 21192 if test "x$has_colon" = x; then 21193 # Not in mixed or Windows style, start by that. 21194 new_path=`cmd //c echo $path` 21195 fi 21196 21197 21198 input_path="$new_path" 21199 # Check if we need to convert this using DOS-style short mode. If the path 21200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21201 # take no chances and rewrite it. 21202 # Note: m4 eats our [], so we need to use [ and ] instead. 21203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21204 if test "x$has_forbidden_chars" != x; then 21205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21207 fi 21208 21209 21210 windows_path="$new_path" 21211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21212 unix_path=`$CYGPATH -u "$windows_path"` 21213 new_path="$unix_path" 21214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21216 new_path="$unix_path" 21217 fi 21218 21219 if test "x$path" != "x$new_path"; then 21220 BOOT_JDK="$new_path" 21221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21222 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21223 fi 21224 21225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21227 21228 else 21229 # We're on a posix platform. Hooray! :) 21230 path="$BOOT_JDK" 21231 has_space=`$ECHO "$path" | $GREP " "` 21232 if test "x$has_space" != x; then 21233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21234 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21235 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21236 fi 21237 21238 # Use eval to expand a potential ~ 21239 eval path="$path" 21240 if test ! -f "$path" && test ! -d "$path"; then 21241 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21242 fi 21243 21244 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21245 fi 21246 21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21248 $as_echo_n "checking for Boot JDK... " >&6; } 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21250 $as_echo "$BOOT_JDK" >&6; } 21251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21252 $as_echo_n "checking Boot JDK version... " >&6; } 21253 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21255 $as_echo "$BOOT_JDK_VERSION" >&6; } 21256 fi # end check jdk version 21257 fi # end check rt.jar 21258 fi # end check javac 21259 fi # end check java 21260 fi # end check boot jdk found 21261 fi 21262 21263 21264 if test "x$BOOT_JDK_FOUND" = xno; then 21265 # Now execute the test 21266 21267 if test -x /usr/libexec/java_home; then 21268 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21269 BOOT_JDK_FOUND=maybe 21270 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21271 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21272 fi 21273 21274 21275 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21276 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21277 # Do we have a bin/java? 21278 if test ! -x "$BOOT_JDK/bin/java"; then 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21281 BOOT_JDK_FOUND=no 21282 else 21283 # Do we have a bin/javac? 21284 if test ! -x "$BOOT_JDK/bin/javac"; then 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21286 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21287 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21288 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21289 BOOT_JDK_FOUND=no 21290 else 21291 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21292 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21295 BOOT_JDK_FOUND=no 21296 else 21297 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21298 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21299 21300 # Extra M4 quote needed to protect [] in grep expression. 21301 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21302 if test "x$FOUND_CORRECT_VERSION" = x; then 21303 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21304 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21306 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21307 BOOT_JDK_FOUND=no 21308 else 21309 # We're done! :-) 21310 BOOT_JDK_FOUND=yes 21311 21312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21313 21314 # Input might be given as Windows format, start by converting to 21315 # unix format. 21316 path="$BOOT_JDK" 21317 new_path=`$CYGPATH -u "$path"` 21318 21319 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21320 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21321 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21322 # "foo.exe" is OK but "foo" is an error. 21323 # 21324 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21325 # It is also a way to make sure we got the proper file name for the real test later on. 21326 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21327 if test "x$test_shortpath" = x; then 21328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21329 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21330 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21331 fi 21332 21333 # Call helper function which possibly converts this using DOS-style short mode. 21334 # If so, the updated path is stored in $new_path. 21335 21336 input_path="$new_path" 21337 # Check if we need to convert this using DOS-style short mode. If the path 21338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21339 # take no chances and rewrite it. 21340 # Note: m4 eats our [], so we need to use [ and ] instead. 21341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21342 if test "x$has_forbidden_chars" != x; then 21343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21344 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21345 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21346 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21347 # Going to short mode and back again did indeed matter. Since short mode is 21348 # case insensitive, let's make it lowercase to improve readability. 21349 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21350 # Now convert it back to Unix-stile (cygpath) 21351 input_path=`$CYGPATH -u "$shortmode_path"` 21352 new_path="$input_path" 21353 fi 21354 fi 21355 21356 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21357 if test "x$test_cygdrive_prefix" = x; then 21358 # As a simple fix, exclude /usr/bin since it's not a real path. 21359 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21360 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21361 # a path prefixed by /cygdrive for fixpath to work. 21362 new_path="$CYGWIN_ROOT_PATH$input_path" 21363 fi 21364 fi 21365 21366 21367 if test "x$path" != "x$new_path"; then 21368 BOOT_JDK="$new_path" 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21370 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21371 fi 21372 21373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21374 21375 path="$BOOT_JDK" 21376 has_colon=`$ECHO $path | $GREP ^.:` 21377 new_path="$path" 21378 if test "x$has_colon" = x; then 21379 # Not in mixed or Windows style, start by that. 21380 new_path=`cmd //c echo $path` 21381 fi 21382 21383 21384 input_path="$new_path" 21385 # Check if we need to convert this using DOS-style short mode. If the path 21386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21387 # take no chances and rewrite it. 21388 # Note: m4 eats our [], so we need to use [ and ] instead. 21389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21390 if test "x$has_forbidden_chars" != x; then 21391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21392 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21393 fi 21394 21395 21396 windows_path="$new_path" 21397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21398 unix_path=`$CYGPATH -u "$windows_path"` 21399 new_path="$unix_path" 21400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21402 new_path="$unix_path" 21403 fi 21404 21405 if test "x$path" != "x$new_path"; then 21406 BOOT_JDK="$new_path" 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21408 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21409 fi 21410 21411 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21412 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21413 21414 else 21415 # We're on a posix platform. Hooray! :) 21416 path="$BOOT_JDK" 21417 has_space=`$ECHO "$path" | $GREP " "` 21418 if test "x$has_space" != x; then 21419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21420 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21421 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21422 fi 21423 21424 # Use eval to expand a potential ~ 21425 eval path="$path" 21426 if test ! -f "$path" && test ! -d "$path"; then 21427 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21428 fi 21429 21430 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21431 fi 21432 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21434 $as_echo_n "checking for Boot JDK... " >&6; } 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21436 $as_echo "$BOOT_JDK" >&6; } 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21438 $as_echo_n "checking Boot JDK version... " >&6; } 21439 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21441 $as_echo "$BOOT_JDK_VERSION" >&6; } 21442 fi # end check jdk version 21443 fi # end check rt.jar 21444 fi # end check javac 21445 fi # end check java 21446 fi # end check boot jdk found 21447 fi 21448 21449 fi 21450 21451 21452 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21453 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21454 # Do we have a bin/java? 21455 if test ! -x "$BOOT_JDK/bin/java"; then 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21458 BOOT_JDK_FOUND=no 21459 else 21460 # Do we have a bin/javac? 21461 if test ! -x "$BOOT_JDK/bin/javac"; then 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21463 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21465 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21466 BOOT_JDK_FOUND=no 21467 else 21468 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21469 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21472 BOOT_JDK_FOUND=no 21473 else 21474 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21475 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21476 21477 # Extra M4 quote needed to protect [] in grep expression. 21478 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21479 if test "x$FOUND_CORRECT_VERSION" = x; then 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21483 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21484 BOOT_JDK_FOUND=no 21485 else 21486 # We're done! :-) 21487 BOOT_JDK_FOUND=yes 21488 21489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21490 21491 # Input might be given as Windows format, start by converting to 21492 # unix format. 21493 path="$BOOT_JDK" 21494 new_path=`$CYGPATH -u "$path"` 21495 21496 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21497 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21498 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21499 # "foo.exe" is OK but "foo" is an error. 21500 # 21501 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21502 # It is also a way to make sure we got the proper file name for the real test later on. 21503 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21504 if test "x$test_shortpath" = x; then 21505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21506 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21507 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21508 fi 21509 21510 # Call helper function which possibly converts this using DOS-style short mode. 21511 # If so, the updated path is stored in $new_path. 21512 21513 input_path="$new_path" 21514 # Check if we need to convert this using DOS-style short mode. If the path 21515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21516 # take no chances and rewrite it. 21517 # Note: m4 eats our [], so we need to use [ and ] instead. 21518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21519 if test "x$has_forbidden_chars" != x; then 21520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21521 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21522 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21523 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21524 # Going to short mode and back again did indeed matter. Since short mode is 21525 # case insensitive, let's make it lowercase to improve readability. 21526 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21527 # Now convert it back to Unix-stile (cygpath) 21528 input_path=`$CYGPATH -u "$shortmode_path"` 21529 new_path="$input_path" 21530 fi 21531 fi 21532 21533 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21534 if test "x$test_cygdrive_prefix" = x; then 21535 # As a simple fix, exclude /usr/bin since it's not a real path. 21536 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21537 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21538 # a path prefixed by /cygdrive for fixpath to work. 21539 new_path="$CYGWIN_ROOT_PATH$input_path" 21540 fi 21541 fi 21542 21543 21544 if test "x$path" != "x$new_path"; then 21545 BOOT_JDK="$new_path" 21546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21548 fi 21549 21550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21551 21552 path="$BOOT_JDK" 21553 has_colon=`$ECHO $path | $GREP ^.:` 21554 new_path="$path" 21555 if test "x$has_colon" = x; then 21556 # Not in mixed or Windows style, start by that. 21557 new_path=`cmd //c echo $path` 21558 fi 21559 21560 21561 input_path="$new_path" 21562 # Check if we need to convert this using DOS-style short mode. If the path 21563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21564 # take no chances and rewrite it. 21565 # Note: m4 eats our [], so we need to use [ and ] instead. 21566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21567 if test "x$has_forbidden_chars" != x; then 21568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21569 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21570 fi 21571 21572 21573 windows_path="$new_path" 21574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21575 unix_path=`$CYGPATH -u "$windows_path"` 21576 new_path="$unix_path" 21577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21579 new_path="$unix_path" 21580 fi 21581 21582 if test "x$path" != "x$new_path"; then 21583 BOOT_JDK="$new_path" 21584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21585 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21586 fi 21587 21588 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21589 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21590 21591 else 21592 # We're on a posix platform. Hooray! :) 21593 path="$BOOT_JDK" 21594 has_space=`$ECHO "$path" | $GREP " "` 21595 if test "x$has_space" != x; then 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21597 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21598 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21599 fi 21600 21601 # Use eval to expand a potential ~ 21602 eval path="$path" 21603 if test ! -f "$path" && test ! -d "$path"; then 21604 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21605 fi 21606 21607 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21608 fi 21609 21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21611 $as_echo_n "checking for Boot JDK... " >&6; } 21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21613 $as_echo "$BOOT_JDK" >&6; } 21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21615 $as_echo_n "checking Boot JDK version... " >&6; } 21616 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21618 $as_echo "$BOOT_JDK_VERSION" >&6; } 21619 fi # end check jdk version 21620 fi # end check rt.jar 21621 fi # end check javac 21622 fi # end check java 21623 fi # end check boot jdk found 21624 fi 21625 21626 21627 # Test: Is $JAVA_HOME set? 21628 21629 if test "x$BOOT_JDK_FOUND" = xno; then 21630 # Now execute the test 21631 21632 if test "x$JAVA_HOME" != x; then 21633 JAVA_HOME_PROCESSED="$JAVA_HOME" 21634 21635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21636 21637 # Input might be given as Windows format, start by converting to 21638 # unix format. 21639 path="$JAVA_HOME_PROCESSED" 21640 new_path=`$CYGPATH -u "$path"` 21641 21642 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21643 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21644 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21645 # "foo.exe" is OK but "foo" is an error. 21646 # 21647 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21648 # It is also a way to make sure we got the proper file name for the real test later on. 21649 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21650 if test "x$test_shortpath" = x; then 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21652 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21653 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21654 fi 21655 21656 # Call helper function which possibly converts this using DOS-style short mode. 21657 # If so, the updated path is stored in $new_path. 21658 21659 input_path="$new_path" 21660 # Check if we need to convert this using DOS-style short mode. If the path 21661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21662 # take no chances and rewrite it. 21663 # Note: m4 eats our [], so we need to use [ and ] instead. 21664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21665 if test "x$has_forbidden_chars" != x; then 21666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21667 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21668 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21669 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21670 # Going to short mode and back again did indeed matter. Since short mode is 21671 # case insensitive, let's make it lowercase to improve readability. 21672 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21673 # Now convert it back to Unix-stile (cygpath) 21674 input_path=`$CYGPATH -u "$shortmode_path"` 21675 new_path="$input_path" 21676 fi 21677 fi 21678 21679 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21680 if test "x$test_cygdrive_prefix" = x; then 21681 # As a simple fix, exclude /usr/bin since it's not a real path. 21682 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21683 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21684 # a path prefixed by /cygdrive for fixpath to work. 21685 new_path="$CYGWIN_ROOT_PATH$input_path" 21686 fi 21687 fi 21688 21689 21690 if test "x$path" != "x$new_path"; then 21691 JAVA_HOME_PROCESSED="$new_path" 21692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21693 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21694 fi 21695 21696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21697 21698 path="$JAVA_HOME_PROCESSED" 21699 has_colon=`$ECHO $path | $GREP ^.:` 21700 new_path="$path" 21701 if test "x$has_colon" = x; then 21702 # Not in mixed or Windows style, start by that. 21703 new_path=`cmd //c echo $path` 21704 fi 21705 21706 21707 input_path="$new_path" 21708 # Check if we need to convert this using DOS-style short mode. If the path 21709 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21710 # take no chances and rewrite it. 21711 # Note: m4 eats our [], so we need to use [ and ] instead. 21712 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21713 if test "x$has_forbidden_chars" != x; then 21714 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21715 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21716 fi 21717 21718 21719 windows_path="$new_path" 21720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21721 unix_path=`$CYGPATH -u "$windows_path"` 21722 new_path="$unix_path" 21723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21725 new_path="$unix_path" 21726 fi 21727 21728 if test "x$path" != "x$new_path"; then 21729 JAVA_HOME_PROCESSED="$new_path" 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21731 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21732 fi 21733 21734 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21735 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21736 21737 else 21738 # We're on a posix platform. Hooray! :) 21739 path="$JAVA_HOME_PROCESSED" 21740 has_space=`$ECHO "$path" | $GREP " "` 21741 if test "x$has_space" != x; then 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21743 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21744 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21745 fi 21746 21747 # Use eval to expand a potential ~ 21748 eval path="$path" 21749 if test ! -f "$path" && test ! -d "$path"; then 21750 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21751 fi 21752 21753 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21754 fi 21755 21756 if test ! -d "$JAVA_HOME_PROCESSED"; then 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21758 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21759 else 21760 # Aha, the user has set a JAVA_HOME 21761 # let us use that as the Boot JDK. 21762 BOOT_JDK="$JAVA_HOME_PROCESSED" 21763 BOOT_JDK_FOUND=maybe 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21765 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21766 fi 21767 fi 21768 21769 21770 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21771 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21772 # Do we have a bin/java? 21773 if test ! -x "$BOOT_JDK/bin/java"; then 21774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21776 BOOT_JDK_FOUND=no 21777 else 21778 # Do we have a bin/javac? 21779 if test ! -x "$BOOT_JDK/bin/javac"; then 21780 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21783 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21784 BOOT_JDK_FOUND=no 21785 else 21786 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21787 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21790 BOOT_JDK_FOUND=no 21791 else 21792 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21793 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21794 21795 # Extra M4 quote needed to protect [] in grep expression. 21796 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21797 if test "x$FOUND_CORRECT_VERSION" = x; then 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21801 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21802 BOOT_JDK_FOUND=no 21803 else 21804 # We're done! :-) 21805 BOOT_JDK_FOUND=yes 21806 21807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21808 21809 # Input might be given as Windows format, start by converting to 21810 # unix format. 21811 path="$BOOT_JDK" 21812 new_path=`$CYGPATH -u "$path"` 21813 21814 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21815 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21816 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21817 # "foo.exe" is OK but "foo" is an error. 21818 # 21819 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21820 # It is also a way to make sure we got the proper file name for the real test later on. 21821 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21822 if test "x$test_shortpath" = x; then 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21824 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21825 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21826 fi 21827 21828 # Call helper function which possibly converts this using DOS-style short mode. 21829 # If so, the updated path is stored in $new_path. 21830 21831 input_path="$new_path" 21832 # Check if we need to convert this using DOS-style short mode. If the path 21833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21834 # take no chances and rewrite it. 21835 # Note: m4 eats our [], so we need to use [ and ] instead. 21836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21837 if test "x$has_forbidden_chars" != x; then 21838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21839 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21840 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21841 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21842 # Going to short mode and back again did indeed matter. Since short mode is 21843 # case insensitive, let's make it lowercase to improve readability. 21844 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21845 # Now convert it back to Unix-stile (cygpath) 21846 input_path=`$CYGPATH -u "$shortmode_path"` 21847 new_path="$input_path" 21848 fi 21849 fi 21850 21851 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21852 if test "x$test_cygdrive_prefix" = x; then 21853 # As a simple fix, exclude /usr/bin since it's not a real path. 21854 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21855 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21856 # a path prefixed by /cygdrive for fixpath to work. 21857 new_path="$CYGWIN_ROOT_PATH$input_path" 21858 fi 21859 fi 21860 21861 21862 if test "x$path" != "x$new_path"; then 21863 BOOT_JDK="$new_path" 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21866 fi 21867 21868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21869 21870 path="$BOOT_JDK" 21871 has_colon=`$ECHO $path | $GREP ^.:` 21872 new_path="$path" 21873 if test "x$has_colon" = x; then 21874 # Not in mixed or Windows style, start by that. 21875 new_path=`cmd //c echo $path` 21876 fi 21877 21878 21879 input_path="$new_path" 21880 # Check if we need to convert this using DOS-style short mode. If the path 21881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21882 # take no chances and rewrite it. 21883 # Note: m4 eats our [], so we need to use [ and ] instead. 21884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21885 if test "x$has_forbidden_chars" != x; then 21886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21887 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21888 fi 21889 21890 21891 windows_path="$new_path" 21892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21893 unix_path=`$CYGPATH -u "$windows_path"` 21894 new_path="$unix_path" 21895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21896 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21897 new_path="$unix_path" 21898 fi 21899 21900 if test "x$path" != "x$new_path"; then 21901 BOOT_JDK="$new_path" 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21903 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21904 fi 21905 21906 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21907 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21908 21909 else 21910 # We're on a posix platform. Hooray! :) 21911 path="$BOOT_JDK" 21912 has_space=`$ECHO "$path" | $GREP " "` 21913 if test "x$has_space" != x; then 21914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21916 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21917 fi 21918 21919 # Use eval to expand a potential ~ 21920 eval path="$path" 21921 if test ! -f "$path" && test ! -d "$path"; then 21922 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21923 fi 21924 21925 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21926 fi 21927 21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21929 $as_echo_n "checking for Boot JDK... " >&6; } 21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21931 $as_echo "$BOOT_JDK" >&6; } 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21933 $as_echo_n "checking Boot JDK version... " >&6; } 21934 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21936 $as_echo "$BOOT_JDK_VERSION" >&6; } 21937 fi # end check jdk version 21938 fi # end check rt.jar 21939 fi # end check javac 21940 fi # end check java 21941 fi # end check boot jdk found 21942 fi 21943 21944 21945 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21946 21947 if test "x$BOOT_JDK_FOUND" = xno; then 21948 # Now execute the test 21949 21950 # Extract the first word of "javac", so it can be a program name with args. 21951 set dummy javac; ac_word=$2 21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21953 $as_echo_n "checking for $ac_word... " >&6; } 21954 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21955 $as_echo_n "(cached) " >&6 21956 else 21957 case $JAVAC_CHECK in 21958 [\\/]* | ?:[\\/]*) 21959 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21960 ;; 21961 *) 21962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21963 for as_dir in $PATH 21964 do 21965 IFS=$as_save_IFS 21966 test -z "$as_dir" && as_dir=. 21967 for ac_exec_ext in '' $ac_executable_extensions; do 21968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21969 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21971 break 2 21972 fi 21973 done 21974 done 21975 IFS=$as_save_IFS 21976 21977 ;; 21978 esac 21979 fi 21980 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21981 if test -n "$JAVAC_CHECK"; then 21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21983 $as_echo "$JAVAC_CHECK" >&6; } 21984 else 21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21986 $as_echo "no" >&6; } 21987 fi 21988 21989 21990 # Extract the first word of "java", so it can be a program name with args. 21991 set dummy java; ac_word=$2 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21993 $as_echo_n "checking for $ac_word... " >&6; } 21994 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21995 $as_echo_n "(cached) " >&6 21996 else 21997 case $JAVA_CHECK in 21998 [\\/]* | ?:[\\/]*) 21999 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 22000 ;; 22001 *) 22002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22003 for as_dir in $PATH 22004 do 22005 IFS=$as_save_IFS 22006 test -z "$as_dir" && as_dir=. 22007 for ac_exec_ext in '' $ac_executable_extensions; do 22008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22009 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22011 break 2 22012 fi 22013 done 22014 done 22015 IFS=$as_save_IFS 22016 22017 ;; 22018 esac 22019 fi 22020 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22021 if test -n "$JAVA_CHECK"; then 22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22023 $as_echo "$JAVA_CHECK" >&6; } 22024 else 22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22026 $as_echo "no" >&6; } 22027 fi 22028 22029 22030 BINARY="$JAVAC_CHECK" 22031 if test "x$JAVAC_CHECK" = x; then 22032 BINARY="$JAVA_CHECK" 22033 fi 22034 if test "x$BINARY" != x; then 22035 # So there is a java(c) binary, it might be part of a JDK. 22036 # Lets find the JDK/JRE directory by following symbolic links. 22037 # Linux/GNU systems often have links from /usr/bin/java to 22038 # /etc/alternatives/java to the real JDK binary. 22039 22040 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22041 # Follow a chain of symbolic links. Use readlink 22042 # where it exists, else fall back to horribly 22043 # complicated shell code. 22044 if test "x$READLINK_TESTED" != yes; then 22045 # On MacOSX there is a readlink tool with a different 22046 # purpose than the GNU readlink tool. Check the found readlink. 22047 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22048 if test "x$ISGNU" = x; then 22049 # A readlink that we do not know how to use. 22050 # Are there other non-GNU readlinks out there? 22051 READLINK_TESTED=yes 22052 READLINK= 22053 fi 22054 fi 22055 22056 if test "x$READLINK" != x; then 22057 BINARY=`$READLINK -f $BINARY` 22058 else 22059 # Save the current directory for restoring afterwards 22060 STARTDIR=$PWD 22061 COUNTER=0 22062 sym_link_dir=`$DIRNAME $BINARY` 22063 sym_link_file=`$BASENAME $BINARY` 22064 cd $sym_link_dir 22065 # Use -P flag to resolve symlinks in directories. 22066 cd `$THEPWDCMD -P` 22067 sym_link_dir=`$THEPWDCMD -P` 22068 # Resolve file symlinks 22069 while test $COUNTER -lt 20; do 22070 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22071 if test "x$ISLINK" == x; then 22072 # This is not a symbolic link! We are done! 22073 break 22074 fi 22075 # Again resolve directory symlinks since the target of the just found 22076 # link could be in a different directory 22077 cd `$DIRNAME $ISLINK` 22078 sym_link_dir=`$THEPWDCMD -P` 22079 sym_link_file=`$BASENAME $ISLINK` 22080 let COUNTER=COUNTER+1 22081 done 22082 cd $STARTDIR 22083 BINARY=$sym_link_dir/$sym_link_file 22084 fi 22085 fi 22086 22087 BOOT_JDK=`dirname "$BINARY"` 22088 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22089 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22090 # Looks like we found ourselves an JDK 22091 BOOT_JDK_FOUND=maybe 22092 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22093 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22094 fi 22095 fi 22096 22097 22098 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22099 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22100 # Do we have a bin/java? 22101 if test ! -x "$BOOT_JDK/bin/java"; then 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22104 BOOT_JDK_FOUND=no 22105 else 22106 # Do we have a bin/javac? 22107 if test ! -x "$BOOT_JDK/bin/javac"; then 22108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22111 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22112 BOOT_JDK_FOUND=no 22113 else 22114 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22115 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22118 BOOT_JDK_FOUND=no 22119 else 22120 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22121 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22122 22123 # Extra M4 quote needed to protect [] in grep expression. 22124 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22125 if test "x$FOUND_CORRECT_VERSION" = x; then 22126 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22127 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22129 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22130 BOOT_JDK_FOUND=no 22131 else 22132 # We're done! :-) 22133 BOOT_JDK_FOUND=yes 22134 22135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22136 22137 # Input might be given as Windows format, start by converting to 22138 # unix format. 22139 path="$BOOT_JDK" 22140 new_path=`$CYGPATH -u "$path"` 22141 22142 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22143 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22144 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22145 # "foo.exe" is OK but "foo" is an error. 22146 # 22147 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22148 # It is also a way to make sure we got the proper file name for the real test later on. 22149 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22150 if test "x$test_shortpath" = x; then 22151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22152 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22153 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22154 fi 22155 22156 # Call helper function which possibly converts this using DOS-style short mode. 22157 # If so, the updated path is stored in $new_path. 22158 22159 input_path="$new_path" 22160 # Check if we need to convert this using DOS-style short mode. If the path 22161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22162 # take no chances and rewrite it. 22163 # Note: m4 eats our [], so we need to use [ and ] instead. 22164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22165 if test "x$has_forbidden_chars" != x; then 22166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22167 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22168 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22169 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22170 # Going to short mode and back again did indeed matter. Since short mode is 22171 # case insensitive, let's make it lowercase to improve readability. 22172 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22173 # Now convert it back to Unix-stile (cygpath) 22174 input_path=`$CYGPATH -u "$shortmode_path"` 22175 new_path="$input_path" 22176 fi 22177 fi 22178 22179 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22180 if test "x$test_cygdrive_prefix" = x; then 22181 # As a simple fix, exclude /usr/bin since it's not a real path. 22182 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22183 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22184 # a path prefixed by /cygdrive for fixpath to work. 22185 new_path="$CYGWIN_ROOT_PATH$input_path" 22186 fi 22187 fi 22188 22189 22190 if test "x$path" != "x$new_path"; then 22191 BOOT_JDK="$new_path" 22192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22193 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22194 fi 22195 22196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22197 22198 path="$BOOT_JDK" 22199 has_colon=`$ECHO $path | $GREP ^.:` 22200 new_path="$path" 22201 if test "x$has_colon" = x; then 22202 # Not in mixed or Windows style, start by that. 22203 new_path=`cmd //c echo $path` 22204 fi 22205 22206 22207 input_path="$new_path" 22208 # Check if we need to convert this using DOS-style short mode. If the path 22209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22210 # take no chances and rewrite it. 22211 # Note: m4 eats our [], so we need to use [ and ] instead. 22212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22213 if test "x$has_forbidden_chars" != x; then 22214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22215 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22216 fi 22217 22218 22219 windows_path="$new_path" 22220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22221 unix_path=`$CYGPATH -u "$windows_path"` 22222 new_path="$unix_path" 22223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22225 new_path="$unix_path" 22226 fi 22227 22228 if test "x$path" != "x$new_path"; then 22229 BOOT_JDK="$new_path" 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22231 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22232 fi 22233 22234 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22235 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22236 22237 else 22238 # We're on a posix platform. Hooray! :) 22239 path="$BOOT_JDK" 22240 has_space=`$ECHO "$path" | $GREP " "` 22241 if test "x$has_space" != x; then 22242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22243 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22244 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22245 fi 22246 22247 # Use eval to expand a potential ~ 22248 eval path="$path" 22249 if test ! -f "$path" && test ! -d "$path"; then 22250 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22251 fi 22252 22253 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22254 fi 22255 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22257 $as_echo_n "checking for Boot JDK... " >&6; } 22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22259 $as_echo "$BOOT_JDK" >&6; } 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22261 $as_echo_n "checking Boot JDK version... " >&6; } 22262 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22264 $as_echo "$BOOT_JDK_VERSION" >&6; } 22265 fi # end check jdk version 22266 fi # end check rt.jar 22267 fi # end check javac 22268 fi # end check java 22269 fi # end check boot jdk found 22270 fi 22271 22272 22273 # Test: Is there a JDK installed in default, well-known locations? 22274 22275 if test "x$BOOT_JDK_FOUND" = xno; then 22276 # Now execute the test 22277 22278 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22279 22280 if test "x$BOOT_JDK_FOUND" = xno; then 22281 # Now execute the test 22282 22283 if test "x$ProgramW6432" != x; then 22284 VIRTUAL_DIR="$ProgramW6432/Java" 22285 22286 windows_path="$VIRTUAL_DIR" 22287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22288 unix_path=`$CYGPATH -u "$windows_path"` 22289 VIRTUAL_DIR="$unix_path" 22290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22292 VIRTUAL_DIR="$unix_path" 22293 fi 22294 22295 22296 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22297 BOOT_JDK_SUFFIX="" 22298 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22299 if test "x$ALL_JDKS_FOUND" != x; then 22300 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22301 22302 if test "x$BOOT_JDK_FOUND" = xno; then 22303 # Now execute the test 22304 22305 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22306 if test -d "$BOOT_JDK"; then 22307 BOOT_JDK_FOUND=maybe 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22309 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22310 fi 22311 22312 22313 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22314 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22315 # Do we have a bin/java? 22316 if test ! -x "$BOOT_JDK/bin/java"; then 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22319 BOOT_JDK_FOUND=no 22320 else 22321 # Do we have a bin/javac? 22322 if test ! -x "$BOOT_JDK/bin/javac"; then 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22325 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22326 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22327 BOOT_JDK_FOUND=no 22328 else 22329 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22330 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22331 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22333 BOOT_JDK_FOUND=no 22334 else 22335 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22336 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22337 22338 # Extra M4 quote needed to protect [] in grep expression. 22339 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22340 if test "x$FOUND_CORRECT_VERSION" = x; then 22341 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22342 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22343 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22344 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22345 BOOT_JDK_FOUND=no 22346 else 22347 # We're done! :-) 22348 BOOT_JDK_FOUND=yes 22349 22350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22351 22352 # Input might be given as Windows format, start by converting to 22353 # unix format. 22354 path="$BOOT_JDK" 22355 new_path=`$CYGPATH -u "$path"` 22356 22357 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22358 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22359 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22360 # "foo.exe" is OK but "foo" is an error. 22361 # 22362 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22363 # It is also a way to make sure we got the proper file name for the real test later on. 22364 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22365 if test "x$test_shortpath" = x; then 22366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22367 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22368 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22369 fi 22370 22371 # Call helper function which possibly converts this using DOS-style short mode. 22372 # If so, the updated path is stored in $new_path. 22373 22374 input_path="$new_path" 22375 # Check if we need to convert this using DOS-style short mode. If the path 22376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22377 # take no chances and rewrite it. 22378 # Note: m4 eats our [], so we need to use [ and ] instead. 22379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22380 if test "x$has_forbidden_chars" != x; then 22381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22385 # Going to short mode and back again did indeed matter. Since short mode is 22386 # case insensitive, let's make it lowercase to improve readability. 22387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22388 # Now convert it back to Unix-stile (cygpath) 22389 input_path=`$CYGPATH -u "$shortmode_path"` 22390 new_path="$input_path" 22391 fi 22392 fi 22393 22394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22395 if test "x$test_cygdrive_prefix" = x; then 22396 # As a simple fix, exclude /usr/bin since it's not a real path. 22397 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22399 # a path prefixed by /cygdrive for fixpath to work. 22400 new_path="$CYGWIN_ROOT_PATH$input_path" 22401 fi 22402 fi 22403 22404 22405 if test "x$path" != "x$new_path"; then 22406 BOOT_JDK="$new_path" 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22408 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22409 fi 22410 22411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22412 22413 path="$BOOT_JDK" 22414 has_colon=`$ECHO $path | $GREP ^.:` 22415 new_path="$path" 22416 if test "x$has_colon" = x; then 22417 # Not in mixed or Windows style, start by that. 22418 new_path=`cmd //c echo $path` 22419 fi 22420 22421 22422 input_path="$new_path" 22423 # Check if we need to convert this using DOS-style short mode. If the path 22424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22425 # take no chances and rewrite it. 22426 # Note: m4 eats our [], so we need to use [ and ] instead. 22427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22428 if test "x$has_forbidden_chars" != x; then 22429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22431 fi 22432 22433 22434 windows_path="$new_path" 22435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22436 unix_path=`$CYGPATH -u "$windows_path"` 22437 new_path="$unix_path" 22438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22440 new_path="$unix_path" 22441 fi 22442 22443 if test "x$path" != "x$new_path"; then 22444 BOOT_JDK="$new_path" 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22446 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22447 fi 22448 22449 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22450 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22451 22452 else 22453 # We're on a posix platform. Hooray! :) 22454 path="$BOOT_JDK" 22455 has_space=`$ECHO "$path" | $GREP " "` 22456 if test "x$has_space" != x; then 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22459 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22460 fi 22461 22462 # Use eval to expand a potential ~ 22463 eval path="$path" 22464 if test ! -f "$path" && test ! -d "$path"; then 22465 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22466 fi 22467 22468 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22469 fi 22470 22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22472 $as_echo_n "checking for Boot JDK... " >&6; } 22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22474 $as_echo "$BOOT_JDK" >&6; } 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22476 $as_echo_n "checking Boot JDK version... " >&6; } 22477 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22479 $as_echo "$BOOT_JDK_VERSION" >&6; } 22480 fi # end check jdk version 22481 fi # end check rt.jar 22482 fi # end check javac 22483 fi # end check java 22484 fi # end check boot jdk found 22485 fi 22486 22487 done 22488 fi 22489 22490 fi 22491 22492 22493 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22494 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22495 # Do we have a bin/java? 22496 if test ! -x "$BOOT_JDK/bin/java"; then 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22498 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22499 BOOT_JDK_FOUND=no 22500 else 22501 # Do we have a bin/javac? 22502 if test ! -x "$BOOT_JDK/bin/javac"; then 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22505 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22506 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22507 BOOT_JDK_FOUND=no 22508 else 22509 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22510 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22513 BOOT_JDK_FOUND=no 22514 else 22515 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22516 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22517 22518 # Extra M4 quote needed to protect [] in grep expression. 22519 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22520 if test "x$FOUND_CORRECT_VERSION" = x; then 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22522 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22523 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22524 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22525 BOOT_JDK_FOUND=no 22526 else 22527 # We're done! :-) 22528 BOOT_JDK_FOUND=yes 22529 22530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22531 22532 # Input might be given as Windows format, start by converting to 22533 # unix format. 22534 path="$BOOT_JDK" 22535 new_path=`$CYGPATH -u "$path"` 22536 22537 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22538 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22539 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22540 # "foo.exe" is OK but "foo" is an error. 22541 # 22542 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22543 # It is also a way to make sure we got the proper file name for the real test later on. 22544 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22545 if test "x$test_shortpath" = x; then 22546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22548 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22549 fi 22550 22551 # Call helper function which possibly converts this using DOS-style short mode. 22552 # If so, the updated path is stored in $new_path. 22553 22554 input_path="$new_path" 22555 # Check if we need to convert this using DOS-style short mode. If the path 22556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22557 # take no chances and rewrite it. 22558 # Note: m4 eats our [], so we need to use [ and ] instead. 22559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22560 if test "x$has_forbidden_chars" != x; then 22561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22562 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22563 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22564 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22565 # Going to short mode and back again did indeed matter. Since short mode is 22566 # case insensitive, let's make it lowercase to improve readability. 22567 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22568 # Now convert it back to Unix-stile (cygpath) 22569 input_path=`$CYGPATH -u "$shortmode_path"` 22570 new_path="$input_path" 22571 fi 22572 fi 22573 22574 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22575 if test "x$test_cygdrive_prefix" = x; then 22576 # As a simple fix, exclude /usr/bin since it's not a real path. 22577 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22578 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22579 # a path prefixed by /cygdrive for fixpath to work. 22580 new_path="$CYGWIN_ROOT_PATH$input_path" 22581 fi 22582 fi 22583 22584 22585 if test "x$path" != "x$new_path"; then 22586 BOOT_JDK="$new_path" 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22588 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22589 fi 22590 22591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22592 22593 path="$BOOT_JDK" 22594 has_colon=`$ECHO $path | $GREP ^.:` 22595 new_path="$path" 22596 if test "x$has_colon" = x; then 22597 # Not in mixed or Windows style, start by that. 22598 new_path=`cmd //c echo $path` 22599 fi 22600 22601 22602 input_path="$new_path" 22603 # Check if we need to convert this using DOS-style short mode. If the path 22604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22605 # take no chances and rewrite it. 22606 # Note: m4 eats our [], so we need to use [ and ] instead. 22607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22608 if test "x$has_forbidden_chars" != x; then 22609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22610 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22611 fi 22612 22613 22614 windows_path="$new_path" 22615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22616 unix_path=`$CYGPATH -u "$windows_path"` 22617 new_path="$unix_path" 22618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22619 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22620 new_path="$unix_path" 22621 fi 22622 22623 if test "x$path" != "x$new_path"; then 22624 BOOT_JDK="$new_path" 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22626 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22627 fi 22628 22629 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22630 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22631 22632 else 22633 # We're on a posix platform. Hooray! :) 22634 path="$BOOT_JDK" 22635 has_space=`$ECHO "$path" | $GREP " "` 22636 if test "x$has_space" != x; then 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22638 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22639 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22640 fi 22641 22642 # Use eval to expand a potential ~ 22643 eval path="$path" 22644 if test ! -f "$path" && test ! -d "$path"; then 22645 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22646 fi 22647 22648 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22649 fi 22650 22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22652 $as_echo_n "checking for Boot JDK... " >&6; } 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22654 $as_echo "$BOOT_JDK" >&6; } 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22656 $as_echo_n "checking Boot JDK version... " >&6; } 22657 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22659 $as_echo "$BOOT_JDK_VERSION" >&6; } 22660 fi # end check jdk version 22661 fi # end check rt.jar 22662 fi # end check javac 22663 fi # end check java 22664 fi # end check boot jdk found 22665 fi 22666 22667 22668 if test "x$BOOT_JDK_FOUND" = xno; then 22669 # Now execute the test 22670 22671 if test "x$PROGRAMW6432" != x; then 22672 VIRTUAL_DIR="$PROGRAMW6432/Java" 22673 22674 windows_path="$VIRTUAL_DIR" 22675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22676 unix_path=`$CYGPATH -u "$windows_path"` 22677 VIRTUAL_DIR="$unix_path" 22678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22680 VIRTUAL_DIR="$unix_path" 22681 fi 22682 22683 22684 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22685 BOOT_JDK_SUFFIX="" 22686 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22687 if test "x$ALL_JDKS_FOUND" != x; then 22688 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22689 22690 if test "x$BOOT_JDK_FOUND" = xno; then 22691 # Now execute the test 22692 22693 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22694 if test -d "$BOOT_JDK"; then 22695 BOOT_JDK_FOUND=maybe 22696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22697 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22698 fi 22699 22700 22701 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22702 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22703 # Do we have a bin/java? 22704 if test ! -x "$BOOT_JDK/bin/java"; then 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22707 BOOT_JDK_FOUND=no 22708 else 22709 # Do we have a bin/javac? 22710 if test ! -x "$BOOT_JDK/bin/javac"; then 22711 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22712 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22713 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22714 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22715 BOOT_JDK_FOUND=no 22716 else 22717 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22718 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22721 BOOT_JDK_FOUND=no 22722 else 22723 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22724 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22725 22726 # Extra M4 quote needed to protect [] in grep expression. 22727 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22728 if test "x$FOUND_CORRECT_VERSION" = x; then 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22731 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22732 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22733 BOOT_JDK_FOUND=no 22734 else 22735 # We're done! :-) 22736 BOOT_JDK_FOUND=yes 22737 22738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22739 22740 # Input might be given as Windows format, start by converting to 22741 # unix format. 22742 path="$BOOT_JDK" 22743 new_path=`$CYGPATH -u "$path"` 22744 22745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22748 # "foo.exe" is OK but "foo" is an error. 22749 # 22750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22751 # It is also a way to make sure we got the proper file name for the real test later on. 22752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22753 if test "x$test_shortpath" = x; then 22754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22756 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22757 fi 22758 22759 # Call helper function which possibly converts this using DOS-style short mode. 22760 # If so, the updated path is stored in $new_path. 22761 22762 input_path="$new_path" 22763 # Check if we need to convert this using DOS-style short mode. If the path 22764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22765 # take no chances and rewrite it. 22766 # Note: m4 eats our [], so we need to use [ and ] instead. 22767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22768 if test "x$has_forbidden_chars" != x; then 22769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22773 # Going to short mode and back again did indeed matter. Since short mode is 22774 # case insensitive, let's make it lowercase to improve readability. 22775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22776 # Now convert it back to Unix-stile (cygpath) 22777 input_path=`$CYGPATH -u "$shortmode_path"` 22778 new_path="$input_path" 22779 fi 22780 fi 22781 22782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22783 if test "x$test_cygdrive_prefix" = x; then 22784 # As a simple fix, exclude /usr/bin since it's not a real path. 22785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22787 # a path prefixed by /cygdrive for fixpath to work. 22788 new_path="$CYGWIN_ROOT_PATH$input_path" 22789 fi 22790 fi 22791 22792 22793 if test "x$path" != "x$new_path"; then 22794 BOOT_JDK="$new_path" 22795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22796 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22797 fi 22798 22799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22800 22801 path="$BOOT_JDK" 22802 has_colon=`$ECHO $path | $GREP ^.:` 22803 new_path="$path" 22804 if test "x$has_colon" = x; then 22805 # Not in mixed or Windows style, start by that. 22806 new_path=`cmd //c echo $path` 22807 fi 22808 22809 22810 input_path="$new_path" 22811 # Check if we need to convert this using DOS-style short mode. If the path 22812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22813 # take no chances and rewrite it. 22814 # Note: m4 eats our [], so we need to use [ and ] instead. 22815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22816 if test "x$has_forbidden_chars" != x; then 22817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22819 fi 22820 22821 22822 windows_path="$new_path" 22823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22824 unix_path=`$CYGPATH -u "$windows_path"` 22825 new_path="$unix_path" 22826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22828 new_path="$unix_path" 22829 fi 22830 22831 if test "x$path" != "x$new_path"; then 22832 BOOT_JDK="$new_path" 22833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22834 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22835 fi 22836 22837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22839 22840 else 22841 # We're on a posix platform. Hooray! :) 22842 path="$BOOT_JDK" 22843 has_space=`$ECHO "$path" | $GREP " "` 22844 if test "x$has_space" != x; then 22845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22848 fi 22849 22850 # Use eval to expand a potential ~ 22851 eval path="$path" 22852 if test ! -f "$path" && test ! -d "$path"; then 22853 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22854 fi 22855 22856 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22857 fi 22858 22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22860 $as_echo_n "checking for Boot JDK... " >&6; } 22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22862 $as_echo "$BOOT_JDK" >&6; } 22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22864 $as_echo_n "checking Boot JDK version... " >&6; } 22865 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22867 $as_echo "$BOOT_JDK_VERSION" >&6; } 22868 fi # end check jdk version 22869 fi # end check rt.jar 22870 fi # end check javac 22871 fi # end check java 22872 fi # end check boot jdk found 22873 fi 22874 22875 done 22876 fi 22877 22878 fi 22879 22880 22881 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22882 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22883 # Do we have a bin/java? 22884 if test ! -x "$BOOT_JDK/bin/java"; then 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22887 BOOT_JDK_FOUND=no 22888 else 22889 # Do we have a bin/javac? 22890 if test ! -x "$BOOT_JDK/bin/javac"; then 22891 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22892 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22893 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22894 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22895 BOOT_JDK_FOUND=no 22896 else 22897 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22898 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22900 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22901 BOOT_JDK_FOUND=no 22902 else 22903 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22904 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22905 22906 # Extra M4 quote needed to protect [] in grep expression. 22907 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22908 if test "x$FOUND_CORRECT_VERSION" = x; then 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22910 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22912 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22913 BOOT_JDK_FOUND=no 22914 else 22915 # We're done! :-) 22916 BOOT_JDK_FOUND=yes 22917 22918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22919 22920 # Input might be given as Windows format, start by converting to 22921 # unix format. 22922 path="$BOOT_JDK" 22923 new_path=`$CYGPATH -u "$path"` 22924 22925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22928 # "foo.exe" is OK but "foo" is an error. 22929 # 22930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22931 # It is also a way to make sure we got the proper file name for the real test later on. 22932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22933 if test "x$test_shortpath" = x; then 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22936 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22937 fi 22938 22939 # Call helper function which possibly converts this using DOS-style short mode. 22940 # If so, the updated path is stored in $new_path. 22941 22942 input_path="$new_path" 22943 # Check if we need to convert this using DOS-style short mode. If the path 22944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22945 # take no chances and rewrite it. 22946 # Note: m4 eats our [], so we need to use [ and ] instead. 22947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22948 if test "x$has_forbidden_chars" != x; then 22949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22953 # Going to short mode and back again did indeed matter. Since short mode is 22954 # case insensitive, let's make it lowercase to improve readability. 22955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22956 # Now convert it back to Unix-stile (cygpath) 22957 input_path=`$CYGPATH -u "$shortmode_path"` 22958 new_path="$input_path" 22959 fi 22960 fi 22961 22962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22963 if test "x$test_cygdrive_prefix" = x; then 22964 # As a simple fix, exclude /usr/bin since it's not a real path. 22965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22967 # a path prefixed by /cygdrive for fixpath to work. 22968 new_path="$CYGWIN_ROOT_PATH$input_path" 22969 fi 22970 fi 22971 22972 22973 if test "x$path" != "x$new_path"; then 22974 BOOT_JDK="$new_path" 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22976 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22977 fi 22978 22979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22980 22981 path="$BOOT_JDK" 22982 has_colon=`$ECHO $path | $GREP ^.:` 22983 new_path="$path" 22984 if test "x$has_colon" = x; then 22985 # Not in mixed or Windows style, start by that. 22986 new_path=`cmd //c echo $path` 22987 fi 22988 22989 22990 input_path="$new_path" 22991 # Check if we need to convert this using DOS-style short mode. If the path 22992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22993 # take no chances and rewrite it. 22994 # Note: m4 eats our [], so we need to use [ and ] instead. 22995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22996 if test "x$has_forbidden_chars" != x; then 22997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22999 fi 23000 23001 23002 windows_path="$new_path" 23003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23004 unix_path=`$CYGPATH -u "$windows_path"` 23005 new_path="$unix_path" 23006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23008 new_path="$unix_path" 23009 fi 23010 23011 if test "x$path" != "x$new_path"; then 23012 BOOT_JDK="$new_path" 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23014 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23015 fi 23016 23017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23019 23020 else 23021 # We're on a posix platform. Hooray! :) 23022 path="$BOOT_JDK" 23023 has_space=`$ECHO "$path" | $GREP " "` 23024 if test "x$has_space" != x; then 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23026 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23028 fi 23029 23030 # Use eval to expand a potential ~ 23031 eval path="$path" 23032 if test ! -f "$path" && test ! -d "$path"; then 23033 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23034 fi 23035 23036 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23037 fi 23038 23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23040 $as_echo_n "checking for Boot JDK... " >&6; } 23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23042 $as_echo "$BOOT_JDK" >&6; } 23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23044 $as_echo_n "checking Boot JDK version... " >&6; } 23045 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23047 $as_echo "$BOOT_JDK_VERSION" >&6; } 23048 fi # end check jdk version 23049 fi # end check rt.jar 23050 fi # end check javac 23051 fi # end check java 23052 fi # end check boot jdk found 23053 fi 23054 23055 23056 if test "x$BOOT_JDK_FOUND" = xno; then 23057 # Now execute the test 23058 23059 if test "x$PROGRAMFILES" != x; then 23060 VIRTUAL_DIR="$PROGRAMFILES/Java" 23061 23062 windows_path="$VIRTUAL_DIR" 23063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23064 unix_path=`$CYGPATH -u "$windows_path"` 23065 VIRTUAL_DIR="$unix_path" 23066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23068 VIRTUAL_DIR="$unix_path" 23069 fi 23070 23071 23072 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23073 BOOT_JDK_SUFFIX="" 23074 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23075 if test "x$ALL_JDKS_FOUND" != x; then 23076 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23077 23078 if test "x$BOOT_JDK_FOUND" = xno; then 23079 # Now execute the test 23080 23081 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23082 if test -d "$BOOT_JDK"; then 23083 BOOT_JDK_FOUND=maybe 23084 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23085 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23086 fi 23087 23088 23089 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23090 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23091 # Do we have a bin/java? 23092 if test ! -x "$BOOT_JDK/bin/java"; then 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23095 BOOT_JDK_FOUND=no 23096 else 23097 # Do we have a bin/javac? 23098 if test ! -x "$BOOT_JDK/bin/javac"; then 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23102 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23103 BOOT_JDK_FOUND=no 23104 else 23105 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23106 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23109 BOOT_JDK_FOUND=no 23110 else 23111 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23113 23114 # Extra M4 quote needed to protect [] in grep expression. 23115 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23116 if test "x$FOUND_CORRECT_VERSION" = x; then 23117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23119 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23121 BOOT_JDK_FOUND=no 23122 else 23123 # We're done! :-) 23124 BOOT_JDK_FOUND=yes 23125 23126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23127 23128 # Input might be given as Windows format, start by converting to 23129 # unix format. 23130 path="$BOOT_JDK" 23131 new_path=`$CYGPATH -u "$path"` 23132 23133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23136 # "foo.exe" is OK but "foo" is an error. 23137 # 23138 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23139 # It is also a way to make sure we got the proper file name for the real test later on. 23140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23141 if test "x$test_shortpath" = x; then 23142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23143 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23144 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23145 fi 23146 23147 # Call helper function which possibly converts this using DOS-style short mode. 23148 # If so, the updated path is stored in $new_path. 23149 23150 input_path="$new_path" 23151 # Check if we need to convert this using DOS-style short mode. If the path 23152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23153 # take no chances and rewrite it. 23154 # Note: m4 eats our [], so we need to use [ and ] instead. 23155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23156 if test "x$has_forbidden_chars" != x; then 23157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23161 # Going to short mode and back again did indeed matter. Since short mode is 23162 # case insensitive, let's make it lowercase to improve readability. 23163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23164 # Now convert it back to Unix-stile (cygpath) 23165 input_path=`$CYGPATH -u "$shortmode_path"` 23166 new_path="$input_path" 23167 fi 23168 fi 23169 23170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23171 if test "x$test_cygdrive_prefix" = x; then 23172 # As a simple fix, exclude /usr/bin since it's not a real path. 23173 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23175 # a path prefixed by /cygdrive for fixpath to work. 23176 new_path="$CYGWIN_ROOT_PATH$input_path" 23177 fi 23178 fi 23179 23180 23181 if test "x$path" != "x$new_path"; then 23182 BOOT_JDK="$new_path" 23183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23184 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23185 fi 23186 23187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23188 23189 path="$BOOT_JDK" 23190 has_colon=`$ECHO $path | $GREP ^.:` 23191 new_path="$path" 23192 if test "x$has_colon" = x; then 23193 # Not in mixed or Windows style, start by that. 23194 new_path=`cmd //c echo $path` 23195 fi 23196 23197 23198 input_path="$new_path" 23199 # Check if we need to convert this using DOS-style short mode. If the path 23200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23201 # take no chances and rewrite it. 23202 # Note: m4 eats our [], so we need to use [ and ] instead. 23203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23204 if test "x$has_forbidden_chars" != x; then 23205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23207 fi 23208 23209 23210 windows_path="$new_path" 23211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23212 unix_path=`$CYGPATH -u "$windows_path"` 23213 new_path="$unix_path" 23214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23216 new_path="$unix_path" 23217 fi 23218 23219 if test "x$path" != "x$new_path"; then 23220 BOOT_JDK="$new_path" 23221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23222 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23223 fi 23224 23225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23227 23228 else 23229 # We're on a posix platform. Hooray! :) 23230 path="$BOOT_JDK" 23231 has_space=`$ECHO "$path" | $GREP " "` 23232 if test "x$has_space" != x; then 23233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23234 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23235 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23236 fi 23237 23238 # Use eval to expand a potential ~ 23239 eval path="$path" 23240 if test ! -f "$path" && test ! -d "$path"; then 23241 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23242 fi 23243 23244 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23245 fi 23246 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23248 $as_echo_n "checking for Boot JDK... " >&6; } 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23250 $as_echo "$BOOT_JDK" >&6; } 23251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23252 $as_echo_n "checking Boot JDK version... " >&6; } 23253 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23255 $as_echo "$BOOT_JDK_VERSION" >&6; } 23256 fi # end check jdk version 23257 fi # end check rt.jar 23258 fi # end check javac 23259 fi # end check java 23260 fi # end check boot jdk found 23261 fi 23262 23263 done 23264 fi 23265 23266 fi 23267 23268 23269 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23270 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23271 # Do we have a bin/java? 23272 if test ! -x "$BOOT_JDK/bin/java"; then 23273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23275 BOOT_JDK_FOUND=no 23276 else 23277 # Do we have a bin/javac? 23278 if test ! -x "$BOOT_JDK/bin/javac"; then 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23281 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23282 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23283 BOOT_JDK_FOUND=no 23284 else 23285 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23286 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23288 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23289 BOOT_JDK_FOUND=no 23290 else 23291 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23292 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23293 23294 # Extra M4 quote needed to protect [] in grep expression. 23295 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23296 if test "x$FOUND_CORRECT_VERSION" = x; then 23297 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23299 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23300 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23301 BOOT_JDK_FOUND=no 23302 else 23303 # We're done! :-) 23304 BOOT_JDK_FOUND=yes 23305 23306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23307 23308 # Input might be given as Windows format, start by converting to 23309 # unix format. 23310 path="$BOOT_JDK" 23311 new_path=`$CYGPATH -u "$path"` 23312 23313 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23314 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23315 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23316 # "foo.exe" is OK but "foo" is an error. 23317 # 23318 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23319 # It is also a way to make sure we got the proper file name for the real test later on. 23320 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23321 if test "x$test_shortpath" = x; then 23322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23323 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23324 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23325 fi 23326 23327 # Call helper function which possibly converts this using DOS-style short mode. 23328 # If so, the updated path is stored in $new_path. 23329 23330 input_path="$new_path" 23331 # Check if we need to convert this using DOS-style short mode. If the path 23332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23333 # take no chances and rewrite it. 23334 # Note: m4 eats our [], so we need to use [ and ] instead. 23335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23336 if test "x$has_forbidden_chars" != x; then 23337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23341 # Going to short mode and back again did indeed matter. Since short mode is 23342 # case insensitive, let's make it lowercase to improve readability. 23343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23344 # Now convert it back to Unix-stile (cygpath) 23345 input_path=`$CYGPATH -u "$shortmode_path"` 23346 new_path="$input_path" 23347 fi 23348 fi 23349 23350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23351 if test "x$test_cygdrive_prefix" = x; then 23352 # As a simple fix, exclude /usr/bin since it's not a real path. 23353 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23355 # a path prefixed by /cygdrive for fixpath to work. 23356 new_path="$CYGWIN_ROOT_PATH$input_path" 23357 fi 23358 fi 23359 23360 23361 if test "x$path" != "x$new_path"; then 23362 BOOT_JDK="$new_path" 23363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23364 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23365 fi 23366 23367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23368 23369 path="$BOOT_JDK" 23370 has_colon=`$ECHO $path | $GREP ^.:` 23371 new_path="$path" 23372 if test "x$has_colon" = x; then 23373 # Not in mixed or Windows style, start by that. 23374 new_path=`cmd //c echo $path` 23375 fi 23376 23377 23378 input_path="$new_path" 23379 # Check if we need to convert this using DOS-style short mode. If the path 23380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23381 # take no chances and rewrite it. 23382 # Note: m4 eats our [], so we need to use [ and ] instead. 23383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23384 if test "x$has_forbidden_chars" != x; then 23385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23386 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23387 fi 23388 23389 23390 windows_path="$new_path" 23391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23392 unix_path=`$CYGPATH -u "$windows_path"` 23393 new_path="$unix_path" 23394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23396 new_path="$unix_path" 23397 fi 23398 23399 if test "x$path" != "x$new_path"; then 23400 BOOT_JDK="$new_path" 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23402 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23403 fi 23404 23405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23407 23408 else 23409 # We're on a posix platform. Hooray! :) 23410 path="$BOOT_JDK" 23411 has_space=`$ECHO "$path" | $GREP " "` 23412 if test "x$has_space" != x; then 23413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23414 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23415 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23416 fi 23417 23418 # Use eval to expand a potential ~ 23419 eval path="$path" 23420 if test ! -f "$path" && test ! -d "$path"; then 23421 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23422 fi 23423 23424 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23425 fi 23426 23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23428 $as_echo_n "checking for Boot JDK... " >&6; } 23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23430 $as_echo "$BOOT_JDK" >&6; } 23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23432 $as_echo_n "checking Boot JDK version... " >&6; } 23433 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23435 $as_echo "$BOOT_JDK_VERSION" >&6; } 23436 fi # end check jdk version 23437 fi # end check rt.jar 23438 fi # end check javac 23439 fi # end check java 23440 fi # end check boot jdk found 23441 fi 23442 23443 23444 if test "x$BOOT_JDK_FOUND" = xno; then 23445 # Now execute the test 23446 23447 if test "x$ProgramFiles" != x; then 23448 VIRTUAL_DIR="$ProgramFiles/Java" 23449 23450 windows_path="$VIRTUAL_DIR" 23451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23452 unix_path=`$CYGPATH -u "$windows_path"` 23453 VIRTUAL_DIR="$unix_path" 23454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23456 VIRTUAL_DIR="$unix_path" 23457 fi 23458 23459 23460 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23461 BOOT_JDK_SUFFIX="" 23462 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23463 if test "x$ALL_JDKS_FOUND" != x; then 23464 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23465 23466 if test "x$BOOT_JDK_FOUND" = xno; then 23467 # Now execute the test 23468 23469 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23470 if test -d "$BOOT_JDK"; then 23471 BOOT_JDK_FOUND=maybe 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23473 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23474 fi 23475 23476 23477 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23478 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23479 # Do we have a bin/java? 23480 if test ! -x "$BOOT_JDK/bin/java"; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23483 BOOT_JDK_FOUND=no 23484 else 23485 # Do we have a bin/javac? 23486 if test ! -x "$BOOT_JDK/bin/javac"; then 23487 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23490 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23491 BOOT_JDK_FOUND=no 23492 else 23493 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23494 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23497 BOOT_JDK_FOUND=no 23498 else 23499 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23500 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23501 23502 # Extra M4 quote needed to protect [] in grep expression. 23503 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23504 if test "x$FOUND_CORRECT_VERSION" = x; then 23505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23507 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23508 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23509 BOOT_JDK_FOUND=no 23510 else 23511 # We're done! :-) 23512 BOOT_JDK_FOUND=yes 23513 23514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23515 23516 # Input might be given as Windows format, start by converting to 23517 # unix format. 23518 path="$BOOT_JDK" 23519 new_path=`$CYGPATH -u "$path"` 23520 23521 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23522 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23523 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23524 # "foo.exe" is OK but "foo" is an error. 23525 # 23526 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23527 # It is also a way to make sure we got the proper file name for the real test later on. 23528 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23529 if test "x$test_shortpath" = x; then 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23531 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23532 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23533 fi 23534 23535 # Call helper function which possibly converts this using DOS-style short mode. 23536 # If so, the updated path is stored in $new_path. 23537 23538 input_path="$new_path" 23539 # Check if we need to convert this using DOS-style short mode. If the path 23540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23541 # take no chances and rewrite it. 23542 # Note: m4 eats our [], so we need to use [ and ] instead. 23543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23544 if test "x$has_forbidden_chars" != x; then 23545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23546 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23547 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23548 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23549 # Going to short mode and back again did indeed matter. Since short mode is 23550 # case insensitive, let's make it lowercase to improve readability. 23551 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23552 # Now convert it back to Unix-stile (cygpath) 23553 input_path=`$CYGPATH -u "$shortmode_path"` 23554 new_path="$input_path" 23555 fi 23556 fi 23557 23558 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23559 if test "x$test_cygdrive_prefix" = x; then 23560 # As a simple fix, exclude /usr/bin since it's not a real path. 23561 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23562 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23563 # a path prefixed by /cygdrive for fixpath to work. 23564 new_path="$CYGWIN_ROOT_PATH$input_path" 23565 fi 23566 fi 23567 23568 23569 if test "x$path" != "x$new_path"; then 23570 BOOT_JDK="$new_path" 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23572 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23573 fi 23574 23575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23576 23577 path="$BOOT_JDK" 23578 has_colon=`$ECHO $path | $GREP ^.:` 23579 new_path="$path" 23580 if test "x$has_colon" = x; then 23581 # Not in mixed or Windows style, start by that. 23582 new_path=`cmd //c echo $path` 23583 fi 23584 23585 23586 input_path="$new_path" 23587 # Check if we need to convert this using DOS-style short mode. If the path 23588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23589 # take no chances and rewrite it. 23590 # Note: m4 eats our [], so we need to use [ and ] instead. 23591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23592 if test "x$has_forbidden_chars" != x; then 23593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23594 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23595 fi 23596 23597 23598 windows_path="$new_path" 23599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23600 unix_path=`$CYGPATH -u "$windows_path"` 23601 new_path="$unix_path" 23602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23604 new_path="$unix_path" 23605 fi 23606 23607 if test "x$path" != "x$new_path"; then 23608 BOOT_JDK="$new_path" 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23610 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23611 fi 23612 23613 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23614 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23615 23616 else 23617 # We're on a posix platform. Hooray! :) 23618 path="$BOOT_JDK" 23619 has_space=`$ECHO "$path" | $GREP " "` 23620 if test "x$has_space" != x; then 23621 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23622 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23623 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23624 fi 23625 23626 # Use eval to expand a potential ~ 23627 eval path="$path" 23628 if test ! -f "$path" && test ! -d "$path"; then 23629 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23630 fi 23631 23632 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23633 fi 23634 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23636 $as_echo_n "checking for Boot JDK... " >&6; } 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23638 $as_echo "$BOOT_JDK" >&6; } 23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23640 $as_echo_n "checking Boot JDK version... " >&6; } 23641 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23643 $as_echo "$BOOT_JDK_VERSION" >&6; } 23644 fi # end check jdk version 23645 fi # end check rt.jar 23646 fi # end check javac 23647 fi # end check java 23648 fi # end check boot jdk found 23649 fi 23650 23651 done 23652 fi 23653 23654 fi 23655 23656 23657 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23658 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23659 # Do we have a bin/java? 23660 if test ! -x "$BOOT_JDK/bin/java"; then 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23663 BOOT_JDK_FOUND=no 23664 else 23665 # Do we have a bin/javac? 23666 if test ! -x "$BOOT_JDK/bin/javac"; then 23667 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23669 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23670 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23671 BOOT_JDK_FOUND=no 23672 else 23673 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23674 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23675 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23677 BOOT_JDK_FOUND=no 23678 else 23679 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23680 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23681 23682 # Extra M4 quote needed to protect [] in grep expression. 23683 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23684 if test "x$FOUND_CORRECT_VERSION" = x; then 23685 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23686 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23687 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23688 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23689 BOOT_JDK_FOUND=no 23690 else 23691 # We're done! :-) 23692 BOOT_JDK_FOUND=yes 23693 23694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23695 23696 # Input might be given as Windows format, start by converting to 23697 # unix format. 23698 path="$BOOT_JDK" 23699 new_path=`$CYGPATH -u "$path"` 23700 23701 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23702 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23703 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23704 # "foo.exe" is OK but "foo" is an error. 23705 # 23706 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23707 # It is also a way to make sure we got the proper file name for the real test later on. 23708 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23709 if test "x$test_shortpath" = x; then 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23711 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23712 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23713 fi 23714 23715 # Call helper function which possibly converts this using DOS-style short mode. 23716 # If so, the updated path is stored in $new_path. 23717 23718 input_path="$new_path" 23719 # Check if we need to convert this using DOS-style short mode. If the path 23720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23721 # take no chances and rewrite it. 23722 # Note: m4 eats our [], so we need to use [ and ] instead. 23723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23724 if test "x$has_forbidden_chars" != x; then 23725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23726 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23727 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23728 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23729 # Going to short mode and back again did indeed matter. Since short mode is 23730 # case insensitive, let's make it lowercase to improve readability. 23731 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23732 # Now convert it back to Unix-stile (cygpath) 23733 input_path=`$CYGPATH -u "$shortmode_path"` 23734 new_path="$input_path" 23735 fi 23736 fi 23737 23738 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23739 if test "x$test_cygdrive_prefix" = x; then 23740 # As a simple fix, exclude /usr/bin since it's not a real path. 23741 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23742 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23743 # a path prefixed by /cygdrive for fixpath to work. 23744 new_path="$CYGWIN_ROOT_PATH$input_path" 23745 fi 23746 fi 23747 23748 23749 if test "x$path" != "x$new_path"; then 23750 BOOT_JDK="$new_path" 23751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23752 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23753 fi 23754 23755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23756 23757 path="$BOOT_JDK" 23758 has_colon=`$ECHO $path | $GREP ^.:` 23759 new_path="$path" 23760 if test "x$has_colon" = x; then 23761 # Not in mixed or Windows style, start by that. 23762 new_path=`cmd //c echo $path` 23763 fi 23764 23765 23766 input_path="$new_path" 23767 # Check if we need to convert this using DOS-style short mode. If the path 23768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23769 # take no chances and rewrite it. 23770 # Note: m4 eats our [], so we need to use [ and ] instead. 23771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23772 if test "x$has_forbidden_chars" != x; then 23773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23775 fi 23776 23777 23778 windows_path="$new_path" 23779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23780 unix_path=`$CYGPATH -u "$windows_path"` 23781 new_path="$unix_path" 23782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23784 new_path="$unix_path" 23785 fi 23786 23787 if test "x$path" != "x$new_path"; then 23788 BOOT_JDK="$new_path" 23789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23790 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23791 fi 23792 23793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23795 23796 else 23797 # We're on a posix platform. Hooray! :) 23798 path="$BOOT_JDK" 23799 has_space=`$ECHO "$path" | $GREP " "` 23800 if test "x$has_space" != x; then 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23802 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23804 fi 23805 23806 # Use eval to expand a potential ~ 23807 eval path="$path" 23808 if test ! -f "$path" && test ! -d "$path"; then 23809 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23810 fi 23811 23812 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23813 fi 23814 23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23816 $as_echo_n "checking for Boot JDK... " >&6; } 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23818 $as_echo "$BOOT_JDK" >&6; } 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23820 $as_echo_n "checking Boot JDK version... " >&6; } 23821 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23823 $as_echo "$BOOT_JDK_VERSION" >&6; } 23824 fi # end check jdk version 23825 fi # end check rt.jar 23826 fi # end check javac 23827 fi # end check java 23828 fi # end check boot jdk found 23829 fi 23830 23831 23832 if test "x$BOOT_JDK_FOUND" = xno; then 23833 # Now execute the test 23834 23835 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23836 BOOT_JDK_SUFFIX="" 23837 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23838 if test "x$ALL_JDKS_FOUND" != x; then 23839 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23840 23841 if test "x$BOOT_JDK_FOUND" = xno; then 23842 # Now execute the test 23843 23844 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23845 if test -d "$BOOT_JDK"; then 23846 BOOT_JDK_FOUND=maybe 23847 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23848 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23849 fi 23850 23851 23852 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23853 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23854 # Do we have a bin/java? 23855 if test ! -x "$BOOT_JDK/bin/java"; then 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23857 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23858 BOOT_JDK_FOUND=no 23859 else 23860 # Do we have a bin/javac? 23861 if test ! -x "$BOOT_JDK/bin/javac"; then 23862 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23863 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23864 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23865 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23866 BOOT_JDK_FOUND=no 23867 else 23868 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23869 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23872 BOOT_JDK_FOUND=no 23873 else 23874 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23875 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23876 23877 # Extra M4 quote needed to protect [] in grep expression. 23878 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23879 if test "x$FOUND_CORRECT_VERSION" = x; then 23880 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23881 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23882 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23883 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23884 BOOT_JDK_FOUND=no 23885 else 23886 # We're done! :-) 23887 BOOT_JDK_FOUND=yes 23888 23889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23890 23891 # Input might be given as Windows format, start by converting to 23892 # unix format. 23893 path="$BOOT_JDK" 23894 new_path=`$CYGPATH -u "$path"` 23895 23896 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23897 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23898 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23899 # "foo.exe" is OK but "foo" is an error. 23900 # 23901 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23902 # It is also a way to make sure we got the proper file name for the real test later on. 23903 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23904 if test "x$test_shortpath" = x; then 23905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23906 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23907 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23908 fi 23909 23910 # Call helper function which possibly converts this using DOS-style short mode. 23911 # If so, the updated path is stored in $new_path. 23912 23913 input_path="$new_path" 23914 # Check if we need to convert this using DOS-style short mode. If the path 23915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23916 # take no chances and rewrite it. 23917 # Note: m4 eats our [], so we need to use [ and ] instead. 23918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23919 if test "x$has_forbidden_chars" != x; then 23920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23921 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23922 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23923 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23924 # Going to short mode and back again did indeed matter. Since short mode is 23925 # case insensitive, let's make it lowercase to improve readability. 23926 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23927 # Now convert it back to Unix-stile (cygpath) 23928 input_path=`$CYGPATH -u "$shortmode_path"` 23929 new_path="$input_path" 23930 fi 23931 fi 23932 23933 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23934 if test "x$test_cygdrive_prefix" = x; then 23935 # As a simple fix, exclude /usr/bin since it's not a real path. 23936 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23937 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23938 # a path prefixed by /cygdrive for fixpath to work. 23939 new_path="$CYGWIN_ROOT_PATH$input_path" 23940 fi 23941 fi 23942 23943 23944 if test "x$path" != "x$new_path"; then 23945 BOOT_JDK="$new_path" 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23947 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23948 fi 23949 23950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23951 23952 path="$BOOT_JDK" 23953 has_colon=`$ECHO $path | $GREP ^.:` 23954 new_path="$path" 23955 if test "x$has_colon" = x; then 23956 # Not in mixed or Windows style, start by that. 23957 new_path=`cmd //c echo $path` 23958 fi 23959 23960 23961 input_path="$new_path" 23962 # Check if we need to convert this using DOS-style short mode. If the path 23963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23964 # take no chances and rewrite it. 23965 # Note: m4 eats our [], so we need to use [ and ] instead. 23966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23967 if test "x$has_forbidden_chars" != x; then 23968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23970 fi 23971 23972 23973 windows_path="$new_path" 23974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23975 unix_path=`$CYGPATH -u "$windows_path"` 23976 new_path="$unix_path" 23977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23979 new_path="$unix_path" 23980 fi 23981 23982 if test "x$path" != "x$new_path"; then 23983 BOOT_JDK="$new_path" 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23985 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23986 fi 23987 23988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23990 23991 else 23992 # We're on a posix platform. Hooray! :) 23993 path="$BOOT_JDK" 23994 has_space=`$ECHO "$path" | $GREP " "` 23995 if test "x$has_space" != x; then 23996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23997 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23998 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23999 fi 24000 24001 # Use eval to expand a potential ~ 24002 eval path="$path" 24003 if test ! -f "$path" && test ! -d "$path"; then 24004 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24005 fi 24006 24007 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24008 fi 24009 24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24011 $as_echo_n "checking for Boot JDK... " >&6; } 24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24013 $as_echo "$BOOT_JDK" >&6; } 24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24015 $as_echo_n "checking Boot JDK version... " >&6; } 24016 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24018 $as_echo "$BOOT_JDK_VERSION" >&6; } 24019 fi # end check jdk version 24020 fi # end check rt.jar 24021 fi # end check javac 24022 fi # end check java 24023 fi # end check boot jdk found 24024 fi 24025 24026 done 24027 fi 24028 24029 24030 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24031 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24032 # Do we have a bin/java? 24033 if test ! -x "$BOOT_JDK/bin/java"; then 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24036 BOOT_JDK_FOUND=no 24037 else 24038 # Do we have a bin/javac? 24039 if test ! -x "$BOOT_JDK/bin/javac"; then 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24043 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24044 BOOT_JDK_FOUND=no 24045 else 24046 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24047 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24048 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24050 BOOT_JDK_FOUND=no 24051 else 24052 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24053 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24054 24055 # Extra M4 quote needed to protect [] in grep expression. 24056 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24057 if test "x$FOUND_CORRECT_VERSION" = x; then 24058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24060 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24061 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24062 BOOT_JDK_FOUND=no 24063 else 24064 # We're done! :-) 24065 BOOT_JDK_FOUND=yes 24066 24067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24068 24069 # Input might be given as Windows format, start by converting to 24070 # unix format. 24071 path="$BOOT_JDK" 24072 new_path=`$CYGPATH -u "$path"` 24073 24074 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24075 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24076 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24077 # "foo.exe" is OK but "foo" is an error. 24078 # 24079 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24080 # It is also a way to make sure we got the proper file name for the real test later on. 24081 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24082 if test "x$test_shortpath" = x; then 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24084 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24085 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24086 fi 24087 24088 # Call helper function which possibly converts this using DOS-style short mode. 24089 # If so, the updated path is stored in $new_path. 24090 24091 input_path="$new_path" 24092 # Check if we need to convert this using DOS-style short mode. If the path 24093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24094 # take no chances and rewrite it. 24095 # Note: m4 eats our [], so we need to use [ and ] instead. 24096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24097 if test "x$has_forbidden_chars" != x; then 24098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24099 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24100 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24101 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24102 # Going to short mode and back again did indeed matter. Since short mode is 24103 # case insensitive, let's make it lowercase to improve readability. 24104 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24105 # Now convert it back to Unix-stile (cygpath) 24106 input_path=`$CYGPATH -u "$shortmode_path"` 24107 new_path="$input_path" 24108 fi 24109 fi 24110 24111 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24112 if test "x$test_cygdrive_prefix" = x; then 24113 # As a simple fix, exclude /usr/bin since it's not a real path. 24114 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24115 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24116 # a path prefixed by /cygdrive for fixpath to work. 24117 new_path="$CYGWIN_ROOT_PATH$input_path" 24118 fi 24119 fi 24120 24121 24122 if test "x$path" != "x$new_path"; then 24123 BOOT_JDK="$new_path" 24124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24125 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24126 fi 24127 24128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24129 24130 path="$BOOT_JDK" 24131 has_colon=`$ECHO $path | $GREP ^.:` 24132 new_path="$path" 24133 if test "x$has_colon" = x; then 24134 # Not in mixed or Windows style, start by that. 24135 new_path=`cmd //c echo $path` 24136 fi 24137 24138 24139 input_path="$new_path" 24140 # Check if we need to convert this using DOS-style short mode. If the path 24141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24142 # take no chances and rewrite it. 24143 # Note: m4 eats our [], so we need to use [ and ] instead. 24144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24145 if test "x$has_forbidden_chars" != x; then 24146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24147 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24148 fi 24149 24150 24151 windows_path="$new_path" 24152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24153 unix_path=`$CYGPATH -u "$windows_path"` 24154 new_path="$unix_path" 24155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24157 new_path="$unix_path" 24158 fi 24159 24160 if test "x$path" != "x$new_path"; then 24161 BOOT_JDK="$new_path" 24162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24163 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24164 fi 24165 24166 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24167 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24168 24169 else 24170 # We're on a posix platform. Hooray! :) 24171 path="$BOOT_JDK" 24172 has_space=`$ECHO "$path" | $GREP " "` 24173 if test "x$has_space" != x; then 24174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24176 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24177 fi 24178 24179 # Use eval to expand a potential ~ 24180 eval path="$path" 24181 if test ! -f "$path" && test ! -d "$path"; then 24182 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24183 fi 24184 24185 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24186 fi 24187 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24189 $as_echo_n "checking for Boot JDK... " >&6; } 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24191 $as_echo "$BOOT_JDK" >&6; } 24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24193 $as_echo_n "checking Boot JDK version... " >&6; } 24194 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24196 $as_echo "$BOOT_JDK_VERSION" >&6; } 24197 fi # end check jdk version 24198 fi # end check rt.jar 24199 fi # end check javac 24200 fi # end check java 24201 fi # end check boot jdk found 24202 fi 24203 24204 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24205 24206 if test "x$BOOT_JDK_FOUND" = xno; then 24207 # Now execute the test 24208 24209 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24210 BOOT_JDK_SUFFIX="/Contents/Home" 24211 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24212 if test "x$ALL_JDKS_FOUND" != x; then 24213 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24214 24215 if test "x$BOOT_JDK_FOUND" = xno; then 24216 # Now execute the test 24217 24218 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24219 if test -d "$BOOT_JDK"; then 24220 BOOT_JDK_FOUND=maybe 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24222 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24223 fi 24224 24225 24226 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24227 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24228 # Do we have a bin/java? 24229 if test ! -x "$BOOT_JDK/bin/java"; then 24230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24232 BOOT_JDK_FOUND=no 24233 else 24234 # Do we have a bin/javac? 24235 if test ! -x "$BOOT_JDK/bin/javac"; then 24236 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24238 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24239 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24240 BOOT_JDK_FOUND=no 24241 else 24242 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24243 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24244 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24246 BOOT_JDK_FOUND=no 24247 else 24248 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24249 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24250 24251 # Extra M4 quote needed to protect [] in grep expression. 24252 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24253 if test "x$FOUND_CORRECT_VERSION" = x; then 24254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24256 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24257 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24258 BOOT_JDK_FOUND=no 24259 else 24260 # We're done! :-) 24261 BOOT_JDK_FOUND=yes 24262 24263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24264 24265 # Input might be given as Windows format, start by converting to 24266 # unix format. 24267 path="$BOOT_JDK" 24268 new_path=`$CYGPATH -u "$path"` 24269 24270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24273 # "foo.exe" is OK but "foo" is an error. 24274 # 24275 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24276 # It is also a way to make sure we got the proper file name for the real test later on. 24277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24278 if test "x$test_shortpath" = x; then 24279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24280 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24281 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24282 fi 24283 24284 # Call helper function which possibly converts this using DOS-style short mode. 24285 # If so, the updated path is stored in $new_path. 24286 24287 input_path="$new_path" 24288 # Check if we need to convert this using DOS-style short mode. If the path 24289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24290 # take no chances and rewrite it. 24291 # Note: m4 eats our [], so we need to use [ and ] instead. 24292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24293 if test "x$has_forbidden_chars" != x; then 24294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24295 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24296 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24297 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24298 # Going to short mode and back again did indeed matter. Since short mode is 24299 # case insensitive, let's make it lowercase to improve readability. 24300 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24301 # Now convert it back to Unix-stile (cygpath) 24302 input_path=`$CYGPATH -u "$shortmode_path"` 24303 new_path="$input_path" 24304 fi 24305 fi 24306 24307 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24308 if test "x$test_cygdrive_prefix" = x; then 24309 # As a simple fix, exclude /usr/bin since it's not a real path. 24310 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24311 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24312 # a path prefixed by /cygdrive for fixpath to work. 24313 new_path="$CYGWIN_ROOT_PATH$input_path" 24314 fi 24315 fi 24316 24317 24318 if test "x$path" != "x$new_path"; then 24319 BOOT_JDK="$new_path" 24320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24322 fi 24323 24324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24325 24326 path="$BOOT_JDK" 24327 has_colon=`$ECHO $path | $GREP ^.:` 24328 new_path="$path" 24329 if test "x$has_colon" = x; then 24330 # Not in mixed or Windows style, start by that. 24331 new_path=`cmd //c echo $path` 24332 fi 24333 24334 24335 input_path="$new_path" 24336 # Check if we need to convert this using DOS-style short mode. If the path 24337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24338 # take no chances and rewrite it. 24339 # Note: m4 eats our [], so we need to use [ and ] instead. 24340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24341 if test "x$has_forbidden_chars" != x; then 24342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24343 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24344 fi 24345 24346 24347 windows_path="$new_path" 24348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24349 unix_path=`$CYGPATH -u "$windows_path"` 24350 new_path="$unix_path" 24351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24353 new_path="$unix_path" 24354 fi 24355 24356 if test "x$path" != "x$new_path"; then 24357 BOOT_JDK="$new_path" 24358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24359 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24360 fi 24361 24362 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24363 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24364 24365 else 24366 # We're on a posix platform. Hooray! :) 24367 path="$BOOT_JDK" 24368 has_space=`$ECHO "$path" | $GREP " "` 24369 if test "x$has_space" != x; then 24370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24372 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24373 fi 24374 24375 # Use eval to expand a potential ~ 24376 eval path="$path" 24377 if test ! -f "$path" && test ! -d "$path"; then 24378 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24379 fi 24380 24381 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24382 fi 24383 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24385 $as_echo_n "checking for Boot JDK... " >&6; } 24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24387 $as_echo "$BOOT_JDK" >&6; } 24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24389 $as_echo_n "checking Boot JDK version... " >&6; } 24390 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24392 $as_echo "$BOOT_JDK_VERSION" >&6; } 24393 fi # end check jdk version 24394 fi # end check rt.jar 24395 fi # end check javac 24396 fi # end check java 24397 fi # end check boot jdk found 24398 fi 24399 24400 done 24401 fi 24402 24403 24404 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24405 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24406 # Do we have a bin/java? 24407 if test ! -x "$BOOT_JDK/bin/java"; then 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24410 BOOT_JDK_FOUND=no 24411 else 24412 # Do we have a bin/javac? 24413 if test ! -x "$BOOT_JDK/bin/javac"; then 24414 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24415 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24416 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24417 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24418 BOOT_JDK_FOUND=no 24419 else 24420 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24421 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24422 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24424 BOOT_JDK_FOUND=no 24425 else 24426 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24427 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24428 24429 # Extra M4 quote needed to protect [] in grep expression. 24430 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24431 if test "x$FOUND_CORRECT_VERSION" = x; then 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24434 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24435 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24436 BOOT_JDK_FOUND=no 24437 else 24438 # We're done! :-) 24439 BOOT_JDK_FOUND=yes 24440 24441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24442 24443 # Input might be given as Windows format, start by converting to 24444 # unix format. 24445 path="$BOOT_JDK" 24446 new_path=`$CYGPATH -u "$path"` 24447 24448 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24449 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24450 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24451 # "foo.exe" is OK but "foo" is an error. 24452 # 24453 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24454 # It is also a way to make sure we got the proper file name for the real test later on. 24455 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24456 if test "x$test_shortpath" = x; then 24457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24459 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24460 fi 24461 24462 # Call helper function which possibly converts this using DOS-style short mode. 24463 # If so, the updated path is stored in $new_path. 24464 24465 input_path="$new_path" 24466 # Check if we need to convert this using DOS-style short mode. If the path 24467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24468 # take no chances and rewrite it. 24469 # Note: m4 eats our [], so we need to use [ and ] instead. 24470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24471 if test "x$has_forbidden_chars" != x; then 24472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24473 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24474 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24475 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24476 # Going to short mode and back again did indeed matter. Since short mode is 24477 # case insensitive, let's make it lowercase to improve readability. 24478 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24479 # Now convert it back to Unix-stile (cygpath) 24480 input_path=`$CYGPATH -u "$shortmode_path"` 24481 new_path="$input_path" 24482 fi 24483 fi 24484 24485 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24486 if test "x$test_cygdrive_prefix" = x; then 24487 # As a simple fix, exclude /usr/bin since it's not a real path. 24488 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24489 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24490 # a path prefixed by /cygdrive for fixpath to work. 24491 new_path="$CYGWIN_ROOT_PATH$input_path" 24492 fi 24493 fi 24494 24495 24496 if test "x$path" != "x$new_path"; then 24497 BOOT_JDK="$new_path" 24498 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24499 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24500 fi 24501 24502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24503 24504 path="$BOOT_JDK" 24505 has_colon=`$ECHO $path | $GREP ^.:` 24506 new_path="$path" 24507 if test "x$has_colon" = x; then 24508 # Not in mixed or Windows style, start by that. 24509 new_path=`cmd //c echo $path` 24510 fi 24511 24512 24513 input_path="$new_path" 24514 # Check if we need to convert this using DOS-style short mode. If the path 24515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24516 # take no chances and rewrite it. 24517 # Note: m4 eats our [], so we need to use [ and ] instead. 24518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24519 if test "x$has_forbidden_chars" != x; then 24520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24521 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24522 fi 24523 24524 24525 windows_path="$new_path" 24526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24527 unix_path=`$CYGPATH -u "$windows_path"` 24528 new_path="$unix_path" 24529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24531 new_path="$unix_path" 24532 fi 24533 24534 if test "x$path" != "x$new_path"; then 24535 BOOT_JDK="$new_path" 24536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24537 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24538 fi 24539 24540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24542 24543 else 24544 # We're on a posix platform. Hooray! :) 24545 path="$BOOT_JDK" 24546 has_space=`$ECHO "$path" | $GREP " "` 24547 if test "x$has_space" != x; then 24548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24550 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24551 fi 24552 24553 # Use eval to expand a potential ~ 24554 eval path="$path" 24555 if test ! -f "$path" && test ! -d "$path"; then 24556 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24557 fi 24558 24559 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24560 fi 24561 24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24563 $as_echo_n "checking for Boot JDK... " >&6; } 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24565 $as_echo "$BOOT_JDK" >&6; } 24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24567 $as_echo_n "checking Boot JDK version... " >&6; } 24568 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24570 $as_echo "$BOOT_JDK_VERSION" >&6; } 24571 fi # end check jdk version 24572 fi # end check rt.jar 24573 fi # end check javac 24574 fi # end check java 24575 fi # end check boot jdk found 24576 fi 24577 24578 24579 if test "x$BOOT_JDK_FOUND" = xno; then 24580 # Now execute the test 24581 24582 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24583 BOOT_JDK_SUFFIX="/Contents/Home" 24584 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24585 if test "x$ALL_JDKS_FOUND" != x; then 24586 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24587 24588 if test "x$BOOT_JDK_FOUND" = xno; then 24589 # Now execute the test 24590 24591 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24592 if test -d "$BOOT_JDK"; then 24593 BOOT_JDK_FOUND=maybe 24594 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24595 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24596 fi 24597 24598 24599 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24600 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24601 # Do we have a bin/java? 24602 if test ! -x "$BOOT_JDK/bin/java"; then 24603 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24605 BOOT_JDK_FOUND=no 24606 else 24607 # Do we have a bin/javac? 24608 if test ! -x "$BOOT_JDK/bin/javac"; then 24609 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24610 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24611 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24612 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24613 BOOT_JDK_FOUND=no 24614 else 24615 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24616 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24617 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24619 BOOT_JDK_FOUND=no 24620 else 24621 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24623 24624 # Extra M4 quote needed to protect [] in grep expression. 24625 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24626 if test "x$FOUND_CORRECT_VERSION" = x; then 24627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24629 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24630 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24631 BOOT_JDK_FOUND=no 24632 else 24633 # We're done! :-) 24634 BOOT_JDK_FOUND=yes 24635 24636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24637 24638 # Input might be given as Windows format, start by converting to 24639 # unix format. 24640 path="$BOOT_JDK" 24641 new_path=`$CYGPATH -u "$path"` 24642 24643 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24644 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24645 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24646 # "foo.exe" is OK but "foo" is an error. 24647 # 24648 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24649 # It is also a way to make sure we got the proper file name for the real test later on. 24650 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24651 if test "x$test_shortpath" = x; then 24652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24653 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24654 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24655 fi 24656 24657 # Call helper function which possibly converts this using DOS-style short mode. 24658 # If so, the updated path is stored in $new_path. 24659 24660 input_path="$new_path" 24661 # Check if we need to convert this using DOS-style short mode. If the path 24662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24663 # take no chances and rewrite it. 24664 # Note: m4 eats our [], so we need to use [ and ] instead. 24665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24666 if test "x$has_forbidden_chars" != x; then 24667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24668 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24669 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24670 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24671 # Going to short mode and back again did indeed matter. Since short mode is 24672 # case insensitive, let's make it lowercase to improve readability. 24673 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24674 # Now convert it back to Unix-stile (cygpath) 24675 input_path=`$CYGPATH -u "$shortmode_path"` 24676 new_path="$input_path" 24677 fi 24678 fi 24679 24680 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24681 if test "x$test_cygdrive_prefix" = x; then 24682 # As a simple fix, exclude /usr/bin since it's not a real path. 24683 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24684 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24685 # a path prefixed by /cygdrive for fixpath to work. 24686 new_path="$CYGWIN_ROOT_PATH$input_path" 24687 fi 24688 fi 24689 24690 24691 if test "x$path" != "x$new_path"; then 24692 BOOT_JDK="$new_path" 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24694 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24695 fi 24696 24697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24698 24699 path="$BOOT_JDK" 24700 has_colon=`$ECHO $path | $GREP ^.:` 24701 new_path="$path" 24702 if test "x$has_colon" = x; then 24703 # Not in mixed or Windows style, start by that. 24704 new_path=`cmd //c echo $path` 24705 fi 24706 24707 24708 input_path="$new_path" 24709 # Check if we need to convert this using DOS-style short mode. If the path 24710 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24711 # take no chances and rewrite it. 24712 # Note: m4 eats our [], so we need to use [ and ] instead. 24713 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24714 if test "x$has_forbidden_chars" != x; then 24715 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24716 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24717 fi 24718 24719 24720 windows_path="$new_path" 24721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24722 unix_path=`$CYGPATH -u "$windows_path"` 24723 new_path="$unix_path" 24724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24725 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24726 new_path="$unix_path" 24727 fi 24728 24729 if test "x$path" != "x$new_path"; then 24730 BOOT_JDK="$new_path" 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24732 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24733 fi 24734 24735 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24736 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24737 24738 else 24739 # We're on a posix platform. Hooray! :) 24740 path="$BOOT_JDK" 24741 has_space=`$ECHO "$path" | $GREP " "` 24742 if test "x$has_space" != x; then 24743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24744 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24745 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24746 fi 24747 24748 # Use eval to expand a potential ~ 24749 eval path="$path" 24750 if test ! -f "$path" && test ! -d "$path"; then 24751 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24752 fi 24753 24754 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24755 fi 24756 24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24758 $as_echo_n "checking for Boot JDK... " >&6; } 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24760 $as_echo "$BOOT_JDK" >&6; } 24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24762 $as_echo_n "checking Boot JDK version... " >&6; } 24763 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24765 $as_echo "$BOOT_JDK_VERSION" >&6; } 24766 fi # end check jdk version 24767 fi # end check rt.jar 24768 fi # end check javac 24769 fi # end check java 24770 fi # end check boot jdk found 24771 fi 24772 24773 done 24774 fi 24775 24776 24777 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24778 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24779 # Do we have a bin/java? 24780 if test ! -x "$BOOT_JDK/bin/java"; then 24781 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24782 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24783 BOOT_JDK_FOUND=no 24784 else 24785 # Do we have a bin/javac? 24786 if test ! -x "$BOOT_JDK/bin/javac"; then 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24788 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24790 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24791 BOOT_JDK_FOUND=no 24792 else 24793 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24794 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24795 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24797 BOOT_JDK_FOUND=no 24798 else 24799 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24800 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24801 24802 # Extra M4 quote needed to protect [] in grep expression. 24803 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24804 if test "x$FOUND_CORRECT_VERSION" = x; then 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24808 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24809 BOOT_JDK_FOUND=no 24810 else 24811 # We're done! :-) 24812 BOOT_JDK_FOUND=yes 24813 24814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24815 24816 # Input might be given as Windows format, start by converting to 24817 # unix format. 24818 path="$BOOT_JDK" 24819 new_path=`$CYGPATH -u "$path"` 24820 24821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24824 # "foo.exe" is OK but "foo" is an error. 24825 # 24826 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24827 # It is also a way to make sure we got the proper file name for the real test later on. 24828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24829 if test "x$test_shortpath" = x; then 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24831 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24832 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24833 fi 24834 24835 # Call helper function which possibly converts this using DOS-style short mode. 24836 # If so, the updated path is stored in $new_path. 24837 24838 input_path="$new_path" 24839 # Check if we need to convert this using DOS-style short mode. If the path 24840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24841 # take no chances and rewrite it. 24842 # Note: m4 eats our [], so we need to use [ and ] instead. 24843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24844 if test "x$has_forbidden_chars" != x; then 24845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24849 # Going to short mode and back again did indeed matter. Since short mode is 24850 # case insensitive, let's make it lowercase to improve readability. 24851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24852 # Now convert it back to Unix-stile (cygpath) 24853 input_path=`$CYGPATH -u "$shortmode_path"` 24854 new_path="$input_path" 24855 fi 24856 fi 24857 24858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24859 if test "x$test_cygdrive_prefix" = x; then 24860 # As a simple fix, exclude /usr/bin since it's not a real path. 24861 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24863 # a path prefixed by /cygdrive for fixpath to work. 24864 new_path="$CYGWIN_ROOT_PATH$input_path" 24865 fi 24866 fi 24867 24868 24869 if test "x$path" != "x$new_path"; then 24870 BOOT_JDK="$new_path" 24871 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24872 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24873 fi 24874 24875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24876 24877 path="$BOOT_JDK" 24878 has_colon=`$ECHO $path | $GREP ^.:` 24879 new_path="$path" 24880 if test "x$has_colon" = x; then 24881 # Not in mixed or Windows style, start by that. 24882 new_path=`cmd //c echo $path` 24883 fi 24884 24885 24886 input_path="$new_path" 24887 # Check if we need to convert this using DOS-style short mode. If the path 24888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24889 # take no chances and rewrite it. 24890 # Note: m4 eats our [], so we need to use [ and ] instead. 24891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24892 if test "x$has_forbidden_chars" != x; then 24893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24894 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24895 fi 24896 24897 24898 windows_path="$new_path" 24899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24900 unix_path=`$CYGPATH -u "$windows_path"` 24901 new_path="$unix_path" 24902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24904 new_path="$unix_path" 24905 fi 24906 24907 if test "x$path" != "x$new_path"; then 24908 BOOT_JDK="$new_path" 24909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24910 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24911 fi 24912 24913 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24914 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24915 24916 else 24917 # We're on a posix platform. Hooray! :) 24918 path="$BOOT_JDK" 24919 has_space=`$ECHO "$path" | $GREP " "` 24920 if test "x$has_space" != x; then 24921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24922 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24923 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24924 fi 24925 24926 # Use eval to expand a potential ~ 24927 eval path="$path" 24928 if test ! -f "$path" && test ! -d "$path"; then 24929 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24930 fi 24931 24932 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24933 fi 24934 24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24936 $as_echo_n "checking for Boot JDK... " >&6; } 24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24938 $as_echo "$BOOT_JDK" >&6; } 24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24940 $as_echo_n "checking Boot JDK version... " >&6; } 24941 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24943 $as_echo "$BOOT_JDK_VERSION" >&6; } 24944 fi # end check jdk version 24945 fi # end check rt.jar 24946 fi # end check javac 24947 fi # end check java 24948 fi # end check boot jdk found 24949 fi 24950 24951 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24952 24953 if test "x$BOOT_JDK_FOUND" = xno; then 24954 # Now execute the test 24955 24956 BOOT_JDK_PREFIX="/usr/lib/jvm" 24957 BOOT_JDK_SUFFIX="" 24958 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24959 if test "x$ALL_JDKS_FOUND" != x; then 24960 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24961 24962 if test "x$BOOT_JDK_FOUND" = xno; then 24963 # Now execute the test 24964 24965 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24966 if test -d "$BOOT_JDK"; then 24967 BOOT_JDK_FOUND=maybe 24968 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24969 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24970 fi 24971 24972 24973 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24974 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24975 # Do we have a bin/java? 24976 if test ! -x "$BOOT_JDK/bin/java"; then 24977 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24979 BOOT_JDK_FOUND=no 24980 else 24981 # Do we have a bin/javac? 24982 if test ! -x "$BOOT_JDK/bin/javac"; then 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24986 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24987 BOOT_JDK_FOUND=no 24988 else 24989 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24990 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24993 BOOT_JDK_FOUND=no 24994 else 24995 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24996 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24997 24998 # Extra M4 quote needed to protect [] in grep expression. 24999 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25000 if test "x$FOUND_CORRECT_VERSION" = x; then 25001 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25002 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25004 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25005 BOOT_JDK_FOUND=no 25006 else 25007 # We're done! :-) 25008 BOOT_JDK_FOUND=yes 25009 25010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25011 25012 # Input might be given as Windows format, start by converting to 25013 # unix format. 25014 path="$BOOT_JDK" 25015 new_path=`$CYGPATH -u "$path"` 25016 25017 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25018 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25019 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25020 # "foo.exe" is OK but "foo" is an error. 25021 # 25022 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25023 # It is also a way to make sure we got the proper file name for the real test later on. 25024 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25025 if test "x$test_shortpath" = x; then 25026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25027 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25028 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25029 fi 25030 25031 # Call helper function which possibly converts this using DOS-style short mode. 25032 # If so, the updated path is stored in $new_path. 25033 25034 input_path="$new_path" 25035 # Check if we need to convert this using DOS-style short mode. If the path 25036 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25037 # take no chances and rewrite it. 25038 # Note: m4 eats our [], so we need to use [ and ] instead. 25039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25040 if test "x$has_forbidden_chars" != x; then 25041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25045 # Going to short mode and back again did indeed matter. Since short mode is 25046 # case insensitive, let's make it lowercase to improve readability. 25047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25048 # Now convert it back to Unix-stile (cygpath) 25049 input_path=`$CYGPATH -u "$shortmode_path"` 25050 new_path="$input_path" 25051 fi 25052 fi 25053 25054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25055 if test "x$test_cygdrive_prefix" = x; then 25056 # As a simple fix, exclude /usr/bin since it's not a real path. 25057 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25059 # a path prefixed by /cygdrive for fixpath to work. 25060 new_path="$CYGWIN_ROOT_PATH$input_path" 25061 fi 25062 fi 25063 25064 25065 if test "x$path" != "x$new_path"; then 25066 BOOT_JDK="$new_path" 25067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25069 fi 25070 25071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25072 25073 path="$BOOT_JDK" 25074 has_colon=`$ECHO $path | $GREP ^.:` 25075 new_path="$path" 25076 if test "x$has_colon" = x; then 25077 # Not in mixed or Windows style, start by that. 25078 new_path=`cmd //c echo $path` 25079 fi 25080 25081 25082 input_path="$new_path" 25083 # Check if we need to convert this using DOS-style short mode. If the path 25084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25085 # take no chances and rewrite it. 25086 # Note: m4 eats our [], so we need to use [ and ] instead. 25087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25088 if test "x$has_forbidden_chars" != x; then 25089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25090 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25091 fi 25092 25093 25094 windows_path="$new_path" 25095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25096 unix_path=`$CYGPATH -u "$windows_path"` 25097 new_path="$unix_path" 25098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25100 new_path="$unix_path" 25101 fi 25102 25103 if test "x$path" != "x$new_path"; then 25104 BOOT_JDK="$new_path" 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25106 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25107 fi 25108 25109 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25111 25112 else 25113 # We're on a posix platform. Hooray! :) 25114 path="$BOOT_JDK" 25115 has_space=`$ECHO "$path" | $GREP " "` 25116 if test "x$has_space" != x; then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25118 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25119 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25120 fi 25121 25122 # Use eval to expand a potential ~ 25123 eval path="$path" 25124 if test ! -f "$path" && test ! -d "$path"; then 25125 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25126 fi 25127 25128 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25129 fi 25130 25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25132 $as_echo_n "checking for Boot JDK... " >&6; } 25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25134 $as_echo "$BOOT_JDK" >&6; } 25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25136 $as_echo_n "checking Boot JDK version... " >&6; } 25137 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25139 $as_echo "$BOOT_JDK_VERSION" >&6; } 25140 fi # end check jdk version 25141 fi # end check rt.jar 25142 fi # end check javac 25143 fi # end check java 25144 fi # end check boot jdk found 25145 fi 25146 25147 done 25148 fi 25149 25150 25151 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25152 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25153 # Do we have a bin/java? 25154 if test ! -x "$BOOT_JDK/bin/java"; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25157 BOOT_JDK_FOUND=no 25158 else 25159 # Do we have a bin/javac? 25160 if test ! -x "$BOOT_JDK/bin/javac"; then 25161 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25162 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25163 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25164 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25165 BOOT_JDK_FOUND=no 25166 else 25167 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25168 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25169 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25170 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25171 BOOT_JDK_FOUND=no 25172 else 25173 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25174 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25175 25176 # Extra M4 quote needed to protect [] in grep expression. 25177 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25178 if test "x$FOUND_CORRECT_VERSION" = x; then 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25180 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25181 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25182 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25183 BOOT_JDK_FOUND=no 25184 else 25185 # We're done! :-) 25186 BOOT_JDK_FOUND=yes 25187 25188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25189 25190 # Input might be given as Windows format, start by converting to 25191 # unix format. 25192 path="$BOOT_JDK" 25193 new_path=`$CYGPATH -u "$path"` 25194 25195 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25196 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25197 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25198 # "foo.exe" is OK but "foo" is an error. 25199 # 25200 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25201 # It is also a way to make sure we got the proper file name for the real test later on. 25202 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25203 if test "x$test_shortpath" = x; then 25204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25205 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25206 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25207 fi 25208 25209 # Call helper function which possibly converts this using DOS-style short mode. 25210 # If so, the updated path is stored in $new_path. 25211 25212 input_path="$new_path" 25213 # Check if we need to convert this using DOS-style short mode. If the path 25214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25215 # take no chances and rewrite it. 25216 # Note: m4 eats our [], so we need to use [ and ] instead. 25217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25218 if test "x$has_forbidden_chars" != x; then 25219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25220 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25221 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25222 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25223 # Going to short mode and back again did indeed matter. Since short mode is 25224 # case insensitive, let's make it lowercase to improve readability. 25225 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25226 # Now convert it back to Unix-stile (cygpath) 25227 input_path=`$CYGPATH -u "$shortmode_path"` 25228 new_path="$input_path" 25229 fi 25230 fi 25231 25232 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25233 if test "x$test_cygdrive_prefix" = x; then 25234 # As a simple fix, exclude /usr/bin since it's not a real path. 25235 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25236 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25237 # a path prefixed by /cygdrive for fixpath to work. 25238 new_path="$CYGWIN_ROOT_PATH$input_path" 25239 fi 25240 fi 25241 25242 25243 if test "x$path" != "x$new_path"; then 25244 BOOT_JDK="$new_path" 25245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25246 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25247 fi 25248 25249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25250 25251 path="$BOOT_JDK" 25252 has_colon=`$ECHO $path | $GREP ^.:` 25253 new_path="$path" 25254 if test "x$has_colon" = x; then 25255 # Not in mixed or Windows style, start by that. 25256 new_path=`cmd //c echo $path` 25257 fi 25258 25259 25260 input_path="$new_path" 25261 # Check if we need to convert this using DOS-style short mode. If the path 25262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25263 # take no chances and rewrite it. 25264 # Note: m4 eats our [], so we need to use [ and ] instead. 25265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25266 if test "x$has_forbidden_chars" != x; then 25267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25268 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25269 fi 25270 25271 25272 windows_path="$new_path" 25273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25274 unix_path=`$CYGPATH -u "$windows_path"` 25275 new_path="$unix_path" 25276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25278 new_path="$unix_path" 25279 fi 25280 25281 if test "x$path" != "x$new_path"; then 25282 BOOT_JDK="$new_path" 25283 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25284 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25285 fi 25286 25287 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25288 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25289 25290 else 25291 # We're on a posix platform. Hooray! :) 25292 path="$BOOT_JDK" 25293 has_space=`$ECHO "$path" | $GREP " "` 25294 if test "x$has_space" != x; then 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25297 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25298 fi 25299 25300 # Use eval to expand a potential ~ 25301 eval path="$path" 25302 if test ! -f "$path" && test ! -d "$path"; then 25303 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25304 fi 25305 25306 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25307 fi 25308 25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25310 $as_echo_n "checking for Boot JDK... " >&6; } 25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25312 $as_echo "$BOOT_JDK" >&6; } 25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25314 $as_echo_n "checking Boot JDK version... " >&6; } 25315 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25317 $as_echo "$BOOT_JDK_VERSION" >&6; } 25318 fi # end check jdk version 25319 fi # end check rt.jar 25320 fi # end check javac 25321 fi # end check java 25322 fi # end check boot jdk found 25323 fi 25324 25325 fi 25326 25327 25328 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25329 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25330 # Do we have a bin/java? 25331 if test ! -x "$BOOT_JDK/bin/java"; then 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25333 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25334 BOOT_JDK_FOUND=no 25335 else 25336 # Do we have a bin/javac? 25337 if test ! -x "$BOOT_JDK/bin/javac"; then 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25340 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25341 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25342 BOOT_JDK_FOUND=no 25343 else 25344 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25345 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25346 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25348 BOOT_JDK_FOUND=no 25349 else 25350 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25351 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25352 25353 # Extra M4 quote needed to protect [] in grep expression. 25354 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25355 if test "x$FOUND_CORRECT_VERSION" = x; then 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25358 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25359 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25360 BOOT_JDK_FOUND=no 25361 else 25362 # We're done! :-) 25363 BOOT_JDK_FOUND=yes 25364 25365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25366 25367 # Input might be given as Windows format, start by converting to 25368 # unix format. 25369 path="$BOOT_JDK" 25370 new_path=`$CYGPATH -u "$path"` 25371 25372 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25373 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25374 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25375 # "foo.exe" is OK but "foo" is an error. 25376 # 25377 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25378 # It is also a way to make sure we got the proper file name for the real test later on. 25379 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25380 if test "x$test_shortpath" = x; then 25381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25382 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25383 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25384 fi 25385 25386 # Call helper function which possibly converts this using DOS-style short mode. 25387 # If so, the updated path is stored in $new_path. 25388 25389 input_path="$new_path" 25390 # Check if we need to convert this using DOS-style short mode. If the path 25391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25392 # take no chances and rewrite it. 25393 # Note: m4 eats our [], so we need to use [ and ] instead. 25394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25395 if test "x$has_forbidden_chars" != x; then 25396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25400 # Going to short mode and back again did indeed matter. Since short mode is 25401 # case insensitive, let's make it lowercase to improve readability. 25402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25403 # Now convert it back to Unix-stile (cygpath) 25404 input_path=`$CYGPATH -u "$shortmode_path"` 25405 new_path="$input_path" 25406 fi 25407 fi 25408 25409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25410 if test "x$test_cygdrive_prefix" = x; then 25411 # As a simple fix, exclude /usr/bin since it's not a real path. 25412 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25414 # a path prefixed by /cygdrive for fixpath to work. 25415 new_path="$CYGWIN_ROOT_PATH$input_path" 25416 fi 25417 fi 25418 25419 25420 if test "x$path" != "x$new_path"; then 25421 BOOT_JDK="$new_path" 25422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25423 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25424 fi 25425 25426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25427 25428 path="$BOOT_JDK" 25429 has_colon=`$ECHO $path | $GREP ^.:` 25430 new_path="$path" 25431 if test "x$has_colon" = x; then 25432 # Not in mixed or Windows style, start by that. 25433 new_path=`cmd //c echo $path` 25434 fi 25435 25436 25437 input_path="$new_path" 25438 # Check if we need to convert this using DOS-style short mode. If the path 25439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25440 # take no chances and rewrite it. 25441 # Note: m4 eats our [], so we need to use [ and ] instead. 25442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25443 if test "x$has_forbidden_chars" != x; then 25444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25446 fi 25447 25448 25449 windows_path="$new_path" 25450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25451 unix_path=`$CYGPATH -u "$windows_path"` 25452 new_path="$unix_path" 25453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25455 new_path="$unix_path" 25456 fi 25457 25458 if test "x$path" != "x$new_path"; then 25459 BOOT_JDK="$new_path" 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25461 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25462 fi 25463 25464 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25465 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25466 25467 else 25468 # We're on a posix platform. Hooray! :) 25469 path="$BOOT_JDK" 25470 has_space=`$ECHO "$path" | $GREP " "` 25471 if test "x$has_space" != x; then 25472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25474 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25475 fi 25476 25477 # Use eval to expand a potential ~ 25478 eval path="$path" 25479 if test ! -f "$path" && test ! -d "$path"; then 25480 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25481 fi 25482 25483 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25484 fi 25485 25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25487 $as_echo_n "checking for Boot JDK... " >&6; } 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25489 $as_echo "$BOOT_JDK" >&6; } 25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25491 $as_echo_n "checking Boot JDK version... " >&6; } 25492 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25494 $as_echo "$BOOT_JDK_VERSION" >&6; } 25495 fi # end check jdk version 25496 fi # end check rt.jar 25497 fi # end check javac 25498 fi # end check java 25499 fi # end check boot jdk found 25500 fi 25501 25502 25503 # If we haven't found anything yet, we've truly lost. Give up. 25504 if test "x$BOOT_JDK_FOUND" = xno; then 25505 25506 # Print a helpful message on how to acquire the necessary build dependency. 25507 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25508 MISSING_DEPENDENCY=openjdk 25509 25510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25511 cygwin_help $MISSING_DEPENDENCY 25512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25513 msys_help $MISSING_DEPENDENCY 25514 else 25515 PKGHANDLER_COMMAND= 25516 25517 case $PKGHANDLER in 25518 apt-get) 25519 apt_help $MISSING_DEPENDENCY ;; 25520 yum) 25521 yum_help $MISSING_DEPENDENCY ;; 25522 port) 25523 port_help $MISSING_DEPENDENCY ;; 25524 pkgutil) 25525 pkgutil_help $MISSING_DEPENDENCY ;; 25526 pkgadd) 25527 pkgadd_help $MISSING_DEPENDENCY ;; 25528 esac 25529 25530 if test "x$PKGHANDLER_COMMAND" != x; then 25531 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25532 fi 25533 fi 25534 25535 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25536 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25538 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25539 as_fn_error $? "Cannot continue" "$LINENO" 5 25540 fi 25541 25542 # Setup proper paths for what we found 25543 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25544 if test ! -f "$BOOT_RTJAR"; then 25545 # On MacOSX it is called classes.jar 25546 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25547 if test -f "$BOOT_RTJAR"; then 25548 # Remove the .. 25549 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25550 fi 25551 fi 25552 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25553 BOOT_JDK="$BOOT_JDK" 25554 25555 25556 25557 25558 # Setup tools from the Boot JDK. 25559 25560 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25561 25562 # Publish this variable in the help. 25563 25564 25565 if test "x$JAVA" = x; then 25566 # The variable is not set by user, try to locate tool using the code snippet 25567 25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25569 $as_echo_n "checking for java in Boot JDK... " >&6; } 25570 JAVA=$BOOT_JDK/bin/java 25571 if test ! -x $JAVA; then 25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25573 $as_echo "not found" >&6; } 25574 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25575 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25576 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25577 fi 25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25579 $as_echo "ok" >&6; } 25580 25581 25582 else 25583 # The variable is set, but is it from the command line or the environment? 25584 25585 # Try to remove the string !JAVA! from our list. 25586 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25587 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25588 # If it failed, the variable was not from the command line. Ignore it, 25589 # but warn the user (except for BASH, which is always set by the calling BASH). 25590 if test "xJAVA" != xBASH; then 25591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25592 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25593 fi 25594 # Try to locate tool using the code snippet 25595 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25597 $as_echo_n "checking for java in Boot JDK... " >&6; } 25598 JAVA=$BOOT_JDK/bin/java 25599 if test ! -x $JAVA; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25601 $as_echo "not found" >&6; } 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25603 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25604 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25605 fi 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25607 $as_echo "ok" >&6; } 25608 25609 25610 else 25611 # If it succeeded, then it was overridden by the user. We will use it 25612 # for the tool. 25613 25614 # First remove it from the list of overridden variables, so we can test 25615 # for unknown variables in the end. 25616 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25617 25618 # Check if the provided tool contains a complete path. 25619 tool_specified="$JAVA" 25620 tool_basename="${tool_specified##*/}" 25621 if test "x$tool_basename" = "x$tool_specified"; then 25622 # A command without a complete path is provided, search $PATH. 25623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25624 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25625 # Extract the first word of "$tool_basename", so it can be a program name with args. 25626 set dummy $tool_basename; ac_word=$2 25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25628 $as_echo_n "checking for $ac_word... " >&6; } 25629 if ${ac_cv_path_JAVA+:} false; then : 25630 $as_echo_n "(cached) " >&6 25631 else 25632 case $JAVA in 25633 [\\/]* | ?:[\\/]*) 25634 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25635 ;; 25636 *) 25637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25638 for as_dir in $PATH 25639 do 25640 IFS=$as_save_IFS 25641 test -z "$as_dir" && as_dir=. 25642 for ac_exec_ext in '' $ac_executable_extensions; do 25643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25644 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25646 break 2 25647 fi 25648 done 25649 done 25650 IFS=$as_save_IFS 25651 25652 ;; 25653 esac 25654 fi 25655 JAVA=$ac_cv_path_JAVA 25656 if test -n "$JAVA"; then 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25658 $as_echo "$JAVA" >&6; } 25659 else 25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25661 $as_echo "no" >&6; } 25662 fi 25663 25664 25665 if test "x$JAVA" = x; then 25666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25667 fi 25668 else 25669 # Otherwise we believe it is a complete path. Use it as it is. 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25671 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25673 $as_echo_n "checking for JAVA... " >&6; } 25674 if test ! -x "$tool_specified"; then 25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25676 $as_echo "not found" >&6; } 25677 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25678 fi 25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25680 $as_echo "$tool_specified" >&6; } 25681 fi 25682 fi 25683 fi 25684 25685 25686 25687 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25688 25689 # Publish this variable in the help. 25690 25691 25692 if test "x$JAVAC" = x; then 25693 # The variable is not set by user, try to locate tool using the code snippet 25694 25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25696 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25697 JAVAC=$BOOT_JDK/bin/javac 25698 if test ! -x $JAVAC; then 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25700 $as_echo "not found" >&6; } 25701 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25702 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25703 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25704 fi 25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25706 $as_echo "ok" >&6; } 25707 25708 25709 else 25710 # The variable is set, but is it from the command line or the environment? 25711 25712 # Try to remove the string !JAVAC! from our list. 25713 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25714 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25715 # If it failed, the variable was not from the command line. Ignore it, 25716 # but warn the user (except for BASH, which is always set by the calling BASH). 25717 if test "xJAVAC" != xBASH; then 25718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25719 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25720 fi 25721 # Try to locate tool using the code snippet 25722 25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25724 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25725 JAVAC=$BOOT_JDK/bin/javac 25726 if test ! -x $JAVAC; then 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25728 $as_echo "not found" >&6; } 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25730 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25731 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25732 fi 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25734 $as_echo "ok" >&6; } 25735 25736 25737 else 25738 # If it succeeded, then it was overridden by the user. We will use it 25739 # for the tool. 25740 25741 # First remove it from the list of overridden variables, so we can test 25742 # for unknown variables in the end. 25743 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25744 25745 # Check if the provided tool contains a complete path. 25746 tool_specified="$JAVAC" 25747 tool_basename="${tool_specified##*/}" 25748 if test "x$tool_basename" = "x$tool_specified"; then 25749 # A command without a complete path is provided, search $PATH. 25750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25751 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25752 # Extract the first word of "$tool_basename", so it can be a program name with args. 25753 set dummy $tool_basename; ac_word=$2 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25755 $as_echo_n "checking for $ac_word... " >&6; } 25756 if ${ac_cv_path_JAVAC+:} false; then : 25757 $as_echo_n "(cached) " >&6 25758 else 25759 case $JAVAC in 25760 [\\/]* | ?:[\\/]*) 25761 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25762 ;; 25763 *) 25764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25765 for as_dir in $PATH 25766 do 25767 IFS=$as_save_IFS 25768 test -z "$as_dir" && as_dir=. 25769 for ac_exec_ext in '' $ac_executable_extensions; do 25770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25771 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25773 break 2 25774 fi 25775 done 25776 done 25777 IFS=$as_save_IFS 25778 25779 ;; 25780 esac 25781 fi 25782 JAVAC=$ac_cv_path_JAVAC 25783 if test -n "$JAVAC"; then 25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25785 $as_echo "$JAVAC" >&6; } 25786 else 25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25788 $as_echo "no" >&6; } 25789 fi 25790 25791 25792 if test "x$JAVAC" = x; then 25793 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25794 fi 25795 else 25796 # Otherwise we believe it is a complete path. Use it as it is. 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25798 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25800 $as_echo_n "checking for JAVAC... " >&6; } 25801 if test ! -x "$tool_specified"; then 25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25803 $as_echo "not found" >&6; } 25804 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25805 fi 25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25807 $as_echo "$tool_specified" >&6; } 25808 fi 25809 fi 25810 fi 25811 25812 25813 25814 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25815 25816 # Publish this variable in the help. 25817 25818 25819 if test "x$JAVAH" = x; then 25820 # The variable is not set by user, try to locate tool using the code snippet 25821 25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25823 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25824 JAVAH=$BOOT_JDK/bin/javah 25825 if test ! -x $JAVAH; then 25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25827 $as_echo "not found" >&6; } 25828 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25829 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25830 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25831 fi 25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25833 $as_echo "ok" >&6; } 25834 25835 25836 else 25837 # The variable is set, but is it from the command line or the environment? 25838 25839 # Try to remove the string !JAVAH! from our list. 25840 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25841 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25842 # If it failed, the variable was not from the command line. Ignore it, 25843 # but warn the user (except for BASH, which is always set by the calling BASH). 25844 if test "xJAVAH" != xBASH; then 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25846 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25847 fi 25848 # Try to locate tool using the code snippet 25849 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25851 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25852 JAVAH=$BOOT_JDK/bin/javah 25853 if test ! -x $JAVAH; then 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25855 $as_echo "not found" >&6; } 25856 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25857 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25858 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25859 fi 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25861 $as_echo "ok" >&6; } 25862 25863 25864 else 25865 # If it succeeded, then it was overridden by the user. We will use it 25866 # for the tool. 25867 25868 # First remove it from the list of overridden variables, so we can test 25869 # for unknown variables in the end. 25870 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25871 25872 # Check if the provided tool contains a complete path. 25873 tool_specified="$JAVAH" 25874 tool_basename="${tool_specified##*/}" 25875 if test "x$tool_basename" = "x$tool_specified"; then 25876 # A command without a complete path is provided, search $PATH. 25877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25878 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25879 # Extract the first word of "$tool_basename", so it can be a program name with args. 25880 set dummy $tool_basename; ac_word=$2 25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25882 $as_echo_n "checking for $ac_word... " >&6; } 25883 if ${ac_cv_path_JAVAH+:} false; then : 25884 $as_echo_n "(cached) " >&6 25885 else 25886 case $JAVAH in 25887 [\\/]* | ?:[\\/]*) 25888 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25889 ;; 25890 *) 25891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25892 for as_dir in $PATH 25893 do 25894 IFS=$as_save_IFS 25895 test -z "$as_dir" && as_dir=. 25896 for ac_exec_ext in '' $ac_executable_extensions; do 25897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25898 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25900 break 2 25901 fi 25902 done 25903 done 25904 IFS=$as_save_IFS 25905 25906 ;; 25907 esac 25908 fi 25909 JAVAH=$ac_cv_path_JAVAH 25910 if test -n "$JAVAH"; then 25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25912 $as_echo "$JAVAH" >&6; } 25913 else 25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25915 $as_echo "no" >&6; } 25916 fi 25917 25918 25919 if test "x$JAVAH" = x; then 25920 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25921 fi 25922 else 25923 # Otherwise we believe it is a complete path. Use it as it is. 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25925 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25927 $as_echo_n "checking for JAVAH... " >&6; } 25928 if test ! -x "$tool_specified"; then 25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25930 $as_echo "not found" >&6; } 25931 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25932 fi 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25934 $as_echo "$tool_specified" >&6; } 25935 fi 25936 fi 25937 fi 25938 25939 25940 25941 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25942 25943 # Publish this variable in the help. 25944 25945 25946 if test "x$JAR" = x; then 25947 # The variable is not set by user, try to locate tool using the code snippet 25948 25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25950 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25951 JAR=$BOOT_JDK/bin/jar 25952 if test ! -x $JAR; then 25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25954 $as_echo "not found" >&6; } 25955 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25956 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25957 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25958 fi 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25960 $as_echo "ok" >&6; } 25961 25962 25963 else 25964 # The variable is set, but is it from the command line or the environment? 25965 25966 # Try to remove the string !JAR! from our list. 25967 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25968 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25969 # If it failed, the variable was not from the command line. Ignore it, 25970 # but warn the user (except for BASH, which is always set by the calling BASH). 25971 if test "xJAR" != xBASH; then 25972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25973 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25974 fi 25975 # Try to locate tool using the code snippet 25976 25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25978 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25979 JAR=$BOOT_JDK/bin/jar 25980 if test ! -x $JAR; then 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25982 $as_echo "not found" >&6; } 25983 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25984 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25985 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25986 fi 25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25988 $as_echo "ok" >&6; } 25989 25990 25991 else 25992 # If it succeeded, then it was overridden by the user. We will use it 25993 # for the tool. 25994 25995 # First remove it from the list of overridden variables, so we can test 25996 # for unknown variables in the end. 25997 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25998 25999 # Check if the provided tool contains a complete path. 26000 tool_specified="$JAR" 26001 tool_basename="${tool_specified##*/}" 26002 if test "x$tool_basename" = "x$tool_specified"; then 26003 # A command without a complete path is provided, search $PATH. 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 26005 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 26006 # Extract the first word of "$tool_basename", so it can be a program name with args. 26007 set dummy $tool_basename; ac_word=$2 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26009 $as_echo_n "checking for $ac_word... " >&6; } 26010 if ${ac_cv_path_JAR+:} false; then : 26011 $as_echo_n "(cached) " >&6 26012 else 26013 case $JAR in 26014 [\\/]* | ?:[\\/]*) 26015 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 26016 ;; 26017 *) 26018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26019 for as_dir in $PATH 26020 do 26021 IFS=$as_save_IFS 26022 test -z "$as_dir" && as_dir=. 26023 for ac_exec_ext in '' $ac_executable_extensions; do 26024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26025 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 26026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26027 break 2 26028 fi 26029 done 26030 done 26031 IFS=$as_save_IFS 26032 26033 ;; 26034 esac 26035 fi 26036 JAR=$ac_cv_path_JAR 26037 if test -n "$JAR"; then 26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 26039 $as_echo "$JAR" >&6; } 26040 else 26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26042 $as_echo "no" >&6; } 26043 fi 26044 26045 26046 if test "x$JAR" = x; then 26047 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26048 fi 26049 else 26050 # Otherwise we believe it is a complete path. Use it as it is. 26051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 26052 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26054 $as_echo_n "checking for JAR... " >&6; } 26055 if test ! -x "$tool_specified"; then 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26057 $as_echo "not found" >&6; } 26058 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26059 fi 26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26061 $as_echo "$tool_specified" >&6; } 26062 fi 26063 fi 26064 fi 26065 26066 26067 26068 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26069 26070 # Publish this variable in the help. 26071 26072 26073 if test "x$NATIVE2ASCII" = x; then 26074 # The variable is not set by user, try to locate tool using the code snippet 26075 26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26077 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26078 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26079 if test ! -x $NATIVE2ASCII; then 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26081 $as_echo "not found" >&6; } 26082 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26083 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26084 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26085 fi 26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26087 $as_echo "ok" >&6; } 26088 26089 26090 else 26091 # The variable is set, but is it from the command line or the environment? 26092 26093 # Try to remove the string !NATIVE2ASCII! from our list. 26094 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 26095 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26096 # If it failed, the variable was not from the command line. Ignore it, 26097 # but warn the user (except for BASH, which is always set by the calling BASH). 26098 if test "xNATIVE2ASCII" != xBASH; then 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 26100 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 26101 fi 26102 # Try to locate tool using the code snippet 26103 26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26105 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26106 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26107 if test ! -x $NATIVE2ASCII; then 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26109 $as_echo "not found" >&6; } 26110 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26111 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26112 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26113 fi 26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26115 $as_echo "ok" >&6; } 26116 26117 26118 else 26119 # If it succeeded, then it was overridden by the user. We will use it 26120 # for the tool. 26121 26122 # First remove it from the list of overridden variables, so we can test 26123 # for unknown variables in the end. 26124 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26125 26126 # Check if the provided tool contains a complete path. 26127 tool_specified="$NATIVE2ASCII" 26128 tool_basename="${tool_specified##*/}" 26129 if test "x$tool_basename" = "x$tool_specified"; then 26130 # A command without a complete path is provided, search $PATH. 26131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26132 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26133 # Extract the first word of "$tool_basename", so it can be a program name with args. 26134 set dummy $tool_basename; ac_word=$2 26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26136 $as_echo_n "checking for $ac_word... " >&6; } 26137 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26138 $as_echo_n "(cached) " >&6 26139 else 26140 case $NATIVE2ASCII in 26141 [\\/]* | ?:[\\/]*) 26142 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26143 ;; 26144 *) 26145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26146 for as_dir in $PATH 26147 do 26148 IFS=$as_save_IFS 26149 test -z "$as_dir" && as_dir=. 26150 for ac_exec_ext in '' $ac_executable_extensions; do 26151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26152 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26154 break 2 26155 fi 26156 done 26157 done 26158 IFS=$as_save_IFS 26159 26160 ;; 26161 esac 26162 fi 26163 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26164 if test -n "$NATIVE2ASCII"; then 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26166 $as_echo "$NATIVE2ASCII" >&6; } 26167 else 26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26169 $as_echo "no" >&6; } 26170 fi 26171 26172 26173 if test "x$NATIVE2ASCII" = x; then 26174 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26175 fi 26176 else 26177 # Otherwise we believe it is a complete path. Use it as it is. 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26179 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26181 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26182 if test ! -x "$tool_specified"; then 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26184 $as_echo "not found" >&6; } 26185 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26186 fi 26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26188 $as_echo "$tool_specified" >&6; } 26189 fi 26190 fi 26191 fi 26192 26193 26194 26195 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26196 26197 # Publish this variable in the help. 26198 26199 26200 if test "x$JARSIGNER" = x; then 26201 # The variable is not set by user, try to locate tool using the code snippet 26202 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26204 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26205 JARSIGNER=$BOOT_JDK/bin/jarsigner 26206 if test ! -x $JARSIGNER; then 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26208 $as_echo "not found" >&6; } 26209 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26210 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26211 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26212 fi 26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26214 $as_echo "ok" >&6; } 26215 26216 26217 else 26218 # The variable is set, but is it from the command line or the environment? 26219 26220 # Try to remove the string !JARSIGNER! from our list. 26221 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26222 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26223 # If it failed, the variable was not from the command line. Ignore it, 26224 # but warn the user (except for BASH, which is always set by the calling BASH). 26225 if test "xJARSIGNER" != xBASH; then 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26227 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26228 fi 26229 # Try to locate tool using the code snippet 26230 26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26232 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26233 JARSIGNER=$BOOT_JDK/bin/jarsigner 26234 if test ! -x $JARSIGNER; then 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26236 $as_echo "not found" >&6; } 26237 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26238 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26239 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26240 fi 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26242 $as_echo "ok" >&6; } 26243 26244 26245 else 26246 # If it succeeded, then it was overridden by the user. We will use it 26247 # for the tool. 26248 26249 # First remove it from the list of overridden variables, so we can test 26250 # for unknown variables in the end. 26251 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26252 26253 # Check if the provided tool contains a complete path. 26254 tool_specified="$JARSIGNER" 26255 tool_basename="${tool_specified##*/}" 26256 if test "x$tool_basename" = "x$tool_specified"; then 26257 # A command without a complete path is provided, search $PATH. 26258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26259 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26260 # Extract the first word of "$tool_basename", so it can be a program name with args. 26261 set dummy $tool_basename; ac_word=$2 26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26263 $as_echo_n "checking for $ac_word... " >&6; } 26264 if ${ac_cv_path_JARSIGNER+:} false; then : 26265 $as_echo_n "(cached) " >&6 26266 else 26267 case $JARSIGNER in 26268 [\\/]* | ?:[\\/]*) 26269 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26270 ;; 26271 *) 26272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26273 for as_dir in $PATH 26274 do 26275 IFS=$as_save_IFS 26276 test -z "$as_dir" && as_dir=. 26277 for ac_exec_ext in '' $ac_executable_extensions; do 26278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26279 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26281 break 2 26282 fi 26283 done 26284 done 26285 IFS=$as_save_IFS 26286 26287 ;; 26288 esac 26289 fi 26290 JARSIGNER=$ac_cv_path_JARSIGNER 26291 if test -n "$JARSIGNER"; then 26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26293 $as_echo "$JARSIGNER" >&6; } 26294 else 26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26296 $as_echo "no" >&6; } 26297 fi 26298 26299 26300 if test "x$JARSIGNER" = x; then 26301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26302 fi 26303 else 26304 # Otherwise we believe it is a complete path. Use it as it is. 26305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26306 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26308 $as_echo_n "checking for JARSIGNER... " >&6; } 26309 if test ! -x "$tool_specified"; then 26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26311 $as_echo "not found" >&6; } 26312 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26313 fi 26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26315 $as_echo "$tool_specified" >&6; } 26316 fi 26317 fi 26318 fi 26319 26320 26321 26322 # Finally, set some other options... 26323 26324 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26325 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26326 26327 26328 26329 26330 ############################################################################### 26331 # 26332 # Configure the sources to use. We can add or override individual directories. 26333 # 26334 ############################################################################### 26335 26336 26337 # Where are the sources. Any of these can be overridden 26338 # using --with-override-corba and the likes. 26339 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26340 CORBA_TOPDIR="$SRC_ROOT/corba" 26341 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26342 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26343 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26344 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26345 JDK_TOPDIR="$SRC_ROOT/jdk" 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 ############################################################################### 26357 # 26358 # Pickup additional source for a component from outside of the source root 26359 # or override source for a component. 26360 # 26361 26362 # Check whether --with-add-source-root was given. 26363 if test "${with_add_source_root+set}" = set; then : 26364 withval=$with_add_source_root; 26365 fi 26366 26367 26368 26369 # Check whether --with-override-source-root was given. 26370 if test "${with_override_source_root+set}" = set; then : 26371 withval=$with_override_source_root; 26372 fi 26373 26374 26375 26376 # Check whether --with-adds-and-overrides was given. 26377 if test "${with_adds_and_overrides+set}" = set; then : 26378 withval=$with_adds_and_overrides; 26379 fi 26380 26381 26382 if test "x$with_adds_and_overrides" != x; then 26383 with_add_source_root="$with_adds_and_overrides/adds" 26384 with_override_source_root="$with_adds_and_overrides/overrides" 26385 fi 26386 26387 if test "x$with_add_source_root" != x; then 26388 if ! test -d $with_add_source_root; then 26389 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26390 fi 26391 CURDIR="$PWD" 26392 cd "$with_add_source_root" 26393 ADD_SRC_ROOT="`pwd`" 26394 cd "$CURDIR" 26395 # Verify that the addon source root does not have any root makefiles. 26396 # If it does, then it is usually an error, prevent this. 26397 if test -f $with_add_source_root/langtools/make/Makefile; then 26398 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 26399 fi 26400 if test -f $with_add_source_root/corba/make/Makefile; then 26401 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 26402 fi 26403 if test -f $with_add_source_root/jaxp/make/Makefile; then 26404 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 26405 fi 26406 if test -f $with_add_source_root/jaxws/make/Makefile; then 26407 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 26408 fi 26409 if test -f $with_add_source_root/hotspot/make/Makefile; then 26410 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 26411 fi 26412 if test -f $with_add_source_root/nashorn/make/Makefile; then 26413 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 26414 fi 26415 if test -f $with_add_source_root/jdk/make/Makefile; then 26416 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 26417 fi 26418 fi 26419 26420 26421 if test "x$with_override_source_root" != x; then 26422 if ! test -d $with_override_source_root; then 26423 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26424 fi 26425 CURDIR="$PWD" 26426 cd "$with_override_source_root" 26427 OVERRIDE_SRC_ROOT="`pwd`" 26428 cd "$CURDIR" 26429 if test -f $with_override_source_root/langtools/make/Makefile; then 26430 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 26431 fi 26432 if test -f $with_override_source_root/corba/make/Makefile; then 26433 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 26434 fi 26435 if test -f $with_override_source_root/jaxp/make/Makefile; then 26436 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 26437 fi 26438 if test -f $with_override_source_root/jaxws/make/Makefile; then 26439 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 26440 fi 26441 if test -f $with_override_source_root/hotspot/make/Makefile; then 26442 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 26443 fi 26444 if test -f $with_override_source_root/nashorn/make/Makefile; then 26445 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 26446 fi 26447 if test -f $with_override_source_root/jdk/make/Makefile; then 26448 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 26449 fi 26450 fi 26451 26452 26453 ############################################################################### 26454 # 26455 # Override a repo completely, this is used for example when you have 3 small 26456 # development sandboxes of the langtools sources and want to avoid having 3 full 26457 # OpenJDK sources checked out on disk. 26458 # 26459 # Assuming that the 3 langtools sandboxes are located here: 26460 # /home/fredrik/sandbox1/langtools 26461 # /home/fredrik/sandbox2/langtools 26462 # /home/fredrik/sandbox3/langtools 26463 # 26464 # From the source root you create build subdirs manually: 26465 # mkdir -p build1 build2 build3 26466 # in each build directory run: 26467 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26468 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26469 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26470 # 26471 26472 26473 # Check whether --with-override-langtools was given. 26474 if test "${with_override_langtools+set}" = set; then : 26475 withval=$with_override_langtools; 26476 fi 26477 26478 26479 26480 # Check whether --with-override-corba was given. 26481 if test "${with_override_corba+set}" = set; then : 26482 withval=$with_override_corba; 26483 fi 26484 26485 26486 26487 # Check whether --with-override-jaxp was given. 26488 if test "${with_override_jaxp+set}" = set; then : 26489 withval=$with_override_jaxp; 26490 fi 26491 26492 26493 26494 # Check whether --with-override-jaxws was given. 26495 if test "${with_override_jaxws+set}" = set; then : 26496 withval=$with_override_jaxws; 26497 fi 26498 26499 26500 26501 # Check whether --with-override-hotspot was given. 26502 if test "${with_override_hotspot+set}" = set; then : 26503 withval=$with_override_hotspot; 26504 fi 26505 26506 26507 26508 # Check whether --with-override-nashorn was given. 26509 if test "${with_override_nashorn+set}" = set; then : 26510 withval=$with_override_nashorn; 26511 fi 26512 26513 26514 26515 # Check whether --with-override-jdk was given. 26516 if test "${with_override_jdk+set}" = set; then : 26517 withval=$with_override_jdk; 26518 fi 26519 26520 26521 if test "x$with_override_langtools" != x; then 26522 CURDIR="$PWD" 26523 cd "$with_override_langtools" 26524 LANGTOOLS_TOPDIR="`pwd`" 26525 cd "$CURDIR" 26526 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26527 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26528 fi 26529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26530 $as_echo_n "checking if langtools should be overridden... " >&6; } 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26532 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26533 fi 26534 if test "x$with_override_corba" != x; then 26535 CURDIR="$PWD" 26536 cd "$with_override_corba" 26537 CORBA_TOPDIR="`pwd`" 26538 cd "$CURDIR" 26539 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26540 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26541 fi 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26543 $as_echo_n "checking if corba should be overridden... " >&6; } 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26545 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26546 fi 26547 if test "x$with_override_jaxp" != x; then 26548 CURDIR="$PWD" 26549 cd "$with_override_jaxp" 26550 JAXP_TOPDIR="`pwd`" 26551 cd "$CURDIR" 26552 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26553 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26554 fi 26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26556 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26558 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26559 fi 26560 if test "x$with_override_jaxws" != x; then 26561 CURDIR="$PWD" 26562 cd "$with_override_jaxws" 26563 JAXWS_TOPDIR="`pwd`" 26564 cd "$CURDIR" 26565 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26566 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26567 fi 26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26569 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26571 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26572 fi 26573 if test "x$with_override_hotspot" != x; then 26574 CURDIR="$PWD" 26575 cd "$with_override_hotspot" 26576 HOTSPOT_TOPDIR="`pwd`" 26577 cd "$CURDIR" 26578 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26579 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26580 fi 26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26582 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26584 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26585 fi 26586 if test "x$with_override_nashorn" != x; then 26587 CURDIR="$PWD" 26588 cd "$with_override_nashorn" 26589 NASHORN_TOPDIR="`pwd`" 26590 cd "$CURDIR" 26591 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26592 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26593 fi 26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26595 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26597 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26598 fi 26599 if test "x$with_override_jdk" != x; then 26600 CURDIR="$PWD" 26601 cd "$with_override_jdk" 26602 JDK_TOPDIR="`pwd`" 26603 cd "$CURDIR" 26604 if ! test -f $JDK_TOPDIR/make/Makefile; then 26605 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26606 fi 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26608 $as_echo_n "checking if JDK should be overridden... " >&6; } 26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26610 $as_echo "yes with $JDK_TOPDIR" >&6; } 26611 fi 26612 26613 26614 BUILD_OUTPUT="$OUTPUT_ROOT" 26615 26616 26617 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26618 BUILD_HOTSPOT=true 26619 26620 26621 26622 # Check whether --with-import-hotspot was given. 26623 if test "${with_import_hotspot+set}" = set; then : 26624 withval=$with_import_hotspot; 26625 fi 26626 26627 if test "x$with_import_hotspot" != x; then 26628 CURDIR="$PWD" 26629 cd "$with_import_hotspot" 26630 HOTSPOT_DIST="`pwd`" 26631 cd "$CURDIR" 26632 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26633 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26634 fi 26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26636 $as_echo_n "checking if hotspot should be imported... " >&6; } 26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26638 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26639 BUILD_HOTSPOT=false 26640 fi 26641 26642 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26643 26644 26645 ############################################################################### 26646 # 26647 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26648 # native code. 26649 # 26650 ############################################################################### 26651 26652 # First determine the toolchain type (compiler family) 26653 26654 26655 # Check whether --with-toolchain-type was given. 26656 if test "${with_toolchain_type+set}" = set; then : 26657 withval=$with_toolchain_type; 26658 fi 26659 26660 26661 # Use indirect variable referencing 26662 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26663 VALID_TOOLCHAINS=${!toolchain_var_name} 26664 26665 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26666 if test -n "$XCODEBUILD"; then 26667 # On Mac OS X, default toolchain to clang after Xcode 5 26668 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26669 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26670 if test $? -ne 0; then 26671 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26672 fi 26673 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26674 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26675 $CUT -f 1 -d .` 26676 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26677 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26678 if test $XCODE_MAJOR_VERSION -ge 5; then 26679 DEFAULT_TOOLCHAIN="clang" 26680 else 26681 DEFAULT_TOOLCHAIN="gcc" 26682 fi 26683 else 26684 # If Xcode is not installed, but the command line tools are 26685 # then we can't run xcodebuild. On these systems we should 26686 # default to clang 26687 DEFAULT_TOOLCHAIN="clang" 26688 fi 26689 else 26690 # First toolchain type in the list is the default 26691 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26692 fi 26693 26694 if test "x$with_toolchain_type" = xlist; then 26695 # List all toolchains 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26697 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26698 for toolchain in $VALID_TOOLCHAINS; do 26699 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26700 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26701 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26702 done 26703 26704 exit 0 26705 elif test "x$with_toolchain_type" != x; then 26706 # User override; check that it is valid 26707 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26708 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26709 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26711 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26712 as_fn_error $? "Cannot continue." "$LINENO" 5 26713 fi 26714 TOOLCHAIN_TYPE=$with_toolchain_type 26715 else 26716 # No flag given, use default 26717 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26718 fi 26719 26720 26721 TOOLCHAIN_CC_BINARY_clang="clang" 26722 TOOLCHAIN_CC_BINARY_gcc="gcc" 26723 TOOLCHAIN_CC_BINARY_microsoft="cl" 26724 TOOLCHAIN_CC_BINARY_solstudio="cc" 26725 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26726 26727 TOOLCHAIN_CXX_BINARY_clang="clang++" 26728 TOOLCHAIN_CXX_BINARY_gcc="g++" 26729 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26730 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26731 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26732 26733 # Use indirect variable referencing 26734 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26735 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26736 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26737 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26738 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26739 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26740 26741 26742 # Define filename patterns 26743 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26744 LIBRARY_PREFIX= 26745 SHARED_LIBRARY_SUFFIX='.dll' 26746 STATIC_LIBRARY_SUFFIX='.lib' 26747 SHARED_LIBRARY='$1.dll' 26748 STATIC_LIBRARY='$1.lib' 26749 OBJ_SUFFIX='.obj' 26750 EXE_SUFFIX='.exe' 26751 else 26752 LIBRARY_PREFIX=lib 26753 SHARED_LIBRARY_SUFFIX='.so' 26754 STATIC_LIBRARY_SUFFIX='.a' 26755 SHARED_LIBRARY='lib$1.so' 26756 STATIC_LIBRARY='lib$1.a' 26757 OBJ_SUFFIX='.o' 26758 EXE_SUFFIX='' 26759 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26760 SHARED_LIBRARY='lib$1.dylib' 26761 SHARED_LIBRARY_SUFFIX='.dylib' 26762 fi 26763 fi 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26775 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26776 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26777 else 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26779 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26780 fi 26781 26782 26783 # Then detect the actual binaries needed 26784 26785 # FIXME: Is this needed? 26786 ac_ext=cpp 26787 ac_cpp='$CXXCPP $CPPFLAGS' 26788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26791 26792 26793 # Store the CFLAGS etc passed to the configure script. 26794 ORG_CFLAGS="$CFLAGS" 26795 ORG_CXXFLAGS="$CXXFLAGS" 26796 ORG_OBJCFLAGS="$OBJCFLAGS" 26797 26798 # On Windows, we need to detect the visual studio installation first. 26799 # This will change the PATH, but we need to keep that new PATH even 26800 # after toolchain detection is done, since the compiler (on x86) uses 26801 # it for DLL resolution in runtime. 26802 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26803 26804 # Store path to cygwin link.exe to help excluding it when searching for 26805 # VS linker. This must be done before changing the PATH when looking for VS. 26806 # Extract the first word of "link", so it can be a program name with args. 26807 set dummy link; ac_word=$2 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26809 $as_echo_n "checking for $ac_word... " >&6; } 26810 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26811 $as_echo_n "(cached) " >&6 26812 else 26813 case $CYGWIN_LINK in 26814 [\\/]* | ?:[\\/]*) 26815 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26816 ;; 26817 *) 26818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26819 for as_dir in $PATH 26820 do 26821 IFS=$as_save_IFS 26822 test -z "$as_dir" && as_dir=. 26823 for ac_exec_ext in '' $ac_executable_extensions; do 26824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26825 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26827 break 2 26828 fi 26829 done 26830 done 26831 IFS=$as_save_IFS 26832 26833 ;; 26834 esac 26835 fi 26836 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26837 if test -n "$CYGWIN_LINK"; then 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26839 $as_echo "$CYGWIN_LINK" >&6; } 26840 else 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26842 $as_echo "no" >&6; } 26843 fi 26844 26845 26846 if test "x$CYGWIN_LINK" != x; then 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26848 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26849 "$CYGWIN_LINK" --version > /dev/null 26850 if test $? -eq 0 ; then 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26852 $as_echo "yes" >&6; } 26853 else 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26855 $as_echo "no" >&6; } 26856 # This might be the VS linker. Don't exclude it later on. 26857 CYGWIN_LINK="" 26858 fi 26859 fi 26860 26861 # First-hand choice is to locate and run the vsvars bat file. 26862 26863 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26864 VCVARSFILE="vc/bin/vcvars32.bat" 26865 else 26866 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26867 fi 26868 26869 VS_ENV_CMD="" 26870 VS_ENV_ARGS="" 26871 if test "x$with_toolsdir" != x; then 26872 26873 if test "x$VS_ENV_CMD" = x; then 26874 VS100BASE="$with_toolsdir/../.." 26875 METHOD="--with-tools-dir" 26876 26877 windows_path="$VS100BASE" 26878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26879 unix_path=`$CYGPATH -u "$windows_path"` 26880 VS100BASE="$unix_path" 26881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26882 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26883 VS100BASE="$unix_path" 26884 fi 26885 26886 if test -d "$VS100BASE"; then 26887 if test -f "$VS100BASE/$VCVARSFILE"; then 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26889 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26890 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26891 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26892 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26893 # TODO: improve detection for other versions of VS 26894 PLATFORM_TOOLSET="v100" 26895 else 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26897 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26899 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26900 fi 26901 fi 26902 fi 26903 26904 fi 26905 26906 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26907 # Having specified an argument which is incorrect will produce an instant failure; 26908 # we should not go on looking 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26910 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26912 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26913 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26914 fi 26915 26916 if test "x$VS100COMNTOOLS" != x; then 26917 26918 if test "x$VS_ENV_CMD" = x; then 26919 VS100BASE="$VS100COMNTOOLS/../.." 26920 METHOD="VS100COMNTOOLS variable" 26921 26922 windows_path="$VS100BASE" 26923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26924 unix_path=`$CYGPATH -u "$windows_path"` 26925 VS100BASE="$unix_path" 26926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26928 VS100BASE="$unix_path" 26929 fi 26930 26931 if test -d "$VS100BASE"; then 26932 if test -f "$VS100BASE/$VCVARSFILE"; then 26933 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26934 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26935 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26936 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26937 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26938 # TODO: improve detection for other versions of VS 26939 PLATFORM_TOOLSET="v100" 26940 else 26941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26942 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26943 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26944 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26945 fi 26946 fi 26947 fi 26948 26949 fi 26950 if test "x$PROGRAMFILES" != x; then 26951 26952 if test "x$VS_ENV_CMD" = x; then 26953 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26954 METHOD="well-known name" 26955 26956 windows_path="$VS100BASE" 26957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26958 unix_path=`$CYGPATH -u "$windows_path"` 26959 VS100BASE="$unix_path" 26960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26962 VS100BASE="$unix_path" 26963 fi 26964 26965 if test -d "$VS100BASE"; then 26966 if test -f "$VS100BASE/$VCVARSFILE"; then 26967 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26968 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26969 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26970 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26971 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26972 # TODO: improve detection for other versions of VS 26973 PLATFORM_TOOLSET="v100" 26974 else 26975 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26976 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26978 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26979 fi 26980 fi 26981 fi 26982 26983 fi 26984 26985 if test "x$VS_ENV_CMD" = x; then 26986 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26987 METHOD="well-known name" 26988 26989 windows_path="$VS100BASE" 26990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26991 unix_path=`$CYGPATH -u "$windows_path"` 26992 VS100BASE="$unix_path" 26993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26995 VS100BASE="$unix_path" 26996 fi 26997 26998 if test -d "$VS100BASE"; then 26999 if test -f "$VS100BASE/$VCVARSFILE"; then 27000 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27001 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27002 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27003 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27004 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27005 # TODO: improve detection for other versions of VS 27006 PLATFORM_TOOLSET="v100" 27007 else 27008 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27009 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27011 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27012 fi 27013 fi 27014 fi 27015 27016 27017 if test "x$VS_ENV_CMD" = x; then 27018 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 27019 METHOD="well-known name" 27020 27021 windows_path="$VS100BASE" 27022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27023 unix_path=`$CYGPATH -u "$windows_path"` 27024 VS100BASE="$unix_path" 27025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27027 VS100BASE="$unix_path" 27028 fi 27029 27030 if test -d "$VS100BASE"; then 27031 if test -f "$VS100BASE/$VCVARSFILE"; then 27032 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27033 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27034 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27035 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27036 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27037 # TODO: improve detection for other versions of VS 27038 PLATFORM_TOOLSET="v100" 27039 else 27040 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27041 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27042 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27043 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27044 fi 27045 fi 27046 fi 27047 27048 27049 if test "x$ProgramW6432" != x; then 27050 27051 if test "x$VS_ENV_CMD" = x; then 27052 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 27053 METHOD="well-known name" 27054 27055 windows_path="$WIN_SDK_BASE" 27056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27057 unix_path=`$CYGPATH -u "$windows_path"` 27058 WIN_SDK_BASE="$unix_path" 27059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27061 WIN_SDK_BASE="$unix_path" 27062 fi 27063 27064 if test -d "$WIN_SDK_BASE"; then 27065 # There have been cases of partial or broken SDK installations. A missing 27066 # lib dir is not going to work. 27067 if test ! -d "$WIN_SDK_BASE/../lib"; then 27068 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27069 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27070 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27071 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27072 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27073 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27074 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27075 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27076 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27077 VS_ENV_ARGS="/x86" 27078 else 27079 VS_ENV_ARGS="/x64" 27080 fi 27081 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27082 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27083 # TODO: improve detection for other versions of SDK 27084 PLATFORM_TOOLSET="Windows7.1SDK" 27085 else 27086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27087 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27088 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27089 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27090 fi 27091 fi 27092 fi 27093 27094 fi 27095 if test "x$PROGRAMW6432" != x; then 27096 27097 if test "x$VS_ENV_CMD" = x; then 27098 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 27099 METHOD="well-known name" 27100 27101 windows_path="$WIN_SDK_BASE" 27102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27103 unix_path=`$CYGPATH -u "$windows_path"` 27104 WIN_SDK_BASE="$unix_path" 27105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27107 WIN_SDK_BASE="$unix_path" 27108 fi 27109 27110 if test -d "$WIN_SDK_BASE"; then 27111 # There have been cases of partial or broken SDK installations. A missing 27112 # lib dir is not going to work. 27113 if test ! -d "$WIN_SDK_BASE/../lib"; then 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27115 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27116 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27117 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27118 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27119 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27120 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27121 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27122 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27123 VS_ENV_ARGS="/x86" 27124 else 27125 VS_ENV_ARGS="/x64" 27126 fi 27127 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27128 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27129 # TODO: improve detection for other versions of SDK 27130 PLATFORM_TOOLSET="Windows7.1SDK" 27131 else 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27133 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27134 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27135 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27136 fi 27137 fi 27138 fi 27139 27140 fi 27141 if test "x$PROGRAMFILES" != x; then 27142 27143 if test "x$VS_ENV_CMD" = x; then 27144 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 27145 METHOD="well-known name" 27146 27147 windows_path="$WIN_SDK_BASE" 27148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27149 unix_path=`$CYGPATH -u "$windows_path"` 27150 WIN_SDK_BASE="$unix_path" 27151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27153 WIN_SDK_BASE="$unix_path" 27154 fi 27155 27156 if test -d "$WIN_SDK_BASE"; then 27157 # There have been cases of partial or broken SDK installations. A missing 27158 # lib dir is not going to work. 27159 if test ! -d "$WIN_SDK_BASE/../lib"; then 27160 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27161 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27162 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27163 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27164 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27166 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27167 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27168 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27169 VS_ENV_ARGS="/x86" 27170 else 27171 VS_ENV_ARGS="/x64" 27172 fi 27173 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27174 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27175 # TODO: improve detection for other versions of SDK 27176 PLATFORM_TOOLSET="Windows7.1SDK" 27177 else 27178 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27179 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27180 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27181 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27182 fi 27183 fi 27184 fi 27185 27186 fi 27187 27188 if test "x$VS_ENV_CMD" = x; then 27189 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 27190 METHOD="well-known name" 27191 27192 windows_path="$WIN_SDK_BASE" 27193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27194 unix_path=`$CYGPATH -u "$windows_path"` 27195 WIN_SDK_BASE="$unix_path" 27196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27198 WIN_SDK_BASE="$unix_path" 27199 fi 27200 27201 if test -d "$WIN_SDK_BASE"; then 27202 # There have been cases of partial or broken SDK installations. A missing 27203 # lib dir is not going to work. 27204 if test ! -d "$WIN_SDK_BASE/../lib"; then 27205 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27206 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27207 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27208 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27209 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27210 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27211 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27212 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27213 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27214 VS_ENV_ARGS="/x86" 27215 else 27216 VS_ENV_ARGS="/x64" 27217 fi 27218 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27219 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27220 # TODO: improve detection for other versions of SDK 27221 PLATFORM_TOOLSET="Windows7.1SDK" 27222 else 27223 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27224 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27226 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27227 fi 27228 fi 27229 fi 27230 27231 27232 if test "x$VS_ENV_CMD" = x; then 27233 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27234 METHOD="well-known name" 27235 27236 windows_path="$WIN_SDK_BASE" 27237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27238 unix_path=`$CYGPATH -u "$windows_path"` 27239 WIN_SDK_BASE="$unix_path" 27240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27242 WIN_SDK_BASE="$unix_path" 27243 fi 27244 27245 if test -d "$WIN_SDK_BASE"; then 27246 # There have been cases of partial or broken SDK installations. A missing 27247 # lib dir is not going to work. 27248 if test ! -d "$WIN_SDK_BASE/../lib"; then 27249 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27250 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27252 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27253 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27255 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27256 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27257 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27258 VS_ENV_ARGS="/x86" 27259 else 27260 VS_ENV_ARGS="/x64" 27261 fi 27262 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27263 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27264 # TODO: improve detection for other versions of SDK 27265 PLATFORM_TOOLSET="Windows7.1SDK" 27266 else 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27268 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27270 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27271 fi 27272 fi 27273 fi 27274 27275 27276 if test "x$VS_ENV_CMD" != x; then 27277 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27278 27279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27280 27281 # First separate the path from the arguments. This will split at the first 27282 # space. 27283 complete="$VS_ENV_CMD" 27284 path="${complete%% *}" 27285 tmp="$complete EOL" 27286 arguments="${tmp#* }" 27287 27288 # Input might be given as Windows format, start by converting to 27289 # unix format. 27290 new_path=`$CYGPATH -u "$path"` 27291 27292 # Now try to locate executable using which 27293 new_path=`$WHICH "$new_path" 2> /dev/null` 27294 # bat and cmd files are not always considered executable in cygwin causing which 27295 # to not find them 27296 if test "x$new_path" = x \ 27297 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27298 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27299 new_path=`$CYGPATH -u "$path"` 27300 fi 27301 if test "x$new_path" = x; then 27302 # Oops. Which didn't find the executable. 27303 # The splitting of arguments from the executable at a space might have been incorrect, 27304 # since paths with space are more likely in Windows. Give it another try with the whole 27305 # argument. 27306 path="$complete" 27307 arguments="EOL" 27308 new_path=`$CYGPATH -u "$path"` 27309 new_path=`$WHICH "$new_path" 2> /dev/null` 27310 # bat and cmd files are not always considered executable in cygwin causing which 27311 # to not find them 27312 if test "x$new_path" = x \ 27313 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27314 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27315 new_path=`$CYGPATH -u "$path"` 27316 fi 27317 if test "x$new_path" = x; then 27318 # It's still not found. Now this is an unrecoverable error. 27319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27320 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27321 has_space=`$ECHO "$complete" | $GREP " "` 27322 if test "x$has_space" != x; then 27323 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27324 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27325 fi 27326 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27327 fi 27328 fi 27329 27330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27333 # "foo.exe" is OK but "foo" is an error. 27334 # 27335 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27336 # It is also a way to make sure we got the proper file name for the real test later on. 27337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27338 if test "x$test_shortpath" = x; then 27339 # Short path failed, file does not exist as specified. 27340 # Try adding .exe or .cmd 27341 if test -f "${new_path}.exe"; then 27342 input_to_shortpath="${new_path}.exe" 27343 elif test -f "${new_path}.cmd"; then 27344 input_to_shortpath="${new_path}.cmd" 27345 else 27346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27347 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27349 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27350 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27351 fi 27352 else 27353 input_to_shortpath="$new_path" 27354 fi 27355 27356 # Call helper function which possibly converts this using DOS-style short mode. 27357 # If so, the updated path is stored in $new_path. 27358 new_path="$input_to_shortpath" 27359 27360 input_path="$input_to_shortpath" 27361 # Check if we need to convert this using DOS-style short mode. If the path 27362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27363 # take no chances and rewrite it. 27364 # Note: m4 eats our [], so we need to use [ and ] instead. 27365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27366 if test "x$has_forbidden_chars" != x; then 27367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27368 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27369 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27370 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27371 # Going to short mode and back again did indeed matter. Since short mode is 27372 # case insensitive, let's make it lowercase to improve readability. 27373 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27374 # Now convert it back to Unix-stile (cygpath) 27375 input_path=`$CYGPATH -u "$shortmode_path"` 27376 new_path="$input_path" 27377 fi 27378 fi 27379 27380 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27381 if test "x$test_cygdrive_prefix" = x; then 27382 # As a simple fix, exclude /usr/bin since it's not a real path. 27383 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27384 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27385 # a path prefixed by /cygdrive for fixpath to work. 27386 new_path="$CYGWIN_ROOT_PATH$input_path" 27387 fi 27388 fi 27389 27390 # remove trailing .exe if any 27391 new_path="${new_path/%.exe/}" 27392 27393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27394 27395 # First separate the path from the arguments. This will split at the first 27396 # space. 27397 complete="$VS_ENV_CMD" 27398 path="${complete%% *}" 27399 tmp="$complete EOL" 27400 arguments="${tmp#* }" 27401 27402 # Input might be given as Windows format, start by converting to 27403 # unix format. 27404 new_path="$path" 27405 27406 windows_path="$new_path" 27407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27408 unix_path=`$CYGPATH -u "$windows_path"` 27409 new_path="$unix_path" 27410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27412 new_path="$unix_path" 27413 fi 27414 27415 27416 # Now try to locate executable using which 27417 new_path=`$WHICH "$new_path" 2> /dev/null` 27418 27419 if test "x$new_path" = x; then 27420 # Oops. Which didn't find the executable. 27421 # The splitting of arguments from the executable at a space might have been incorrect, 27422 # since paths with space are more likely in Windows. Give it another try with the whole 27423 # argument. 27424 path="$complete" 27425 arguments="EOL" 27426 new_path="$path" 27427 27428 windows_path="$new_path" 27429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27430 unix_path=`$CYGPATH -u "$windows_path"` 27431 new_path="$unix_path" 27432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27434 new_path="$unix_path" 27435 fi 27436 27437 27438 new_path=`$WHICH "$new_path" 2> /dev/null` 27439 # bat and cmd files are not always considered executable in MSYS causing which 27440 # to not find them 27441 if test "x$new_path" = x \ 27442 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27443 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27444 new_path="$path" 27445 27446 windows_path="$new_path" 27447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27448 unix_path=`$CYGPATH -u "$windows_path"` 27449 new_path="$unix_path" 27450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27452 new_path="$unix_path" 27453 fi 27454 27455 fi 27456 27457 if test "x$new_path" = x; then 27458 # It's still not found. Now this is an unrecoverable error. 27459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27460 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27461 has_space=`$ECHO "$complete" | $GREP " "` 27462 if test "x$has_space" != x; then 27463 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27464 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27465 fi 27466 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27467 fi 27468 fi 27469 27470 # Now new_path has a complete unix path to the binary 27471 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27472 # Keep paths in /bin as-is, but remove trailing .exe if any 27473 new_path="${new_path/%.exe/}" 27474 # Do not save /bin paths to all_fixpath_prefixes! 27475 else 27476 # Not in mixed or Windows style, start by that. 27477 new_path=`cmd //c echo $new_path` 27478 27479 input_path="$new_path" 27480 # Check if we need to convert this using DOS-style short mode. If the path 27481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27482 # take no chances and rewrite it. 27483 # Note: m4 eats our [], so we need to use [ and ] instead. 27484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27485 if test "x$has_forbidden_chars" != x; then 27486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27487 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27488 fi 27489 27490 # Output is in $new_path 27491 27492 windows_path="$new_path" 27493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27494 unix_path=`$CYGPATH -u "$windows_path"` 27495 new_path="$unix_path" 27496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27498 new_path="$unix_path" 27499 fi 27500 27501 # remove trailing .exe if any 27502 new_path="${new_path/%.exe/}" 27503 27504 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27505 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27506 fi 27507 27508 else 27509 # We're on a posix platform. Hooray! :) 27510 # First separate the path from the arguments. This will split at the first 27511 # space. 27512 complete="$VS_ENV_CMD" 27513 path="${complete%% *}" 27514 tmp="$complete EOL" 27515 arguments="${tmp#* }" 27516 27517 # Cannot rely on the command "which" here since it doesn't always work. 27518 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27519 if test -z "$is_absolute_path"; then 27520 # Path to executable is not absolute. Find it. 27521 IFS_save="$IFS" 27522 IFS=: 27523 for p in $PATH; do 27524 if test -f "$p/$path" && test -x "$p/$path"; then 27525 new_path="$p/$path" 27526 break 27527 fi 27528 done 27529 IFS="$IFS_save" 27530 else 27531 # This is an absolute path, we can use it without further modifications. 27532 new_path="$path" 27533 fi 27534 27535 if test "x$new_path" = x; then 27536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27537 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27538 has_space=`$ECHO "$complete" | $GREP " "` 27539 if test "x$has_space" != x; then 27540 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27541 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27542 fi 27543 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27544 fi 27545 fi 27546 27547 # Now join together the path and the arguments once again 27548 if test "x$arguments" != xEOL; then 27549 new_complete="$new_path ${arguments% *}" 27550 else 27551 new_complete="$new_path" 27552 fi 27553 27554 if test "x$complete" != "x$new_complete"; then 27555 VS_ENV_CMD="$new_complete" 27556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27557 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27558 fi 27559 27560 27561 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27562 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27563 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27564 27565 # We need to create a couple of temporary files. 27566 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27567 $MKDIR -p $VS_ENV_TMP_DIR 27568 27569 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27570 # Instead create a shell script which will set the relevant variables when run. 27571 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27572 27573 unix_path="$WINPATH_VS_ENV_CMD" 27574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27575 windows_path=`$CYGPATH -m "$unix_path"` 27576 WINPATH_VS_ENV_CMD="$windows_path" 27577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27578 windows_path=`cmd //c echo $unix_path` 27579 WINPATH_VS_ENV_CMD="$windows_path" 27580 fi 27581 27582 WINPATH_BASH="$BASH" 27583 27584 unix_path="$WINPATH_BASH" 27585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27586 windows_path=`$CYGPATH -m "$unix_path"` 27587 WINPATH_BASH="$windows_path" 27588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27589 windows_path=`cmd //c echo $unix_path` 27590 WINPATH_BASH="$windows_path" 27591 fi 27592 27593 27594 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27595 # script (executable by bash) that will setup the important variables. 27596 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27597 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27598 # This will end up something like: 27599 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27600 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27601 # These will end up something like: 27602 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27603 # The trailing space for everyone except PATH is no typo, but is needed due 27604 # to trailing \ in the Windows paths. These will be stripped later. 27605 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27606 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27607 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27608 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27609 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27610 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27611 27612 # Now execute the newly created bat file. 27613 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27614 # Change directory so we don't need to mess with Windows paths in redirects. 27615 cd $VS_ENV_TMP_DIR 27616 cmd /c extract-vs-env.bat | $CAT 27617 cd $CURDIR 27618 27619 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27621 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27622 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27623 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27624 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27625 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27626 as_fn_error $? "Cannot continue" "$LINENO" 5 27627 fi 27628 27629 # Now set all paths and other env variables. This will allow the rest of 27630 # the configure script to find and run the compiler in the proper way. 27631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27632 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27633 . $VS_ENV_TMP_DIR/set-vs-env.sh 27634 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27635 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27636 else 27637 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27638 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27639 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27640 fi 27641 27642 # At this point, we should have correct variables in the environment, or we can't continue. 27643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27644 $as_echo_n "checking for Visual Studio variables... " >&6; } 27645 27646 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27647 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27649 $as_echo "present but broken" >&6; } 27650 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27651 else 27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27653 $as_echo "ok" >&6; } 27654 # Remove any trailing "\" and " " from the variables. 27655 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 27656 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 27657 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27658 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27659 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27660 # Remove any paths containing # (typically F#) as that messes up make. This 27661 # is needed if visual studio was installed with F# support. 27662 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27663 27664 27665 27666 27667 fi 27668 else 27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27670 $as_echo "not found" >&6; } 27671 27672 if test "x$VS_ENV_CMD" = x; then 27673 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27674 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27675 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27676 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27677 else 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27679 $as_echo "$as_me: Running the extraction script failed." >&6;} 27680 fi 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27682 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27683 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27684 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27685 as_fn_error $? "Cannot continue" "$LINENO" 5 27686 fi 27687 27688 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27689 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27690 PATH="$VS_PATH" 27691 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27692 export INCLUDE="$VS_INCLUDE" 27693 export LIB="$VS_LIB" 27694 fi 27695 27696 # autoconf magic only relies on PATH, so update it if tools dir is specified 27697 OLD_PATH="$PATH" 27698 27699 # For solaris we really need solaris tools, and not the GNU equivalent. 27700 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27701 # so add that to path before starting to probe. 27702 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27703 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27704 PATH="/usr/ccs/bin:$PATH" 27705 fi 27706 27707 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27708 # override all other locations. 27709 if test "x$TOOLCHAIN_PATH" != x; then 27710 PATH=$TOOLCHAIN_PATH:$PATH 27711 fi 27712 27713 27714 # 27715 # Setup the compilers (CC and CXX) 27716 # 27717 27718 COMPILER_NAME=C 27719 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27720 27721 if test "x$CC" != x; then 27722 # User has supplied compiler name already, always let that override. 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27724 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27725 if test "x`basename $CC`" = "x$CC"; then 27726 # A command without a complete path is provided, search $PATH. 27727 27728 for ac_prog in $CC 27729 do 27730 # Extract the first word of "$ac_prog", so it can be a program name with args. 27731 set dummy $ac_prog; ac_word=$2 27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27733 $as_echo_n "checking for $ac_word... " >&6; } 27734 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27735 $as_echo_n "(cached) " >&6 27736 else 27737 case $POTENTIAL_CC in 27738 [\\/]* | ?:[\\/]*) 27739 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27740 ;; 27741 *) 27742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27743 for as_dir in $PATH 27744 do 27745 IFS=$as_save_IFS 27746 test -z "$as_dir" && as_dir=. 27747 for ac_exec_ext in '' $ac_executable_extensions; do 27748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27749 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27751 break 2 27752 fi 27753 done 27754 done 27755 IFS=$as_save_IFS 27756 27757 ;; 27758 esac 27759 fi 27760 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27761 if test -n "$POTENTIAL_CC"; then 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27763 $as_echo "$POTENTIAL_CC" >&6; } 27764 else 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27766 $as_echo "no" >&6; } 27767 fi 27768 27769 27770 test -n "$POTENTIAL_CC" && break 27771 done 27772 27773 if test "x$POTENTIAL_CC" != x; then 27774 CC=$POTENTIAL_CC 27775 else 27776 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27777 fi 27778 else 27779 # Otherwise it might already be a complete path 27780 if test ! -x "$CC"; then 27781 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27782 fi 27783 fi 27784 else 27785 # No user supplied value. Locate compiler ourselves. 27786 27787 # If we are cross compiling, assume cross compilation tools follows the 27788 # cross compilation standard where they are prefixed with the autoconf 27789 # standard name for the target. For example the binary 27790 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27791 # If we are not cross compiling, then the default compiler name will be 27792 # used. 27793 27794 CC= 27795 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27796 # before checking the rest of the PATH. 27797 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27798 # step, this should not be necessary. 27799 if test -n "$TOOLCHAIN_PATH"; then 27800 PATH_save="$PATH" 27801 PATH="$TOOLCHAIN_PATH" 27802 for ac_prog in $SEARCH_LIST 27803 do 27804 # Extract the first word of "$ac_prog", so it can be a program name with args. 27805 set dummy $ac_prog; ac_word=$2 27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27807 $as_echo_n "checking for $ac_word... " >&6; } 27808 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27809 $as_echo_n "(cached) " >&6 27810 else 27811 case $TOOLCHAIN_PATH_CC in 27812 [\\/]* | ?:[\\/]*) 27813 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27814 ;; 27815 *) 27816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27817 for as_dir in $PATH 27818 do 27819 IFS=$as_save_IFS 27820 test -z "$as_dir" && as_dir=. 27821 for ac_exec_ext in '' $ac_executable_extensions; do 27822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27823 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27825 break 2 27826 fi 27827 done 27828 done 27829 IFS=$as_save_IFS 27830 27831 ;; 27832 esac 27833 fi 27834 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27835 if test -n "$TOOLCHAIN_PATH_CC"; then 27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27837 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27838 else 27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27840 $as_echo "no" >&6; } 27841 fi 27842 27843 27844 test -n "$TOOLCHAIN_PATH_CC" && break 27845 done 27846 27847 CC=$TOOLCHAIN_PATH_CC 27848 PATH="$PATH_save" 27849 fi 27850 27851 # AC_PATH_PROGS can't be run multiple times with the same variable, 27852 # so create a new name for this run. 27853 if test "x$CC" = x; then 27854 for ac_prog in $SEARCH_LIST 27855 do 27856 # Extract the first word of "$ac_prog", so it can be a program name with args. 27857 set dummy $ac_prog; ac_word=$2 27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27859 $as_echo_n "checking for $ac_word... " >&6; } 27860 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27861 $as_echo_n "(cached) " >&6 27862 else 27863 case $POTENTIAL_CC in 27864 [\\/]* | ?:[\\/]*) 27865 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27866 ;; 27867 *) 27868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27869 for as_dir in $PATH 27870 do 27871 IFS=$as_save_IFS 27872 test -z "$as_dir" && as_dir=. 27873 for ac_exec_ext in '' $ac_executable_extensions; do 27874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27875 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27877 break 2 27878 fi 27879 done 27880 done 27881 IFS=$as_save_IFS 27882 27883 ;; 27884 esac 27885 fi 27886 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27887 if test -n "$POTENTIAL_CC"; then 27888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27889 $as_echo "$POTENTIAL_CC" >&6; } 27890 else 27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27892 $as_echo "no" >&6; } 27893 fi 27894 27895 27896 test -n "$POTENTIAL_CC" && break 27897 done 27898 27899 CC=$POTENTIAL_CC 27900 fi 27901 27902 if test "x$CC" = x; then 27903 27904 # Print a helpful message on how to acquire the necessary build dependency. 27905 # devkit is the help tag: freetype, cups, pulse, alsa etc 27906 MISSING_DEPENDENCY=devkit 27907 27908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27909 cygwin_help $MISSING_DEPENDENCY 27910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27911 msys_help $MISSING_DEPENDENCY 27912 else 27913 PKGHANDLER_COMMAND= 27914 27915 case $PKGHANDLER in 27916 apt-get) 27917 apt_help $MISSING_DEPENDENCY ;; 27918 yum) 27919 yum_help $MISSING_DEPENDENCY ;; 27920 port) 27921 port_help $MISSING_DEPENDENCY ;; 27922 pkgutil) 27923 pkgutil_help $MISSING_DEPENDENCY ;; 27924 pkgadd) 27925 pkgadd_help $MISSING_DEPENDENCY ;; 27926 esac 27927 27928 if test "x$PKGHANDLER_COMMAND" != x; then 27929 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27930 fi 27931 fi 27932 27933 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27934 fi 27935 fi 27936 27937 # Now we have a compiler binary in CC. Make sure it's okay. 27938 27939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27940 27941 # First separate the path from the arguments. This will split at the first 27942 # space. 27943 complete="$CC" 27944 path="${complete%% *}" 27945 tmp="$complete EOL" 27946 arguments="${tmp#* }" 27947 27948 # Input might be given as Windows format, start by converting to 27949 # unix format. 27950 new_path=`$CYGPATH -u "$path"` 27951 27952 # Now try to locate executable using which 27953 new_path=`$WHICH "$new_path" 2> /dev/null` 27954 # bat and cmd files are not always considered executable in cygwin causing which 27955 # to not find them 27956 if test "x$new_path" = x \ 27957 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27958 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27959 new_path=`$CYGPATH -u "$path"` 27960 fi 27961 if test "x$new_path" = x; then 27962 # Oops. Which didn't find the executable. 27963 # The splitting of arguments from the executable at a space might have been incorrect, 27964 # since paths with space are more likely in Windows. Give it another try with the whole 27965 # argument. 27966 path="$complete" 27967 arguments="EOL" 27968 new_path=`$CYGPATH -u "$path"` 27969 new_path=`$WHICH "$new_path" 2> /dev/null` 27970 # bat and cmd files are not always considered executable in cygwin causing which 27971 # to not find them 27972 if test "x$new_path" = x \ 27973 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27974 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27975 new_path=`$CYGPATH -u "$path"` 27976 fi 27977 if test "x$new_path" = x; then 27978 # It's still not found. Now this is an unrecoverable error. 27979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27980 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27981 has_space=`$ECHO "$complete" | $GREP " "` 27982 if test "x$has_space" != x; then 27983 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27984 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27985 fi 27986 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27987 fi 27988 fi 27989 27990 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27991 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27992 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27993 # "foo.exe" is OK but "foo" is an error. 27994 # 27995 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27996 # It is also a way to make sure we got the proper file name for the real test later on. 27997 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27998 if test "x$test_shortpath" = x; then 27999 # Short path failed, file does not exist as specified. 28000 # Try adding .exe or .cmd 28001 if test -f "${new_path}.exe"; then 28002 input_to_shortpath="${new_path}.exe" 28003 elif test -f "${new_path}.cmd"; then 28004 input_to_shortpath="${new_path}.cmd" 28005 else 28006 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28007 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28008 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28009 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28010 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28011 fi 28012 else 28013 input_to_shortpath="$new_path" 28014 fi 28015 28016 # Call helper function which possibly converts this using DOS-style short mode. 28017 # If so, the updated path is stored in $new_path. 28018 new_path="$input_to_shortpath" 28019 28020 input_path="$input_to_shortpath" 28021 # Check if we need to convert this using DOS-style short mode. If the path 28022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28023 # take no chances and rewrite it. 28024 # Note: m4 eats our [], so we need to use [ and ] instead. 28025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28026 if test "x$has_forbidden_chars" != x; then 28027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28028 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28029 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28030 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28031 # Going to short mode and back again did indeed matter. Since short mode is 28032 # case insensitive, let's make it lowercase to improve readability. 28033 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28034 # Now convert it back to Unix-stile (cygpath) 28035 input_path=`$CYGPATH -u "$shortmode_path"` 28036 new_path="$input_path" 28037 fi 28038 fi 28039 28040 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28041 if test "x$test_cygdrive_prefix" = x; then 28042 # As a simple fix, exclude /usr/bin since it's not a real path. 28043 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28044 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28045 # a path prefixed by /cygdrive for fixpath to work. 28046 new_path="$CYGWIN_ROOT_PATH$input_path" 28047 fi 28048 fi 28049 28050 # remove trailing .exe if any 28051 new_path="${new_path/%.exe/}" 28052 28053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28054 28055 # First separate the path from the arguments. This will split at the first 28056 # space. 28057 complete="$CC" 28058 path="${complete%% *}" 28059 tmp="$complete EOL" 28060 arguments="${tmp#* }" 28061 28062 # Input might be given as Windows format, start by converting to 28063 # unix format. 28064 new_path="$path" 28065 28066 windows_path="$new_path" 28067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28068 unix_path=`$CYGPATH -u "$windows_path"` 28069 new_path="$unix_path" 28070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28072 new_path="$unix_path" 28073 fi 28074 28075 28076 # Now try to locate executable using which 28077 new_path=`$WHICH "$new_path" 2> /dev/null` 28078 28079 if test "x$new_path" = x; then 28080 # Oops. Which didn't find the executable. 28081 # The splitting of arguments from the executable at a space might have been incorrect, 28082 # since paths with space are more likely in Windows. Give it another try with the whole 28083 # argument. 28084 path="$complete" 28085 arguments="EOL" 28086 new_path="$path" 28087 28088 windows_path="$new_path" 28089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28090 unix_path=`$CYGPATH -u "$windows_path"` 28091 new_path="$unix_path" 28092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28094 new_path="$unix_path" 28095 fi 28096 28097 28098 new_path=`$WHICH "$new_path" 2> /dev/null` 28099 # bat and cmd files are not always considered executable in MSYS causing which 28100 # to not find them 28101 if test "x$new_path" = x \ 28102 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28103 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28104 new_path="$path" 28105 28106 windows_path="$new_path" 28107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28108 unix_path=`$CYGPATH -u "$windows_path"` 28109 new_path="$unix_path" 28110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28111 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28112 new_path="$unix_path" 28113 fi 28114 28115 fi 28116 28117 if test "x$new_path" = x; then 28118 # It's still not found. Now this is an unrecoverable error. 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28120 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28121 has_space=`$ECHO "$complete" | $GREP " "` 28122 if test "x$has_space" != x; then 28123 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28124 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28125 fi 28126 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28127 fi 28128 fi 28129 28130 # Now new_path has a complete unix path to the binary 28131 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28132 # Keep paths in /bin as-is, but remove trailing .exe if any 28133 new_path="${new_path/%.exe/}" 28134 # Do not save /bin paths to all_fixpath_prefixes! 28135 else 28136 # Not in mixed or Windows style, start by that. 28137 new_path=`cmd //c echo $new_path` 28138 28139 input_path="$new_path" 28140 # Check if we need to convert this using DOS-style short mode. If the path 28141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28142 # take no chances and rewrite it. 28143 # Note: m4 eats our [], so we need to use [ and ] instead. 28144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28145 if test "x$has_forbidden_chars" != x; then 28146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28147 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28148 fi 28149 28150 # Output is in $new_path 28151 28152 windows_path="$new_path" 28153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28154 unix_path=`$CYGPATH -u "$windows_path"` 28155 new_path="$unix_path" 28156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28158 new_path="$unix_path" 28159 fi 28160 28161 # remove trailing .exe if any 28162 new_path="${new_path/%.exe/}" 28163 28164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28166 fi 28167 28168 else 28169 # We're on a posix platform. Hooray! :) 28170 # First separate the path from the arguments. This will split at the first 28171 # space. 28172 complete="$CC" 28173 path="${complete%% *}" 28174 tmp="$complete EOL" 28175 arguments="${tmp#* }" 28176 28177 # Cannot rely on the command "which" here since it doesn't always work. 28178 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28179 if test -z "$is_absolute_path"; then 28180 # Path to executable is not absolute. Find it. 28181 IFS_save="$IFS" 28182 IFS=: 28183 for p in $PATH; do 28184 if test -f "$p/$path" && test -x "$p/$path"; then 28185 new_path="$p/$path" 28186 break 28187 fi 28188 done 28189 IFS="$IFS_save" 28190 else 28191 # This is an absolute path, we can use it without further modifications. 28192 new_path="$path" 28193 fi 28194 28195 if test "x$new_path" = x; then 28196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28197 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28198 has_space=`$ECHO "$complete" | $GREP " "` 28199 if test "x$has_space" != x; then 28200 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28201 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28202 fi 28203 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28204 fi 28205 fi 28206 28207 # Now join together the path and the arguments once again 28208 if test "x$arguments" != xEOL; then 28209 new_complete="$new_path ${arguments% *}" 28210 else 28211 new_complete="$new_path" 28212 fi 28213 28214 if test "x$complete" != "x$new_complete"; then 28215 CC="$new_complete" 28216 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28217 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28218 fi 28219 28220 TEST_COMPILER="$CC" 28221 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28222 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28223 if test "x$OPENJDK_BUILD_OS" != xaix; then 28224 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28226 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28227 28228 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28229 # Follow a chain of symbolic links. Use readlink 28230 # where it exists, else fall back to horribly 28231 # complicated shell code. 28232 if test "x$READLINK_TESTED" != yes; then 28233 # On MacOSX there is a readlink tool with a different 28234 # purpose than the GNU readlink tool. Check the found readlink. 28235 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28236 if test "x$ISGNU" = x; then 28237 # A readlink that we do not know how to use. 28238 # Are there other non-GNU readlinks out there? 28239 READLINK_TESTED=yes 28240 READLINK= 28241 fi 28242 fi 28243 28244 if test "x$READLINK" != x; then 28245 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28246 else 28247 # Save the current directory for restoring afterwards 28248 STARTDIR=$PWD 28249 COUNTER=0 28250 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28251 sym_link_file=`$BASENAME $TEST_COMPILER` 28252 cd $sym_link_dir 28253 # Use -P flag to resolve symlinks in directories. 28254 cd `$THEPWDCMD -P` 28255 sym_link_dir=`$THEPWDCMD -P` 28256 # Resolve file symlinks 28257 while test $COUNTER -lt 20; do 28258 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28259 if test "x$ISLINK" == x; then 28260 # This is not a symbolic link! We are done! 28261 break 28262 fi 28263 # Again resolve directory symlinks since the target of the just found 28264 # link could be in a different directory 28265 cd `$DIRNAME $ISLINK` 28266 sym_link_dir=`$THEPWDCMD -P` 28267 sym_link_file=`$BASENAME $ISLINK` 28268 let COUNTER=COUNTER+1 28269 done 28270 cd $STARTDIR 28271 TEST_COMPILER=$sym_link_dir/$sym_link_file 28272 fi 28273 fi 28274 28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28276 $as_echo "$TEST_COMPILER" >&6; } 28277 fi 28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28279 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28280 28281 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28282 if test "x$COMPILER_BASENAME" = "xccache"; then 28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28284 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28285 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28286 # We want to control ccache invocation ourselves, so ignore this cc and try 28287 # searching again. 28288 28289 # Remove the path to the fake ccache cc from the PATH 28290 RETRY_COMPILER_SAVED_PATH="$PATH" 28291 COMPILER_DIRNAME=`$DIRNAME $CC` 28292 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28293 28294 # Try again looking for our compiler 28295 if test -n "$ac_tool_prefix"; then 28296 for ac_prog in $TOOLCHAIN_CC_BINARY 28297 do 28298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28301 $as_echo_n "checking for $ac_word... " >&6; } 28302 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28303 $as_echo_n "(cached) " >&6 28304 else 28305 if test -n "$PROPER_COMPILER_CC"; then 28306 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28307 else 28308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28309 for as_dir in $PATH 28310 do 28311 IFS=$as_save_IFS 28312 test -z "$as_dir" && as_dir=. 28313 for ac_exec_ext in '' $ac_executable_extensions; do 28314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28315 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28317 break 2 28318 fi 28319 done 28320 done 28321 IFS=$as_save_IFS 28322 28323 fi 28324 fi 28325 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28326 if test -n "$PROPER_COMPILER_CC"; then 28327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28328 $as_echo "$PROPER_COMPILER_CC" >&6; } 28329 else 28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28331 $as_echo "no" >&6; } 28332 fi 28333 28334 28335 test -n "$PROPER_COMPILER_CC" && break 28336 done 28337 fi 28338 if test -z "$PROPER_COMPILER_CC"; then 28339 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28340 for ac_prog in $TOOLCHAIN_CC_BINARY 28341 do 28342 # Extract the first word of "$ac_prog", so it can be a program name with args. 28343 set dummy $ac_prog; ac_word=$2 28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28345 $as_echo_n "checking for $ac_word... " >&6; } 28346 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28347 $as_echo_n "(cached) " >&6 28348 else 28349 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28350 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28351 else 28352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28353 for as_dir in $PATH 28354 do 28355 IFS=$as_save_IFS 28356 test -z "$as_dir" && as_dir=. 28357 for ac_exec_ext in '' $ac_executable_extensions; do 28358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28359 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28361 break 2 28362 fi 28363 done 28364 done 28365 IFS=$as_save_IFS 28366 28367 fi 28368 fi 28369 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28370 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28372 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28373 else 28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28375 $as_echo "no" >&6; } 28376 fi 28377 28378 28379 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28380 done 28381 28382 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28383 PROPER_COMPILER_CC="" 28384 else 28385 case $cross_compiling:$ac_tool_warned in 28386 yes:) 28387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28389 ac_tool_warned=yes ;; 28390 esac 28391 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28392 fi 28393 fi 28394 28395 28396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28397 28398 # First separate the path from the arguments. This will split at the first 28399 # space. 28400 complete="$PROPER_COMPILER_CC" 28401 path="${complete%% *}" 28402 tmp="$complete EOL" 28403 arguments="${tmp#* }" 28404 28405 # Input might be given as Windows format, start by converting to 28406 # unix format. 28407 new_path=`$CYGPATH -u "$path"` 28408 28409 # Now try to locate executable using which 28410 new_path=`$WHICH "$new_path" 2> /dev/null` 28411 # bat and cmd files are not always considered executable in cygwin causing which 28412 # to not find them 28413 if test "x$new_path" = x \ 28414 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28415 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28416 new_path=`$CYGPATH -u "$path"` 28417 fi 28418 if test "x$new_path" = x; then 28419 # Oops. Which didn't find the executable. 28420 # The splitting of arguments from the executable at a space might have been incorrect, 28421 # since paths with space are more likely in Windows. Give it another try with the whole 28422 # argument. 28423 path="$complete" 28424 arguments="EOL" 28425 new_path=`$CYGPATH -u "$path"` 28426 new_path=`$WHICH "$new_path" 2> /dev/null` 28427 # bat and cmd files are not always considered executable in cygwin causing which 28428 # to not find them 28429 if test "x$new_path" = x \ 28430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28432 new_path=`$CYGPATH -u "$path"` 28433 fi 28434 if test "x$new_path" = x; then 28435 # It's still not found. Now this is an unrecoverable error. 28436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28437 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28438 has_space=`$ECHO "$complete" | $GREP " "` 28439 if test "x$has_space" != x; then 28440 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28441 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28442 fi 28443 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28444 fi 28445 fi 28446 28447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28450 # "foo.exe" is OK but "foo" is an error. 28451 # 28452 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28453 # It is also a way to make sure we got the proper file name for the real test later on. 28454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28455 if test "x$test_shortpath" = x; then 28456 # Short path failed, file does not exist as specified. 28457 # Try adding .exe or .cmd 28458 if test -f "${new_path}.exe"; then 28459 input_to_shortpath="${new_path}.exe" 28460 elif test -f "${new_path}.cmd"; then 28461 input_to_shortpath="${new_path}.cmd" 28462 else 28463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28464 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28465 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28466 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28467 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28468 fi 28469 else 28470 input_to_shortpath="$new_path" 28471 fi 28472 28473 # Call helper function which possibly converts this using DOS-style short mode. 28474 # If so, the updated path is stored in $new_path. 28475 new_path="$input_to_shortpath" 28476 28477 input_path="$input_to_shortpath" 28478 # Check if we need to convert this using DOS-style short mode. If the path 28479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28480 # take no chances and rewrite it. 28481 # Note: m4 eats our [], so we need to use [ and ] instead. 28482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28483 if test "x$has_forbidden_chars" != x; then 28484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28488 # Going to short mode and back again did indeed matter. Since short mode is 28489 # case insensitive, let's make it lowercase to improve readability. 28490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28491 # Now convert it back to Unix-stile (cygpath) 28492 input_path=`$CYGPATH -u "$shortmode_path"` 28493 new_path="$input_path" 28494 fi 28495 fi 28496 28497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28498 if test "x$test_cygdrive_prefix" = x; then 28499 # As a simple fix, exclude /usr/bin since it's not a real path. 28500 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28502 # a path prefixed by /cygdrive for fixpath to work. 28503 new_path="$CYGWIN_ROOT_PATH$input_path" 28504 fi 28505 fi 28506 28507 # remove trailing .exe if any 28508 new_path="${new_path/%.exe/}" 28509 28510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28511 28512 # First separate the path from the arguments. This will split at the first 28513 # space. 28514 complete="$PROPER_COMPILER_CC" 28515 path="${complete%% *}" 28516 tmp="$complete EOL" 28517 arguments="${tmp#* }" 28518 28519 # Input might be given as Windows format, start by converting to 28520 # unix format. 28521 new_path="$path" 28522 28523 windows_path="$new_path" 28524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28525 unix_path=`$CYGPATH -u "$windows_path"` 28526 new_path="$unix_path" 28527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28529 new_path="$unix_path" 28530 fi 28531 28532 28533 # Now try to locate executable using which 28534 new_path=`$WHICH "$new_path" 2> /dev/null` 28535 28536 if test "x$new_path" = x; then 28537 # Oops. Which didn't find the executable. 28538 # The splitting of arguments from the executable at a space might have been incorrect, 28539 # since paths with space are more likely in Windows. Give it another try with the whole 28540 # argument. 28541 path="$complete" 28542 arguments="EOL" 28543 new_path="$path" 28544 28545 windows_path="$new_path" 28546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28547 unix_path=`$CYGPATH -u "$windows_path"` 28548 new_path="$unix_path" 28549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28551 new_path="$unix_path" 28552 fi 28553 28554 28555 new_path=`$WHICH "$new_path" 2> /dev/null` 28556 # bat and cmd files are not always considered executable in MSYS causing which 28557 # to not find them 28558 if test "x$new_path" = x \ 28559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28561 new_path="$path" 28562 28563 windows_path="$new_path" 28564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28565 unix_path=`$CYGPATH -u "$windows_path"` 28566 new_path="$unix_path" 28567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28569 new_path="$unix_path" 28570 fi 28571 28572 fi 28573 28574 if test "x$new_path" = x; then 28575 # It's still not found. Now this is an unrecoverable error. 28576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28577 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28578 has_space=`$ECHO "$complete" | $GREP " "` 28579 if test "x$has_space" != x; then 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28582 fi 28583 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28584 fi 28585 fi 28586 28587 # Now new_path has a complete unix path to the binary 28588 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28589 # Keep paths in /bin as-is, but remove trailing .exe if any 28590 new_path="${new_path/%.exe/}" 28591 # Do not save /bin paths to all_fixpath_prefixes! 28592 else 28593 # Not in mixed or Windows style, start by that. 28594 new_path=`cmd //c echo $new_path` 28595 28596 input_path="$new_path" 28597 # Check if we need to convert this using DOS-style short mode. If the path 28598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28599 # take no chances and rewrite it. 28600 # Note: m4 eats our [], so we need to use [ and ] instead. 28601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28602 if test "x$has_forbidden_chars" != x; then 28603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28605 fi 28606 28607 # Output is in $new_path 28608 28609 windows_path="$new_path" 28610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28611 unix_path=`$CYGPATH -u "$windows_path"` 28612 new_path="$unix_path" 28613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28615 new_path="$unix_path" 28616 fi 28617 28618 # remove trailing .exe if any 28619 new_path="${new_path/%.exe/}" 28620 28621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28623 fi 28624 28625 else 28626 # We're on a posix platform. Hooray! :) 28627 # First separate the path from the arguments. This will split at the first 28628 # space. 28629 complete="$PROPER_COMPILER_CC" 28630 path="${complete%% *}" 28631 tmp="$complete EOL" 28632 arguments="${tmp#* }" 28633 28634 # Cannot rely on the command "which" here since it doesn't always work. 28635 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28636 if test -z "$is_absolute_path"; then 28637 # Path to executable is not absolute. Find it. 28638 IFS_save="$IFS" 28639 IFS=: 28640 for p in $PATH; do 28641 if test -f "$p/$path" && test -x "$p/$path"; then 28642 new_path="$p/$path" 28643 break 28644 fi 28645 done 28646 IFS="$IFS_save" 28647 else 28648 # This is an absolute path, we can use it without further modifications. 28649 new_path="$path" 28650 fi 28651 28652 if test "x$new_path" = x; then 28653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28654 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28655 has_space=`$ECHO "$complete" | $GREP " "` 28656 if test "x$has_space" != x; then 28657 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28658 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28659 fi 28660 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28661 fi 28662 fi 28663 28664 # Now join together the path and the arguments once again 28665 if test "x$arguments" != xEOL; then 28666 new_complete="$new_path ${arguments% *}" 28667 else 28668 new_complete="$new_path" 28669 fi 28670 28671 if test "x$complete" != "x$new_complete"; then 28672 PROPER_COMPILER_CC="$new_complete" 28673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28674 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28675 fi 28676 28677 PATH="$RETRY_COMPILER_SAVED_PATH" 28678 28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28680 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28681 28682 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28683 # Follow a chain of symbolic links. Use readlink 28684 # where it exists, else fall back to horribly 28685 # complicated shell code. 28686 if test "x$READLINK_TESTED" != yes; then 28687 # On MacOSX there is a readlink tool with a different 28688 # purpose than the GNU readlink tool. Check the found readlink. 28689 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28690 if test "x$ISGNU" = x; then 28691 # A readlink that we do not know how to use. 28692 # Are there other non-GNU readlinks out there? 28693 READLINK_TESTED=yes 28694 READLINK= 28695 fi 28696 fi 28697 28698 if test "x$READLINK" != x; then 28699 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28700 else 28701 # Save the current directory for restoring afterwards 28702 STARTDIR=$PWD 28703 COUNTER=0 28704 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28705 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28706 cd $sym_link_dir 28707 # Use -P flag to resolve symlinks in directories. 28708 cd `$THEPWDCMD -P` 28709 sym_link_dir=`$THEPWDCMD -P` 28710 # Resolve file symlinks 28711 while test $COUNTER -lt 20; do 28712 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28713 if test "x$ISLINK" == x; then 28714 # This is not a symbolic link! We are done! 28715 break 28716 fi 28717 # Again resolve directory symlinks since the target of the just found 28718 # link could be in a different directory 28719 cd `$DIRNAME $ISLINK` 28720 sym_link_dir=`$THEPWDCMD -P` 28721 sym_link_file=`$BASENAME $ISLINK` 28722 let COUNTER=COUNTER+1 28723 done 28724 cd $STARTDIR 28725 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28726 fi 28727 fi 28728 28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28730 $as_echo "$PROPER_COMPILER_CC" >&6; } 28731 CC="$PROPER_COMPILER_CC" 28732 else 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28734 $as_echo "no, keeping CC" >&6; } 28735 fi 28736 28737 28738 COMPILER=$CC 28739 COMPILER_NAME=$COMPILER_NAME 28740 28741 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28742 # cc -V output typically looks like 28743 # cc: Sun C 5.12 Linux_i386 2011/11/16 28744 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28745 # Check that this is likely to be the Solaris Studio cc. 28746 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28747 if test $? -ne 0; then 28748 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28749 { $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 28750 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28751 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28752 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28753 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28754 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28755 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28756 fi 28757 # Remove usage instructions (if present), and 28758 # collapse compiler output into a single line 28759 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28760 $SED -e 's/ *[Uu]sage:.*//'` 28761 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28762 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28763 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28764 # xlc -qversion output typically looks like 28765 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28766 # Version: 11.01.0000.0015 28767 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28768 # Check that this is likely to be the IBM XL C compiler. 28769 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28770 if test $? -ne 0; then 28771 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28772 { $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 28773 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28774 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28775 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28776 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28777 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28778 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28779 fi 28780 # Collapse compiler output into a single line 28781 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28782 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28783 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28784 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28785 # There is no specific version flag, but all output starts with a version string. 28786 # First line typically looks something like: 28787 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28788 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28789 # Check that this is likely to be Microsoft CL.EXE. 28790 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28791 if test $? -ne 0; then 28792 { $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 28793 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28794 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28795 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28796 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28797 fi 28798 # Collapse compiler output into a single line 28799 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28800 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28801 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28802 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28803 # gcc --version output typically looks like 28804 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28805 # Copyright (C) 2013 Free Software Foundation, Inc. 28806 # This is free software; see the source for copying conditions. There is NO 28807 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28808 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28809 # Check that this is likely to be GCC. 28810 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28811 if test $? -ne 0; then 28812 { $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 28813 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28814 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28815 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28816 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28817 fi 28818 # Remove Copyright and legalese from version string, and 28819 # collapse into a single line 28820 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28821 $SED -e 's/ *Copyright .*//'` 28822 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28823 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28824 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28825 # clang --version output typically looks like 28826 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28827 # clang version 3.3 (tags/RELEASE_33/final) 28828 # or 28829 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28830 # Target: x86_64-pc-linux-gnu 28831 # Thread model: posix 28832 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28833 # Check that this is likely to be clang 28834 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28835 if test $? -ne 0; then 28836 { $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 28837 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28839 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28840 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28841 fi 28842 # Collapse compiler output into a single line 28843 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28844 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28845 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28846 else 28847 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28848 fi 28849 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28850 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28851 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28852 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28853 28854 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28855 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28856 28857 28858 # Now that we have resolved CC ourself, let autoconf have its go at it 28859 ac_ext=c 28860 ac_cpp='$CPP $CPPFLAGS' 28861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28863 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28864 if test -n "$ac_tool_prefix"; then 28865 for ac_prog in $CC 28866 do 28867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28870 $as_echo_n "checking for $ac_word... " >&6; } 28871 if ${ac_cv_prog_CC+:} false; then : 28872 $as_echo_n "(cached) " >&6 28873 else 28874 if test -n "$CC"; then 28875 ac_cv_prog_CC="$CC" # Let the user override the test. 28876 else 28877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28878 for as_dir in $PATH 28879 do 28880 IFS=$as_save_IFS 28881 test -z "$as_dir" && as_dir=. 28882 for ac_exec_ext in '' $ac_executable_extensions; do 28883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28886 break 2 28887 fi 28888 done 28889 done 28890 IFS=$as_save_IFS 28891 28892 fi 28893 fi 28894 CC=$ac_cv_prog_CC 28895 if test -n "$CC"; then 28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28897 $as_echo "$CC" >&6; } 28898 else 28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28900 $as_echo "no" >&6; } 28901 fi 28902 28903 28904 test -n "$CC" && break 28905 done 28906 fi 28907 if test -z "$CC"; then 28908 ac_ct_CC=$CC 28909 for ac_prog in $CC 28910 do 28911 # Extract the first word of "$ac_prog", so it can be a program name with args. 28912 set dummy $ac_prog; ac_word=$2 28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28914 $as_echo_n "checking for $ac_word... " >&6; } 28915 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28916 $as_echo_n "(cached) " >&6 28917 else 28918 if test -n "$ac_ct_CC"; then 28919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28920 else 28921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28922 for as_dir in $PATH 28923 do 28924 IFS=$as_save_IFS 28925 test -z "$as_dir" && as_dir=. 28926 for ac_exec_ext in '' $ac_executable_extensions; do 28927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28928 ac_cv_prog_ac_ct_CC="$ac_prog" 28929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28930 break 2 28931 fi 28932 done 28933 done 28934 IFS=$as_save_IFS 28935 28936 fi 28937 fi 28938 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28939 if test -n "$ac_ct_CC"; then 28940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28941 $as_echo "$ac_ct_CC" >&6; } 28942 else 28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28944 $as_echo "no" >&6; } 28945 fi 28946 28947 28948 test -n "$ac_ct_CC" && break 28949 done 28950 28951 if test "x$ac_ct_CC" = x; then 28952 CC="" 28953 else 28954 case $cross_compiling:$ac_tool_warned in 28955 yes:) 28956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28958 ac_tool_warned=yes ;; 28959 esac 28960 CC=$ac_ct_CC 28961 fi 28962 fi 28963 28964 28965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28967 as_fn_error $? "no acceptable C compiler found in \$PATH 28968 See \`config.log' for more details" "$LINENO" 5; } 28969 28970 # Provide some information about the compiler. 28971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28972 set X $ac_compile 28973 ac_compiler=$2 28974 for ac_option in --version -v -V -qversion; do 28975 { { ac_try="$ac_compiler $ac_option >&5" 28976 case "(($ac_try" in 28977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28978 *) ac_try_echo=$ac_try;; 28979 esac 28980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28981 $as_echo "$ac_try_echo"; } >&5 28982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28983 ac_status=$? 28984 if test -s conftest.err; then 28985 sed '10a\ 28986 ... rest of stderr output deleted ... 28987 10q' conftest.err >conftest.er1 28988 cat conftest.er1 >&5 28989 fi 28990 rm -f conftest.er1 conftest.err 28991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28992 test $ac_status = 0; } 28993 done 28994 28995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28996 /* end confdefs.h. */ 28997 28998 int 28999 main () 29000 { 29001 29002 ; 29003 return 0; 29004 } 29005 _ACEOF 29006 ac_clean_files_save=$ac_clean_files 29007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29008 # Try to create an executable without -o first, disregard a.out. 29009 # It will help us diagnose broken compilers, and finding out an intuition 29010 # of exeext. 29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29012 $as_echo_n "checking whether the C compiler works... " >&6; } 29013 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29014 29015 # The possible output files: 29016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29017 29018 ac_rmfiles= 29019 for ac_file in $ac_files 29020 do 29021 case $ac_file in 29022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29023 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29024 esac 29025 done 29026 rm -f $ac_rmfiles 29027 29028 if { { ac_try="$ac_link_default" 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_link_default") 2>&5 29036 ac_status=$? 29037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29038 test $ac_status = 0; }; then : 29039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29041 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29042 # so that the user can short-circuit this test for compilers unknown to 29043 # Autoconf. 29044 for ac_file in $ac_files '' 29045 do 29046 test -f "$ac_file" || continue 29047 case $ac_file in 29048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29049 ;; 29050 [ab].out ) 29051 # We found the default executable, but exeext='' is most 29052 # certainly right. 29053 break;; 29054 *.* ) 29055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29056 then :; else 29057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29058 fi 29059 # We set ac_cv_exeext here because the later test for it is not 29060 # safe: cross compilers may not add the suffix if given an `-o' 29061 # argument, so we may need to know it at that point already. 29062 # Even if this section looks crufty: it has the advantage of 29063 # actually working. 29064 break;; 29065 * ) 29066 break;; 29067 esac 29068 done 29069 test "$ac_cv_exeext" = no && ac_cv_exeext= 29070 29071 else 29072 ac_file='' 29073 fi 29074 if test -z "$ac_file"; then : 29075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29076 $as_echo "no" >&6; } 29077 $as_echo "$as_me: failed program was:" >&5 29078 sed 's/^/| /' conftest.$ac_ext >&5 29079 29080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29082 as_fn_error 77 "C compiler cannot create executables 29083 See \`config.log' for more details" "$LINENO" 5; } 29084 else 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29086 $as_echo "yes" >&6; } 29087 fi 29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29089 $as_echo_n "checking for C compiler default output file name... " >&6; } 29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29091 $as_echo "$ac_file" >&6; } 29092 ac_exeext=$ac_cv_exeext 29093 29094 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29095 ac_clean_files=$ac_clean_files_save 29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29097 $as_echo_n "checking for suffix of executables... " >&6; } 29098 if { { ac_try="$ac_link" 29099 case "(($ac_try" in 29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29101 *) ac_try_echo=$ac_try;; 29102 esac 29103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29104 $as_echo "$ac_try_echo"; } >&5 29105 (eval "$ac_link") 2>&5 29106 ac_status=$? 29107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29108 test $ac_status = 0; }; then : 29109 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29111 # work properly (i.e., refer to `conftest.exe'), while it won't with 29112 # `rm'. 29113 for ac_file in conftest.exe conftest conftest.*; do 29114 test -f "$ac_file" || continue 29115 case $ac_file in 29116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29118 break;; 29119 * ) break;; 29120 esac 29121 done 29122 else 29123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29125 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29126 See \`config.log' for more details" "$LINENO" 5; } 29127 fi 29128 rm -f conftest conftest$ac_cv_exeext 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29130 $as_echo "$ac_cv_exeext" >&6; } 29131 29132 rm -f conftest.$ac_ext 29133 EXEEXT=$ac_cv_exeext 29134 ac_exeext=$EXEEXT 29135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29136 /* end confdefs.h. */ 29137 #include <stdio.h> 29138 int 29139 main () 29140 { 29141 FILE *f = fopen ("conftest.out", "w"); 29142 return ferror (f) || fclose (f) != 0; 29143 29144 ; 29145 return 0; 29146 } 29147 _ACEOF 29148 ac_clean_files="$ac_clean_files conftest.out" 29149 # Check that the compiler produces executables we can run. If not, either 29150 # the compiler is broken, or we cross compile. 29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29152 $as_echo_n "checking whether we are cross compiling... " >&6; } 29153 if test "$cross_compiling" != yes; then 29154 { { ac_try="$ac_link" 29155 case "(($ac_try" in 29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29157 *) ac_try_echo=$ac_try;; 29158 esac 29159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29160 $as_echo "$ac_try_echo"; } >&5 29161 (eval "$ac_link") 2>&5 29162 ac_status=$? 29163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29164 test $ac_status = 0; } 29165 if { ac_try='./conftest$ac_cv_exeext' 29166 { { case "(($ac_try" in 29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29168 *) ac_try_echo=$ac_try;; 29169 esac 29170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29171 $as_echo "$ac_try_echo"; } >&5 29172 (eval "$ac_try") 2>&5 29173 ac_status=$? 29174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29175 test $ac_status = 0; }; }; then 29176 cross_compiling=no 29177 else 29178 if test "$cross_compiling" = maybe; then 29179 cross_compiling=yes 29180 else 29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29183 as_fn_error $? "cannot run C compiled programs. 29184 If you meant to cross compile, use \`--host'. 29185 See \`config.log' for more details" "$LINENO" 5; } 29186 fi 29187 fi 29188 fi 29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29190 $as_echo "$cross_compiling" >&6; } 29191 29192 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29193 ac_clean_files=$ac_clean_files_save 29194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29195 $as_echo_n "checking for suffix of object files... " >&6; } 29196 if ${ac_cv_objext+:} false; then : 29197 $as_echo_n "(cached) " >&6 29198 else 29199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29200 /* end confdefs.h. */ 29201 29202 int 29203 main () 29204 { 29205 29206 ; 29207 return 0; 29208 } 29209 _ACEOF 29210 rm -f conftest.o conftest.obj 29211 if { { ac_try="$ac_compile" 29212 case "(($ac_try" in 29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29214 *) ac_try_echo=$ac_try;; 29215 esac 29216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29217 $as_echo "$ac_try_echo"; } >&5 29218 (eval "$ac_compile") 2>&5 29219 ac_status=$? 29220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29221 test $ac_status = 0; }; then : 29222 for ac_file in conftest.o conftest.obj conftest.*; do 29223 test -f "$ac_file" || continue; 29224 case $ac_file in 29225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29227 break;; 29228 esac 29229 done 29230 else 29231 $as_echo "$as_me: failed program was:" >&5 29232 sed 's/^/| /' conftest.$ac_ext >&5 29233 29234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29236 as_fn_error $? "cannot compute suffix of object files: cannot compile 29237 See \`config.log' for more details" "$LINENO" 5; } 29238 fi 29239 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29240 fi 29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29242 $as_echo "$ac_cv_objext" >&6; } 29243 OBJEXT=$ac_cv_objext 29244 ac_objext=$OBJEXT 29245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29247 if ${ac_cv_c_compiler_gnu+:} false; then : 29248 $as_echo_n "(cached) " >&6 29249 else 29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29251 /* end confdefs.h. */ 29252 29253 int 29254 main () 29255 { 29256 #ifndef __GNUC__ 29257 choke me 29258 #endif 29259 29260 ; 29261 return 0; 29262 } 29263 _ACEOF 29264 if ac_fn_c_try_compile "$LINENO"; then : 29265 ac_compiler_gnu=yes 29266 else 29267 ac_compiler_gnu=no 29268 fi 29269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29270 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29271 29272 fi 29273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29274 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29275 if test $ac_compiler_gnu = yes; then 29276 GCC=yes 29277 else 29278 GCC= 29279 fi 29280 ac_test_CFLAGS=${CFLAGS+set} 29281 ac_save_CFLAGS=$CFLAGS 29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29283 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29284 if ${ac_cv_prog_cc_g+:} false; then : 29285 $as_echo_n "(cached) " >&6 29286 else 29287 ac_save_c_werror_flag=$ac_c_werror_flag 29288 ac_c_werror_flag=yes 29289 ac_cv_prog_cc_g=no 29290 CFLAGS="-g" 29291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29292 /* end confdefs.h. */ 29293 29294 int 29295 main () 29296 { 29297 29298 ; 29299 return 0; 29300 } 29301 _ACEOF 29302 if ac_fn_c_try_compile "$LINENO"; then : 29303 ac_cv_prog_cc_g=yes 29304 else 29305 CFLAGS="" 29306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29307 /* end confdefs.h. */ 29308 29309 int 29310 main () 29311 { 29312 29313 ; 29314 return 0; 29315 } 29316 _ACEOF 29317 if ac_fn_c_try_compile "$LINENO"; then : 29318 29319 else 29320 ac_c_werror_flag=$ac_save_c_werror_flag 29321 CFLAGS="-g" 29322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29323 /* end confdefs.h. */ 29324 29325 int 29326 main () 29327 { 29328 29329 ; 29330 return 0; 29331 } 29332 _ACEOF 29333 if ac_fn_c_try_compile "$LINENO"; then : 29334 ac_cv_prog_cc_g=yes 29335 fi 29336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29337 fi 29338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29339 fi 29340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29341 ac_c_werror_flag=$ac_save_c_werror_flag 29342 fi 29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29344 $as_echo "$ac_cv_prog_cc_g" >&6; } 29345 if test "$ac_test_CFLAGS" = set; then 29346 CFLAGS=$ac_save_CFLAGS 29347 elif test $ac_cv_prog_cc_g = yes; then 29348 if test "$GCC" = yes; then 29349 CFLAGS="-g -O2" 29350 else 29351 CFLAGS="-g" 29352 fi 29353 else 29354 if test "$GCC" = yes; then 29355 CFLAGS="-O2" 29356 else 29357 CFLAGS= 29358 fi 29359 fi 29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29362 if ${ac_cv_prog_cc_c89+:} false; then : 29363 $as_echo_n "(cached) " >&6 29364 else 29365 ac_cv_prog_cc_c89=no 29366 ac_save_CC=$CC 29367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29368 /* end confdefs.h. */ 29369 #include <stdarg.h> 29370 #include <stdio.h> 29371 struct stat; 29372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29373 struct buf { int x; }; 29374 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29375 static char *e (p, i) 29376 char **p; 29377 int i; 29378 { 29379 return p[i]; 29380 } 29381 static char *f (char * (*g) (char **, int), char **p, ...) 29382 { 29383 char *s; 29384 va_list v; 29385 va_start (v,p); 29386 s = g (p, va_arg (v,int)); 29387 va_end (v); 29388 return s; 29389 } 29390 29391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29392 function prototypes and stuff, but not '\xHH' hex character constants. 29393 These don't provoke an error unfortunately, instead are silently treated 29394 as 'x'. The following induces an error, until -std is added to get 29395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29396 array size at least. It's necessary to write '\x00'==0 to get something 29397 that's true only with -std. */ 29398 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29399 29400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29401 inside strings and character constants. */ 29402 #define FOO(x) 'x' 29403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29404 29405 int test (int i, double x); 29406 struct s1 {int (*f) (int a);}; 29407 struct s2 {int (*f) (double a);}; 29408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29409 int argc; 29410 char **argv; 29411 int 29412 main () 29413 { 29414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29415 ; 29416 return 0; 29417 } 29418 _ACEOF 29419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29421 do 29422 CC="$ac_save_CC $ac_arg" 29423 if ac_fn_c_try_compile "$LINENO"; then : 29424 ac_cv_prog_cc_c89=$ac_arg 29425 fi 29426 rm -f core conftest.err conftest.$ac_objext 29427 test "x$ac_cv_prog_cc_c89" != "xno" && break 29428 done 29429 rm -f conftest.$ac_ext 29430 CC=$ac_save_CC 29431 29432 fi 29433 # AC_CACHE_VAL 29434 case "x$ac_cv_prog_cc_c89" in 29435 x) 29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29437 $as_echo "none needed" >&6; } ;; 29438 xno) 29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29440 $as_echo "unsupported" >&6; } ;; 29441 *) 29442 CC="$CC $ac_cv_prog_cc_c89" 29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29445 esac 29446 if test "x$ac_cv_prog_cc_c89" != xno; then : 29447 29448 fi 29449 29450 ac_ext=cpp 29451 ac_cpp='$CXXCPP $CPPFLAGS' 29452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29455 29456 29457 29458 COMPILER_NAME=C++ 29459 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29460 29461 if test "x$CXX" != x; then 29462 # User has supplied compiler name already, always let that override. 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29464 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29465 if test "x`basename $CXX`" = "x$CXX"; then 29466 # A command without a complete path is provided, search $PATH. 29467 29468 for ac_prog in $CXX 29469 do 29470 # Extract the first word of "$ac_prog", so it can be a program name with args. 29471 set dummy $ac_prog; ac_word=$2 29472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29473 $as_echo_n "checking for $ac_word... " >&6; } 29474 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29475 $as_echo_n "(cached) " >&6 29476 else 29477 case $POTENTIAL_CXX in 29478 [\\/]* | ?:[\\/]*) 29479 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29480 ;; 29481 *) 29482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29483 for as_dir in $PATH 29484 do 29485 IFS=$as_save_IFS 29486 test -z "$as_dir" && as_dir=. 29487 for ac_exec_ext in '' $ac_executable_extensions; do 29488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29489 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29491 break 2 29492 fi 29493 done 29494 done 29495 IFS=$as_save_IFS 29496 29497 ;; 29498 esac 29499 fi 29500 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29501 if test -n "$POTENTIAL_CXX"; then 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29503 $as_echo "$POTENTIAL_CXX" >&6; } 29504 else 29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29506 $as_echo "no" >&6; } 29507 fi 29508 29509 29510 test -n "$POTENTIAL_CXX" && break 29511 done 29512 29513 if test "x$POTENTIAL_CXX" != x; then 29514 CXX=$POTENTIAL_CXX 29515 else 29516 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29517 fi 29518 else 29519 # Otherwise it might already be a complete path 29520 if test ! -x "$CXX"; then 29521 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29522 fi 29523 fi 29524 else 29525 # No user supplied value. Locate compiler ourselves. 29526 29527 # If we are cross compiling, assume cross compilation tools follows the 29528 # cross compilation standard where they are prefixed with the autoconf 29529 # standard name for the target. For example the binary 29530 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29531 # If we are not cross compiling, then the default compiler name will be 29532 # used. 29533 29534 CXX= 29535 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29536 # before checking the rest of the PATH. 29537 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29538 # step, this should not be necessary. 29539 if test -n "$TOOLCHAIN_PATH"; then 29540 PATH_save="$PATH" 29541 PATH="$TOOLCHAIN_PATH" 29542 for ac_prog in $SEARCH_LIST 29543 do 29544 # Extract the first word of "$ac_prog", so it can be a program name with args. 29545 set dummy $ac_prog; ac_word=$2 29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29547 $as_echo_n "checking for $ac_word... " >&6; } 29548 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29549 $as_echo_n "(cached) " >&6 29550 else 29551 case $TOOLCHAIN_PATH_CXX in 29552 [\\/]* | ?:[\\/]*) 29553 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29554 ;; 29555 *) 29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29557 for as_dir in $PATH 29558 do 29559 IFS=$as_save_IFS 29560 test -z "$as_dir" && as_dir=. 29561 for ac_exec_ext in '' $ac_executable_extensions; do 29562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29563 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29565 break 2 29566 fi 29567 done 29568 done 29569 IFS=$as_save_IFS 29570 29571 ;; 29572 esac 29573 fi 29574 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29575 if test -n "$TOOLCHAIN_PATH_CXX"; then 29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29577 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29578 else 29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29580 $as_echo "no" >&6; } 29581 fi 29582 29583 29584 test -n "$TOOLCHAIN_PATH_CXX" && break 29585 done 29586 29587 CXX=$TOOLCHAIN_PATH_CXX 29588 PATH="$PATH_save" 29589 fi 29590 29591 # AC_PATH_PROGS can't be run multiple times with the same variable, 29592 # so create a new name for this run. 29593 if test "x$CXX" = x; then 29594 for ac_prog in $SEARCH_LIST 29595 do 29596 # Extract the first word of "$ac_prog", so it can be a program name with args. 29597 set dummy $ac_prog; ac_word=$2 29598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29599 $as_echo_n "checking for $ac_word... " >&6; } 29600 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29601 $as_echo_n "(cached) " >&6 29602 else 29603 case $POTENTIAL_CXX in 29604 [\\/]* | ?:[\\/]*) 29605 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29606 ;; 29607 *) 29608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29609 for as_dir in $PATH 29610 do 29611 IFS=$as_save_IFS 29612 test -z "$as_dir" && as_dir=. 29613 for ac_exec_ext in '' $ac_executable_extensions; do 29614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29615 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29617 break 2 29618 fi 29619 done 29620 done 29621 IFS=$as_save_IFS 29622 29623 ;; 29624 esac 29625 fi 29626 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29627 if test -n "$POTENTIAL_CXX"; then 29628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29629 $as_echo "$POTENTIAL_CXX" >&6; } 29630 else 29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29632 $as_echo "no" >&6; } 29633 fi 29634 29635 29636 test -n "$POTENTIAL_CXX" && break 29637 done 29638 29639 CXX=$POTENTIAL_CXX 29640 fi 29641 29642 if test "x$CXX" = x; then 29643 29644 # Print a helpful message on how to acquire the necessary build dependency. 29645 # devkit is the help tag: freetype, cups, pulse, alsa etc 29646 MISSING_DEPENDENCY=devkit 29647 29648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29649 cygwin_help $MISSING_DEPENDENCY 29650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29651 msys_help $MISSING_DEPENDENCY 29652 else 29653 PKGHANDLER_COMMAND= 29654 29655 case $PKGHANDLER in 29656 apt-get) 29657 apt_help $MISSING_DEPENDENCY ;; 29658 yum) 29659 yum_help $MISSING_DEPENDENCY ;; 29660 port) 29661 port_help $MISSING_DEPENDENCY ;; 29662 pkgutil) 29663 pkgutil_help $MISSING_DEPENDENCY ;; 29664 pkgadd) 29665 pkgadd_help $MISSING_DEPENDENCY ;; 29666 esac 29667 29668 if test "x$PKGHANDLER_COMMAND" != x; then 29669 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29670 fi 29671 fi 29672 29673 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29674 fi 29675 fi 29676 29677 # Now we have a compiler binary in CXX. Make sure it's okay. 29678 29679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29680 29681 # First separate the path from the arguments. This will split at the first 29682 # space. 29683 complete="$CXX" 29684 path="${complete%% *}" 29685 tmp="$complete EOL" 29686 arguments="${tmp#* }" 29687 29688 # Input might be given as Windows format, start by converting to 29689 # unix format. 29690 new_path=`$CYGPATH -u "$path"` 29691 29692 # Now try to locate executable using which 29693 new_path=`$WHICH "$new_path" 2> /dev/null` 29694 # bat and cmd files are not always considered executable in cygwin causing which 29695 # to not find them 29696 if test "x$new_path" = x \ 29697 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29698 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29699 new_path=`$CYGPATH -u "$path"` 29700 fi 29701 if test "x$new_path" = x; then 29702 # Oops. Which didn't find the executable. 29703 # The splitting of arguments from the executable at a space might have been incorrect, 29704 # since paths with space are more likely in Windows. Give it another try with the whole 29705 # argument. 29706 path="$complete" 29707 arguments="EOL" 29708 new_path=`$CYGPATH -u "$path"` 29709 new_path=`$WHICH "$new_path" 2> /dev/null` 29710 # bat and cmd files are not always considered executable in cygwin causing which 29711 # to not find them 29712 if test "x$new_path" = x \ 29713 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29714 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29715 new_path=`$CYGPATH -u "$path"` 29716 fi 29717 if test "x$new_path" = x; then 29718 # It's still not found. Now this is an unrecoverable error. 29719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29720 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29721 has_space=`$ECHO "$complete" | $GREP " "` 29722 if test "x$has_space" != x; then 29723 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29724 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29725 fi 29726 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29727 fi 29728 fi 29729 29730 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29731 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29732 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29733 # "foo.exe" is OK but "foo" is an error. 29734 # 29735 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29736 # It is also a way to make sure we got the proper file name for the real test later on. 29737 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29738 if test "x$test_shortpath" = x; then 29739 # Short path failed, file does not exist as specified. 29740 # Try adding .exe or .cmd 29741 if test -f "${new_path}.exe"; then 29742 input_to_shortpath="${new_path}.exe" 29743 elif test -f "${new_path}.cmd"; then 29744 input_to_shortpath="${new_path}.cmd" 29745 else 29746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29747 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29748 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29749 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29750 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29751 fi 29752 else 29753 input_to_shortpath="$new_path" 29754 fi 29755 29756 # Call helper function which possibly converts this using DOS-style short mode. 29757 # If so, the updated path is stored in $new_path. 29758 new_path="$input_to_shortpath" 29759 29760 input_path="$input_to_shortpath" 29761 # Check if we need to convert this using DOS-style short mode. If the path 29762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29763 # take no chances and rewrite it. 29764 # Note: m4 eats our [], so we need to use [ and ] instead. 29765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29766 if test "x$has_forbidden_chars" != x; then 29767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29768 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29769 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29770 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29771 # Going to short mode and back again did indeed matter. Since short mode is 29772 # case insensitive, let's make it lowercase to improve readability. 29773 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29774 # Now convert it back to Unix-stile (cygpath) 29775 input_path=`$CYGPATH -u "$shortmode_path"` 29776 new_path="$input_path" 29777 fi 29778 fi 29779 29780 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29781 if test "x$test_cygdrive_prefix" = x; then 29782 # As a simple fix, exclude /usr/bin since it's not a real path. 29783 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29784 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29785 # a path prefixed by /cygdrive for fixpath to work. 29786 new_path="$CYGWIN_ROOT_PATH$input_path" 29787 fi 29788 fi 29789 29790 # remove trailing .exe if any 29791 new_path="${new_path/%.exe/}" 29792 29793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29794 29795 # First separate the path from the arguments. This will split at the first 29796 # space. 29797 complete="$CXX" 29798 path="${complete%% *}" 29799 tmp="$complete EOL" 29800 arguments="${tmp#* }" 29801 29802 # Input might be given as Windows format, start by converting to 29803 # unix format. 29804 new_path="$path" 29805 29806 windows_path="$new_path" 29807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29808 unix_path=`$CYGPATH -u "$windows_path"` 29809 new_path="$unix_path" 29810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29812 new_path="$unix_path" 29813 fi 29814 29815 29816 # Now try to locate executable using which 29817 new_path=`$WHICH "$new_path" 2> /dev/null` 29818 29819 if test "x$new_path" = x; then 29820 # Oops. Which didn't find the executable. 29821 # The splitting of arguments from the executable at a space might have been incorrect, 29822 # since paths with space are more likely in Windows. Give it another try with the whole 29823 # argument. 29824 path="$complete" 29825 arguments="EOL" 29826 new_path="$path" 29827 29828 windows_path="$new_path" 29829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29830 unix_path=`$CYGPATH -u "$windows_path"` 29831 new_path="$unix_path" 29832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29834 new_path="$unix_path" 29835 fi 29836 29837 29838 new_path=`$WHICH "$new_path" 2> /dev/null` 29839 # bat and cmd files are not always considered executable in MSYS causing which 29840 # to not find them 29841 if test "x$new_path" = x \ 29842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29844 new_path="$path" 29845 29846 windows_path="$new_path" 29847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29848 unix_path=`$CYGPATH -u "$windows_path"` 29849 new_path="$unix_path" 29850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29852 new_path="$unix_path" 29853 fi 29854 29855 fi 29856 29857 if test "x$new_path" = x; then 29858 # It's still not found. Now this is an unrecoverable error. 29859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29860 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29861 has_space=`$ECHO "$complete" | $GREP " "` 29862 if test "x$has_space" != x; then 29863 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29864 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29865 fi 29866 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29867 fi 29868 fi 29869 29870 # Now new_path has a complete unix path to the binary 29871 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29872 # Keep paths in /bin as-is, but remove trailing .exe if any 29873 new_path="${new_path/%.exe/}" 29874 # Do not save /bin paths to all_fixpath_prefixes! 29875 else 29876 # Not in mixed or Windows style, start by that. 29877 new_path=`cmd //c echo $new_path` 29878 29879 input_path="$new_path" 29880 # Check if we need to convert this using DOS-style short mode. If the path 29881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29882 # take no chances and rewrite it. 29883 # Note: m4 eats our [], so we need to use [ and ] instead. 29884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29885 if test "x$has_forbidden_chars" != x; then 29886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29887 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29888 fi 29889 29890 # Output is in $new_path 29891 29892 windows_path="$new_path" 29893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29894 unix_path=`$CYGPATH -u "$windows_path"` 29895 new_path="$unix_path" 29896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29898 new_path="$unix_path" 29899 fi 29900 29901 # remove trailing .exe if any 29902 new_path="${new_path/%.exe/}" 29903 29904 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29905 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29906 fi 29907 29908 else 29909 # We're on a posix platform. Hooray! :) 29910 # First separate the path from the arguments. This will split at the first 29911 # space. 29912 complete="$CXX" 29913 path="${complete%% *}" 29914 tmp="$complete EOL" 29915 arguments="${tmp#* }" 29916 29917 # Cannot rely on the command "which" here since it doesn't always work. 29918 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29919 if test -z "$is_absolute_path"; then 29920 # Path to executable is not absolute. Find it. 29921 IFS_save="$IFS" 29922 IFS=: 29923 for p in $PATH; do 29924 if test -f "$p/$path" && test -x "$p/$path"; then 29925 new_path="$p/$path" 29926 break 29927 fi 29928 done 29929 IFS="$IFS_save" 29930 else 29931 # This is an absolute path, we can use it without further modifications. 29932 new_path="$path" 29933 fi 29934 29935 if test "x$new_path" = x; then 29936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29937 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29938 has_space=`$ECHO "$complete" | $GREP " "` 29939 if test "x$has_space" != x; then 29940 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29941 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29942 fi 29943 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29944 fi 29945 fi 29946 29947 # Now join together the path and the arguments once again 29948 if test "x$arguments" != xEOL; then 29949 new_complete="$new_path ${arguments% *}" 29950 else 29951 new_complete="$new_path" 29952 fi 29953 29954 if test "x$complete" != "x$new_complete"; then 29955 CXX="$new_complete" 29956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29957 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29958 fi 29959 29960 TEST_COMPILER="$CXX" 29961 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29962 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29963 if test "x$OPENJDK_BUILD_OS" != xaix; then 29964 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29966 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29967 29968 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29969 # Follow a chain of symbolic links. Use readlink 29970 # where it exists, else fall back to horribly 29971 # complicated shell code. 29972 if test "x$READLINK_TESTED" != yes; then 29973 # On MacOSX there is a readlink tool with a different 29974 # purpose than the GNU readlink tool. Check the found readlink. 29975 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29976 if test "x$ISGNU" = x; then 29977 # A readlink that we do not know how to use. 29978 # Are there other non-GNU readlinks out there? 29979 READLINK_TESTED=yes 29980 READLINK= 29981 fi 29982 fi 29983 29984 if test "x$READLINK" != x; then 29985 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29986 else 29987 # Save the current directory for restoring afterwards 29988 STARTDIR=$PWD 29989 COUNTER=0 29990 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29991 sym_link_file=`$BASENAME $TEST_COMPILER` 29992 cd $sym_link_dir 29993 # Use -P flag to resolve symlinks in directories. 29994 cd `$THEPWDCMD -P` 29995 sym_link_dir=`$THEPWDCMD -P` 29996 # Resolve file symlinks 29997 while test $COUNTER -lt 20; do 29998 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29999 if test "x$ISLINK" == x; then 30000 # This is not a symbolic link! We are done! 30001 break 30002 fi 30003 # Again resolve directory symlinks since the target of the just found 30004 # link could be in a different directory 30005 cd `$DIRNAME $ISLINK` 30006 sym_link_dir=`$THEPWDCMD -P` 30007 sym_link_file=`$BASENAME $ISLINK` 30008 let COUNTER=COUNTER+1 30009 done 30010 cd $STARTDIR 30011 TEST_COMPILER=$sym_link_dir/$sym_link_file 30012 fi 30013 fi 30014 30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30016 $as_echo "$TEST_COMPILER" >&6; } 30017 fi 30018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30019 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30020 30021 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30022 if test "x$COMPILER_BASENAME" = "xccache"; then 30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30024 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30025 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30026 # We want to control ccache invocation ourselves, so ignore this cc and try 30027 # searching again. 30028 30029 # Remove the path to the fake ccache cc from the PATH 30030 RETRY_COMPILER_SAVED_PATH="$PATH" 30031 COMPILER_DIRNAME=`$DIRNAME $CXX` 30032 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30033 30034 # Try again looking for our compiler 30035 if test -n "$ac_tool_prefix"; then 30036 for ac_prog in $TOOLCHAIN_CXX_BINARY 30037 do 30038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30041 $as_echo_n "checking for $ac_word... " >&6; } 30042 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30043 $as_echo_n "(cached) " >&6 30044 else 30045 if test -n "$PROPER_COMPILER_CXX"; then 30046 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30047 else 30048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30049 for as_dir in $PATH 30050 do 30051 IFS=$as_save_IFS 30052 test -z "$as_dir" && as_dir=. 30053 for ac_exec_ext in '' $ac_executable_extensions; do 30054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30055 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30057 break 2 30058 fi 30059 done 30060 done 30061 IFS=$as_save_IFS 30062 30063 fi 30064 fi 30065 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30066 if test -n "$PROPER_COMPILER_CXX"; then 30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30068 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30069 else 30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30071 $as_echo "no" >&6; } 30072 fi 30073 30074 30075 test -n "$PROPER_COMPILER_CXX" && break 30076 done 30077 fi 30078 if test -z "$PROPER_COMPILER_CXX"; then 30079 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30080 for ac_prog in $TOOLCHAIN_CXX_BINARY 30081 do 30082 # Extract the first word of "$ac_prog", so it can be a program name with args. 30083 set dummy $ac_prog; ac_word=$2 30084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30085 $as_echo_n "checking for $ac_word... " >&6; } 30086 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30087 $as_echo_n "(cached) " >&6 30088 else 30089 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30090 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30091 else 30092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30093 for as_dir in $PATH 30094 do 30095 IFS=$as_save_IFS 30096 test -z "$as_dir" && as_dir=. 30097 for ac_exec_ext in '' $ac_executable_extensions; do 30098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30099 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30101 break 2 30102 fi 30103 done 30104 done 30105 IFS=$as_save_IFS 30106 30107 fi 30108 fi 30109 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30110 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30112 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30113 else 30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30115 $as_echo "no" >&6; } 30116 fi 30117 30118 30119 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30120 done 30121 30122 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30123 PROPER_COMPILER_CXX="" 30124 else 30125 case $cross_compiling:$ac_tool_warned in 30126 yes:) 30127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30129 ac_tool_warned=yes ;; 30130 esac 30131 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30132 fi 30133 fi 30134 30135 30136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30137 30138 # First separate the path from the arguments. This will split at the first 30139 # space. 30140 complete="$PROPER_COMPILER_CXX" 30141 path="${complete%% *}" 30142 tmp="$complete EOL" 30143 arguments="${tmp#* }" 30144 30145 # Input might be given as Windows format, start by converting to 30146 # unix format. 30147 new_path=`$CYGPATH -u "$path"` 30148 30149 # Now try to locate executable using which 30150 new_path=`$WHICH "$new_path" 2> /dev/null` 30151 # bat and cmd files are not always considered executable in cygwin causing which 30152 # to not find them 30153 if test "x$new_path" = x \ 30154 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30155 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30156 new_path=`$CYGPATH -u "$path"` 30157 fi 30158 if test "x$new_path" = x; then 30159 # Oops. Which didn't find the executable. 30160 # The splitting of arguments from the executable at a space might have been incorrect, 30161 # since paths with space are more likely in Windows. Give it another try with the whole 30162 # argument. 30163 path="$complete" 30164 arguments="EOL" 30165 new_path=`$CYGPATH -u "$path"` 30166 new_path=`$WHICH "$new_path" 2> /dev/null` 30167 # bat and cmd files are not always considered executable in cygwin causing which 30168 # to not find them 30169 if test "x$new_path" = x \ 30170 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30171 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30172 new_path=`$CYGPATH -u "$path"` 30173 fi 30174 if test "x$new_path" = x; then 30175 # It's still not found. Now this is an unrecoverable error. 30176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30177 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30178 has_space=`$ECHO "$complete" | $GREP " "` 30179 if test "x$has_space" != x; then 30180 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30181 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30182 fi 30183 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30184 fi 30185 fi 30186 30187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30190 # "foo.exe" is OK but "foo" is an error. 30191 # 30192 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30193 # It is also a way to make sure we got the proper file name for the real test later on. 30194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30195 if test "x$test_shortpath" = x; then 30196 # Short path failed, file does not exist as specified. 30197 # Try adding .exe or .cmd 30198 if test -f "${new_path}.exe"; then 30199 input_to_shortpath="${new_path}.exe" 30200 elif test -f "${new_path}.cmd"; then 30201 input_to_shortpath="${new_path}.cmd" 30202 else 30203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30204 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30205 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30206 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30207 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30208 fi 30209 else 30210 input_to_shortpath="$new_path" 30211 fi 30212 30213 # Call helper function which possibly converts this using DOS-style short mode. 30214 # If so, the updated path is stored in $new_path. 30215 new_path="$input_to_shortpath" 30216 30217 input_path="$input_to_shortpath" 30218 # Check if we need to convert this using DOS-style short mode. If the path 30219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30220 # take no chances and rewrite it. 30221 # Note: m4 eats our [], so we need to use [ and ] instead. 30222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30223 if test "x$has_forbidden_chars" != x; then 30224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30225 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30226 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30227 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30228 # Going to short mode and back again did indeed matter. Since short mode is 30229 # case insensitive, let's make it lowercase to improve readability. 30230 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30231 # Now convert it back to Unix-stile (cygpath) 30232 input_path=`$CYGPATH -u "$shortmode_path"` 30233 new_path="$input_path" 30234 fi 30235 fi 30236 30237 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30238 if test "x$test_cygdrive_prefix" = x; then 30239 # As a simple fix, exclude /usr/bin since it's not a real path. 30240 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30241 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30242 # a path prefixed by /cygdrive for fixpath to work. 30243 new_path="$CYGWIN_ROOT_PATH$input_path" 30244 fi 30245 fi 30246 30247 # remove trailing .exe if any 30248 new_path="${new_path/%.exe/}" 30249 30250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30251 30252 # First separate the path from the arguments. This will split at the first 30253 # space. 30254 complete="$PROPER_COMPILER_CXX" 30255 path="${complete%% *}" 30256 tmp="$complete EOL" 30257 arguments="${tmp#* }" 30258 30259 # Input might be given as Windows format, start by converting to 30260 # unix format. 30261 new_path="$path" 30262 30263 windows_path="$new_path" 30264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30265 unix_path=`$CYGPATH -u "$windows_path"` 30266 new_path="$unix_path" 30267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30269 new_path="$unix_path" 30270 fi 30271 30272 30273 # Now try to locate executable using which 30274 new_path=`$WHICH "$new_path" 2> /dev/null` 30275 30276 if test "x$new_path" = x; then 30277 # Oops. Which didn't find the executable. 30278 # The splitting of arguments from the executable at a space might have been incorrect, 30279 # since paths with space are more likely in Windows. Give it another try with the whole 30280 # argument. 30281 path="$complete" 30282 arguments="EOL" 30283 new_path="$path" 30284 30285 windows_path="$new_path" 30286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30287 unix_path=`$CYGPATH -u "$windows_path"` 30288 new_path="$unix_path" 30289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30291 new_path="$unix_path" 30292 fi 30293 30294 30295 new_path=`$WHICH "$new_path" 2> /dev/null` 30296 # bat and cmd files are not always considered executable in MSYS causing which 30297 # to not find them 30298 if test "x$new_path" = x \ 30299 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30300 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30301 new_path="$path" 30302 30303 windows_path="$new_path" 30304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30305 unix_path=`$CYGPATH -u "$windows_path"` 30306 new_path="$unix_path" 30307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30309 new_path="$unix_path" 30310 fi 30311 30312 fi 30313 30314 if test "x$new_path" = x; then 30315 # It's still not found. Now this is an unrecoverable error. 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30317 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30318 has_space=`$ECHO "$complete" | $GREP " "` 30319 if test "x$has_space" != x; then 30320 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30321 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30322 fi 30323 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30324 fi 30325 fi 30326 30327 # Now new_path has a complete unix path to the binary 30328 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30329 # Keep paths in /bin as-is, but remove trailing .exe if any 30330 new_path="${new_path/%.exe/}" 30331 # Do not save /bin paths to all_fixpath_prefixes! 30332 else 30333 # Not in mixed or Windows style, start by that. 30334 new_path=`cmd //c echo $new_path` 30335 30336 input_path="$new_path" 30337 # Check if we need to convert this using DOS-style short mode. If the path 30338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30339 # take no chances and rewrite it. 30340 # Note: m4 eats our [], so we need to use [ and ] instead. 30341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30342 if test "x$has_forbidden_chars" != x; then 30343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30344 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30345 fi 30346 30347 # Output is in $new_path 30348 30349 windows_path="$new_path" 30350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30351 unix_path=`$CYGPATH -u "$windows_path"` 30352 new_path="$unix_path" 30353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30355 new_path="$unix_path" 30356 fi 30357 30358 # remove trailing .exe if any 30359 new_path="${new_path/%.exe/}" 30360 30361 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30362 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30363 fi 30364 30365 else 30366 # We're on a posix platform. Hooray! :) 30367 # First separate the path from the arguments. This will split at the first 30368 # space. 30369 complete="$PROPER_COMPILER_CXX" 30370 path="${complete%% *}" 30371 tmp="$complete EOL" 30372 arguments="${tmp#* }" 30373 30374 # Cannot rely on the command "which" here since it doesn't always work. 30375 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30376 if test -z "$is_absolute_path"; then 30377 # Path to executable is not absolute. Find it. 30378 IFS_save="$IFS" 30379 IFS=: 30380 for p in $PATH; do 30381 if test -f "$p/$path" && test -x "$p/$path"; then 30382 new_path="$p/$path" 30383 break 30384 fi 30385 done 30386 IFS="$IFS_save" 30387 else 30388 # This is an absolute path, we can use it without further modifications. 30389 new_path="$path" 30390 fi 30391 30392 if test "x$new_path" = x; then 30393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30394 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30395 has_space=`$ECHO "$complete" | $GREP " "` 30396 if test "x$has_space" != x; then 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30398 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30399 fi 30400 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30401 fi 30402 fi 30403 30404 # Now join together the path and the arguments once again 30405 if test "x$arguments" != xEOL; then 30406 new_complete="$new_path ${arguments% *}" 30407 else 30408 new_complete="$new_path" 30409 fi 30410 30411 if test "x$complete" != "x$new_complete"; then 30412 PROPER_COMPILER_CXX="$new_complete" 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30414 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30415 fi 30416 30417 PATH="$RETRY_COMPILER_SAVED_PATH" 30418 30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30420 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30421 30422 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30423 # Follow a chain of symbolic links. Use readlink 30424 # where it exists, else fall back to horribly 30425 # complicated shell code. 30426 if test "x$READLINK_TESTED" != yes; then 30427 # On MacOSX there is a readlink tool with a different 30428 # purpose than the GNU readlink tool. Check the found readlink. 30429 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30430 if test "x$ISGNU" = x; then 30431 # A readlink that we do not know how to use. 30432 # Are there other non-GNU readlinks out there? 30433 READLINK_TESTED=yes 30434 READLINK= 30435 fi 30436 fi 30437 30438 if test "x$READLINK" != x; then 30439 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30440 else 30441 # Save the current directory for restoring afterwards 30442 STARTDIR=$PWD 30443 COUNTER=0 30444 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30445 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30446 cd $sym_link_dir 30447 # Use -P flag to resolve symlinks in directories. 30448 cd `$THEPWDCMD -P` 30449 sym_link_dir=`$THEPWDCMD -P` 30450 # Resolve file symlinks 30451 while test $COUNTER -lt 20; do 30452 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30453 if test "x$ISLINK" == x; then 30454 # This is not a symbolic link! We are done! 30455 break 30456 fi 30457 # Again resolve directory symlinks since the target of the just found 30458 # link could be in a different directory 30459 cd `$DIRNAME $ISLINK` 30460 sym_link_dir=`$THEPWDCMD -P` 30461 sym_link_file=`$BASENAME $ISLINK` 30462 let COUNTER=COUNTER+1 30463 done 30464 cd $STARTDIR 30465 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30466 fi 30467 fi 30468 30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30470 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30471 CXX="$PROPER_COMPILER_CXX" 30472 else 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30474 $as_echo "no, keeping CXX" >&6; } 30475 fi 30476 30477 30478 COMPILER=$CXX 30479 COMPILER_NAME=$COMPILER_NAME 30480 30481 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30482 # cc -V output typically looks like 30483 # cc: Sun C 5.12 Linux_i386 2011/11/16 30484 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30485 # Check that this is likely to be the Solaris Studio cc. 30486 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30487 if test $? -ne 0; then 30488 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30489 { $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 30490 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30492 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30493 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30494 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30495 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30496 fi 30497 # Remove usage instructions (if present), and 30498 # collapse compiler output into a single line 30499 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30500 $SED -e 's/ *[Uu]sage:.*//'` 30501 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30502 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30503 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30504 # xlc -qversion output typically looks like 30505 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30506 # Version: 11.01.0000.0015 30507 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30508 # Check that this is likely to be the IBM XL C compiler. 30509 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30510 if test $? -ne 0; then 30511 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30512 { $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 30513 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30514 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30515 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30516 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30517 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30518 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30519 fi 30520 # Collapse compiler output into a single line 30521 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30522 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30523 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30524 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30525 # There is no specific version flag, but all output starts with a version string. 30526 # First line typically looks something like: 30527 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30528 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30529 # Check that this is likely to be Microsoft CL.EXE. 30530 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30531 if test $? -ne 0; then 30532 { $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 30533 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30534 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30535 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30536 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30537 fi 30538 # Collapse compiler output into a single line 30539 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30540 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30541 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30542 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30543 # gcc --version output typically looks like 30544 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30545 # Copyright (C) 2013 Free Software Foundation, Inc. 30546 # This is free software; see the source for copying conditions. There is NO 30547 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30548 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30549 # Check that this is likely to be GCC. 30550 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30551 if test $? -ne 0; then 30552 { $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 30553 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30554 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30555 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30556 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30557 fi 30558 # Remove Copyright and legalese from version string, and 30559 # collapse into a single line 30560 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30561 $SED -e 's/ *Copyright .*//'` 30562 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30563 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30564 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30565 # clang --version output typically looks like 30566 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30567 # clang version 3.3 (tags/RELEASE_33/final) 30568 # or 30569 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30570 # Target: x86_64-pc-linux-gnu 30571 # Thread model: posix 30572 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30573 # Check that this is likely to be clang 30574 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30575 if test $? -ne 0; then 30576 { $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 30577 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30578 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30579 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30580 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30581 fi 30582 # Collapse compiler output into a single line 30583 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30584 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30585 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30586 else 30587 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30588 fi 30589 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30590 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30591 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30592 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30593 30594 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30595 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30596 30597 30598 # Now that we have resolved CXX ourself, let autoconf have its go at it 30599 ac_ext=cpp 30600 ac_cpp='$CXXCPP $CPPFLAGS' 30601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30604 if test -z "$CXX"; then 30605 if test -n "$CCC"; then 30606 CXX=$CCC 30607 else 30608 if test -n "$ac_tool_prefix"; then 30609 for ac_prog in $CXX 30610 do 30611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30614 $as_echo_n "checking for $ac_word... " >&6; } 30615 if ${ac_cv_prog_CXX+:} false; then : 30616 $as_echo_n "(cached) " >&6 30617 else 30618 if test -n "$CXX"; then 30619 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30620 else 30621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30622 for as_dir in $PATH 30623 do 30624 IFS=$as_save_IFS 30625 test -z "$as_dir" && as_dir=. 30626 for ac_exec_ext in '' $ac_executable_extensions; do 30627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30628 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30630 break 2 30631 fi 30632 done 30633 done 30634 IFS=$as_save_IFS 30635 30636 fi 30637 fi 30638 CXX=$ac_cv_prog_CXX 30639 if test -n "$CXX"; then 30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30641 $as_echo "$CXX" >&6; } 30642 else 30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30644 $as_echo "no" >&6; } 30645 fi 30646 30647 30648 test -n "$CXX" && break 30649 done 30650 fi 30651 if test -z "$CXX"; then 30652 ac_ct_CXX=$CXX 30653 for ac_prog in $CXX 30654 do 30655 # Extract the first word of "$ac_prog", so it can be a program name with args. 30656 set dummy $ac_prog; ac_word=$2 30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30658 $as_echo_n "checking for $ac_word... " >&6; } 30659 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30660 $as_echo_n "(cached) " >&6 30661 else 30662 if test -n "$ac_ct_CXX"; then 30663 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30664 else 30665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30666 for as_dir in $PATH 30667 do 30668 IFS=$as_save_IFS 30669 test -z "$as_dir" && as_dir=. 30670 for ac_exec_ext in '' $ac_executable_extensions; do 30671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30672 ac_cv_prog_ac_ct_CXX="$ac_prog" 30673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30674 break 2 30675 fi 30676 done 30677 done 30678 IFS=$as_save_IFS 30679 30680 fi 30681 fi 30682 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30683 if test -n "$ac_ct_CXX"; then 30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30685 $as_echo "$ac_ct_CXX" >&6; } 30686 else 30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30688 $as_echo "no" >&6; } 30689 fi 30690 30691 30692 test -n "$ac_ct_CXX" && break 30693 done 30694 30695 if test "x$ac_ct_CXX" = x; then 30696 CXX="g++" 30697 else 30698 case $cross_compiling:$ac_tool_warned in 30699 yes:) 30700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30702 ac_tool_warned=yes ;; 30703 esac 30704 CXX=$ac_ct_CXX 30705 fi 30706 fi 30707 30708 fi 30709 fi 30710 # Provide some information about the compiler. 30711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30712 set X $ac_compile 30713 ac_compiler=$2 30714 for ac_option in --version -v -V -qversion; do 30715 { { ac_try="$ac_compiler $ac_option >&5" 30716 case "(($ac_try" in 30717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30718 *) ac_try_echo=$ac_try;; 30719 esac 30720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30721 $as_echo "$ac_try_echo"; } >&5 30722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30723 ac_status=$? 30724 if test -s conftest.err; then 30725 sed '10a\ 30726 ... rest of stderr output deleted ... 30727 10q' conftest.err >conftest.er1 30728 cat conftest.er1 >&5 30729 fi 30730 rm -f conftest.er1 conftest.err 30731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30732 test $ac_status = 0; } 30733 done 30734 30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30736 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30737 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30738 $as_echo_n "(cached) " >&6 30739 else 30740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30741 /* end confdefs.h. */ 30742 30743 int 30744 main () 30745 { 30746 #ifndef __GNUC__ 30747 choke me 30748 #endif 30749 30750 ; 30751 return 0; 30752 } 30753 _ACEOF 30754 if ac_fn_cxx_try_compile "$LINENO"; then : 30755 ac_compiler_gnu=yes 30756 else 30757 ac_compiler_gnu=no 30758 fi 30759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30761 30762 fi 30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30764 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30765 if test $ac_compiler_gnu = yes; then 30766 GXX=yes 30767 else 30768 GXX= 30769 fi 30770 ac_test_CXXFLAGS=${CXXFLAGS+set} 30771 ac_save_CXXFLAGS=$CXXFLAGS 30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30773 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30774 if ${ac_cv_prog_cxx_g+:} false; then : 30775 $as_echo_n "(cached) " >&6 30776 else 30777 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30778 ac_cxx_werror_flag=yes 30779 ac_cv_prog_cxx_g=no 30780 CXXFLAGS="-g" 30781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30782 /* end confdefs.h. */ 30783 30784 int 30785 main () 30786 { 30787 30788 ; 30789 return 0; 30790 } 30791 _ACEOF 30792 if ac_fn_cxx_try_compile "$LINENO"; then : 30793 ac_cv_prog_cxx_g=yes 30794 else 30795 CXXFLAGS="" 30796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30797 /* end confdefs.h. */ 30798 30799 int 30800 main () 30801 { 30802 30803 ; 30804 return 0; 30805 } 30806 _ACEOF 30807 if ac_fn_cxx_try_compile "$LINENO"; then : 30808 30809 else 30810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30811 CXXFLAGS="-g" 30812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30813 /* end confdefs.h. */ 30814 30815 int 30816 main () 30817 { 30818 30819 ; 30820 return 0; 30821 } 30822 _ACEOF 30823 if ac_fn_cxx_try_compile "$LINENO"; then : 30824 ac_cv_prog_cxx_g=yes 30825 fi 30826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30827 fi 30828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30829 fi 30830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30831 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30832 fi 30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30834 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30835 if test "$ac_test_CXXFLAGS" = set; then 30836 CXXFLAGS=$ac_save_CXXFLAGS 30837 elif test $ac_cv_prog_cxx_g = yes; then 30838 if test "$GXX" = yes; then 30839 CXXFLAGS="-g -O2" 30840 else 30841 CXXFLAGS="-g" 30842 fi 30843 else 30844 if test "$GXX" = yes; then 30845 CXXFLAGS="-O2" 30846 else 30847 CXXFLAGS= 30848 fi 30849 fi 30850 ac_ext=cpp 30851 ac_cpp='$CXXCPP $CPPFLAGS' 30852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30855 30856 30857 # 30858 # Setup the preprocessor (CPP and CXXCPP) 30859 # 30860 ac_ext=c 30861 ac_cpp='$CPP $CPPFLAGS' 30862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30864 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30866 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30867 # On Suns, sometimes $CPP names a directory. 30868 if test -n "$CPP" && test -d "$CPP"; then 30869 CPP= 30870 fi 30871 if test -z "$CPP"; then 30872 if ${ac_cv_prog_CPP+:} false; then : 30873 $as_echo_n "(cached) " >&6 30874 else 30875 # Double quotes because CPP needs to be expanded 30876 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30877 do 30878 ac_preproc_ok=false 30879 for ac_c_preproc_warn_flag in '' yes 30880 do 30881 # Use a header file that comes with gcc, so configuring glibc 30882 # with a fresh cross-compiler works. 30883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30884 # <limits.h> exists even on freestanding compilers. 30885 # On the NeXT, cc -E runs the code through the compiler's parser, 30886 # not just through cpp. "Syntax error" is here to catch this case. 30887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30888 /* end confdefs.h. */ 30889 #ifdef __STDC__ 30890 # include <limits.h> 30891 #else 30892 # include <assert.h> 30893 #endif 30894 Syntax error 30895 _ACEOF 30896 if ac_fn_c_try_cpp "$LINENO"; then : 30897 30898 else 30899 # Broken: fails on valid input. 30900 continue 30901 fi 30902 rm -f conftest.err conftest.i conftest.$ac_ext 30903 30904 # OK, works on sane cases. Now check whether nonexistent headers 30905 # can be detected and how. 30906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30907 /* end confdefs.h. */ 30908 #include <ac_nonexistent.h> 30909 _ACEOF 30910 if ac_fn_c_try_cpp "$LINENO"; then : 30911 # Broken: success on invalid input. 30912 continue 30913 else 30914 # Passes both tests. 30915 ac_preproc_ok=: 30916 break 30917 fi 30918 rm -f conftest.err conftest.i conftest.$ac_ext 30919 30920 done 30921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30922 rm -f conftest.i conftest.err conftest.$ac_ext 30923 if $ac_preproc_ok; then : 30924 break 30925 fi 30926 30927 done 30928 ac_cv_prog_CPP=$CPP 30929 30930 fi 30931 CPP=$ac_cv_prog_CPP 30932 else 30933 ac_cv_prog_CPP=$CPP 30934 fi 30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30936 $as_echo "$CPP" >&6; } 30937 ac_preproc_ok=false 30938 for ac_c_preproc_warn_flag in '' yes 30939 do 30940 # Use a header file that comes with gcc, so configuring glibc 30941 # with a fresh cross-compiler works. 30942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30943 # <limits.h> exists even on freestanding compilers. 30944 # On the NeXT, cc -E runs the code through the compiler's parser, 30945 # not just through cpp. "Syntax error" is here to catch this case. 30946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30947 /* end confdefs.h. */ 30948 #ifdef __STDC__ 30949 # include <limits.h> 30950 #else 30951 # include <assert.h> 30952 #endif 30953 Syntax error 30954 _ACEOF 30955 if ac_fn_c_try_cpp "$LINENO"; then : 30956 30957 else 30958 # Broken: fails on valid input. 30959 continue 30960 fi 30961 rm -f conftest.err conftest.i conftest.$ac_ext 30962 30963 # OK, works on sane cases. Now check whether nonexistent headers 30964 # can be detected and how. 30965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30966 /* end confdefs.h. */ 30967 #include <ac_nonexistent.h> 30968 _ACEOF 30969 if ac_fn_c_try_cpp "$LINENO"; then : 30970 # Broken: success on invalid input. 30971 continue 30972 else 30973 # Passes both tests. 30974 ac_preproc_ok=: 30975 break 30976 fi 30977 rm -f conftest.err conftest.i conftest.$ac_ext 30978 30979 done 30980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30981 rm -f conftest.i conftest.err conftest.$ac_ext 30982 if $ac_preproc_ok; then : 30983 30984 else 30985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30987 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30988 See \`config.log' for more details" "$LINENO" 5; } 30989 fi 30990 30991 ac_ext=cpp 30992 ac_cpp='$CXXCPP $CPPFLAGS' 30993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30996 30997 30998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30999 31000 # First separate the path from the arguments. This will split at the first 31001 # space. 31002 complete="$CPP" 31003 path="${complete%% *}" 31004 tmp="$complete EOL" 31005 arguments="${tmp#* }" 31006 31007 # Input might be given as Windows format, start by converting to 31008 # unix format. 31009 new_path=`$CYGPATH -u "$path"` 31010 31011 # Now try to locate executable using which 31012 new_path=`$WHICH "$new_path" 2> /dev/null` 31013 # bat and cmd files are not always considered executable in cygwin causing which 31014 # to not find them 31015 if test "x$new_path" = x \ 31016 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31017 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31018 new_path=`$CYGPATH -u "$path"` 31019 fi 31020 if test "x$new_path" = x; then 31021 # Oops. Which didn't find the executable. 31022 # The splitting of arguments from the executable at a space might have been incorrect, 31023 # since paths with space are more likely in Windows. Give it another try with the whole 31024 # argument. 31025 path="$complete" 31026 arguments="EOL" 31027 new_path=`$CYGPATH -u "$path"` 31028 new_path=`$WHICH "$new_path" 2> /dev/null` 31029 # bat and cmd files are not always considered executable in cygwin causing which 31030 # to not find them 31031 if test "x$new_path" = x \ 31032 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31033 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31034 new_path=`$CYGPATH -u "$path"` 31035 fi 31036 if test "x$new_path" = x; then 31037 # It's still not found. Now this is an unrecoverable error. 31038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31039 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31040 has_space=`$ECHO "$complete" | $GREP " "` 31041 if test "x$has_space" != x; then 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31043 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31044 fi 31045 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31046 fi 31047 fi 31048 31049 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31050 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31051 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31052 # "foo.exe" is OK but "foo" is an error. 31053 # 31054 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31055 # It is also a way to make sure we got the proper file name for the real test later on. 31056 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31057 if test "x$test_shortpath" = x; then 31058 # Short path failed, file does not exist as specified. 31059 # Try adding .exe or .cmd 31060 if test -f "${new_path}.exe"; then 31061 input_to_shortpath="${new_path}.exe" 31062 elif test -f "${new_path}.cmd"; then 31063 input_to_shortpath="${new_path}.cmd" 31064 else 31065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31066 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31067 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31068 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31069 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31070 fi 31071 else 31072 input_to_shortpath="$new_path" 31073 fi 31074 31075 # Call helper function which possibly converts this using DOS-style short mode. 31076 # If so, the updated path is stored in $new_path. 31077 new_path="$input_to_shortpath" 31078 31079 input_path="$input_to_shortpath" 31080 # Check if we need to convert this using DOS-style short mode. If the path 31081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31082 # take no chances and rewrite it. 31083 # Note: m4 eats our [], so we need to use [ and ] instead. 31084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31085 if test "x$has_forbidden_chars" != x; then 31086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31087 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31088 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31089 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31090 # Going to short mode and back again did indeed matter. Since short mode is 31091 # case insensitive, let's make it lowercase to improve readability. 31092 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31093 # Now convert it back to Unix-stile (cygpath) 31094 input_path=`$CYGPATH -u "$shortmode_path"` 31095 new_path="$input_path" 31096 fi 31097 fi 31098 31099 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31100 if test "x$test_cygdrive_prefix" = x; then 31101 # As a simple fix, exclude /usr/bin since it's not a real path. 31102 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31103 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31104 # a path prefixed by /cygdrive for fixpath to work. 31105 new_path="$CYGWIN_ROOT_PATH$input_path" 31106 fi 31107 fi 31108 31109 # remove trailing .exe if any 31110 new_path="${new_path/%.exe/}" 31111 31112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31113 31114 # First separate the path from the arguments. This will split at the first 31115 # space. 31116 complete="$CPP" 31117 path="${complete%% *}" 31118 tmp="$complete EOL" 31119 arguments="${tmp#* }" 31120 31121 # Input might be given as Windows format, start by converting to 31122 # unix format. 31123 new_path="$path" 31124 31125 windows_path="$new_path" 31126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31127 unix_path=`$CYGPATH -u "$windows_path"` 31128 new_path="$unix_path" 31129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31131 new_path="$unix_path" 31132 fi 31133 31134 31135 # Now try to locate executable using which 31136 new_path=`$WHICH "$new_path" 2> /dev/null` 31137 31138 if test "x$new_path" = x; then 31139 # Oops. Which didn't find the executable. 31140 # The splitting of arguments from the executable at a space might have been incorrect, 31141 # since paths with space are more likely in Windows. Give it another try with the whole 31142 # argument. 31143 path="$complete" 31144 arguments="EOL" 31145 new_path="$path" 31146 31147 windows_path="$new_path" 31148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31149 unix_path=`$CYGPATH -u "$windows_path"` 31150 new_path="$unix_path" 31151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31153 new_path="$unix_path" 31154 fi 31155 31156 31157 new_path=`$WHICH "$new_path" 2> /dev/null` 31158 # bat and cmd files are not always considered executable in MSYS causing which 31159 # to not find them 31160 if test "x$new_path" = x \ 31161 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31162 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31163 new_path="$path" 31164 31165 windows_path="$new_path" 31166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31167 unix_path=`$CYGPATH -u "$windows_path"` 31168 new_path="$unix_path" 31169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31171 new_path="$unix_path" 31172 fi 31173 31174 fi 31175 31176 if test "x$new_path" = x; then 31177 # It's still not found. Now this is an unrecoverable error. 31178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31179 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31180 has_space=`$ECHO "$complete" | $GREP " "` 31181 if test "x$has_space" != x; then 31182 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31183 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31184 fi 31185 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31186 fi 31187 fi 31188 31189 # Now new_path has a complete unix path to the binary 31190 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31191 # Keep paths in /bin as-is, but remove trailing .exe if any 31192 new_path="${new_path/%.exe/}" 31193 # Do not save /bin paths to all_fixpath_prefixes! 31194 else 31195 # Not in mixed or Windows style, start by that. 31196 new_path=`cmd //c echo $new_path` 31197 31198 input_path="$new_path" 31199 # Check if we need to convert this using DOS-style short mode. If the path 31200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31201 # take no chances and rewrite it. 31202 # Note: m4 eats our [], so we need to use [ and ] instead. 31203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31204 if test "x$has_forbidden_chars" != x; then 31205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31207 fi 31208 31209 # Output is in $new_path 31210 31211 windows_path="$new_path" 31212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31213 unix_path=`$CYGPATH -u "$windows_path"` 31214 new_path="$unix_path" 31215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31217 new_path="$unix_path" 31218 fi 31219 31220 # remove trailing .exe if any 31221 new_path="${new_path/%.exe/}" 31222 31223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31225 fi 31226 31227 else 31228 # We're on a posix platform. Hooray! :) 31229 # First separate the path from the arguments. This will split at the first 31230 # space. 31231 complete="$CPP" 31232 path="${complete%% *}" 31233 tmp="$complete EOL" 31234 arguments="${tmp#* }" 31235 31236 # Cannot rely on the command "which" here since it doesn't always work. 31237 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31238 if test -z "$is_absolute_path"; then 31239 # Path to executable is not absolute. Find it. 31240 IFS_save="$IFS" 31241 IFS=: 31242 for p in $PATH; do 31243 if test -f "$p/$path" && test -x "$p/$path"; then 31244 new_path="$p/$path" 31245 break 31246 fi 31247 done 31248 IFS="$IFS_save" 31249 else 31250 # This is an absolute path, we can use it without further modifications. 31251 new_path="$path" 31252 fi 31253 31254 if test "x$new_path" = x; then 31255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31256 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31257 has_space=`$ECHO "$complete" | $GREP " "` 31258 if test "x$has_space" != x; then 31259 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31260 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31261 fi 31262 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31263 fi 31264 fi 31265 31266 # Now join together the path and the arguments once again 31267 if test "x$arguments" != xEOL; then 31268 new_complete="$new_path ${arguments% *}" 31269 else 31270 new_complete="$new_path" 31271 fi 31272 31273 if test "x$complete" != "x$new_complete"; then 31274 CPP="$new_complete" 31275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31276 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31277 fi 31278 31279 ac_ext=cpp 31280 ac_cpp='$CXXCPP $CPPFLAGS' 31281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31285 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31286 if test -z "$CXXCPP"; then 31287 if ${ac_cv_prog_CXXCPP+:} false; then : 31288 $as_echo_n "(cached) " >&6 31289 else 31290 # Double quotes because CXXCPP needs to be expanded 31291 for CXXCPP in "$CXX -E" "/lib/cpp" 31292 do 31293 ac_preproc_ok=false 31294 for ac_cxx_preproc_warn_flag in '' yes 31295 do 31296 # Use a header file that comes with gcc, so configuring glibc 31297 # with a fresh cross-compiler works. 31298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31299 # <limits.h> exists even on freestanding compilers. 31300 # On the NeXT, cc -E runs the code through the compiler's parser, 31301 # not just through cpp. "Syntax error" is here to catch this case. 31302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31303 /* end confdefs.h. */ 31304 #ifdef __STDC__ 31305 # include <limits.h> 31306 #else 31307 # include <assert.h> 31308 #endif 31309 Syntax error 31310 _ACEOF 31311 if ac_fn_cxx_try_cpp "$LINENO"; then : 31312 31313 else 31314 # Broken: fails on valid input. 31315 continue 31316 fi 31317 rm -f conftest.err conftest.i conftest.$ac_ext 31318 31319 # OK, works on sane cases. Now check whether nonexistent headers 31320 # can be detected and how. 31321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31322 /* end confdefs.h. */ 31323 #include <ac_nonexistent.h> 31324 _ACEOF 31325 if ac_fn_cxx_try_cpp "$LINENO"; then : 31326 # Broken: success on invalid input. 31327 continue 31328 else 31329 # Passes both tests. 31330 ac_preproc_ok=: 31331 break 31332 fi 31333 rm -f conftest.err conftest.i conftest.$ac_ext 31334 31335 done 31336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31337 rm -f conftest.i conftest.err conftest.$ac_ext 31338 if $ac_preproc_ok; then : 31339 break 31340 fi 31341 31342 done 31343 ac_cv_prog_CXXCPP=$CXXCPP 31344 31345 fi 31346 CXXCPP=$ac_cv_prog_CXXCPP 31347 else 31348 ac_cv_prog_CXXCPP=$CXXCPP 31349 fi 31350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31351 $as_echo "$CXXCPP" >&6; } 31352 ac_preproc_ok=false 31353 for ac_cxx_preproc_warn_flag in '' yes 31354 do 31355 # Use a header file that comes with gcc, so configuring glibc 31356 # with a fresh cross-compiler works. 31357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31358 # <limits.h> exists even on freestanding compilers. 31359 # On the NeXT, cc -E runs the code through the compiler's parser, 31360 # not just through cpp. "Syntax error" is here to catch this case. 31361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31362 /* end confdefs.h. */ 31363 #ifdef __STDC__ 31364 # include <limits.h> 31365 #else 31366 # include <assert.h> 31367 #endif 31368 Syntax error 31369 _ACEOF 31370 if ac_fn_cxx_try_cpp "$LINENO"; then : 31371 31372 else 31373 # Broken: fails on valid input. 31374 continue 31375 fi 31376 rm -f conftest.err conftest.i conftest.$ac_ext 31377 31378 # OK, works on sane cases. Now check whether nonexistent headers 31379 # can be detected and how. 31380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31381 /* end confdefs.h. */ 31382 #include <ac_nonexistent.h> 31383 _ACEOF 31384 if ac_fn_cxx_try_cpp "$LINENO"; then : 31385 # Broken: success on invalid input. 31386 continue 31387 else 31388 # Passes both tests. 31389 ac_preproc_ok=: 31390 break 31391 fi 31392 rm -f conftest.err conftest.i conftest.$ac_ext 31393 31394 done 31395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31396 rm -f conftest.i conftest.err conftest.$ac_ext 31397 if $ac_preproc_ok; then : 31398 31399 else 31400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31402 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31403 See \`config.log' for more details" "$LINENO" 5; } 31404 fi 31405 31406 ac_ext=cpp 31407 ac_cpp='$CXXCPP $CPPFLAGS' 31408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31411 31412 31413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31414 31415 # First separate the path from the arguments. This will split at the first 31416 # space. 31417 complete="$CXXCPP" 31418 path="${complete%% *}" 31419 tmp="$complete EOL" 31420 arguments="${tmp#* }" 31421 31422 # Input might be given as Windows format, start by converting to 31423 # unix format. 31424 new_path=`$CYGPATH -u "$path"` 31425 31426 # Now try to locate executable using which 31427 new_path=`$WHICH "$new_path" 2> /dev/null` 31428 # bat and cmd files are not always considered executable in cygwin causing which 31429 # to not find them 31430 if test "x$new_path" = x \ 31431 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31432 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31433 new_path=`$CYGPATH -u "$path"` 31434 fi 31435 if test "x$new_path" = x; then 31436 # Oops. Which didn't find the executable. 31437 # The splitting of arguments from the executable at a space might have been incorrect, 31438 # since paths with space are more likely in Windows. Give it another try with the whole 31439 # argument. 31440 path="$complete" 31441 arguments="EOL" 31442 new_path=`$CYGPATH -u "$path"` 31443 new_path=`$WHICH "$new_path" 2> /dev/null` 31444 # bat and cmd files are not always considered executable in cygwin causing which 31445 # to not find them 31446 if test "x$new_path" = x \ 31447 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31448 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31449 new_path=`$CYGPATH -u "$path"` 31450 fi 31451 if test "x$new_path" = x; then 31452 # It's still not found. Now this is an unrecoverable error. 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31454 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31455 has_space=`$ECHO "$complete" | $GREP " "` 31456 if test "x$has_space" != x; then 31457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31459 fi 31460 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31461 fi 31462 fi 31463 31464 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31465 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31466 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31467 # "foo.exe" is OK but "foo" is an error. 31468 # 31469 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31470 # It is also a way to make sure we got the proper file name for the real test later on. 31471 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31472 if test "x$test_shortpath" = x; then 31473 # Short path failed, file does not exist as specified. 31474 # Try adding .exe or .cmd 31475 if test -f "${new_path}.exe"; then 31476 input_to_shortpath="${new_path}.exe" 31477 elif test -f "${new_path}.cmd"; then 31478 input_to_shortpath="${new_path}.cmd" 31479 else 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31481 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31482 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31483 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31484 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31485 fi 31486 else 31487 input_to_shortpath="$new_path" 31488 fi 31489 31490 # Call helper function which possibly converts this using DOS-style short mode. 31491 # If so, the updated path is stored in $new_path. 31492 new_path="$input_to_shortpath" 31493 31494 input_path="$input_to_shortpath" 31495 # Check if we need to convert this using DOS-style short mode. If the path 31496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31497 # take no chances and rewrite it. 31498 # Note: m4 eats our [], so we need to use [ and ] instead. 31499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31500 if test "x$has_forbidden_chars" != x; then 31501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31502 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31503 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31504 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31505 # Going to short mode and back again did indeed matter. Since short mode is 31506 # case insensitive, let's make it lowercase to improve readability. 31507 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31508 # Now convert it back to Unix-stile (cygpath) 31509 input_path=`$CYGPATH -u "$shortmode_path"` 31510 new_path="$input_path" 31511 fi 31512 fi 31513 31514 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31515 if test "x$test_cygdrive_prefix" = x; then 31516 # As a simple fix, exclude /usr/bin since it's not a real path. 31517 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31518 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31519 # a path prefixed by /cygdrive for fixpath to work. 31520 new_path="$CYGWIN_ROOT_PATH$input_path" 31521 fi 31522 fi 31523 31524 # remove trailing .exe if any 31525 new_path="${new_path/%.exe/}" 31526 31527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31528 31529 # First separate the path from the arguments. This will split at the first 31530 # space. 31531 complete="$CXXCPP" 31532 path="${complete%% *}" 31533 tmp="$complete EOL" 31534 arguments="${tmp#* }" 31535 31536 # Input might be given as Windows format, start by converting to 31537 # unix format. 31538 new_path="$path" 31539 31540 windows_path="$new_path" 31541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31542 unix_path=`$CYGPATH -u "$windows_path"` 31543 new_path="$unix_path" 31544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31546 new_path="$unix_path" 31547 fi 31548 31549 31550 # Now try to locate executable using which 31551 new_path=`$WHICH "$new_path" 2> /dev/null` 31552 31553 if test "x$new_path" = x; then 31554 # Oops. Which didn't find the executable. 31555 # The splitting of arguments from the executable at a space might have been incorrect, 31556 # since paths with space are more likely in Windows. Give it another try with the whole 31557 # argument. 31558 path="$complete" 31559 arguments="EOL" 31560 new_path="$path" 31561 31562 windows_path="$new_path" 31563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31564 unix_path=`$CYGPATH -u "$windows_path"` 31565 new_path="$unix_path" 31566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31568 new_path="$unix_path" 31569 fi 31570 31571 31572 new_path=`$WHICH "$new_path" 2> /dev/null` 31573 # bat and cmd files are not always considered executable in MSYS causing which 31574 # to not find them 31575 if test "x$new_path" = x \ 31576 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31577 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31578 new_path="$path" 31579 31580 windows_path="$new_path" 31581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31582 unix_path=`$CYGPATH -u "$windows_path"` 31583 new_path="$unix_path" 31584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31586 new_path="$unix_path" 31587 fi 31588 31589 fi 31590 31591 if test "x$new_path" = x; then 31592 # It's still not found. Now this is an unrecoverable error. 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31594 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31595 has_space=`$ECHO "$complete" | $GREP " "` 31596 if test "x$has_space" != x; then 31597 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31598 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31599 fi 31600 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31601 fi 31602 fi 31603 31604 # Now new_path has a complete unix path to the binary 31605 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31606 # Keep paths in /bin as-is, but remove trailing .exe if any 31607 new_path="${new_path/%.exe/}" 31608 # Do not save /bin paths to all_fixpath_prefixes! 31609 else 31610 # Not in mixed or Windows style, start by that. 31611 new_path=`cmd //c echo $new_path` 31612 31613 input_path="$new_path" 31614 # Check if we need to convert this using DOS-style short mode. If the path 31615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31616 # take no chances and rewrite it. 31617 # Note: m4 eats our [], so we need to use [ and ] instead. 31618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31619 if test "x$has_forbidden_chars" != x; then 31620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31621 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31622 fi 31623 31624 # Output is in $new_path 31625 31626 windows_path="$new_path" 31627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31628 unix_path=`$CYGPATH -u "$windows_path"` 31629 new_path="$unix_path" 31630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31632 new_path="$unix_path" 31633 fi 31634 31635 # remove trailing .exe if any 31636 new_path="${new_path/%.exe/}" 31637 31638 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31639 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31640 fi 31641 31642 else 31643 # We're on a posix platform. Hooray! :) 31644 # First separate the path from the arguments. This will split at the first 31645 # space. 31646 complete="$CXXCPP" 31647 path="${complete%% *}" 31648 tmp="$complete EOL" 31649 arguments="${tmp#* }" 31650 31651 # Cannot rely on the command "which" here since it doesn't always work. 31652 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31653 if test -z "$is_absolute_path"; then 31654 # Path to executable is not absolute. Find it. 31655 IFS_save="$IFS" 31656 IFS=: 31657 for p in $PATH; do 31658 if test -f "$p/$path" && test -x "$p/$path"; then 31659 new_path="$p/$path" 31660 break 31661 fi 31662 done 31663 IFS="$IFS_save" 31664 else 31665 # This is an absolute path, we can use it without further modifications. 31666 new_path="$path" 31667 fi 31668 31669 if test "x$new_path" = x; then 31670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31671 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31672 has_space=`$ECHO "$complete" | $GREP " "` 31673 if test "x$has_space" != x; then 31674 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31675 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31676 fi 31677 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31678 fi 31679 fi 31680 31681 # Now join together the path and the arguments once again 31682 if test "x$arguments" != xEOL; then 31683 new_complete="$new_path ${arguments% *}" 31684 else 31685 new_complete="$new_path" 31686 fi 31687 31688 if test "x$complete" != "x$new_complete"; then 31689 CXXCPP="$new_complete" 31690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31691 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31692 fi 31693 31694 31695 # 31696 # Setup the linker (LD) 31697 # 31698 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31699 # In the Microsoft toolchain we have a separate LD command "link". 31700 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31701 # a cygwin program for something completely different. 31702 # Extract the first word of "link", so it can be a program name with args. 31703 set dummy link; ac_word=$2 31704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31705 $as_echo_n "checking for $ac_word... " >&6; } 31706 if ${ac_cv_prog_LD+:} false; then : 31707 $as_echo_n "(cached) " >&6 31708 else 31709 if test -n "$LD"; then 31710 ac_cv_prog_LD="$LD" # Let the user override the test. 31711 else 31712 ac_prog_rejected=no 31713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31714 for as_dir in $PATH 31715 do 31716 IFS=$as_save_IFS 31717 test -z "$as_dir" && as_dir=. 31718 for ac_exec_ext in '' $ac_executable_extensions; do 31719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31720 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31721 ac_prog_rejected=yes 31722 continue 31723 fi 31724 ac_cv_prog_LD="link" 31725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31726 break 2 31727 fi 31728 done 31729 done 31730 IFS=$as_save_IFS 31731 31732 if test $ac_prog_rejected = yes; then 31733 # We found a bogon in the path, so make sure we never use it. 31734 set dummy $ac_cv_prog_LD 31735 shift 31736 if test $# != 0; then 31737 # We chose a different compiler from the bogus one. 31738 # However, it has the same basename, so the bogon will be chosen 31739 # first if we set LD to just the basename; use the full file name. 31740 shift 31741 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31742 fi 31743 fi 31744 fi 31745 fi 31746 LD=$ac_cv_prog_LD 31747 if test -n "$LD"; then 31748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31749 $as_echo "$LD" >&6; } 31750 else 31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31752 $as_echo "no" >&6; } 31753 fi 31754 31755 31756 31757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31758 31759 # First separate the path from the arguments. This will split at the first 31760 # space. 31761 complete="$LD" 31762 path="${complete%% *}" 31763 tmp="$complete EOL" 31764 arguments="${tmp#* }" 31765 31766 # Input might be given as Windows format, start by converting to 31767 # unix format. 31768 new_path=`$CYGPATH -u "$path"` 31769 31770 # Now try to locate executable using which 31771 new_path=`$WHICH "$new_path" 2> /dev/null` 31772 # bat and cmd files are not always considered executable in cygwin causing which 31773 # to not find them 31774 if test "x$new_path" = x \ 31775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31777 new_path=`$CYGPATH -u "$path"` 31778 fi 31779 if test "x$new_path" = x; then 31780 # Oops. Which didn't find the executable. 31781 # The splitting of arguments from the executable at a space might have been incorrect, 31782 # since paths with space are more likely in Windows. Give it another try with the whole 31783 # argument. 31784 path="$complete" 31785 arguments="EOL" 31786 new_path=`$CYGPATH -u "$path"` 31787 new_path=`$WHICH "$new_path" 2> /dev/null` 31788 # bat and cmd files are not always considered executable in cygwin causing which 31789 # to not find them 31790 if test "x$new_path" = x \ 31791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31793 new_path=`$CYGPATH -u "$path"` 31794 fi 31795 if test "x$new_path" = x; then 31796 # It's still not found. Now this is an unrecoverable error. 31797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31798 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31799 has_space=`$ECHO "$complete" | $GREP " "` 31800 if test "x$has_space" != x; then 31801 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31803 fi 31804 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31805 fi 31806 fi 31807 31808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31811 # "foo.exe" is OK but "foo" is an error. 31812 # 31813 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31814 # It is also a way to make sure we got the proper file name for the real test later on. 31815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31816 if test "x$test_shortpath" = x; then 31817 # Short path failed, file does not exist as specified. 31818 # Try adding .exe or .cmd 31819 if test -f "${new_path}.exe"; then 31820 input_to_shortpath="${new_path}.exe" 31821 elif test -f "${new_path}.cmd"; then 31822 input_to_shortpath="${new_path}.cmd" 31823 else 31824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31825 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31826 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31827 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31828 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31829 fi 31830 else 31831 input_to_shortpath="$new_path" 31832 fi 31833 31834 # Call helper function which possibly converts this using DOS-style short mode. 31835 # If so, the updated path is stored in $new_path. 31836 new_path="$input_to_shortpath" 31837 31838 input_path="$input_to_shortpath" 31839 # Check if we need to convert this using DOS-style short mode. If the path 31840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31841 # take no chances and rewrite it. 31842 # Note: m4 eats our [], so we need to use [ and ] instead. 31843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31844 if test "x$has_forbidden_chars" != x; then 31845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31849 # Going to short mode and back again did indeed matter. Since short mode is 31850 # case insensitive, let's make it lowercase to improve readability. 31851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31852 # Now convert it back to Unix-stile (cygpath) 31853 input_path=`$CYGPATH -u "$shortmode_path"` 31854 new_path="$input_path" 31855 fi 31856 fi 31857 31858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31859 if test "x$test_cygdrive_prefix" = x; then 31860 # As a simple fix, exclude /usr/bin since it's not a real path. 31861 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31863 # a path prefixed by /cygdrive for fixpath to work. 31864 new_path="$CYGWIN_ROOT_PATH$input_path" 31865 fi 31866 fi 31867 31868 # remove trailing .exe if any 31869 new_path="${new_path/%.exe/}" 31870 31871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31872 31873 # First separate the path from the arguments. This will split at the first 31874 # space. 31875 complete="$LD" 31876 path="${complete%% *}" 31877 tmp="$complete EOL" 31878 arguments="${tmp#* }" 31879 31880 # Input might be given as Windows format, start by converting to 31881 # unix format. 31882 new_path="$path" 31883 31884 windows_path="$new_path" 31885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31886 unix_path=`$CYGPATH -u "$windows_path"` 31887 new_path="$unix_path" 31888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31890 new_path="$unix_path" 31891 fi 31892 31893 31894 # Now try to locate executable using which 31895 new_path=`$WHICH "$new_path" 2> /dev/null` 31896 31897 if test "x$new_path" = x; then 31898 # Oops. Which didn't find the executable. 31899 # The splitting of arguments from the executable at a space might have been incorrect, 31900 # since paths with space are more likely in Windows. Give it another try with the whole 31901 # argument. 31902 path="$complete" 31903 arguments="EOL" 31904 new_path="$path" 31905 31906 windows_path="$new_path" 31907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31908 unix_path=`$CYGPATH -u "$windows_path"` 31909 new_path="$unix_path" 31910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31912 new_path="$unix_path" 31913 fi 31914 31915 31916 new_path=`$WHICH "$new_path" 2> /dev/null` 31917 # bat and cmd files are not always considered executable in MSYS causing which 31918 # to not find them 31919 if test "x$new_path" = x \ 31920 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31921 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31922 new_path="$path" 31923 31924 windows_path="$new_path" 31925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31926 unix_path=`$CYGPATH -u "$windows_path"` 31927 new_path="$unix_path" 31928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31930 new_path="$unix_path" 31931 fi 31932 31933 fi 31934 31935 if test "x$new_path" = x; then 31936 # It's still not found. Now this is an unrecoverable error. 31937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31938 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31939 has_space=`$ECHO "$complete" | $GREP " "` 31940 if test "x$has_space" != x; then 31941 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31942 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31943 fi 31944 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31945 fi 31946 fi 31947 31948 # Now new_path has a complete unix path to the binary 31949 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31950 # Keep paths in /bin as-is, but remove trailing .exe if any 31951 new_path="${new_path/%.exe/}" 31952 # Do not save /bin paths to all_fixpath_prefixes! 31953 else 31954 # Not in mixed or Windows style, start by that. 31955 new_path=`cmd //c echo $new_path` 31956 31957 input_path="$new_path" 31958 # Check if we need to convert this using DOS-style short mode. If the path 31959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31960 # take no chances and rewrite it. 31961 # Note: m4 eats our [], so we need to use [ and ] instead. 31962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31963 if test "x$has_forbidden_chars" != x; then 31964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31966 fi 31967 31968 # Output is in $new_path 31969 31970 windows_path="$new_path" 31971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31972 unix_path=`$CYGPATH -u "$windows_path"` 31973 new_path="$unix_path" 31974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31976 new_path="$unix_path" 31977 fi 31978 31979 # remove trailing .exe if any 31980 new_path="${new_path/%.exe/}" 31981 31982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31984 fi 31985 31986 else 31987 # We're on a posix platform. Hooray! :) 31988 # First separate the path from the arguments. This will split at the first 31989 # space. 31990 complete="$LD" 31991 path="${complete%% *}" 31992 tmp="$complete EOL" 31993 arguments="${tmp#* }" 31994 31995 # Cannot rely on the command "which" here since it doesn't always work. 31996 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31997 if test -z "$is_absolute_path"; then 31998 # Path to executable is not absolute. Find it. 31999 IFS_save="$IFS" 32000 IFS=: 32001 for p in $PATH; do 32002 if test -f "$p/$path" && test -x "$p/$path"; then 32003 new_path="$p/$path" 32004 break 32005 fi 32006 done 32007 IFS="$IFS_save" 32008 else 32009 # This is an absolute path, we can use it without further modifications. 32010 new_path="$path" 32011 fi 32012 32013 if test "x$new_path" = x; then 32014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32015 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32016 has_space=`$ECHO "$complete" | $GREP " "` 32017 if test "x$has_space" != x; then 32018 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32019 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32020 fi 32021 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32022 fi 32023 fi 32024 32025 # Now join together the path and the arguments once again 32026 if test "x$arguments" != xEOL; then 32027 new_complete="$new_path ${arguments% *}" 32028 else 32029 new_complete="$new_path" 32030 fi 32031 32032 if test "x$complete" != "x$new_complete"; then 32033 LD="$new_complete" 32034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32035 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32036 fi 32037 32038 # Verify that we indeed succeeded with this trick. 32039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32040 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32041 "$LD" --version > /dev/null 32042 if test $? -eq 0 ; then 32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32044 $as_echo "no" >&6; } 32045 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32046 else 32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32048 $as_echo "yes" >&6; } 32049 fi 32050 LDCXX="$LD" 32051 else 32052 # All other toolchains use the compiler to link. 32053 LD="$CC" 32054 LDCXX="$CXX" 32055 fi 32056 32057 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32058 32059 32060 # 32061 # Setup the assembler (AS) 32062 # 32063 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32064 # FIXME: should this really be solaris, or solstudio? 32065 32066 32067 # Publish this variable in the help. 32068 32069 32070 if test "x$AS" = x; then 32071 # The variable is not set by user, try to locate tool using the code snippet 32072 for ac_prog in as 32073 do 32074 # Extract the first word of "$ac_prog", so it can be a program name with args. 32075 set dummy $ac_prog; ac_word=$2 32076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32077 $as_echo_n "checking for $ac_word... " >&6; } 32078 if ${ac_cv_path_AS+:} false; then : 32079 $as_echo_n "(cached) " >&6 32080 else 32081 case $AS in 32082 [\\/]* | ?:[\\/]*) 32083 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32084 ;; 32085 *) 32086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32087 for as_dir in $PATH 32088 do 32089 IFS=$as_save_IFS 32090 test -z "$as_dir" && as_dir=. 32091 for ac_exec_ext in '' $ac_executable_extensions; do 32092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32093 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32095 break 2 32096 fi 32097 done 32098 done 32099 IFS=$as_save_IFS 32100 32101 ;; 32102 esac 32103 fi 32104 AS=$ac_cv_path_AS 32105 if test -n "$AS"; then 32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32107 $as_echo "$AS" >&6; } 32108 else 32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32110 $as_echo "no" >&6; } 32111 fi 32112 32113 32114 test -n "$AS" && break 32115 done 32116 32117 else 32118 # The variable is set, but is it from the command line or the environment? 32119 32120 # Try to remove the string !AS! from our list. 32121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32123 # If it failed, the variable was not from the command line. Ignore it, 32124 # but warn the user (except for BASH, which is always set by the calling BASH). 32125 if test "xAS" != xBASH; then 32126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32127 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32128 fi 32129 # Try to locate tool using the code snippet 32130 for ac_prog in as 32131 do 32132 # Extract the first word of "$ac_prog", so it can be a program name with args. 32133 set dummy $ac_prog; ac_word=$2 32134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32135 $as_echo_n "checking for $ac_word... " >&6; } 32136 if ${ac_cv_path_AS+:} false; then : 32137 $as_echo_n "(cached) " >&6 32138 else 32139 case $AS in 32140 [\\/]* | ?:[\\/]*) 32141 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32142 ;; 32143 *) 32144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32145 for as_dir in $PATH 32146 do 32147 IFS=$as_save_IFS 32148 test -z "$as_dir" && as_dir=. 32149 for ac_exec_ext in '' $ac_executable_extensions; do 32150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32151 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32153 break 2 32154 fi 32155 done 32156 done 32157 IFS=$as_save_IFS 32158 32159 ;; 32160 esac 32161 fi 32162 AS=$ac_cv_path_AS 32163 if test -n "$AS"; then 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32165 $as_echo "$AS" >&6; } 32166 else 32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32168 $as_echo "no" >&6; } 32169 fi 32170 32171 32172 test -n "$AS" && break 32173 done 32174 32175 else 32176 # If it succeeded, then it was overridden by the user. We will use it 32177 # for the tool. 32178 32179 # First remove it from the list of overridden variables, so we can test 32180 # for unknown variables in the end. 32181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32182 32183 # Check if the provided tool contains a complete path. 32184 tool_specified="$AS" 32185 tool_basename="${tool_specified##*/}" 32186 if test "x$tool_basename" = "x$tool_specified"; then 32187 # A command without a complete path is provided, search $PATH. 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32189 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32190 # Extract the first word of "$tool_basename", so it can be a program name with args. 32191 set dummy $tool_basename; ac_word=$2 32192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32193 $as_echo_n "checking for $ac_word... " >&6; } 32194 if ${ac_cv_path_AS+:} false; then : 32195 $as_echo_n "(cached) " >&6 32196 else 32197 case $AS in 32198 [\\/]* | ?:[\\/]*) 32199 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32200 ;; 32201 *) 32202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32203 for as_dir in $PATH 32204 do 32205 IFS=$as_save_IFS 32206 test -z "$as_dir" && as_dir=. 32207 for ac_exec_ext in '' $ac_executable_extensions; do 32208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32209 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32211 break 2 32212 fi 32213 done 32214 done 32215 IFS=$as_save_IFS 32216 32217 ;; 32218 esac 32219 fi 32220 AS=$ac_cv_path_AS 32221 if test -n "$AS"; then 32222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32223 $as_echo "$AS" >&6; } 32224 else 32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32226 $as_echo "no" >&6; } 32227 fi 32228 32229 32230 if test "x$AS" = x; then 32231 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32232 fi 32233 else 32234 # Otherwise we believe it is a complete path. Use it as it is. 32235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32236 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32238 $as_echo_n "checking for AS... " >&6; } 32239 if test ! -x "$tool_specified"; then 32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32241 $as_echo "not found" >&6; } 32242 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32243 fi 32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32245 $as_echo "$tool_specified" >&6; } 32246 fi 32247 fi 32248 fi 32249 32250 32251 32252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32253 32254 # First separate the path from the arguments. This will split at the first 32255 # space. 32256 complete="$AS" 32257 path="${complete%% *}" 32258 tmp="$complete EOL" 32259 arguments="${tmp#* }" 32260 32261 # Input might be given as Windows format, start by converting to 32262 # unix format. 32263 new_path=`$CYGPATH -u "$path"` 32264 32265 # Now try to locate executable using which 32266 new_path=`$WHICH "$new_path" 2> /dev/null` 32267 # bat and cmd files are not always considered executable in cygwin causing which 32268 # to not find them 32269 if test "x$new_path" = x \ 32270 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32271 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32272 new_path=`$CYGPATH -u "$path"` 32273 fi 32274 if test "x$new_path" = x; then 32275 # Oops. Which didn't find the executable. 32276 # The splitting of arguments from the executable at a space might have been incorrect, 32277 # since paths with space are more likely in Windows. Give it another try with the whole 32278 # argument. 32279 path="$complete" 32280 arguments="EOL" 32281 new_path=`$CYGPATH -u "$path"` 32282 new_path=`$WHICH "$new_path" 2> /dev/null` 32283 # bat and cmd files are not always considered executable in cygwin causing which 32284 # to not find them 32285 if test "x$new_path" = x \ 32286 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32287 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32288 new_path=`$CYGPATH -u "$path"` 32289 fi 32290 if test "x$new_path" = x; then 32291 # It's still not found. Now this is an unrecoverable error. 32292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32293 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32294 has_space=`$ECHO "$complete" | $GREP " "` 32295 if test "x$has_space" != x; then 32296 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32297 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32298 fi 32299 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32300 fi 32301 fi 32302 32303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32306 # "foo.exe" is OK but "foo" is an error. 32307 # 32308 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32309 # It is also a way to make sure we got the proper file name for the real test later on. 32310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32311 if test "x$test_shortpath" = x; then 32312 # Short path failed, file does not exist as specified. 32313 # Try adding .exe or .cmd 32314 if test -f "${new_path}.exe"; then 32315 input_to_shortpath="${new_path}.exe" 32316 elif test -f "${new_path}.cmd"; then 32317 input_to_shortpath="${new_path}.cmd" 32318 else 32319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32320 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32321 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32322 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32323 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32324 fi 32325 else 32326 input_to_shortpath="$new_path" 32327 fi 32328 32329 # Call helper function which possibly converts this using DOS-style short mode. 32330 # If so, the updated path is stored in $new_path. 32331 new_path="$input_to_shortpath" 32332 32333 input_path="$input_to_shortpath" 32334 # Check if we need to convert this using DOS-style short mode. If the path 32335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32336 # take no chances and rewrite it. 32337 # Note: m4 eats our [], so we need to use [ and ] instead. 32338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32339 if test "x$has_forbidden_chars" != x; then 32340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32344 # Going to short mode and back again did indeed matter. Since short mode is 32345 # case insensitive, let's make it lowercase to improve readability. 32346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32347 # Now convert it back to Unix-stile (cygpath) 32348 input_path=`$CYGPATH -u "$shortmode_path"` 32349 new_path="$input_path" 32350 fi 32351 fi 32352 32353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32354 if test "x$test_cygdrive_prefix" = x; then 32355 # As a simple fix, exclude /usr/bin since it's not a real path. 32356 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32358 # a path prefixed by /cygdrive for fixpath to work. 32359 new_path="$CYGWIN_ROOT_PATH$input_path" 32360 fi 32361 fi 32362 32363 # remove trailing .exe if any 32364 new_path="${new_path/%.exe/}" 32365 32366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32367 32368 # First separate the path from the arguments. This will split at the first 32369 # space. 32370 complete="$AS" 32371 path="${complete%% *}" 32372 tmp="$complete EOL" 32373 arguments="${tmp#* }" 32374 32375 # Input might be given as Windows format, start by converting to 32376 # unix format. 32377 new_path="$path" 32378 32379 windows_path="$new_path" 32380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32381 unix_path=`$CYGPATH -u "$windows_path"` 32382 new_path="$unix_path" 32383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32385 new_path="$unix_path" 32386 fi 32387 32388 32389 # Now try to locate executable using which 32390 new_path=`$WHICH "$new_path" 2> /dev/null` 32391 32392 if test "x$new_path" = x; then 32393 # Oops. Which didn't find the executable. 32394 # The splitting of arguments from the executable at a space might have been incorrect, 32395 # since paths with space are more likely in Windows. Give it another try with the whole 32396 # argument. 32397 path="$complete" 32398 arguments="EOL" 32399 new_path="$path" 32400 32401 windows_path="$new_path" 32402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32403 unix_path=`$CYGPATH -u "$windows_path"` 32404 new_path="$unix_path" 32405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32407 new_path="$unix_path" 32408 fi 32409 32410 32411 new_path=`$WHICH "$new_path" 2> /dev/null` 32412 # bat and cmd files are not always considered executable in MSYS causing which 32413 # to not find them 32414 if test "x$new_path" = x \ 32415 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32416 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32417 new_path="$path" 32418 32419 windows_path="$new_path" 32420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32421 unix_path=`$CYGPATH -u "$windows_path"` 32422 new_path="$unix_path" 32423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32425 new_path="$unix_path" 32426 fi 32427 32428 fi 32429 32430 if test "x$new_path" = x; then 32431 # It's still not found. Now this is an unrecoverable error. 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32433 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32434 has_space=`$ECHO "$complete" | $GREP " "` 32435 if test "x$has_space" != x; then 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32437 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32438 fi 32439 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32440 fi 32441 fi 32442 32443 # Now new_path has a complete unix path to the binary 32444 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32445 # Keep paths in /bin as-is, but remove trailing .exe if any 32446 new_path="${new_path/%.exe/}" 32447 # Do not save /bin paths to all_fixpath_prefixes! 32448 else 32449 # Not in mixed or Windows style, start by that. 32450 new_path=`cmd //c echo $new_path` 32451 32452 input_path="$new_path" 32453 # Check if we need to convert this using DOS-style short mode. If the path 32454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32455 # take no chances and rewrite it. 32456 # Note: m4 eats our [], so we need to use [ and ] instead. 32457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32458 if test "x$has_forbidden_chars" != x; then 32459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32461 fi 32462 32463 # Output is in $new_path 32464 32465 windows_path="$new_path" 32466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32467 unix_path=`$CYGPATH -u "$windows_path"` 32468 new_path="$unix_path" 32469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32471 new_path="$unix_path" 32472 fi 32473 32474 # remove trailing .exe if any 32475 new_path="${new_path/%.exe/}" 32476 32477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32479 fi 32480 32481 else 32482 # We're on a posix platform. Hooray! :) 32483 # First separate the path from the arguments. This will split at the first 32484 # space. 32485 complete="$AS" 32486 path="${complete%% *}" 32487 tmp="$complete EOL" 32488 arguments="${tmp#* }" 32489 32490 # Cannot rely on the command "which" here since it doesn't always work. 32491 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32492 if test -z "$is_absolute_path"; then 32493 # Path to executable is not absolute. Find it. 32494 IFS_save="$IFS" 32495 IFS=: 32496 for p in $PATH; do 32497 if test -f "$p/$path" && test -x "$p/$path"; then 32498 new_path="$p/$path" 32499 break 32500 fi 32501 done 32502 IFS="$IFS_save" 32503 else 32504 # This is an absolute path, we can use it without further modifications. 32505 new_path="$path" 32506 fi 32507 32508 if test "x$new_path" = x; then 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32510 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32511 has_space=`$ECHO "$complete" | $GREP " "` 32512 if test "x$has_space" != x; then 32513 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32514 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32515 fi 32516 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32517 fi 32518 fi 32519 32520 # Now join together the path and the arguments once again 32521 if test "x$arguments" != xEOL; then 32522 new_complete="$new_path ${arguments% *}" 32523 else 32524 new_complete="$new_path" 32525 fi 32526 32527 if test "x$complete" != "x$new_complete"; then 32528 AS="$new_complete" 32529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32530 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32531 fi 32532 32533 else 32534 # FIXME: is this correct for microsoft? 32535 AS="$CC -c" 32536 fi 32537 32538 32539 # 32540 # Setup the archiver (AR) 32541 # 32542 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32543 # The corresponding ar tool is lib.exe (used to create static libraries) 32544 # Extract the first word of "lib", so it can be a program name with args. 32545 set dummy lib; ac_word=$2 32546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32547 $as_echo_n "checking for $ac_word... " >&6; } 32548 if ${ac_cv_prog_AR+:} false; then : 32549 $as_echo_n "(cached) " >&6 32550 else 32551 if test -n "$AR"; then 32552 ac_cv_prog_AR="$AR" # Let the user override the test. 32553 else 32554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32555 for as_dir in $PATH 32556 do 32557 IFS=$as_save_IFS 32558 test -z "$as_dir" && as_dir=. 32559 for ac_exec_ext in '' $ac_executable_extensions; do 32560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32561 ac_cv_prog_AR="lib" 32562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32563 break 2 32564 fi 32565 done 32566 done 32567 IFS=$as_save_IFS 32568 32569 fi 32570 fi 32571 AR=$ac_cv_prog_AR 32572 if test -n "$AR"; then 32573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32574 $as_echo "$AR" >&6; } 32575 else 32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32577 $as_echo "no" >&6; } 32578 fi 32579 32580 32581 else 32582 32583 32584 # Publish this variable in the help. 32585 32586 32587 if test "x$AR" = x; then 32588 # The variable is not set by user, try to locate tool using the code snippet 32589 if test -n "$ac_tool_prefix"; then 32590 for ac_prog in ar 32591 do 32592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32595 $as_echo_n "checking for $ac_word... " >&6; } 32596 if ${ac_cv_prog_AR+:} false; then : 32597 $as_echo_n "(cached) " >&6 32598 else 32599 if test -n "$AR"; then 32600 ac_cv_prog_AR="$AR" # Let the user override the test. 32601 else 32602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32603 for as_dir in $PATH 32604 do 32605 IFS=$as_save_IFS 32606 test -z "$as_dir" && as_dir=. 32607 for ac_exec_ext in '' $ac_executable_extensions; do 32608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32609 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32611 break 2 32612 fi 32613 done 32614 done 32615 IFS=$as_save_IFS 32616 32617 fi 32618 fi 32619 AR=$ac_cv_prog_AR 32620 if test -n "$AR"; then 32621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32622 $as_echo "$AR" >&6; } 32623 else 32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32625 $as_echo "no" >&6; } 32626 fi 32627 32628 32629 test -n "$AR" && break 32630 done 32631 fi 32632 if test -z "$AR"; then 32633 ac_ct_AR=$AR 32634 for ac_prog in ar 32635 do 32636 # Extract the first word of "$ac_prog", so it can be a program name with args. 32637 set dummy $ac_prog; ac_word=$2 32638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32639 $as_echo_n "checking for $ac_word... " >&6; } 32640 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32641 $as_echo_n "(cached) " >&6 32642 else 32643 if test -n "$ac_ct_AR"; then 32644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32645 else 32646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32647 for as_dir in $PATH 32648 do 32649 IFS=$as_save_IFS 32650 test -z "$as_dir" && as_dir=. 32651 for ac_exec_ext in '' $ac_executable_extensions; do 32652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32653 ac_cv_prog_ac_ct_AR="$ac_prog" 32654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32655 break 2 32656 fi 32657 done 32658 done 32659 IFS=$as_save_IFS 32660 32661 fi 32662 fi 32663 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32664 if test -n "$ac_ct_AR"; then 32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32666 $as_echo "$ac_ct_AR" >&6; } 32667 else 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32669 $as_echo "no" >&6; } 32670 fi 32671 32672 32673 test -n "$ac_ct_AR" && break 32674 done 32675 32676 if test "x$ac_ct_AR" = x; then 32677 AR="" 32678 else 32679 case $cross_compiling:$ac_tool_warned in 32680 yes:) 32681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32683 ac_tool_warned=yes ;; 32684 esac 32685 AR=$ac_ct_AR 32686 fi 32687 fi 32688 32689 else 32690 # The variable is set, but is it from the command line or the environment? 32691 32692 # Try to remove the string !AR! from our list. 32693 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32694 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32695 # If it failed, the variable was not from the command line. Ignore it, 32696 # but warn the user (except for BASH, which is always set by the calling BASH). 32697 if test "xAR" != xBASH; then 32698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32699 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32700 fi 32701 # Try to locate tool using the code snippet 32702 if test -n "$ac_tool_prefix"; then 32703 for ac_prog in ar 32704 do 32705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32708 $as_echo_n "checking for $ac_word... " >&6; } 32709 if ${ac_cv_prog_AR+:} false; then : 32710 $as_echo_n "(cached) " >&6 32711 else 32712 if test -n "$AR"; then 32713 ac_cv_prog_AR="$AR" # Let the user override the test. 32714 else 32715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32716 for as_dir in $PATH 32717 do 32718 IFS=$as_save_IFS 32719 test -z "$as_dir" && as_dir=. 32720 for ac_exec_ext in '' $ac_executable_extensions; do 32721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32722 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32724 break 2 32725 fi 32726 done 32727 done 32728 IFS=$as_save_IFS 32729 32730 fi 32731 fi 32732 AR=$ac_cv_prog_AR 32733 if test -n "$AR"; then 32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32735 $as_echo "$AR" >&6; } 32736 else 32737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32738 $as_echo "no" >&6; } 32739 fi 32740 32741 32742 test -n "$AR" && break 32743 done 32744 fi 32745 if test -z "$AR"; then 32746 ac_ct_AR=$AR 32747 for ac_prog in ar 32748 do 32749 # Extract the first word of "$ac_prog", so it can be a program name with args. 32750 set dummy $ac_prog; ac_word=$2 32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32752 $as_echo_n "checking for $ac_word... " >&6; } 32753 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32754 $as_echo_n "(cached) " >&6 32755 else 32756 if test -n "$ac_ct_AR"; then 32757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32758 else 32759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32760 for as_dir in $PATH 32761 do 32762 IFS=$as_save_IFS 32763 test -z "$as_dir" && as_dir=. 32764 for ac_exec_ext in '' $ac_executable_extensions; do 32765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32766 ac_cv_prog_ac_ct_AR="$ac_prog" 32767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32768 break 2 32769 fi 32770 done 32771 done 32772 IFS=$as_save_IFS 32773 32774 fi 32775 fi 32776 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32777 if test -n "$ac_ct_AR"; then 32778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32779 $as_echo "$ac_ct_AR" >&6; } 32780 else 32781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32782 $as_echo "no" >&6; } 32783 fi 32784 32785 32786 test -n "$ac_ct_AR" && break 32787 done 32788 32789 if test "x$ac_ct_AR" = x; then 32790 AR="" 32791 else 32792 case $cross_compiling:$ac_tool_warned in 32793 yes:) 32794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32796 ac_tool_warned=yes ;; 32797 esac 32798 AR=$ac_ct_AR 32799 fi 32800 fi 32801 32802 else 32803 # If it succeeded, then it was overridden by the user. We will use it 32804 # for the tool. 32805 32806 # First remove it from the list of overridden variables, so we can test 32807 # for unknown variables in the end. 32808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32809 32810 # Check if the provided tool contains a complete path. 32811 tool_specified="$AR" 32812 tool_basename="${tool_specified##*/}" 32813 if test "x$tool_basename" = "x$tool_specified"; then 32814 # A command without a complete path is provided, search $PATH. 32815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32816 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32817 # Extract the first word of "$tool_basename", so it can be a program name with args. 32818 set dummy $tool_basename; ac_word=$2 32819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32820 $as_echo_n "checking for $ac_word... " >&6; } 32821 if ${ac_cv_path_AR+:} false; then : 32822 $as_echo_n "(cached) " >&6 32823 else 32824 case $AR in 32825 [\\/]* | ?:[\\/]*) 32826 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32827 ;; 32828 *) 32829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32830 for as_dir in $PATH 32831 do 32832 IFS=$as_save_IFS 32833 test -z "$as_dir" && as_dir=. 32834 for ac_exec_ext in '' $ac_executable_extensions; do 32835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32836 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32838 break 2 32839 fi 32840 done 32841 done 32842 IFS=$as_save_IFS 32843 32844 ;; 32845 esac 32846 fi 32847 AR=$ac_cv_path_AR 32848 if test -n "$AR"; then 32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32850 $as_echo "$AR" >&6; } 32851 else 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32853 $as_echo "no" >&6; } 32854 fi 32855 32856 32857 if test "x$AR" = x; then 32858 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32859 fi 32860 else 32861 # Otherwise we believe it is a complete path. Use it as it is. 32862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32863 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32865 $as_echo_n "checking for AR... " >&6; } 32866 if test ! -x "$tool_specified"; then 32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32868 $as_echo "not found" >&6; } 32869 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32870 fi 32871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32872 $as_echo "$tool_specified" >&6; } 32873 fi 32874 fi 32875 fi 32876 32877 32878 fi 32879 32880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32881 32882 # First separate the path from the arguments. This will split at the first 32883 # space. 32884 complete="$AR" 32885 path="${complete%% *}" 32886 tmp="$complete EOL" 32887 arguments="${tmp#* }" 32888 32889 # Input might be given as Windows format, start by converting to 32890 # unix format. 32891 new_path=`$CYGPATH -u "$path"` 32892 32893 # Now try to locate executable using which 32894 new_path=`$WHICH "$new_path" 2> /dev/null` 32895 # bat and cmd files are not always considered executable in cygwin causing which 32896 # to not find them 32897 if test "x$new_path" = x \ 32898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32900 new_path=`$CYGPATH -u "$path"` 32901 fi 32902 if test "x$new_path" = x; then 32903 # Oops. Which didn't find the executable. 32904 # The splitting of arguments from the executable at a space might have been incorrect, 32905 # since paths with space are more likely in Windows. Give it another try with the whole 32906 # argument. 32907 path="$complete" 32908 arguments="EOL" 32909 new_path=`$CYGPATH -u "$path"` 32910 new_path=`$WHICH "$new_path" 2> /dev/null` 32911 # bat and cmd files are not always considered executable in cygwin causing which 32912 # to not find them 32913 if test "x$new_path" = x \ 32914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32916 new_path=`$CYGPATH -u "$path"` 32917 fi 32918 if test "x$new_path" = x; then 32919 # It's still not found. Now this is an unrecoverable error. 32920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32921 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32922 has_space=`$ECHO "$complete" | $GREP " "` 32923 if test "x$has_space" != x; then 32924 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32925 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32926 fi 32927 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32928 fi 32929 fi 32930 32931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32934 # "foo.exe" is OK but "foo" is an error. 32935 # 32936 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32937 # It is also a way to make sure we got the proper file name for the real test later on. 32938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32939 if test "x$test_shortpath" = x; then 32940 # Short path failed, file does not exist as specified. 32941 # Try adding .exe or .cmd 32942 if test -f "${new_path}.exe"; then 32943 input_to_shortpath="${new_path}.exe" 32944 elif test -f "${new_path}.cmd"; then 32945 input_to_shortpath="${new_path}.cmd" 32946 else 32947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32948 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32949 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32950 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32951 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32952 fi 32953 else 32954 input_to_shortpath="$new_path" 32955 fi 32956 32957 # Call helper function which possibly converts this using DOS-style short mode. 32958 # If so, the updated path is stored in $new_path. 32959 new_path="$input_to_shortpath" 32960 32961 input_path="$input_to_shortpath" 32962 # Check if we need to convert this using DOS-style short mode. If the path 32963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32964 # take no chances and rewrite it. 32965 # Note: m4 eats our [], so we need to use [ and ] instead. 32966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32967 if test "x$has_forbidden_chars" != x; then 32968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32969 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32970 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32971 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32972 # Going to short mode and back again did indeed matter. Since short mode is 32973 # case insensitive, let's make it lowercase to improve readability. 32974 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32975 # Now convert it back to Unix-stile (cygpath) 32976 input_path=`$CYGPATH -u "$shortmode_path"` 32977 new_path="$input_path" 32978 fi 32979 fi 32980 32981 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32982 if test "x$test_cygdrive_prefix" = x; then 32983 # As a simple fix, exclude /usr/bin since it's not a real path. 32984 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32985 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32986 # a path prefixed by /cygdrive for fixpath to work. 32987 new_path="$CYGWIN_ROOT_PATH$input_path" 32988 fi 32989 fi 32990 32991 # remove trailing .exe if any 32992 new_path="${new_path/%.exe/}" 32993 32994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32995 32996 # First separate the path from the arguments. This will split at the first 32997 # space. 32998 complete="$AR" 32999 path="${complete%% *}" 33000 tmp="$complete EOL" 33001 arguments="${tmp#* }" 33002 33003 # Input might be given as Windows format, start by converting to 33004 # unix format. 33005 new_path="$path" 33006 33007 windows_path="$new_path" 33008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33009 unix_path=`$CYGPATH -u "$windows_path"` 33010 new_path="$unix_path" 33011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33013 new_path="$unix_path" 33014 fi 33015 33016 33017 # Now try to locate executable using which 33018 new_path=`$WHICH "$new_path" 2> /dev/null` 33019 33020 if test "x$new_path" = x; then 33021 # Oops. Which didn't find the executable. 33022 # The splitting of arguments from the executable at a space might have been incorrect, 33023 # since paths with space are more likely in Windows. Give it another try with the whole 33024 # argument. 33025 path="$complete" 33026 arguments="EOL" 33027 new_path="$path" 33028 33029 windows_path="$new_path" 33030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33031 unix_path=`$CYGPATH -u "$windows_path"` 33032 new_path="$unix_path" 33033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33035 new_path="$unix_path" 33036 fi 33037 33038 33039 new_path=`$WHICH "$new_path" 2> /dev/null` 33040 # bat and cmd files are not always considered executable in MSYS causing which 33041 # to not find them 33042 if test "x$new_path" = x \ 33043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33045 new_path="$path" 33046 33047 windows_path="$new_path" 33048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33049 unix_path=`$CYGPATH -u "$windows_path"` 33050 new_path="$unix_path" 33051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33052 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33053 new_path="$unix_path" 33054 fi 33055 33056 fi 33057 33058 if test "x$new_path" = x; then 33059 # It's still not found. Now this is an unrecoverable error. 33060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33061 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33062 has_space=`$ECHO "$complete" | $GREP " "` 33063 if test "x$has_space" != x; then 33064 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33065 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33066 fi 33067 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33068 fi 33069 fi 33070 33071 # Now new_path has a complete unix path to the binary 33072 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33073 # Keep paths in /bin as-is, but remove trailing .exe if any 33074 new_path="${new_path/%.exe/}" 33075 # Do not save /bin paths to all_fixpath_prefixes! 33076 else 33077 # Not in mixed or Windows style, start by that. 33078 new_path=`cmd //c echo $new_path` 33079 33080 input_path="$new_path" 33081 # Check if we need to convert this using DOS-style short mode. If the path 33082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33083 # take no chances and rewrite it. 33084 # Note: m4 eats our [], so we need to use [ and ] instead. 33085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33086 if test "x$has_forbidden_chars" != x; then 33087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33089 fi 33090 33091 # Output is in $new_path 33092 33093 windows_path="$new_path" 33094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33095 unix_path=`$CYGPATH -u "$windows_path"` 33096 new_path="$unix_path" 33097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33099 new_path="$unix_path" 33100 fi 33101 33102 # remove trailing .exe if any 33103 new_path="${new_path/%.exe/}" 33104 33105 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33106 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33107 fi 33108 33109 else 33110 # We're on a posix platform. Hooray! :) 33111 # First separate the path from the arguments. This will split at the first 33112 # space. 33113 complete="$AR" 33114 path="${complete%% *}" 33115 tmp="$complete EOL" 33116 arguments="${tmp#* }" 33117 33118 # Cannot rely on the command "which" here since it doesn't always work. 33119 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33120 if test -z "$is_absolute_path"; then 33121 # Path to executable is not absolute. Find it. 33122 IFS_save="$IFS" 33123 IFS=: 33124 for p in $PATH; do 33125 if test -f "$p/$path" && test -x "$p/$path"; then 33126 new_path="$p/$path" 33127 break 33128 fi 33129 done 33130 IFS="$IFS_save" 33131 else 33132 # This is an absolute path, we can use it without further modifications. 33133 new_path="$path" 33134 fi 33135 33136 if test "x$new_path" = x; then 33137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33138 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33139 has_space=`$ECHO "$complete" | $GREP " "` 33140 if test "x$has_space" != x; then 33141 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33142 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33143 fi 33144 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33145 fi 33146 fi 33147 33148 # Now join together the path and the arguments once again 33149 if test "x$arguments" != xEOL; then 33150 new_complete="$new_path ${arguments% *}" 33151 else 33152 new_complete="$new_path" 33153 fi 33154 33155 if test "x$complete" != "x$new_complete"; then 33156 AR="$new_complete" 33157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33158 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33159 fi 33160 33161 33162 33163 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33164 ac_ext=m 33165 ac_cpp='$OBJCPP $CPPFLAGS' 33166 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33167 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33168 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 33169 if test -n "$ac_tool_prefix"; then 33170 for ac_prog in gcc objcc objc cc CC 33171 do 33172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33175 $as_echo_n "checking for $ac_word... " >&6; } 33176 if ${ac_cv_prog_OBJC+:} false; then : 33177 $as_echo_n "(cached) " >&6 33178 else 33179 if test -n "$OBJC"; then 33180 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 33181 else 33182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33183 for as_dir in $PATH 33184 do 33185 IFS=$as_save_IFS 33186 test -z "$as_dir" && as_dir=. 33187 for ac_exec_ext in '' $ac_executable_extensions; do 33188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33189 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 33190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33191 break 2 33192 fi 33193 done 33194 done 33195 IFS=$as_save_IFS 33196 33197 fi 33198 fi 33199 OBJC=$ac_cv_prog_OBJC 33200 if test -n "$OBJC"; then 33201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 33202 $as_echo "$OBJC" >&6; } 33203 else 33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33205 $as_echo "no" >&6; } 33206 fi 33207 33208 33209 test -n "$OBJC" && break 33210 done 33211 fi 33212 if test -z "$OBJC"; then 33213 ac_ct_OBJC=$OBJC 33214 for ac_prog in gcc objcc objc cc CC 33215 do 33216 # Extract the first word of "$ac_prog", so it can be a program name with args. 33217 set dummy $ac_prog; ac_word=$2 33218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33219 $as_echo_n "checking for $ac_word... " >&6; } 33220 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 33221 $as_echo_n "(cached) " >&6 33222 else 33223 if test -n "$ac_ct_OBJC"; then 33224 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 33225 else 33226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33227 for as_dir in $PATH 33228 do 33229 IFS=$as_save_IFS 33230 test -z "$as_dir" && as_dir=. 33231 for ac_exec_ext in '' $ac_executable_extensions; do 33232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33233 ac_cv_prog_ac_ct_OBJC="$ac_prog" 33234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33235 break 2 33236 fi 33237 done 33238 done 33239 IFS=$as_save_IFS 33240 33241 fi 33242 fi 33243 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 33244 if test -n "$ac_ct_OBJC"; then 33245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 33246 $as_echo "$ac_ct_OBJC" >&6; } 33247 else 33248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33249 $as_echo "no" >&6; } 33250 fi 33251 33252 33253 test -n "$ac_ct_OBJC" && break 33254 done 33255 33256 if test "x$ac_ct_OBJC" = x; then 33257 OBJC="gcc" 33258 else 33259 case $cross_compiling:$ac_tool_warned in 33260 yes:) 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33263 ac_tool_warned=yes ;; 33264 esac 33265 OBJC=$ac_ct_OBJC 33266 fi 33267 fi 33268 33269 # Provide some information about the compiler. 33270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 33271 set X $ac_compile 33272 ac_compiler=$2 33273 for ac_option in --version -v -V -qversion; do 33274 { { ac_try="$ac_compiler $ac_option >&5" 33275 case "(($ac_try" in 33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33277 *) ac_try_echo=$ac_try;; 33278 esac 33279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33280 $as_echo "$ac_try_echo"; } >&5 33281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33282 ac_status=$? 33283 if test -s conftest.err; then 33284 sed '10a\ 33285 ... rest of stderr output deleted ... 33286 10q' conftest.err >conftest.er1 33287 cat conftest.er1 >&5 33288 fi 33289 rm -f conftest.er1 conftest.err 33290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33291 test $ac_status = 0; } 33292 done 33293 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 33295 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 33296 if ${ac_cv_objc_compiler_gnu+:} false; then : 33297 $as_echo_n "(cached) " >&6 33298 else 33299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33300 /* end confdefs.h. */ 33301 33302 int 33303 main () 33304 { 33305 #ifndef __GNUC__ 33306 choke me 33307 #endif 33308 33309 ; 33310 return 0; 33311 } 33312 _ACEOF 33313 if ac_fn_objc_try_compile "$LINENO"; then : 33314 ac_compiler_gnu=yes 33315 else 33316 ac_compiler_gnu=no 33317 fi 33318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33319 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 33320 33321 fi 33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 33323 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 33324 if test $ac_compiler_gnu = yes; then 33325 GOBJC=yes 33326 else 33327 GOBJC= 33328 fi 33329 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 33330 ac_save_OBJCFLAGS=$OBJCFLAGS 33331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 33332 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 33333 if ${ac_cv_prog_objc_g+:} false; then : 33334 $as_echo_n "(cached) " >&6 33335 else 33336 ac_save_objc_werror_flag=$ac_objc_werror_flag 33337 ac_objc_werror_flag=yes 33338 ac_cv_prog_objc_g=no 33339 OBJCFLAGS="-g" 33340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33341 /* end confdefs.h. */ 33342 33343 int 33344 main () 33345 { 33346 33347 ; 33348 return 0; 33349 } 33350 _ACEOF 33351 if ac_fn_objc_try_compile "$LINENO"; then : 33352 ac_cv_prog_objc_g=yes 33353 else 33354 OBJCFLAGS="" 33355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33356 /* end confdefs.h. */ 33357 33358 int 33359 main () 33360 { 33361 33362 ; 33363 return 0; 33364 } 33365 _ACEOF 33366 if ac_fn_objc_try_compile "$LINENO"; then : 33367 33368 else 33369 ac_objc_werror_flag=$ac_save_objc_werror_flag 33370 OBJCFLAGS="-g" 33371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33372 /* end confdefs.h. */ 33373 33374 int 33375 main () 33376 { 33377 33378 ; 33379 return 0; 33380 } 33381 _ACEOF 33382 if ac_fn_objc_try_compile "$LINENO"; then : 33383 ac_cv_prog_objc_g=yes 33384 fi 33385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33386 fi 33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33388 fi 33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33390 ac_objc_werror_flag=$ac_save_objc_werror_flag 33391 fi 33392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33393 $as_echo "$ac_cv_prog_objc_g" >&6; } 33394 if test "$ac_test_OBJCFLAGS" = set; then 33395 OBJCFLAGS=$ac_save_OBJCFLAGS 33396 elif test $ac_cv_prog_objc_g = yes; then 33397 if test "$GOBJC" = yes; then 33398 OBJCFLAGS="-g -O2" 33399 else 33400 OBJCFLAGS="-g" 33401 fi 33402 else 33403 if test "$GOBJC" = yes; then 33404 OBJCFLAGS="-O2" 33405 else 33406 OBJCFLAGS= 33407 fi 33408 fi 33409 ac_ext=cpp 33410 ac_cpp='$CXXCPP $CPPFLAGS' 33411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33414 33415 33416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33417 33418 # First separate the path from the arguments. This will split at the first 33419 # space. 33420 complete="$OBJC" 33421 path="${complete%% *}" 33422 tmp="$complete EOL" 33423 arguments="${tmp#* }" 33424 33425 # Input might be given as Windows format, start by converting to 33426 # unix format. 33427 new_path=`$CYGPATH -u "$path"` 33428 33429 # Now try to locate executable using which 33430 new_path=`$WHICH "$new_path" 2> /dev/null` 33431 # bat and cmd files are not always considered executable in cygwin causing which 33432 # to not find them 33433 if test "x$new_path" = x \ 33434 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33435 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33436 new_path=`$CYGPATH -u "$path"` 33437 fi 33438 if test "x$new_path" = x; then 33439 # Oops. Which didn't find the executable. 33440 # The splitting of arguments from the executable at a space might have been incorrect, 33441 # since paths with space are more likely in Windows. Give it another try with the whole 33442 # argument. 33443 path="$complete" 33444 arguments="EOL" 33445 new_path=`$CYGPATH -u "$path"` 33446 new_path=`$WHICH "$new_path" 2> /dev/null` 33447 # bat and cmd files are not always considered executable in cygwin causing which 33448 # to not find them 33449 if test "x$new_path" = x \ 33450 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33451 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33452 new_path=`$CYGPATH -u "$path"` 33453 fi 33454 if test "x$new_path" = x; then 33455 # It's still not found. Now this is an unrecoverable error. 33456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33457 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33458 has_space=`$ECHO "$complete" | $GREP " "` 33459 if test "x$has_space" != x; then 33460 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33461 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33462 fi 33463 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33464 fi 33465 fi 33466 33467 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33468 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33469 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33470 # "foo.exe" is OK but "foo" is an error. 33471 # 33472 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33473 # It is also a way to make sure we got the proper file name for the real test later on. 33474 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33475 if test "x$test_shortpath" = x; then 33476 # Short path failed, file does not exist as specified. 33477 # Try adding .exe or .cmd 33478 if test -f "${new_path}.exe"; then 33479 input_to_shortpath="${new_path}.exe" 33480 elif test -f "${new_path}.cmd"; then 33481 input_to_shortpath="${new_path}.cmd" 33482 else 33483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33484 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33485 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33486 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33487 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33488 fi 33489 else 33490 input_to_shortpath="$new_path" 33491 fi 33492 33493 # Call helper function which possibly converts this using DOS-style short mode. 33494 # If so, the updated path is stored in $new_path. 33495 new_path="$input_to_shortpath" 33496 33497 input_path="$input_to_shortpath" 33498 # Check if we need to convert this using DOS-style short mode. If the path 33499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33500 # take no chances and rewrite it. 33501 # Note: m4 eats our [], so we need to use [ and ] instead. 33502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33503 if test "x$has_forbidden_chars" != x; then 33504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33508 # Going to short mode and back again did indeed matter. Since short mode is 33509 # case insensitive, let's make it lowercase to improve readability. 33510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33511 # Now convert it back to Unix-stile (cygpath) 33512 input_path=`$CYGPATH -u "$shortmode_path"` 33513 new_path="$input_path" 33514 fi 33515 fi 33516 33517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33518 if test "x$test_cygdrive_prefix" = x; then 33519 # As a simple fix, exclude /usr/bin since it's not a real path. 33520 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33522 # a path prefixed by /cygdrive for fixpath to work. 33523 new_path="$CYGWIN_ROOT_PATH$input_path" 33524 fi 33525 fi 33526 33527 # remove trailing .exe if any 33528 new_path="${new_path/%.exe/}" 33529 33530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33531 33532 # First separate the path from the arguments. This will split at the first 33533 # space. 33534 complete="$OBJC" 33535 path="${complete%% *}" 33536 tmp="$complete EOL" 33537 arguments="${tmp#* }" 33538 33539 # Input might be given as Windows format, start by converting to 33540 # unix format. 33541 new_path="$path" 33542 33543 windows_path="$new_path" 33544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33545 unix_path=`$CYGPATH -u "$windows_path"` 33546 new_path="$unix_path" 33547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33549 new_path="$unix_path" 33550 fi 33551 33552 33553 # Now try to locate executable using which 33554 new_path=`$WHICH "$new_path" 2> /dev/null` 33555 33556 if test "x$new_path" = x; then 33557 # Oops. Which didn't find the executable. 33558 # The splitting of arguments from the executable at a space might have been incorrect, 33559 # since paths with space are more likely in Windows. Give it another try with the whole 33560 # argument. 33561 path="$complete" 33562 arguments="EOL" 33563 new_path="$path" 33564 33565 windows_path="$new_path" 33566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33567 unix_path=`$CYGPATH -u "$windows_path"` 33568 new_path="$unix_path" 33569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33571 new_path="$unix_path" 33572 fi 33573 33574 33575 new_path=`$WHICH "$new_path" 2> /dev/null` 33576 # bat and cmd files are not always considered executable in MSYS causing which 33577 # to not find them 33578 if test "x$new_path" = x \ 33579 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33580 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33581 new_path="$path" 33582 33583 windows_path="$new_path" 33584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33585 unix_path=`$CYGPATH -u "$windows_path"` 33586 new_path="$unix_path" 33587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33588 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33589 new_path="$unix_path" 33590 fi 33591 33592 fi 33593 33594 if test "x$new_path" = x; then 33595 # It's still not found. Now this is an unrecoverable error. 33596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33597 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33598 has_space=`$ECHO "$complete" | $GREP " "` 33599 if test "x$has_space" != x; then 33600 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33601 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33602 fi 33603 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33604 fi 33605 fi 33606 33607 # Now new_path has a complete unix path to the binary 33608 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33609 # Keep paths in /bin as-is, but remove trailing .exe if any 33610 new_path="${new_path/%.exe/}" 33611 # Do not save /bin paths to all_fixpath_prefixes! 33612 else 33613 # Not in mixed or Windows style, start by that. 33614 new_path=`cmd //c echo $new_path` 33615 33616 input_path="$new_path" 33617 # Check if we need to convert this using DOS-style short mode. If the path 33618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33619 # take no chances and rewrite it. 33620 # Note: m4 eats our [], so we need to use [ and ] instead. 33621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33622 if test "x$has_forbidden_chars" != x; then 33623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33624 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33625 fi 33626 33627 # Output is in $new_path 33628 33629 windows_path="$new_path" 33630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33631 unix_path=`$CYGPATH -u "$windows_path"` 33632 new_path="$unix_path" 33633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33635 new_path="$unix_path" 33636 fi 33637 33638 # remove trailing .exe if any 33639 new_path="${new_path/%.exe/}" 33640 33641 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33642 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33643 fi 33644 33645 else 33646 # We're on a posix platform. Hooray! :) 33647 # First separate the path from the arguments. This will split at the first 33648 # space. 33649 complete="$OBJC" 33650 path="${complete%% *}" 33651 tmp="$complete EOL" 33652 arguments="${tmp#* }" 33653 33654 # Cannot rely on the command "which" here since it doesn't always work. 33655 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33656 if test -z "$is_absolute_path"; then 33657 # Path to executable is not absolute. Find it. 33658 IFS_save="$IFS" 33659 IFS=: 33660 for p in $PATH; do 33661 if test -f "$p/$path" && test -x "$p/$path"; then 33662 new_path="$p/$path" 33663 break 33664 fi 33665 done 33666 IFS="$IFS_save" 33667 else 33668 # This is an absolute path, we can use it without further modifications. 33669 new_path="$path" 33670 fi 33671 33672 if test "x$new_path" = x; then 33673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33674 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33675 has_space=`$ECHO "$complete" | $GREP " "` 33676 if test "x$has_space" != x; then 33677 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33678 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33679 fi 33680 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33681 fi 33682 fi 33683 33684 # Now join together the path and the arguments once again 33685 if test "x$arguments" != xEOL; then 33686 new_complete="$new_path ${arguments% *}" 33687 else 33688 new_complete="$new_path" 33689 fi 33690 33691 if test "x$complete" != "x$new_complete"; then 33692 OBJC="$new_complete" 33693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33694 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33695 fi 33696 33697 33698 33699 # Publish this variable in the help. 33700 33701 33702 if test "x$LIPO" = x; then 33703 # The variable is not set by user, try to locate tool using the code snippet 33704 for ac_prog in lipo 33705 do 33706 # Extract the first word of "$ac_prog", so it can be a program name with args. 33707 set dummy $ac_prog; ac_word=$2 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33709 $as_echo_n "checking for $ac_word... " >&6; } 33710 if ${ac_cv_path_LIPO+:} false; then : 33711 $as_echo_n "(cached) " >&6 33712 else 33713 case $LIPO in 33714 [\\/]* | ?:[\\/]*) 33715 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33716 ;; 33717 *) 33718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33719 for as_dir in $PATH 33720 do 33721 IFS=$as_save_IFS 33722 test -z "$as_dir" && as_dir=. 33723 for ac_exec_ext in '' $ac_executable_extensions; do 33724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33725 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33727 break 2 33728 fi 33729 done 33730 done 33731 IFS=$as_save_IFS 33732 33733 ;; 33734 esac 33735 fi 33736 LIPO=$ac_cv_path_LIPO 33737 if test -n "$LIPO"; then 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33739 $as_echo "$LIPO" >&6; } 33740 else 33741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33742 $as_echo "no" >&6; } 33743 fi 33744 33745 33746 test -n "$LIPO" && break 33747 done 33748 33749 else 33750 # The variable is set, but is it from the command line or the environment? 33751 33752 # Try to remove the string !LIPO! from our list. 33753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33755 # If it failed, the variable was not from the command line. Ignore it, 33756 # but warn the user (except for BASH, which is always set by the calling BASH). 33757 if test "xLIPO" != xBASH; then 33758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33759 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33760 fi 33761 # Try to locate tool using the code snippet 33762 for ac_prog in lipo 33763 do 33764 # Extract the first word of "$ac_prog", so it can be a program name with args. 33765 set dummy $ac_prog; ac_word=$2 33766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33767 $as_echo_n "checking for $ac_word... " >&6; } 33768 if ${ac_cv_path_LIPO+:} false; then : 33769 $as_echo_n "(cached) " >&6 33770 else 33771 case $LIPO in 33772 [\\/]* | ?:[\\/]*) 33773 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33774 ;; 33775 *) 33776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33777 for as_dir in $PATH 33778 do 33779 IFS=$as_save_IFS 33780 test -z "$as_dir" && as_dir=. 33781 for ac_exec_ext in '' $ac_executable_extensions; do 33782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33783 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33785 break 2 33786 fi 33787 done 33788 done 33789 IFS=$as_save_IFS 33790 33791 ;; 33792 esac 33793 fi 33794 LIPO=$ac_cv_path_LIPO 33795 if test -n "$LIPO"; then 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33797 $as_echo "$LIPO" >&6; } 33798 else 33799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33800 $as_echo "no" >&6; } 33801 fi 33802 33803 33804 test -n "$LIPO" && break 33805 done 33806 33807 else 33808 # If it succeeded, then it was overridden by the user. We will use it 33809 # for the tool. 33810 33811 # First remove it from the list of overridden variables, so we can test 33812 # for unknown variables in the end. 33813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33814 33815 # Check if the provided tool contains a complete path. 33816 tool_specified="$LIPO" 33817 tool_basename="${tool_specified##*/}" 33818 if test "x$tool_basename" = "x$tool_specified"; then 33819 # A command without a complete path is provided, search $PATH. 33820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33821 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33822 # Extract the first word of "$tool_basename", so it can be a program name with args. 33823 set dummy $tool_basename; ac_word=$2 33824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33825 $as_echo_n "checking for $ac_word... " >&6; } 33826 if ${ac_cv_path_LIPO+:} false; then : 33827 $as_echo_n "(cached) " >&6 33828 else 33829 case $LIPO in 33830 [\\/]* | ?:[\\/]*) 33831 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33832 ;; 33833 *) 33834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33835 for as_dir in $PATH 33836 do 33837 IFS=$as_save_IFS 33838 test -z "$as_dir" && as_dir=. 33839 for ac_exec_ext in '' $ac_executable_extensions; do 33840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33841 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33843 break 2 33844 fi 33845 done 33846 done 33847 IFS=$as_save_IFS 33848 33849 ;; 33850 esac 33851 fi 33852 LIPO=$ac_cv_path_LIPO 33853 if test -n "$LIPO"; then 33854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33855 $as_echo "$LIPO" >&6; } 33856 else 33857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33858 $as_echo "no" >&6; } 33859 fi 33860 33861 33862 if test "x$LIPO" = x; then 33863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33864 fi 33865 else 33866 # Otherwise we believe it is a complete path. Use it as it is. 33867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33868 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33870 $as_echo_n "checking for LIPO... " >&6; } 33871 if test ! -x "$tool_specified"; then 33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33873 $as_echo "not found" >&6; } 33874 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33875 fi 33876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33877 $as_echo "$tool_specified" >&6; } 33878 fi 33879 fi 33880 fi 33881 33882 33883 33884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33885 33886 # First separate the path from the arguments. This will split at the first 33887 # space. 33888 complete="$LIPO" 33889 path="${complete%% *}" 33890 tmp="$complete EOL" 33891 arguments="${tmp#* }" 33892 33893 # Input might be given as Windows format, start by converting to 33894 # unix format. 33895 new_path=`$CYGPATH -u "$path"` 33896 33897 # Now try to locate executable using which 33898 new_path=`$WHICH "$new_path" 2> /dev/null` 33899 # bat and cmd files are not always considered executable in cygwin causing which 33900 # to not find them 33901 if test "x$new_path" = x \ 33902 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33903 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33904 new_path=`$CYGPATH -u "$path"` 33905 fi 33906 if test "x$new_path" = x; then 33907 # Oops. Which didn't find the executable. 33908 # The splitting of arguments from the executable at a space might have been incorrect, 33909 # since paths with space are more likely in Windows. Give it another try with the whole 33910 # argument. 33911 path="$complete" 33912 arguments="EOL" 33913 new_path=`$CYGPATH -u "$path"` 33914 new_path=`$WHICH "$new_path" 2> /dev/null` 33915 # bat and cmd files are not always considered executable in cygwin causing which 33916 # to not find them 33917 if test "x$new_path" = x \ 33918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33920 new_path=`$CYGPATH -u "$path"` 33921 fi 33922 if test "x$new_path" = x; then 33923 # It's still not found. Now this is an unrecoverable error. 33924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33925 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33926 has_space=`$ECHO "$complete" | $GREP " "` 33927 if test "x$has_space" != x; then 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33929 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33930 fi 33931 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33932 fi 33933 fi 33934 33935 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33936 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33937 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33938 # "foo.exe" is OK but "foo" is an error. 33939 # 33940 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33941 # It is also a way to make sure we got the proper file name for the real test later on. 33942 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33943 if test "x$test_shortpath" = x; then 33944 # Short path failed, file does not exist as specified. 33945 # Try adding .exe or .cmd 33946 if test -f "${new_path}.exe"; then 33947 input_to_shortpath="${new_path}.exe" 33948 elif test -f "${new_path}.cmd"; then 33949 input_to_shortpath="${new_path}.cmd" 33950 else 33951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33952 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33953 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33954 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33955 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33956 fi 33957 else 33958 input_to_shortpath="$new_path" 33959 fi 33960 33961 # Call helper function which possibly converts this using DOS-style short mode. 33962 # If so, the updated path is stored in $new_path. 33963 new_path="$input_to_shortpath" 33964 33965 input_path="$input_to_shortpath" 33966 # Check if we need to convert this using DOS-style short mode. If the path 33967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33968 # take no chances and rewrite it. 33969 # Note: m4 eats our [], so we need to use [ and ] instead. 33970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33971 if test "x$has_forbidden_chars" != x; then 33972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33973 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33974 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33975 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33976 # Going to short mode and back again did indeed matter. Since short mode is 33977 # case insensitive, let's make it lowercase to improve readability. 33978 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33979 # Now convert it back to Unix-stile (cygpath) 33980 input_path=`$CYGPATH -u "$shortmode_path"` 33981 new_path="$input_path" 33982 fi 33983 fi 33984 33985 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33986 if test "x$test_cygdrive_prefix" = x; then 33987 # As a simple fix, exclude /usr/bin since it's not a real path. 33988 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33989 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33990 # a path prefixed by /cygdrive for fixpath to work. 33991 new_path="$CYGWIN_ROOT_PATH$input_path" 33992 fi 33993 fi 33994 33995 # remove trailing .exe if any 33996 new_path="${new_path/%.exe/}" 33997 33998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33999 34000 # First separate the path from the arguments. This will split at the first 34001 # space. 34002 complete="$LIPO" 34003 path="${complete%% *}" 34004 tmp="$complete EOL" 34005 arguments="${tmp#* }" 34006 34007 # Input might be given as Windows format, start by converting to 34008 # unix format. 34009 new_path="$path" 34010 34011 windows_path="$new_path" 34012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34013 unix_path=`$CYGPATH -u "$windows_path"` 34014 new_path="$unix_path" 34015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34017 new_path="$unix_path" 34018 fi 34019 34020 34021 # Now try to locate executable using which 34022 new_path=`$WHICH "$new_path" 2> /dev/null` 34023 34024 if test "x$new_path" = x; then 34025 # Oops. Which didn't find the executable. 34026 # The splitting of arguments from the executable at a space might have been incorrect, 34027 # since paths with space are more likely in Windows. Give it another try with the whole 34028 # argument. 34029 path="$complete" 34030 arguments="EOL" 34031 new_path="$path" 34032 34033 windows_path="$new_path" 34034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34035 unix_path=`$CYGPATH -u "$windows_path"` 34036 new_path="$unix_path" 34037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34038 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34039 new_path="$unix_path" 34040 fi 34041 34042 34043 new_path=`$WHICH "$new_path" 2> /dev/null` 34044 # bat and cmd files are not always considered executable in MSYS causing which 34045 # to not find them 34046 if test "x$new_path" = x \ 34047 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34048 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34049 new_path="$path" 34050 34051 windows_path="$new_path" 34052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34053 unix_path=`$CYGPATH -u "$windows_path"` 34054 new_path="$unix_path" 34055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34057 new_path="$unix_path" 34058 fi 34059 34060 fi 34061 34062 if test "x$new_path" = x; then 34063 # It's still not found. Now this is an unrecoverable error. 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34065 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34066 has_space=`$ECHO "$complete" | $GREP " "` 34067 if test "x$has_space" != x; then 34068 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34069 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34070 fi 34071 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34072 fi 34073 fi 34074 34075 # Now new_path has a complete unix path to the binary 34076 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34077 # Keep paths in /bin as-is, but remove trailing .exe if any 34078 new_path="${new_path/%.exe/}" 34079 # Do not save /bin paths to all_fixpath_prefixes! 34080 else 34081 # Not in mixed or Windows style, start by that. 34082 new_path=`cmd //c echo $new_path` 34083 34084 input_path="$new_path" 34085 # Check if we need to convert this using DOS-style short mode. If the path 34086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34087 # take no chances and rewrite it. 34088 # Note: m4 eats our [], so we need to use [ and ] instead. 34089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34090 if test "x$has_forbidden_chars" != x; then 34091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34093 fi 34094 34095 # Output is in $new_path 34096 34097 windows_path="$new_path" 34098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34099 unix_path=`$CYGPATH -u "$windows_path"` 34100 new_path="$unix_path" 34101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34103 new_path="$unix_path" 34104 fi 34105 34106 # remove trailing .exe if any 34107 new_path="${new_path/%.exe/}" 34108 34109 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34111 fi 34112 34113 else 34114 # We're on a posix platform. Hooray! :) 34115 # First separate the path from the arguments. This will split at the first 34116 # space. 34117 complete="$LIPO" 34118 path="${complete%% *}" 34119 tmp="$complete EOL" 34120 arguments="${tmp#* }" 34121 34122 # Cannot rely on the command "which" here since it doesn't always work. 34123 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34124 if test -z "$is_absolute_path"; then 34125 # Path to executable is not absolute. Find it. 34126 IFS_save="$IFS" 34127 IFS=: 34128 for p in $PATH; do 34129 if test -f "$p/$path" && test -x "$p/$path"; then 34130 new_path="$p/$path" 34131 break 34132 fi 34133 done 34134 IFS="$IFS_save" 34135 else 34136 # This is an absolute path, we can use it without further modifications. 34137 new_path="$path" 34138 fi 34139 34140 if test "x$new_path" = x; then 34141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34142 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34143 has_space=`$ECHO "$complete" | $GREP " "` 34144 if test "x$has_space" != x; then 34145 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34146 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34147 fi 34148 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34149 fi 34150 fi 34151 34152 # Now join together the path and the arguments once again 34153 if test "x$arguments" != xEOL; then 34154 new_complete="$new_path ${arguments% *}" 34155 else 34156 new_complete="$new_path" 34157 fi 34158 34159 if test "x$complete" != "x$new_complete"; then 34160 LIPO="$new_complete" 34161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34162 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34163 fi 34164 34165 else 34166 OBJC= 34167 fi 34168 34169 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34170 # Extract the first word of "mt", so it can be a program name with args. 34171 set dummy mt; ac_word=$2 34172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34173 $as_echo_n "checking for $ac_word... " >&6; } 34174 if ${ac_cv_prog_MT+:} false; then : 34175 $as_echo_n "(cached) " >&6 34176 else 34177 if test -n "$MT"; then 34178 ac_cv_prog_MT="$MT" # Let the user override the test. 34179 else 34180 ac_prog_rejected=no 34181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34182 for as_dir in $PATH 34183 do 34184 IFS=$as_save_IFS 34185 test -z "$as_dir" && as_dir=. 34186 for ac_exec_ext in '' $ac_executable_extensions; do 34187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34189 ac_prog_rejected=yes 34190 continue 34191 fi 34192 ac_cv_prog_MT="mt" 34193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34194 break 2 34195 fi 34196 done 34197 done 34198 IFS=$as_save_IFS 34199 34200 if test $ac_prog_rejected = yes; then 34201 # We found a bogon in the path, so make sure we never use it. 34202 set dummy $ac_cv_prog_MT 34203 shift 34204 if test $# != 0; then 34205 # We chose a different compiler from the bogus one. 34206 # However, it has the same basename, so the bogon will be chosen 34207 # first if we set MT to just the basename; use the full file name. 34208 shift 34209 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34210 fi 34211 fi 34212 fi 34213 fi 34214 MT=$ac_cv_prog_MT 34215 if test -n "$MT"; then 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34217 $as_echo "$MT" >&6; } 34218 else 34219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34220 $as_echo "no" >&6; } 34221 fi 34222 34223 34224 34225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34226 34227 # First separate the path from the arguments. This will split at the first 34228 # space. 34229 complete="$MT" 34230 path="${complete%% *}" 34231 tmp="$complete EOL" 34232 arguments="${tmp#* }" 34233 34234 # Input might be given as Windows format, start by converting to 34235 # unix format. 34236 new_path=`$CYGPATH -u "$path"` 34237 34238 # Now try to locate executable using which 34239 new_path=`$WHICH "$new_path" 2> /dev/null` 34240 # bat and cmd files are not always considered executable in cygwin causing which 34241 # to not find them 34242 if test "x$new_path" = x \ 34243 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34244 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34245 new_path=`$CYGPATH -u "$path"` 34246 fi 34247 if test "x$new_path" = x; then 34248 # Oops. Which didn't find the executable. 34249 # The splitting of arguments from the executable at a space might have been incorrect, 34250 # since paths with space are more likely in Windows. Give it another try with the whole 34251 # argument. 34252 path="$complete" 34253 arguments="EOL" 34254 new_path=`$CYGPATH -u "$path"` 34255 new_path=`$WHICH "$new_path" 2> /dev/null` 34256 # bat and cmd files are not always considered executable in cygwin causing which 34257 # to not find them 34258 if test "x$new_path" = x \ 34259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34261 new_path=`$CYGPATH -u "$path"` 34262 fi 34263 if test "x$new_path" = x; then 34264 # It's still not found. Now this is an unrecoverable error. 34265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34266 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34267 has_space=`$ECHO "$complete" | $GREP " "` 34268 if test "x$has_space" != x; then 34269 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34270 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34271 fi 34272 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34273 fi 34274 fi 34275 34276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34279 # "foo.exe" is OK but "foo" is an error. 34280 # 34281 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34282 # It is also a way to make sure we got the proper file name for the real test later on. 34283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34284 if test "x$test_shortpath" = x; then 34285 # Short path failed, file does not exist as specified. 34286 # Try adding .exe or .cmd 34287 if test -f "${new_path}.exe"; then 34288 input_to_shortpath="${new_path}.exe" 34289 elif test -f "${new_path}.cmd"; then 34290 input_to_shortpath="${new_path}.cmd" 34291 else 34292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34293 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34295 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34296 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34297 fi 34298 else 34299 input_to_shortpath="$new_path" 34300 fi 34301 34302 # Call helper function which possibly converts this using DOS-style short mode. 34303 # If so, the updated path is stored in $new_path. 34304 new_path="$input_to_shortpath" 34305 34306 input_path="$input_to_shortpath" 34307 # Check if we need to convert this using DOS-style short mode. If the path 34308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34309 # take no chances and rewrite it. 34310 # Note: m4 eats our [], so we need to use [ and ] instead. 34311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34312 if test "x$has_forbidden_chars" != x; then 34313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34317 # Going to short mode and back again did indeed matter. Since short mode is 34318 # case insensitive, let's make it lowercase to improve readability. 34319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34320 # Now convert it back to Unix-stile (cygpath) 34321 input_path=`$CYGPATH -u "$shortmode_path"` 34322 new_path="$input_path" 34323 fi 34324 fi 34325 34326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34327 if test "x$test_cygdrive_prefix" = x; then 34328 # As a simple fix, exclude /usr/bin since it's not a real path. 34329 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34331 # a path prefixed by /cygdrive for fixpath to work. 34332 new_path="$CYGWIN_ROOT_PATH$input_path" 34333 fi 34334 fi 34335 34336 # remove trailing .exe if any 34337 new_path="${new_path/%.exe/}" 34338 34339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34340 34341 # First separate the path from the arguments. This will split at the first 34342 # space. 34343 complete="$MT" 34344 path="${complete%% *}" 34345 tmp="$complete EOL" 34346 arguments="${tmp#* }" 34347 34348 # Input might be given as Windows format, start by converting to 34349 # unix format. 34350 new_path="$path" 34351 34352 windows_path="$new_path" 34353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34354 unix_path=`$CYGPATH -u "$windows_path"` 34355 new_path="$unix_path" 34356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34358 new_path="$unix_path" 34359 fi 34360 34361 34362 # Now try to locate executable using which 34363 new_path=`$WHICH "$new_path" 2> /dev/null` 34364 34365 if test "x$new_path" = x; then 34366 # Oops. Which didn't find the executable. 34367 # The splitting of arguments from the executable at a space might have been incorrect, 34368 # since paths with space are more likely in Windows. Give it another try with the whole 34369 # argument. 34370 path="$complete" 34371 arguments="EOL" 34372 new_path="$path" 34373 34374 windows_path="$new_path" 34375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34376 unix_path=`$CYGPATH -u "$windows_path"` 34377 new_path="$unix_path" 34378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34380 new_path="$unix_path" 34381 fi 34382 34383 34384 new_path=`$WHICH "$new_path" 2> /dev/null` 34385 # bat and cmd files are not always considered executable in MSYS causing which 34386 # to not find them 34387 if test "x$new_path" = x \ 34388 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34389 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34390 new_path="$path" 34391 34392 windows_path="$new_path" 34393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34394 unix_path=`$CYGPATH -u "$windows_path"` 34395 new_path="$unix_path" 34396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34398 new_path="$unix_path" 34399 fi 34400 34401 fi 34402 34403 if test "x$new_path" = x; then 34404 # It's still not found. Now this is an unrecoverable error. 34405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34406 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34407 has_space=`$ECHO "$complete" | $GREP " "` 34408 if test "x$has_space" != x; then 34409 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34410 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34411 fi 34412 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34413 fi 34414 fi 34415 34416 # Now new_path has a complete unix path to the binary 34417 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34418 # Keep paths in /bin as-is, but remove trailing .exe if any 34419 new_path="${new_path/%.exe/}" 34420 # Do not save /bin paths to all_fixpath_prefixes! 34421 else 34422 # Not in mixed or Windows style, start by that. 34423 new_path=`cmd //c echo $new_path` 34424 34425 input_path="$new_path" 34426 # Check if we need to convert this using DOS-style short mode. If the path 34427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34428 # take no chances and rewrite it. 34429 # Note: m4 eats our [], so we need to use [ and ] instead. 34430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34431 if test "x$has_forbidden_chars" != x; then 34432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34433 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34434 fi 34435 34436 # Output is in $new_path 34437 34438 windows_path="$new_path" 34439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34440 unix_path=`$CYGPATH -u "$windows_path"` 34441 new_path="$unix_path" 34442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34444 new_path="$unix_path" 34445 fi 34446 34447 # remove trailing .exe if any 34448 new_path="${new_path/%.exe/}" 34449 34450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34452 fi 34453 34454 else 34455 # We're on a posix platform. Hooray! :) 34456 # First separate the path from the arguments. This will split at the first 34457 # space. 34458 complete="$MT" 34459 path="${complete%% *}" 34460 tmp="$complete EOL" 34461 arguments="${tmp#* }" 34462 34463 # Cannot rely on the command "which" here since it doesn't always work. 34464 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34465 if test -z "$is_absolute_path"; then 34466 # Path to executable is not absolute. Find it. 34467 IFS_save="$IFS" 34468 IFS=: 34469 for p in $PATH; do 34470 if test -f "$p/$path" && test -x "$p/$path"; then 34471 new_path="$p/$path" 34472 break 34473 fi 34474 done 34475 IFS="$IFS_save" 34476 else 34477 # This is an absolute path, we can use it without further modifications. 34478 new_path="$path" 34479 fi 34480 34481 if test "x$new_path" = x; then 34482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34483 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34484 has_space=`$ECHO "$complete" | $GREP " "` 34485 if test "x$has_space" != x; then 34486 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34487 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34488 fi 34489 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34490 fi 34491 fi 34492 34493 # Now join together the path and the arguments once again 34494 if test "x$arguments" != xEOL; then 34495 new_complete="$new_path ${arguments% *}" 34496 else 34497 new_complete="$new_path" 34498 fi 34499 34500 if test "x$complete" != "x$new_complete"; then 34501 MT="$new_complete" 34502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34503 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34504 fi 34505 34506 # Setup the resource compiler (RC) 34507 # Extract the first word of "rc", so it can be a program name with args. 34508 set dummy rc; ac_word=$2 34509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34510 $as_echo_n "checking for $ac_word... " >&6; } 34511 if ${ac_cv_prog_RC+:} false; then : 34512 $as_echo_n "(cached) " >&6 34513 else 34514 if test -n "$RC"; then 34515 ac_cv_prog_RC="$RC" # Let the user override the test. 34516 else 34517 ac_prog_rejected=no 34518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34519 for as_dir in $PATH 34520 do 34521 IFS=$as_save_IFS 34522 test -z "$as_dir" && as_dir=. 34523 for ac_exec_ext in '' $ac_executable_extensions; do 34524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34526 ac_prog_rejected=yes 34527 continue 34528 fi 34529 ac_cv_prog_RC="rc" 34530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34531 break 2 34532 fi 34533 done 34534 done 34535 IFS=$as_save_IFS 34536 34537 if test $ac_prog_rejected = yes; then 34538 # We found a bogon in the path, so make sure we never use it. 34539 set dummy $ac_cv_prog_RC 34540 shift 34541 if test $# != 0; then 34542 # We chose a different compiler from the bogus one. 34543 # However, it has the same basename, so the bogon will be chosen 34544 # first if we set RC to just the basename; use the full file name. 34545 shift 34546 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34547 fi 34548 fi 34549 fi 34550 fi 34551 RC=$ac_cv_prog_RC 34552 if test -n "$RC"; then 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34554 $as_echo "$RC" >&6; } 34555 else 34556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34557 $as_echo "no" >&6; } 34558 fi 34559 34560 34561 34562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34563 34564 # First separate the path from the arguments. This will split at the first 34565 # space. 34566 complete="$RC" 34567 path="${complete%% *}" 34568 tmp="$complete EOL" 34569 arguments="${tmp#* }" 34570 34571 # Input might be given as Windows format, start by converting to 34572 # unix format. 34573 new_path=`$CYGPATH -u "$path"` 34574 34575 # Now try to locate executable using which 34576 new_path=`$WHICH "$new_path" 2> /dev/null` 34577 # bat and cmd files are not always considered executable in cygwin causing which 34578 # to not find them 34579 if test "x$new_path" = x \ 34580 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34581 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34582 new_path=`$CYGPATH -u "$path"` 34583 fi 34584 if test "x$new_path" = x; then 34585 # Oops. Which didn't find the executable. 34586 # The splitting of arguments from the executable at a space might have been incorrect, 34587 # since paths with space are more likely in Windows. Give it another try with the whole 34588 # argument. 34589 path="$complete" 34590 arguments="EOL" 34591 new_path=`$CYGPATH -u "$path"` 34592 new_path=`$WHICH "$new_path" 2> /dev/null` 34593 # bat and cmd files are not always considered executable in cygwin causing which 34594 # to not find them 34595 if test "x$new_path" = x \ 34596 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34597 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34598 new_path=`$CYGPATH -u "$path"` 34599 fi 34600 if test "x$new_path" = x; then 34601 # It's still not found. Now this is an unrecoverable error. 34602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34603 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34604 has_space=`$ECHO "$complete" | $GREP " "` 34605 if test "x$has_space" != x; then 34606 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34607 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34608 fi 34609 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34610 fi 34611 fi 34612 34613 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34614 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34615 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34616 # "foo.exe" is OK but "foo" is an error. 34617 # 34618 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34619 # It is also a way to make sure we got the proper file name for the real test later on. 34620 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34621 if test "x$test_shortpath" = x; then 34622 # Short path failed, file does not exist as specified. 34623 # Try adding .exe or .cmd 34624 if test -f "${new_path}.exe"; then 34625 input_to_shortpath="${new_path}.exe" 34626 elif test -f "${new_path}.cmd"; then 34627 input_to_shortpath="${new_path}.cmd" 34628 else 34629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34630 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34631 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34632 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34633 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34634 fi 34635 else 34636 input_to_shortpath="$new_path" 34637 fi 34638 34639 # Call helper function which possibly converts this using DOS-style short mode. 34640 # If so, the updated path is stored in $new_path. 34641 new_path="$input_to_shortpath" 34642 34643 input_path="$input_to_shortpath" 34644 # Check if we need to convert this using DOS-style short mode. If the path 34645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34646 # take no chances and rewrite it. 34647 # Note: m4 eats our [], so we need to use [ and ] instead. 34648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34649 if test "x$has_forbidden_chars" != x; then 34650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34651 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34652 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34653 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34654 # Going to short mode and back again did indeed matter. Since short mode is 34655 # case insensitive, let's make it lowercase to improve readability. 34656 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34657 # Now convert it back to Unix-stile (cygpath) 34658 input_path=`$CYGPATH -u "$shortmode_path"` 34659 new_path="$input_path" 34660 fi 34661 fi 34662 34663 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34664 if test "x$test_cygdrive_prefix" = x; then 34665 # As a simple fix, exclude /usr/bin since it's not a real path. 34666 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34667 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34668 # a path prefixed by /cygdrive for fixpath to work. 34669 new_path="$CYGWIN_ROOT_PATH$input_path" 34670 fi 34671 fi 34672 34673 # remove trailing .exe if any 34674 new_path="${new_path/%.exe/}" 34675 34676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34677 34678 # First separate the path from the arguments. This will split at the first 34679 # space. 34680 complete="$RC" 34681 path="${complete%% *}" 34682 tmp="$complete EOL" 34683 arguments="${tmp#* }" 34684 34685 # Input might be given as Windows format, start by converting to 34686 # unix format. 34687 new_path="$path" 34688 34689 windows_path="$new_path" 34690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34691 unix_path=`$CYGPATH -u "$windows_path"` 34692 new_path="$unix_path" 34693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34695 new_path="$unix_path" 34696 fi 34697 34698 34699 # Now try to locate executable using which 34700 new_path=`$WHICH "$new_path" 2> /dev/null` 34701 34702 if test "x$new_path" = x; then 34703 # Oops. Which didn't find the executable. 34704 # The splitting of arguments from the executable at a space might have been incorrect, 34705 # since paths with space are more likely in Windows. Give it another try with the whole 34706 # argument. 34707 path="$complete" 34708 arguments="EOL" 34709 new_path="$path" 34710 34711 windows_path="$new_path" 34712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34713 unix_path=`$CYGPATH -u "$windows_path"` 34714 new_path="$unix_path" 34715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34717 new_path="$unix_path" 34718 fi 34719 34720 34721 new_path=`$WHICH "$new_path" 2> /dev/null` 34722 # bat and cmd files are not always considered executable in MSYS causing which 34723 # to not find them 34724 if test "x$new_path" = x \ 34725 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34726 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34727 new_path="$path" 34728 34729 windows_path="$new_path" 34730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34731 unix_path=`$CYGPATH -u "$windows_path"` 34732 new_path="$unix_path" 34733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34735 new_path="$unix_path" 34736 fi 34737 34738 fi 34739 34740 if test "x$new_path" = x; then 34741 # It's still not found. Now this is an unrecoverable error. 34742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34743 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34744 has_space=`$ECHO "$complete" | $GREP " "` 34745 if test "x$has_space" != x; then 34746 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34747 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34748 fi 34749 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34750 fi 34751 fi 34752 34753 # Now new_path has a complete unix path to the binary 34754 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34755 # Keep paths in /bin as-is, but remove trailing .exe if any 34756 new_path="${new_path/%.exe/}" 34757 # Do not save /bin paths to all_fixpath_prefixes! 34758 else 34759 # Not in mixed or Windows style, start by that. 34760 new_path=`cmd //c echo $new_path` 34761 34762 input_path="$new_path" 34763 # Check if we need to convert this using DOS-style short mode. If the path 34764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34765 # take no chances and rewrite it. 34766 # Note: m4 eats our [], so we need to use [ and ] instead. 34767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34768 if test "x$has_forbidden_chars" != x; then 34769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34770 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34771 fi 34772 34773 # Output is in $new_path 34774 34775 windows_path="$new_path" 34776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34777 unix_path=`$CYGPATH -u "$windows_path"` 34778 new_path="$unix_path" 34779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34781 new_path="$unix_path" 34782 fi 34783 34784 # remove trailing .exe if any 34785 new_path="${new_path/%.exe/}" 34786 34787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34789 fi 34790 34791 else 34792 # We're on a posix platform. Hooray! :) 34793 # First separate the path from the arguments. This will split at the first 34794 # space. 34795 complete="$RC" 34796 path="${complete%% *}" 34797 tmp="$complete EOL" 34798 arguments="${tmp#* }" 34799 34800 # Cannot rely on the command "which" here since it doesn't always work. 34801 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34802 if test -z "$is_absolute_path"; then 34803 # Path to executable is not absolute. Find it. 34804 IFS_save="$IFS" 34805 IFS=: 34806 for p in $PATH; do 34807 if test -f "$p/$path" && test -x "$p/$path"; then 34808 new_path="$p/$path" 34809 break 34810 fi 34811 done 34812 IFS="$IFS_save" 34813 else 34814 # This is an absolute path, we can use it without further modifications. 34815 new_path="$path" 34816 fi 34817 34818 if test "x$new_path" = x; then 34819 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34820 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34821 has_space=`$ECHO "$complete" | $GREP " "` 34822 if test "x$has_space" != x; then 34823 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34824 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34825 fi 34826 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34827 fi 34828 fi 34829 34830 # Now join together the path and the arguments once again 34831 if test "x$arguments" != xEOL; then 34832 new_complete="$new_path ${arguments% *}" 34833 else 34834 new_complete="$new_path" 34835 fi 34836 34837 if test "x$complete" != "x$new_complete"; then 34838 RC="$new_complete" 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34840 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34841 fi 34842 34843 # Extract the first word of "dumpbin", so it can be a program name with args. 34844 set dummy dumpbin; ac_word=$2 34845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34846 $as_echo_n "checking for $ac_word... " >&6; } 34847 if ${ac_cv_prog_DUMPBIN+:} false; then : 34848 $as_echo_n "(cached) " >&6 34849 else 34850 if test -n "$DUMPBIN"; then 34851 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34852 else 34853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34854 for as_dir in $PATH 34855 do 34856 IFS=$as_save_IFS 34857 test -z "$as_dir" && as_dir=. 34858 for ac_exec_ext in '' $ac_executable_extensions; do 34859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34860 ac_cv_prog_DUMPBIN="dumpbin" 34861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34862 break 2 34863 fi 34864 done 34865 done 34866 IFS=$as_save_IFS 34867 34868 fi 34869 fi 34870 DUMPBIN=$ac_cv_prog_DUMPBIN 34871 if test -n "$DUMPBIN"; then 34872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34873 $as_echo "$DUMPBIN" >&6; } 34874 else 34875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34876 $as_echo "no" >&6; } 34877 fi 34878 34879 34880 34881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34882 34883 # First separate the path from the arguments. This will split at the first 34884 # space. 34885 complete="$DUMPBIN" 34886 path="${complete%% *}" 34887 tmp="$complete EOL" 34888 arguments="${tmp#* }" 34889 34890 # Input might be given as Windows format, start by converting to 34891 # unix format. 34892 new_path=`$CYGPATH -u "$path"` 34893 34894 # Now try to locate executable using which 34895 new_path=`$WHICH "$new_path" 2> /dev/null` 34896 # bat and cmd files are not always considered executable in cygwin causing which 34897 # to not find them 34898 if test "x$new_path" = x \ 34899 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34900 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34901 new_path=`$CYGPATH -u "$path"` 34902 fi 34903 if test "x$new_path" = x; then 34904 # Oops. Which didn't find the executable. 34905 # The splitting of arguments from the executable at a space might have been incorrect, 34906 # since paths with space are more likely in Windows. Give it another try with the whole 34907 # argument. 34908 path="$complete" 34909 arguments="EOL" 34910 new_path=`$CYGPATH -u "$path"` 34911 new_path=`$WHICH "$new_path" 2> /dev/null` 34912 # bat and cmd files are not always considered executable in cygwin causing which 34913 # to not find them 34914 if test "x$new_path" = x \ 34915 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34916 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34917 new_path=`$CYGPATH -u "$path"` 34918 fi 34919 if test "x$new_path" = x; then 34920 # It's still not found. Now this is an unrecoverable error. 34921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34922 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34923 has_space=`$ECHO "$complete" | $GREP " "` 34924 if test "x$has_space" != x; then 34925 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34926 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34927 fi 34928 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34929 fi 34930 fi 34931 34932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34935 # "foo.exe" is OK but "foo" is an error. 34936 # 34937 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34938 # It is also a way to make sure we got the proper file name for the real test later on. 34939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34940 if test "x$test_shortpath" = x; then 34941 # Short path failed, file does not exist as specified. 34942 # Try adding .exe or .cmd 34943 if test -f "${new_path}.exe"; then 34944 input_to_shortpath="${new_path}.exe" 34945 elif test -f "${new_path}.cmd"; then 34946 input_to_shortpath="${new_path}.cmd" 34947 else 34948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34949 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34950 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34951 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34952 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34953 fi 34954 else 34955 input_to_shortpath="$new_path" 34956 fi 34957 34958 # Call helper function which possibly converts this using DOS-style short mode. 34959 # If so, the updated path is stored in $new_path. 34960 new_path="$input_to_shortpath" 34961 34962 input_path="$input_to_shortpath" 34963 # Check if we need to convert this using DOS-style short mode. If the path 34964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34965 # take no chances and rewrite it. 34966 # Note: m4 eats our [], so we need to use [ and ] instead. 34967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34968 if test "x$has_forbidden_chars" != x; then 34969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34970 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34971 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34972 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34973 # Going to short mode and back again did indeed matter. Since short mode is 34974 # case insensitive, let's make it lowercase to improve readability. 34975 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34976 # Now convert it back to Unix-stile (cygpath) 34977 input_path=`$CYGPATH -u "$shortmode_path"` 34978 new_path="$input_path" 34979 fi 34980 fi 34981 34982 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34983 if test "x$test_cygdrive_prefix" = x; then 34984 # As a simple fix, exclude /usr/bin since it's not a real path. 34985 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34986 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34987 # a path prefixed by /cygdrive for fixpath to work. 34988 new_path="$CYGWIN_ROOT_PATH$input_path" 34989 fi 34990 fi 34991 34992 # remove trailing .exe if any 34993 new_path="${new_path/%.exe/}" 34994 34995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34996 34997 # First separate the path from the arguments. This will split at the first 34998 # space. 34999 complete="$DUMPBIN" 35000 path="${complete%% *}" 35001 tmp="$complete EOL" 35002 arguments="${tmp#* }" 35003 35004 # Input might be given as Windows format, start by converting to 35005 # unix format. 35006 new_path="$path" 35007 35008 windows_path="$new_path" 35009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35010 unix_path=`$CYGPATH -u "$windows_path"` 35011 new_path="$unix_path" 35012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35014 new_path="$unix_path" 35015 fi 35016 35017 35018 # Now try to locate executable using which 35019 new_path=`$WHICH "$new_path" 2> /dev/null` 35020 35021 if test "x$new_path" = x; then 35022 # Oops. Which didn't find the executable. 35023 # The splitting of arguments from the executable at a space might have been incorrect, 35024 # since paths with space are more likely in Windows. Give it another try with the whole 35025 # argument. 35026 path="$complete" 35027 arguments="EOL" 35028 new_path="$path" 35029 35030 windows_path="$new_path" 35031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35032 unix_path=`$CYGPATH -u "$windows_path"` 35033 new_path="$unix_path" 35034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35035 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35036 new_path="$unix_path" 35037 fi 35038 35039 35040 new_path=`$WHICH "$new_path" 2> /dev/null` 35041 # bat and cmd files are not always considered executable in MSYS causing which 35042 # to not find them 35043 if test "x$new_path" = x \ 35044 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35045 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35046 new_path="$path" 35047 35048 windows_path="$new_path" 35049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35050 unix_path=`$CYGPATH -u "$windows_path"` 35051 new_path="$unix_path" 35052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35054 new_path="$unix_path" 35055 fi 35056 35057 fi 35058 35059 if test "x$new_path" = x; then 35060 # It's still not found. Now this is an unrecoverable error. 35061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35062 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35063 has_space=`$ECHO "$complete" | $GREP " "` 35064 if test "x$has_space" != x; then 35065 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35066 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35067 fi 35068 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35069 fi 35070 fi 35071 35072 # Now new_path has a complete unix path to the binary 35073 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35074 # Keep paths in /bin as-is, but remove trailing .exe if any 35075 new_path="${new_path/%.exe/}" 35076 # Do not save /bin paths to all_fixpath_prefixes! 35077 else 35078 # Not in mixed or Windows style, start by that. 35079 new_path=`cmd //c echo $new_path` 35080 35081 input_path="$new_path" 35082 # Check if we need to convert this using DOS-style short mode. If the path 35083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35084 # take no chances and rewrite it. 35085 # Note: m4 eats our [], so we need to use [ and ] instead. 35086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35087 if test "x$has_forbidden_chars" != x; then 35088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35089 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35090 fi 35091 35092 # Output is in $new_path 35093 35094 windows_path="$new_path" 35095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35096 unix_path=`$CYGPATH -u "$windows_path"` 35097 new_path="$unix_path" 35098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35100 new_path="$unix_path" 35101 fi 35102 35103 # remove trailing .exe if any 35104 new_path="${new_path/%.exe/}" 35105 35106 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35107 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35108 fi 35109 35110 else 35111 # We're on a posix platform. Hooray! :) 35112 # First separate the path from the arguments. This will split at the first 35113 # space. 35114 complete="$DUMPBIN" 35115 path="${complete%% *}" 35116 tmp="$complete EOL" 35117 arguments="${tmp#* }" 35118 35119 # Cannot rely on the command "which" here since it doesn't always work. 35120 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35121 if test -z "$is_absolute_path"; then 35122 # Path to executable is not absolute. Find it. 35123 IFS_save="$IFS" 35124 IFS=: 35125 for p in $PATH; do 35126 if test -f "$p/$path" && test -x "$p/$path"; then 35127 new_path="$p/$path" 35128 break 35129 fi 35130 done 35131 IFS="$IFS_save" 35132 else 35133 # This is an absolute path, we can use it without further modifications. 35134 new_path="$path" 35135 fi 35136 35137 if test "x$new_path" = x; then 35138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35139 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35140 has_space=`$ECHO "$complete" | $GREP " "` 35141 if test "x$has_space" != x; then 35142 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35143 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35144 fi 35145 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35146 fi 35147 fi 35148 35149 # Now join together the path and the arguments once again 35150 if test "x$arguments" != xEOL; then 35151 new_complete="$new_path ${arguments% *}" 35152 else 35153 new_complete="$new_path" 35154 fi 35155 35156 if test "x$complete" != "x$new_complete"; then 35157 DUMPBIN="$new_complete" 35158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35159 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35160 fi 35161 35162 # We need to check for 'msbuild.exe' because at the place where we expect to 35163 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35164 # won't find the 'msbuild.exe' executable in that case (and the 35165 # 'ac_executable_extensions' is unusable due to performance reasons). 35166 # Notice that we intentionally don't fix up the path to MSBUILD because we 35167 # will call it in a DOS shell during freetype detection on Windows (see 35168 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35169 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35170 set dummy msbuild.exe; ac_word=$2 35171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35172 $as_echo_n "checking for $ac_word... " >&6; } 35173 if ${ac_cv_prog_MSBUILD+:} false; then : 35174 $as_echo_n "(cached) " >&6 35175 else 35176 if test -n "$MSBUILD"; then 35177 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35178 else 35179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35180 for as_dir in $PATH 35181 do 35182 IFS=$as_save_IFS 35183 test -z "$as_dir" && as_dir=. 35184 for ac_exec_ext in '' $ac_executable_extensions; do 35185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35186 ac_cv_prog_MSBUILD="msbuild.exe" 35187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35188 break 2 35189 fi 35190 done 35191 done 35192 IFS=$as_save_IFS 35193 35194 fi 35195 fi 35196 MSBUILD=$ac_cv_prog_MSBUILD 35197 if test -n "$MSBUILD"; then 35198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35199 $as_echo "$MSBUILD" >&6; } 35200 else 35201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35202 $as_echo "no" >&6; } 35203 fi 35204 35205 35206 fi 35207 35208 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35209 35210 35211 # Publish this variable in the help. 35212 35213 35214 if test "x$STRIP" = x; then 35215 # The variable is not set by user, try to locate tool using the code snippet 35216 for ac_prog in strip 35217 do 35218 # Extract the first word of "$ac_prog", so it can be a program name with args. 35219 set dummy $ac_prog; ac_word=$2 35220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35221 $as_echo_n "checking for $ac_word... " >&6; } 35222 if ${ac_cv_path_STRIP+:} false; then : 35223 $as_echo_n "(cached) " >&6 35224 else 35225 case $STRIP in 35226 [\\/]* | ?:[\\/]*) 35227 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35228 ;; 35229 *) 35230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35231 for as_dir in $PATH 35232 do 35233 IFS=$as_save_IFS 35234 test -z "$as_dir" && as_dir=. 35235 for ac_exec_ext in '' $ac_executable_extensions; do 35236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35237 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35239 break 2 35240 fi 35241 done 35242 done 35243 IFS=$as_save_IFS 35244 35245 ;; 35246 esac 35247 fi 35248 STRIP=$ac_cv_path_STRIP 35249 if test -n "$STRIP"; then 35250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35251 $as_echo "$STRIP" >&6; } 35252 else 35253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35254 $as_echo "no" >&6; } 35255 fi 35256 35257 35258 test -n "$STRIP" && break 35259 done 35260 35261 else 35262 # The variable is set, but is it from the command line or the environment? 35263 35264 # Try to remove the string !STRIP! from our list. 35265 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35266 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35267 # If it failed, the variable was not from the command line. Ignore it, 35268 # but warn the user (except for BASH, which is always set by the calling BASH). 35269 if test "xSTRIP" != xBASH; then 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35271 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35272 fi 35273 # Try to locate tool using the code snippet 35274 for ac_prog in strip 35275 do 35276 # Extract the first word of "$ac_prog", so it can be a program name with args. 35277 set dummy $ac_prog; ac_word=$2 35278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35279 $as_echo_n "checking for $ac_word... " >&6; } 35280 if ${ac_cv_path_STRIP+:} false; then : 35281 $as_echo_n "(cached) " >&6 35282 else 35283 case $STRIP in 35284 [\\/]* | ?:[\\/]*) 35285 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35286 ;; 35287 *) 35288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35289 for as_dir in $PATH 35290 do 35291 IFS=$as_save_IFS 35292 test -z "$as_dir" && as_dir=. 35293 for ac_exec_ext in '' $ac_executable_extensions; do 35294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35295 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35297 break 2 35298 fi 35299 done 35300 done 35301 IFS=$as_save_IFS 35302 35303 ;; 35304 esac 35305 fi 35306 STRIP=$ac_cv_path_STRIP 35307 if test -n "$STRIP"; then 35308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35309 $as_echo "$STRIP" >&6; } 35310 else 35311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35312 $as_echo "no" >&6; } 35313 fi 35314 35315 35316 test -n "$STRIP" && break 35317 done 35318 35319 else 35320 # If it succeeded, then it was overridden by the user. We will use it 35321 # for the tool. 35322 35323 # First remove it from the list of overridden variables, so we can test 35324 # for unknown variables in the end. 35325 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35326 35327 # Check if the provided tool contains a complete path. 35328 tool_specified="$STRIP" 35329 tool_basename="${tool_specified##*/}" 35330 if test "x$tool_basename" = "x$tool_specified"; then 35331 # A command without a complete path is provided, search $PATH. 35332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35333 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35334 # Extract the first word of "$tool_basename", so it can be a program name with args. 35335 set dummy $tool_basename; ac_word=$2 35336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35337 $as_echo_n "checking for $ac_word... " >&6; } 35338 if ${ac_cv_path_STRIP+:} false; then : 35339 $as_echo_n "(cached) " >&6 35340 else 35341 case $STRIP in 35342 [\\/]* | ?:[\\/]*) 35343 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35344 ;; 35345 *) 35346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35347 for as_dir in $PATH 35348 do 35349 IFS=$as_save_IFS 35350 test -z "$as_dir" && as_dir=. 35351 for ac_exec_ext in '' $ac_executable_extensions; do 35352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35353 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35355 break 2 35356 fi 35357 done 35358 done 35359 IFS=$as_save_IFS 35360 35361 ;; 35362 esac 35363 fi 35364 STRIP=$ac_cv_path_STRIP 35365 if test -n "$STRIP"; then 35366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35367 $as_echo "$STRIP" >&6; } 35368 else 35369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35370 $as_echo "no" >&6; } 35371 fi 35372 35373 35374 if test "x$STRIP" = x; then 35375 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35376 fi 35377 else 35378 # Otherwise we believe it is a complete path. Use it as it is. 35379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35380 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35382 $as_echo_n "checking for STRIP... " >&6; } 35383 if test ! -x "$tool_specified"; then 35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35385 $as_echo "not found" >&6; } 35386 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35387 fi 35388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35389 $as_echo "$tool_specified" >&6; } 35390 fi 35391 fi 35392 fi 35393 35394 35395 35396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35397 35398 # First separate the path from the arguments. This will split at the first 35399 # space. 35400 complete="$STRIP" 35401 path="${complete%% *}" 35402 tmp="$complete EOL" 35403 arguments="${tmp#* }" 35404 35405 # Input might be given as Windows format, start by converting to 35406 # unix format. 35407 new_path=`$CYGPATH -u "$path"` 35408 35409 # Now try to locate executable using which 35410 new_path=`$WHICH "$new_path" 2> /dev/null` 35411 # bat and cmd files are not always considered executable in cygwin causing which 35412 # to not find them 35413 if test "x$new_path" = x \ 35414 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35415 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35416 new_path=`$CYGPATH -u "$path"` 35417 fi 35418 if test "x$new_path" = x; then 35419 # Oops. Which didn't find the executable. 35420 # The splitting of arguments from the executable at a space might have been incorrect, 35421 # since paths with space are more likely in Windows. Give it another try with the whole 35422 # argument. 35423 path="$complete" 35424 arguments="EOL" 35425 new_path=`$CYGPATH -u "$path"` 35426 new_path=`$WHICH "$new_path" 2> /dev/null` 35427 # bat and cmd files are not always considered executable in cygwin causing which 35428 # to not find them 35429 if test "x$new_path" = x \ 35430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35432 new_path=`$CYGPATH -u "$path"` 35433 fi 35434 if test "x$new_path" = x; then 35435 # It's still not found. Now this is an unrecoverable error. 35436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35437 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35438 has_space=`$ECHO "$complete" | $GREP " "` 35439 if test "x$has_space" != x; then 35440 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35441 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35442 fi 35443 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35444 fi 35445 fi 35446 35447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35450 # "foo.exe" is OK but "foo" is an error. 35451 # 35452 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35453 # It is also a way to make sure we got the proper file name for the real test later on. 35454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35455 if test "x$test_shortpath" = x; then 35456 # Short path failed, file does not exist as specified. 35457 # Try adding .exe or .cmd 35458 if test -f "${new_path}.exe"; then 35459 input_to_shortpath="${new_path}.exe" 35460 elif test -f "${new_path}.cmd"; then 35461 input_to_shortpath="${new_path}.cmd" 35462 else 35463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35464 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35465 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35466 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35467 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35468 fi 35469 else 35470 input_to_shortpath="$new_path" 35471 fi 35472 35473 # Call helper function which possibly converts this using DOS-style short mode. 35474 # If so, the updated path is stored in $new_path. 35475 new_path="$input_to_shortpath" 35476 35477 input_path="$input_to_shortpath" 35478 # Check if we need to convert this using DOS-style short mode. If the path 35479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35480 # take no chances and rewrite it. 35481 # Note: m4 eats our [], so we need to use [ and ] instead. 35482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35483 if test "x$has_forbidden_chars" != x; then 35484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35488 # Going to short mode and back again did indeed matter. Since short mode is 35489 # case insensitive, let's make it lowercase to improve readability. 35490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35491 # Now convert it back to Unix-stile (cygpath) 35492 input_path=`$CYGPATH -u "$shortmode_path"` 35493 new_path="$input_path" 35494 fi 35495 fi 35496 35497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35498 if test "x$test_cygdrive_prefix" = x; then 35499 # As a simple fix, exclude /usr/bin since it's not a real path. 35500 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35502 # a path prefixed by /cygdrive for fixpath to work. 35503 new_path="$CYGWIN_ROOT_PATH$input_path" 35504 fi 35505 fi 35506 35507 # remove trailing .exe if any 35508 new_path="${new_path/%.exe/}" 35509 35510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35511 35512 # First separate the path from the arguments. This will split at the first 35513 # space. 35514 complete="$STRIP" 35515 path="${complete%% *}" 35516 tmp="$complete EOL" 35517 arguments="${tmp#* }" 35518 35519 # Input might be given as Windows format, start by converting to 35520 # unix format. 35521 new_path="$path" 35522 35523 windows_path="$new_path" 35524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35525 unix_path=`$CYGPATH -u "$windows_path"` 35526 new_path="$unix_path" 35527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35529 new_path="$unix_path" 35530 fi 35531 35532 35533 # Now try to locate executable using which 35534 new_path=`$WHICH "$new_path" 2> /dev/null` 35535 35536 if test "x$new_path" = x; then 35537 # Oops. Which didn't find the executable. 35538 # The splitting of arguments from the executable at a space might have been incorrect, 35539 # since paths with space are more likely in Windows. Give it another try with the whole 35540 # argument. 35541 path="$complete" 35542 arguments="EOL" 35543 new_path="$path" 35544 35545 windows_path="$new_path" 35546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35547 unix_path=`$CYGPATH -u "$windows_path"` 35548 new_path="$unix_path" 35549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35551 new_path="$unix_path" 35552 fi 35553 35554 35555 new_path=`$WHICH "$new_path" 2> /dev/null` 35556 # bat and cmd files are not always considered executable in MSYS causing which 35557 # to not find them 35558 if test "x$new_path" = x \ 35559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35561 new_path="$path" 35562 35563 windows_path="$new_path" 35564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35565 unix_path=`$CYGPATH -u "$windows_path"` 35566 new_path="$unix_path" 35567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35569 new_path="$unix_path" 35570 fi 35571 35572 fi 35573 35574 if test "x$new_path" = x; then 35575 # It's still not found. Now this is an unrecoverable error. 35576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35577 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35578 has_space=`$ECHO "$complete" | $GREP " "` 35579 if test "x$has_space" != x; then 35580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35582 fi 35583 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35584 fi 35585 fi 35586 35587 # Now new_path has a complete unix path to the binary 35588 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35589 # Keep paths in /bin as-is, but remove trailing .exe if any 35590 new_path="${new_path/%.exe/}" 35591 # Do not save /bin paths to all_fixpath_prefixes! 35592 else 35593 # Not in mixed or Windows style, start by that. 35594 new_path=`cmd //c echo $new_path` 35595 35596 input_path="$new_path" 35597 # Check if we need to convert this using DOS-style short mode. If the path 35598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35599 # take no chances and rewrite it. 35600 # Note: m4 eats our [], so we need to use [ and ] instead. 35601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35602 if test "x$has_forbidden_chars" != x; then 35603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35605 fi 35606 35607 # Output is in $new_path 35608 35609 windows_path="$new_path" 35610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35611 unix_path=`$CYGPATH -u "$windows_path"` 35612 new_path="$unix_path" 35613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35615 new_path="$unix_path" 35616 fi 35617 35618 # remove trailing .exe if any 35619 new_path="${new_path/%.exe/}" 35620 35621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35623 fi 35624 35625 else 35626 # We're on a posix platform. Hooray! :) 35627 # First separate the path from the arguments. This will split at the first 35628 # space. 35629 complete="$STRIP" 35630 path="${complete%% *}" 35631 tmp="$complete EOL" 35632 arguments="${tmp#* }" 35633 35634 # Cannot rely on the command "which" here since it doesn't always work. 35635 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35636 if test -z "$is_absolute_path"; then 35637 # Path to executable is not absolute. Find it. 35638 IFS_save="$IFS" 35639 IFS=: 35640 for p in $PATH; do 35641 if test -f "$p/$path" && test -x "$p/$path"; then 35642 new_path="$p/$path" 35643 break 35644 fi 35645 done 35646 IFS="$IFS_save" 35647 else 35648 # This is an absolute path, we can use it without further modifications. 35649 new_path="$path" 35650 fi 35651 35652 if test "x$new_path" = x; then 35653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35654 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35655 has_space=`$ECHO "$complete" | $GREP " "` 35656 if test "x$has_space" != x; then 35657 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35658 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35659 fi 35660 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35661 fi 35662 fi 35663 35664 # Now join together the path and the arguments once again 35665 if test "x$arguments" != xEOL; then 35666 new_complete="$new_path ${arguments% *}" 35667 else 35668 new_complete="$new_path" 35669 fi 35670 35671 if test "x$complete" != "x$new_complete"; then 35672 STRIP="$new_complete" 35673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35674 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35675 fi 35676 35677 35678 35679 # Publish this variable in the help. 35680 35681 35682 if test "x$NM" = x; then 35683 # The variable is not set by user, try to locate tool using the code snippet 35684 for ac_prog in nm 35685 do 35686 # Extract the first word of "$ac_prog", so it can be a program name with args. 35687 set dummy $ac_prog; ac_word=$2 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35689 $as_echo_n "checking for $ac_word... " >&6; } 35690 if ${ac_cv_path_NM+:} false; then : 35691 $as_echo_n "(cached) " >&6 35692 else 35693 case $NM in 35694 [\\/]* | ?:[\\/]*) 35695 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35696 ;; 35697 *) 35698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35699 for as_dir in $PATH 35700 do 35701 IFS=$as_save_IFS 35702 test -z "$as_dir" && as_dir=. 35703 for ac_exec_ext in '' $ac_executable_extensions; do 35704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35705 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35707 break 2 35708 fi 35709 done 35710 done 35711 IFS=$as_save_IFS 35712 35713 ;; 35714 esac 35715 fi 35716 NM=$ac_cv_path_NM 35717 if test -n "$NM"; then 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35719 $as_echo "$NM" >&6; } 35720 else 35721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35722 $as_echo "no" >&6; } 35723 fi 35724 35725 35726 test -n "$NM" && break 35727 done 35728 35729 else 35730 # The variable is set, but is it from the command line or the environment? 35731 35732 # Try to remove the string !NM! from our list. 35733 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35734 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35735 # If it failed, the variable was not from the command line. Ignore it, 35736 # but warn the user (except for BASH, which is always set by the calling BASH). 35737 if test "xNM" != xBASH; then 35738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35739 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35740 fi 35741 # Try to locate tool using the code snippet 35742 for ac_prog in nm 35743 do 35744 # Extract the first word of "$ac_prog", so it can be a program name with args. 35745 set dummy $ac_prog; ac_word=$2 35746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35747 $as_echo_n "checking for $ac_word... " >&6; } 35748 if ${ac_cv_path_NM+:} false; then : 35749 $as_echo_n "(cached) " >&6 35750 else 35751 case $NM in 35752 [\\/]* | ?:[\\/]*) 35753 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35754 ;; 35755 *) 35756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35757 for as_dir in $PATH 35758 do 35759 IFS=$as_save_IFS 35760 test -z "$as_dir" && as_dir=. 35761 for ac_exec_ext in '' $ac_executable_extensions; do 35762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35763 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35765 break 2 35766 fi 35767 done 35768 done 35769 IFS=$as_save_IFS 35770 35771 ;; 35772 esac 35773 fi 35774 NM=$ac_cv_path_NM 35775 if test -n "$NM"; then 35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35777 $as_echo "$NM" >&6; } 35778 else 35779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35780 $as_echo "no" >&6; } 35781 fi 35782 35783 35784 test -n "$NM" && break 35785 done 35786 35787 else 35788 # If it succeeded, then it was overridden by the user. We will use it 35789 # for the tool. 35790 35791 # First remove it from the list of overridden variables, so we can test 35792 # for unknown variables in the end. 35793 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35794 35795 # Check if the provided tool contains a complete path. 35796 tool_specified="$NM" 35797 tool_basename="${tool_specified##*/}" 35798 if test "x$tool_basename" = "x$tool_specified"; then 35799 # A command without a complete path is provided, search $PATH. 35800 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35801 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35802 # Extract the first word of "$tool_basename", so it can be a program name with args. 35803 set dummy $tool_basename; ac_word=$2 35804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35805 $as_echo_n "checking for $ac_word... " >&6; } 35806 if ${ac_cv_path_NM+:} false; then : 35807 $as_echo_n "(cached) " >&6 35808 else 35809 case $NM in 35810 [\\/]* | ?:[\\/]*) 35811 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35812 ;; 35813 *) 35814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35815 for as_dir in $PATH 35816 do 35817 IFS=$as_save_IFS 35818 test -z "$as_dir" && as_dir=. 35819 for ac_exec_ext in '' $ac_executable_extensions; do 35820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35821 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35823 break 2 35824 fi 35825 done 35826 done 35827 IFS=$as_save_IFS 35828 35829 ;; 35830 esac 35831 fi 35832 NM=$ac_cv_path_NM 35833 if test -n "$NM"; then 35834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35835 $as_echo "$NM" >&6; } 35836 else 35837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35838 $as_echo "no" >&6; } 35839 fi 35840 35841 35842 if test "x$NM" = x; then 35843 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35844 fi 35845 else 35846 # Otherwise we believe it is a complete path. Use it as it is. 35847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35848 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35850 $as_echo_n "checking for NM... " >&6; } 35851 if test ! -x "$tool_specified"; then 35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35853 $as_echo "not found" >&6; } 35854 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35855 fi 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35857 $as_echo "$tool_specified" >&6; } 35858 fi 35859 fi 35860 fi 35861 35862 35863 35864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35865 35866 # First separate the path from the arguments. This will split at the first 35867 # space. 35868 complete="$NM" 35869 path="${complete%% *}" 35870 tmp="$complete EOL" 35871 arguments="${tmp#* }" 35872 35873 # Input might be given as Windows format, start by converting to 35874 # unix format. 35875 new_path=`$CYGPATH -u "$path"` 35876 35877 # Now try to locate executable using which 35878 new_path=`$WHICH "$new_path" 2> /dev/null` 35879 # bat and cmd files are not always considered executable in cygwin causing which 35880 # to not find them 35881 if test "x$new_path" = x \ 35882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35884 new_path=`$CYGPATH -u "$path"` 35885 fi 35886 if test "x$new_path" = x; then 35887 # Oops. Which didn't find the executable. 35888 # The splitting of arguments from the executable at a space might have been incorrect, 35889 # since paths with space are more likely in Windows. Give it another try with the whole 35890 # argument. 35891 path="$complete" 35892 arguments="EOL" 35893 new_path=`$CYGPATH -u "$path"` 35894 new_path=`$WHICH "$new_path" 2> /dev/null` 35895 # bat and cmd files are not always considered executable in cygwin causing which 35896 # to not find them 35897 if test "x$new_path" = x \ 35898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35900 new_path=`$CYGPATH -u "$path"` 35901 fi 35902 if test "x$new_path" = x; then 35903 # It's still not found. Now this is an unrecoverable error. 35904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35905 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35906 has_space=`$ECHO "$complete" | $GREP " "` 35907 if test "x$has_space" != x; then 35908 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35909 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35910 fi 35911 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35912 fi 35913 fi 35914 35915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35918 # "foo.exe" is OK but "foo" is an error. 35919 # 35920 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35921 # It is also a way to make sure we got the proper file name for the real test later on. 35922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35923 if test "x$test_shortpath" = x; then 35924 # Short path failed, file does not exist as specified. 35925 # Try adding .exe or .cmd 35926 if test -f "${new_path}.exe"; then 35927 input_to_shortpath="${new_path}.exe" 35928 elif test -f "${new_path}.cmd"; then 35929 input_to_shortpath="${new_path}.cmd" 35930 else 35931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35932 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35933 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35934 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35935 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35936 fi 35937 else 35938 input_to_shortpath="$new_path" 35939 fi 35940 35941 # Call helper function which possibly converts this using DOS-style short mode. 35942 # If so, the updated path is stored in $new_path. 35943 new_path="$input_to_shortpath" 35944 35945 input_path="$input_to_shortpath" 35946 # Check if we need to convert this using DOS-style short mode. If the path 35947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35948 # take no chances and rewrite it. 35949 # Note: m4 eats our [], so we need to use [ and ] instead. 35950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35951 if test "x$has_forbidden_chars" != x; then 35952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35956 # Going to short mode and back again did indeed matter. Since short mode is 35957 # case insensitive, let's make it lowercase to improve readability. 35958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35959 # Now convert it back to Unix-stile (cygpath) 35960 input_path=`$CYGPATH -u "$shortmode_path"` 35961 new_path="$input_path" 35962 fi 35963 fi 35964 35965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35966 if test "x$test_cygdrive_prefix" = x; then 35967 # As a simple fix, exclude /usr/bin since it's not a real path. 35968 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35970 # a path prefixed by /cygdrive for fixpath to work. 35971 new_path="$CYGWIN_ROOT_PATH$input_path" 35972 fi 35973 fi 35974 35975 # remove trailing .exe if any 35976 new_path="${new_path/%.exe/}" 35977 35978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35979 35980 # First separate the path from the arguments. This will split at the first 35981 # space. 35982 complete="$NM" 35983 path="${complete%% *}" 35984 tmp="$complete EOL" 35985 arguments="${tmp#* }" 35986 35987 # Input might be given as Windows format, start by converting to 35988 # unix format. 35989 new_path="$path" 35990 35991 windows_path="$new_path" 35992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35993 unix_path=`$CYGPATH -u "$windows_path"` 35994 new_path="$unix_path" 35995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35997 new_path="$unix_path" 35998 fi 35999 36000 36001 # Now try to locate executable using which 36002 new_path=`$WHICH "$new_path" 2> /dev/null` 36003 36004 if test "x$new_path" = x; then 36005 # Oops. Which didn't find the executable. 36006 # The splitting of arguments from the executable at a space might have been incorrect, 36007 # since paths with space are more likely in Windows. Give it another try with the whole 36008 # argument. 36009 path="$complete" 36010 arguments="EOL" 36011 new_path="$path" 36012 36013 windows_path="$new_path" 36014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36015 unix_path=`$CYGPATH -u "$windows_path"` 36016 new_path="$unix_path" 36017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36019 new_path="$unix_path" 36020 fi 36021 36022 36023 new_path=`$WHICH "$new_path" 2> /dev/null` 36024 # bat and cmd files are not always considered executable in MSYS causing which 36025 # to not find them 36026 if test "x$new_path" = x \ 36027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36029 new_path="$path" 36030 36031 windows_path="$new_path" 36032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36033 unix_path=`$CYGPATH -u "$windows_path"` 36034 new_path="$unix_path" 36035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36037 new_path="$unix_path" 36038 fi 36039 36040 fi 36041 36042 if test "x$new_path" = x; then 36043 # It's still not found. Now this is an unrecoverable error. 36044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36045 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36046 has_space=`$ECHO "$complete" | $GREP " "` 36047 if test "x$has_space" != x; then 36048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36050 fi 36051 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36052 fi 36053 fi 36054 36055 # Now new_path has a complete unix path to the binary 36056 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36057 # Keep paths in /bin as-is, but remove trailing .exe if any 36058 new_path="${new_path/%.exe/}" 36059 # Do not save /bin paths to all_fixpath_prefixes! 36060 else 36061 # Not in mixed or Windows style, start by that. 36062 new_path=`cmd //c echo $new_path` 36063 36064 input_path="$new_path" 36065 # Check if we need to convert this using DOS-style short mode. If the path 36066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36067 # take no chances and rewrite it. 36068 # Note: m4 eats our [], so we need to use [ and ] instead. 36069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36070 if test "x$has_forbidden_chars" != x; then 36071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36073 fi 36074 36075 # Output is in $new_path 36076 36077 windows_path="$new_path" 36078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36079 unix_path=`$CYGPATH -u "$windows_path"` 36080 new_path="$unix_path" 36081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36083 new_path="$unix_path" 36084 fi 36085 36086 # remove trailing .exe if any 36087 new_path="${new_path/%.exe/}" 36088 36089 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36090 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36091 fi 36092 36093 else 36094 # We're on a posix platform. Hooray! :) 36095 # First separate the path from the arguments. This will split at the first 36096 # space. 36097 complete="$NM" 36098 path="${complete%% *}" 36099 tmp="$complete EOL" 36100 arguments="${tmp#* }" 36101 36102 # Cannot rely on the command "which" here since it doesn't always work. 36103 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36104 if test -z "$is_absolute_path"; then 36105 # Path to executable is not absolute. Find it. 36106 IFS_save="$IFS" 36107 IFS=: 36108 for p in $PATH; do 36109 if test -f "$p/$path" && test -x "$p/$path"; then 36110 new_path="$p/$path" 36111 break 36112 fi 36113 done 36114 IFS="$IFS_save" 36115 else 36116 # This is an absolute path, we can use it without further modifications. 36117 new_path="$path" 36118 fi 36119 36120 if test "x$new_path" = x; then 36121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36122 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36123 has_space=`$ECHO "$complete" | $GREP " "` 36124 if test "x$has_space" != x; then 36125 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36126 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36127 fi 36128 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36129 fi 36130 fi 36131 36132 # Now join together the path and the arguments once again 36133 if test "x$arguments" != xEOL; then 36134 new_complete="$new_path ${arguments% *}" 36135 else 36136 new_complete="$new_path" 36137 fi 36138 36139 if test "x$complete" != "x$new_complete"; then 36140 NM="$new_complete" 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36142 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36143 fi 36144 36145 36146 36147 # Publish this variable in the help. 36148 36149 36150 if test "x$GNM" = x; then 36151 # The variable is not set by user, try to locate tool using the code snippet 36152 for ac_prog in gnm 36153 do 36154 # Extract the first word of "$ac_prog", so it can be a program name with args. 36155 set dummy $ac_prog; ac_word=$2 36156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36157 $as_echo_n "checking for $ac_word... " >&6; } 36158 if ${ac_cv_path_GNM+:} false; then : 36159 $as_echo_n "(cached) " >&6 36160 else 36161 case $GNM in 36162 [\\/]* | ?:[\\/]*) 36163 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36164 ;; 36165 *) 36166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36167 for as_dir in $PATH 36168 do 36169 IFS=$as_save_IFS 36170 test -z "$as_dir" && as_dir=. 36171 for ac_exec_ext in '' $ac_executable_extensions; do 36172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36173 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36175 break 2 36176 fi 36177 done 36178 done 36179 IFS=$as_save_IFS 36180 36181 ;; 36182 esac 36183 fi 36184 GNM=$ac_cv_path_GNM 36185 if test -n "$GNM"; then 36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36187 $as_echo "$GNM" >&6; } 36188 else 36189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36190 $as_echo "no" >&6; } 36191 fi 36192 36193 36194 test -n "$GNM" && break 36195 done 36196 36197 else 36198 # The variable is set, but is it from the command line or the environment? 36199 36200 # Try to remove the string !GNM! from our list. 36201 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36202 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36203 # If it failed, the variable was not from the command line. Ignore it, 36204 # but warn the user (except for BASH, which is always set by the calling BASH). 36205 if test "xGNM" != xBASH; then 36206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36207 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36208 fi 36209 # Try to locate tool using the code snippet 36210 for ac_prog in gnm 36211 do 36212 # Extract the first word of "$ac_prog", so it can be a program name with args. 36213 set dummy $ac_prog; ac_word=$2 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36215 $as_echo_n "checking for $ac_word... " >&6; } 36216 if ${ac_cv_path_GNM+:} false; then : 36217 $as_echo_n "(cached) " >&6 36218 else 36219 case $GNM in 36220 [\\/]* | ?:[\\/]*) 36221 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36222 ;; 36223 *) 36224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36225 for as_dir in $PATH 36226 do 36227 IFS=$as_save_IFS 36228 test -z "$as_dir" && as_dir=. 36229 for ac_exec_ext in '' $ac_executable_extensions; do 36230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36231 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36233 break 2 36234 fi 36235 done 36236 done 36237 IFS=$as_save_IFS 36238 36239 ;; 36240 esac 36241 fi 36242 GNM=$ac_cv_path_GNM 36243 if test -n "$GNM"; then 36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36245 $as_echo "$GNM" >&6; } 36246 else 36247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36248 $as_echo "no" >&6; } 36249 fi 36250 36251 36252 test -n "$GNM" && break 36253 done 36254 36255 else 36256 # If it succeeded, then it was overridden by the user. We will use it 36257 # for the tool. 36258 36259 # First remove it from the list of overridden variables, so we can test 36260 # for unknown variables in the end. 36261 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36262 36263 # Check if the provided tool contains a complete path. 36264 tool_specified="$GNM" 36265 tool_basename="${tool_specified##*/}" 36266 if test "x$tool_basename" = "x$tool_specified"; then 36267 # A command without a complete path is provided, search $PATH. 36268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36269 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36270 # Extract the first word of "$tool_basename", so it can be a program name with args. 36271 set dummy $tool_basename; ac_word=$2 36272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36273 $as_echo_n "checking for $ac_word... " >&6; } 36274 if ${ac_cv_path_GNM+:} false; then : 36275 $as_echo_n "(cached) " >&6 36276 else 36277 case $GNM in 36278 [\\/]* | ?:[\\/]*) 36279 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36280 ;; 36281 *) 36282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36283 for as_dir in $PATH 36284 do 36285 IFS=$as_save_IFS 36286 test -z "$as_dir" && as_dir=. 36287 for ac_exec_ext in '' $ac_executable_extensions; do 36288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36289 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36291 break 2 36292 fi 36293 done 36294 done 36295 IFS=$as_save_IFS 36296 36297 ;; 36298 esac 36299 fi 36300 GNM=$ac_cv_path_GNM 36301 if test -n "$GNM"; then 36302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36303 $as_echo "$GNM" >&6; } 36304 else 36305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36306 $as_echo "no" >&6; } 36307 fi 36308 36309 36310 if test "x$GNM" = x; then 36311 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36312 fi 36313 else 36314 # Otherwise we believe it is a complete path. Use it as it is. 36315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36316 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36318 $as_echo_n "checking for GNM... " >&6; } 36319 if test ! -x "$tool_specified"; then 36320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36321 $as_echo "not found" >&6; } 36322 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36323 fi 36324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36325 $as_echo "$tool_specified" >&6; } 36326 fi 36327 fi 36328 fi 36329 36330 36331 36332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36333 36334 # First separate the path from the arguments. This will split at the first 36335 # space. 36336 complete="$GNM" 36337 path="${complete%% *}" 36338 tmp="$complete EOL" 36339 arguments="${tmp#* }" 36340 36341 # Input might be given as Windows format, start by converting to 36342 # unix format. 36343 new_path=`$CYGPATH -u "$path"` 36344 36345 # Now try to locate executable using which 36346 new_path=`$WHICH "$new_path" 2> /dev/null` 36347 # bat and cmd files are not always considered executable in cygwin causing which 36348 # to not find them 36349 if test "x$new_path" = x \ 36350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36352 new_path=`$CYGPATH -u "$path"` 36353 fi 36354 if test "x$new_path" = x; then 36355 # Oops. Which didn't find the executable. 36356 # The splitting of arguments from the executable at a space might have been incorrect, 36357 # since paths with space are more likely in Windows. Give it another try with the whole 36358 # argument. 36359 path="$complete" 36360 arguments="EOL" 36361 new_path=`$CYGPATH -u "$path"` 36362 new_path=`$WHICH "$new_path" 2> /dev/null` 36363 # bat and cmd files are not always considered executable in cygwin causing which 36364 # to not find them 36365 if test "x$new_path" = x \ 36366 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36367 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36368 new_path=`$CYGPATH -u "$path"` 36369 fi 36370 if test "x$new_path" = x; then 36371 # It's still not found. Now this is an unrecoverable error. 36372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36373 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36374 has_space=`$ECHO "$complete" | $GREP " "` 36375 if test "x$has_space" != x; then 36376 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36378 fi 36379 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36380 fi 36381 fi 36382 36383 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36384 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36385 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36386 # "foo.exe" is OK but "foo" is an error. 36387 # 36388 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36389 # It is also a way to make sure we got the proper file name for the real test later on. 36390 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36391 if test "x$test_shortpath" = x; then 36392 # Short path failed, file does not exist as specified. 36393 # Try adding .exe or .cmd 36394 if test -f "${new_path}.exe"; then 36395 input_to_shortpath="${new_path}.exe" 36396 elif test -f "${new_path}.cmd"; then 36397 input_to_shortpath="${new_path}.cmd" 36398 else 36399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36400 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36401 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36402 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36403 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36404 fi 36405 else 36406 input_to_shortpath="$new_path" 36407 fi 36408 36409 # Call helper function which possibly converts this using DOS-style short mode. 36410 # If so, the updated path is stored in $new_path. 36411 new_path="$input_to_shortpath" 36412 36413 input_path="$input_to_shortpath" 36414 # Check if we need to convert this using DOS-style short mode. If the path 36415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36416 # take no chances and rewrite it. 36417 # Note: m4 eats our [], so we need to use [ and ] instead. 36418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36419 if test "x$has_forbidden_chars" != x; then 36420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36421 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36422 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36423 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36424 # Going to short mode and back again did indeed matter. Since short mode is 36425 # case insensitive, let's make it lowercase to improve readability. 36426 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36427 # Now convert it back to Unix-stile (cygpath) 36428 input_path=`$CYGPATH -u "$shortmode_path"` 36429 new_path="$input_path" 36430 fi 36431 fi 36432 36433 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36434 if test "x$test_cygdrive_prefix" = x; then 36435 # As a simple fix, exclude /usr/bin since it's not a real path. 36436 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36437 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36438 # a path prefixed by /cygdrive for fixpath to work. 36439 new_path="$CYGWIN_ROOT_PATH$input_path" 36440 fi 36441 fi 36442 36443 # remove trailing .exe if any 36444 new_path="${new_path/%.exe/}" 36445 36446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36447 36448 # First separate the path from the arguments. This will split at the first 36449 # space. 36450 complete="$GNM" 36451 path="${complete%% *}" 36452 tmp="$complete EOL" 36453 arguments="${tmp#* }" 36454 36455 # Input might be given as Windows format, start by converting to 36456 # unix format. 36457 new_path="$path" 36458 36459 windows_path="$new_path" 36460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36461 unix_path=`$CYGPATH -u "$windows_path"` 36462 new_path="$unix_path" 36463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36465 new_path="$unix_path" 36466 fi 36467 36468 36469 # Now try to locate executable using which 36470 new_path=`$WHICH "$new_path" 2> /dev/null` 36471 36472 if test "x$new_path" = x; then 36473 # Oops. Which didn't find the executable. 36474 # The splitting of arguments from the executable at a space might have been incorrect, 36475 # since paths with space are more likely in Windows. Give it another try with the whole 36476 # argument. 36477 path="$complete" 36478 arguments="EOL" 36479 new_path="$path" 36480 36481 windows_path="$new_path" 36482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36483 unix_path=`$CYGPATH -u "$windows_path"` 36484 new_path="$unix_path" 36485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36487 new_path="$unix_path" 36488 fi 36489 36490 36491 new_path=`$WHICH "$new_path" 2> /dev/null` 36492 # bat and cmd files are not always considered executable in MSYS causing which 36493 # to not find them 36494 if test "x$new_path" = x \ 36495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36497 new_path="$path" 36498 36499 windows_path="$new_path" 36500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36501 unix_path=`$CYGPATH -u "$windows_path"` 36502 new_path="$unix_path" 36503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36505 new_path="$unix_path" 36506 fi 36507 36508 fi 36509 36510 if test "x$new_path" = x; then 36511 # It's still not found. Now this is an unrecoverable error. 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36513 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36514 has_space=`$ECHO "$complete" | $GREP " "` 36515 if test "x$has_space" != x; then 36516 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36518 fi 36519 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36520 fi 36521 fi 36522 36523 # Now new_path has a complete unix path to the binary 36524 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36525 # Keep paths in /bin as-is, but remove trailing .exe if any 36526 new_path="${new_path/%.exe/}" 36527 # Do not save /bin paths to all_fixpath_prefixes! 36528 else 36529 # Not in mixed or Windows style, start by that. 36530 new_path=`cmd //c echo $new_path` 36531 36532 input_path="$new_path" 36533 # Check if we need to convert this using DOS-style short mode. If the path 36534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36535 # take no chances and rewrite it. 36536 # Note: m4 eats our [], so we need to use [ and ] instead. 36537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36538 if test "x$has_forbidden_chars" != x; then 36539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36540 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36541 fi 36542 36543 # Output is in $new_path 36544 36545 windows_path="$new_path" 36546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36547 unix_path=`$CYGPATH -u "$windows_path"` 36548 new_path="$unix_path" 36549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36551 new_path="$unix_path" 36552 fi 36553 36554 # remove trailing .exe if any 36555 new_path="${new_path/%.exe/}" 36556 36557 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36558 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36559 fi 36560 36561 else 36562 # We're on a posix platform. Hooray! :) 36563 # First separate the path from the arguments. This will split at the first 36564 # space. 36565 complete="$GNM" 36566 path="${complete%% *}" 36567 tmp="$complete EOL" 36568 arguments="${tmp#* }" 36569 36570 # Cannot rely on the command "which" here since it doesn't always work. 36571 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36572 if test -z "$is_absolute_path"; then 36573 # Path to executable is not absolute. Find it. 36574 IFS_save="$IFS" 36575 IFS=: 36576 for p in $PATH; do 36577 if test -f "$p/$path" && test -x "$p/$path"; then 36578 new_path="$p/$path" 36579 break 36580 fi 36581 done 36582 IFS="$IFS_save" 36583 else 36584 # This is an absolute path, we can use it without further modifications. 36585 new_path="$path" 36586 fi 36587 36588 if test "x$new_path" = x; then 36589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36590 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36591 has_space=`$ECHO "$complete" | $GREP " "` 36592 if test "x$has_space" != x; then 36593 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36594 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36595 fi 36596 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36597 fi 36598 fi 36599 36600 # Now join together the path and the arguments once again 36601 if test "x$arguments" != xEOL; then 36602 new_complete="$new_path ${arguments% *}" 36603 else 36604 new_complete="$new_path" 36605 fi 36606 36607 if test "x$complete" != "x$new_complete"; then 36608 GNM="$new_complete" 36609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36610 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36611 fi 36612 36613 36614 36615 36616 # Publish this variable in the help. 36617 36618 36619 if test "x$MCS" = x; then 36620 # The variable is not set by user, try to locate tool using the code snippet 36621 for ac_prog in mcs 36622 do 36623 # Extract the first word of "$ac_prog", so it can be a program name with args. 36624 set dummy $ac_prog; ac_word=$2 36625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36626 $as_echo_n "checking for $ac_word... " >&6; } 36627 if ${ac_cv_path_MCS+:} false; then : 36628 $as_echo_n "(cached) " >&6 36629 else 36630 case $MCS in 36631 [\\/]* | ?:[\\/]*) 36632 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36633 ;; 36634 *) 36635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36636 for as_dir in $PATH 36637 do 36638 IFS=$as_save_IFS 36639 test -z "$as_dir" && as_dir=. 36640 for ac_exec_ext in '' $ac_executable_extensions; do 36641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36642 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36644 break 2 36645 fi 36646 done 36647 done 36648 IFS=$as_save_IFS 36649 36650 ;; 36651 esac 36652 fi 36653 MCS=$ac_cv_path_MCS 36654 if test -n "$MCS"; then 36655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36656 $as_echo "$MCS" >&6; } 36657 else 36658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36659 $as_echo "no" >&6; } 36660 fi 36661 36662 36663 test -n "$MCS" && break 36664 done 36665 36666 else 36667 # The variable is set, but is it from the command line or the environment? 36668 36669 # Try to remove the string !MCS! from our list. 36670 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36671 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36672 # If it failed, the variable was not from the command line. Ignore it, 36673 # but warn the user (except for BASH, which is always set by the calling BASH). 36674 if test "xMCS" != xBASH; then 36675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36676 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36677 fi 36678 # Try to locate tool using the code snippet 36679 for ac_prog in mcs 36680 do 36681 # Extract the first word of "$ac_prog", so it can be a program name with args. 36682 set dummy $ac_prog; ac_word=$2 36683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36684 $as_echo_n "checking for $ac_word... " >&6; } 36685 if ${ac_cv_path_MCS+:} false; then : 36686 $as_echo_n "(cached) " >&6 36687 else 36688 case $MCS in 36689 [\\/]* | ?:[\\/]*) 36690 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36691 ;; 36692 *) 36693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36694 for as_dir in $PATH 36695 do 36696 IFS=$as_save_IFS 36697 test -z "$as_dir" && as_dir=. 36698 for ac_exec_ext in '' $ac_executable_extensions; do 36699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36700 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36702 break 2 36703 fi 36704 done 36705 done 36706 IFS=$as_save_IFS 36707 36708 ;; 36709 esac 36710 fi 36711 MCS=$ac_cv_path_MCS 36712 if test -n "$MCS"; then 36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36714 $as_echo "$MCS" >&6; } 36715 else 36716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36717 $as_echo "no" >&6; } 36718 fi 36719 36720 36721 test -n "$MCS" && break 36722 done 36723 36724 else 36725 # If it succeeded, then it was overridden by the user. We will use it 36726 # for the tool. 36727 36728 # First remove it from the list of overridden variables, so we can test 36729 # for unknown variables in the end. 36730 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36731 36732 # Check if the provided tool contains a complete path. 36733 tool_specified="$MCS" 36734 tool_basename="${tool_specified##*/}" 36735 if test "x$tool_basename" = "x$tool_specified"; then 36736 # A command without a complete path is provided, search $PATH. 36737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36738 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36739 # Extract the first word of "$tool_basename", so it can be a program name with args. 36740 set dummy $tool_basename; ac_word=$2 36741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36742 $as_echo_n "checking for $ac_word... " >&6; } 36743 if ${ac_cv_path_MCS+:} false; then : 36744 $as_echo_n "(cached) " >&6 36745 else 36746 case $MCS in 36747 [\\/]* | ?:[\\/]*) 36748 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36749 ;; 36750 *) 36751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36752 for as_dir in $PATH 36753 do 36754 IFS=$as_save_IFS 36755 test -z "$as_dir" && as_dir=. 36756 for ac_exec_ext in '' $ac_executable_extensions; do 36757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36758 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36760 break 2 36761 fi 36762 done 36763 done 36764 IFS=$as_save_IFS 36765 36766 ;; 36767 esac 36768 fi 36769 MCS=$ac_cv_path_MCS 36770 if test -n "$MCS"; then 36771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36772 $as_echo "$MCS" >&6; } 36773 else 36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36775 $as_echo "no" >&6; } 36776 fi 36777 36778 36779 if test "x$MCS" = x; then 36780 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36781 fi 36782 else 36783 # Otherwise we believe it is a complete path. Use it as it is. 36784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36785 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36787 $as_echo_n "checking for MCS... " >&6; } 36788 if test ! -x "$tool_specified"; then 36789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36790 $as_echo "not found" >&6; } 36791 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36792 fi 36793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36794 $as_echo "$tool_specified" >&6; } 36795 fi 36796 fi 36797 fi 36798 36799 36800 36801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36802 36803 # First separate the path from the arguments. This will split at the first 36804 # space. 36805 complete="$MCS" 36806 path="${complete%% *}" 36807 tmp="$complete EOL" 36808 arguments="${tmp#* }" 36809 36810 # Input might be given as Windows format, start by converting to 36811 # unix format. 36812 new_path=`$CYGPATH -u "$path"` 36813 36814 # Now try to locate executable using which 36815 new_path=`$WHICH "$new_path" 2> /dev/null` 36816 # bat and cmd files are not always considered executable in cygwin causing which 36817 # to not find them 36818 if test "x$new_path" = x \ 36819 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36820 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36821 new_path=`$CYGPATH -u "$path"` 36822 fi 36823 if test "x$new_path" = x; then 36824 # Oops. Which didn't find the executable. 36825 # The splitting of arguments from the executable at a space might have been incorrect, 36826 # since paths with space are more likely in Windows. Give it another try with the whole 36827 # argument. 36828 path="$complete" 36829 arguments="EOL" 36830 new_path=`$CYGPATH -u "$path"` 36831 new_path=`$WHICH "$new_path" 2> /dev/null` 36832 # bat and cmd files are not always considered executable in cygwin causing which 36833 # to not find them 36834 if test "x$new_path" = x \ 36835 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36836 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36837 new_path=`$CYGPATH -u "$path"` 36838 fi 36839 if test "x$new_path" = x; then 36840 # It's still not found. Now this is an unrecoverable error. 36841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36842 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36843 has_space=`$ECHO "$complete" | $GREP " "` 36844 if test "x$has_space" != x; then 36845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36847 fi 36848 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36849 fi 36850 fi 36851 36852 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36853 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36854 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36855 # "foo.exe" is OK but "foo" is an error. 36856 # 36857 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36858 # It is also a way to make sure we got the proper file name for the real test later on. 36859 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36860 if test "x$test_shortpath" = x; then 36861 # Short path failed, file does not exist as specified. 36862 # Try adding .exe or .cmd 36863 if test -f "${new_path}.exe"; then 36864 input_to_shortpath="${new_path}.exe" 36865 elif test -f "${new_path}.cmd"; then 36866 input_to_shortpath="${new_path}.cmd" 36867 else 36868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36869 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36870 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36871 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36872 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36873 fi 36874 else 36875 input_to_shortpath="$new_path" 36876 fi 36877 36878 # Call helper function which possibly converts this using DOS-style short mode. 36879 # If so, the updated path is stored in $new_path. 36880 new_path="$input_to_shortpath" 36881 36882 input_path="$input_to_shortpath" 36883 # Check if we need to convert this using DOS-style short mode. If the path 36884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36885 # take no chances and rewrite it. 36886 # Note: m4 eats our [], so we need to use [ and ] instead. 36887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36888 if test "x$has_forbidden_chars" != x; then 36889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36893 # Going to short mode and back again did indeed matter. Since short mode is 36894 # case insensitive, let's make it lowercase to improve readability. 36895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36896 # Now convert it back to Unix-stile (cygpath) 36897 input_path=`$CYGPATH -u "$shortmode_path"` 36898 new_path="$input_path" 36899 fi 36900 fi 36901 36902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36903 if test "x$test_cygdrive_prefix" = x; then 36904 # As a simple fix, exclude /usr/bin since it's not a real path. 36905 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36907 # a path prefixed by /cygdrive for fixpath to work. 36908 new_path="$CYGWIN_ROOT_PATH$input_path" 36909 fi 36910 fi 36911 36912 # remove trailing .exe if any 36913 new_path="${new_path/%.exe/}" 36914 36915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36916 36917 # First separate the path from the arguments. This will split at the first 36918 # space. 36919 complete="$MCS" 36920 path="${complete%% *}" 36921 tmp="$complete EOL" 36922 arguments="${tmp#* }" 36923 36924 # Input might be given as Windows format, start by converting to 36925 # unix format. 36926 new_path="$path" 36927 36928 windows_path="$new_path" 36929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36930 unix_path=`$CYGPATH -u "$windows_path"` 36931 new_path="$unix_path" 36932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36934 new_path="$unix_path" 36935 fi 36936 36937 36938 # Now try to locate executable using which 36939 new_path=`$WHICH "$new_path" 2> /dev/null` 36940 36941 if test "x$new_path" = x; then 36942 # Oops. Which didn't find the executable. 36943 # The splitting of arguments from the executable at a space might have been incorrect, 36944 # since paths with space are more likely in Windows. Give it another try with the whole 36945 # argument. 36946 path="$complete" 36947 arguments="EOL" 36948 new_path="$path" 36949 36950 windows_path="$new_path" 36951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36952 unix_path=`$CYGPATH -u "$windows_path"` 36953 new_path="$unix_path" 36954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36956 new_path="$unix_path" 36957 fi 36958 36959 36960 new_path=`$WHICH "$new_path" 2> /dev/null` 36961 # bat and cmd files are not always considered executable in MSYS causing which 36962 # to not find them 36963 if test "x$new_path" = x \ 36964 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36965 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36966 new_path="$path" 36967 36968 windows_path="$new_path" 36969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36970 unix_path=`$CYGPATH -u "$windows_path"` 36971 new_path="$unix_path" 36972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36974 new_path="$unix_path" 36975 fi 36976 36977 fi 36978 36979 if test "x$new_path" = x; then 36980 # It's still not found. Now this is an unrecoverable error. 36981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36982 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36983 has_space=`$ECHO "$complete" | $GREP " "` 36984 if test "x$has_space" != x; then 36985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36987 fi 36988 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36989 fi 36990 fi 36991 36992 # Now new_path has a complete unix path to the binary 36993 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36994 # Keep paths in /bin as-is, but remove trailing .exe if any 36995 new_path="${new_path/%.exe/}" 36996 # Do not save /bin paths to all_fixpath_prefixes! 36997 else 36998 # Not in mixed or Windows style, start by that. 36999 new_path=`cmd //c echo $new_path` 37000 37001 input_path="$new_path" 37002 # Check if we need to convert this using DOS-style short mode. If the path 37003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37004 # take no chances and rewrite it. 37005 # Note: m4 eats our [], so we need to use [ and ] instead. 37006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37007 if test "x$has_forbidden_chars" != x; then 37008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37010 fi 37011 37012 # Output is in $new_path 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 # remove trailing .exe if any 37024 new_path="${new_path/%.exe/}" 37025 37026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37028 fi 37029 37030 else 37031 # We're on a posix platform. Hooray! :) 37032 # First separate the path from the arguments. This will split at the first 37033 # space. 37034 complete="$MCS" 37035 path="${complete%% *}" 37036 tmp="$complete EOL" 37037 arguments="${tmp#* }" 37038 37039 # Cannot rely on the command "which" here since it doesn't always work. 37040 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37041 if test -z "$is_absolute_path"; then 37042 # Path to executable is not absolute. Find it. 37043 IFS_save="$IFS" 37044 IFS=: 37045 for p in $PATH; do 37046 if test -f "$p/$path" && test -x "$p/$path"; then 37047 new_path="$p/$path" 37048 break 37049 fi 37050 done 37051 IFS="$IFS_save" 37052 else 37053 # This is an absolute path, we can use it without further modifications. 37054 new_path="$path" 37055 fi 37056 37057 if test "x$new_path" = x; then 37058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37059 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37060 has_space=`$ECHO "$complete" | $GREP " "` 37061 if test "x$has_space" != x; then 37062 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37064 fi 37065 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37066 fi 37067 fi 37068 37069 # Now join together the path and the arguments once again 37070 if test "x$arguments" != xEOL; then 37071 new_complete="$new_path ${arguments% *}" 37072 else 37073 new_complete="$new_path" 37074 fi 37075 37076 if test "x$complete" != "x$new_complete"; then 37077 MCS="$new_complete" 37078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37079 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37080 fi 37081 37082 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37083 # FIXME: we should unify this with the solaris case above. 37084 37085 37086 # Publish this variable in the help. 37087 37088 37089 if test "x$STRIP" = x; then 37090 # The variable is not set by user, try to locate tool using the code snippet 37091 if test -n "$ac_tool_prefix"; then 37092 for ac_prog in strip 37093 do 37094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37097 $as_echo_n "checking for $ac_word... " >&6; } 37098 if ${ac_cv_prog_STRIP+:} false; then : 37099 $as_echo_n "(cached) " >&6 37100 else 37101 if test -n "$STRIP"; then 37102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37103 else 37104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37105 for as_dir in $PATH 37106 do 37107 IFS=$as_save_IFS 37108 test -z "$as_dir" && as_dir=. 37109 for ac_exec_ext in '' $ac_executable_extensions; do 37110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37111 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37113 break 2 37114 fi 37115 done 37116 done 37117 IFS=$as_save_IFS 37118 37119 fi 37120 fi 37121 STRIP=$ac_cv_prog_STRIP 37122 if test -n "$STRIP"; then 37123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37124 $as_echo "$STRIP" >&6; } 37125 else 37126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37127 $as_echo "no" >&6; } 37128 fi 37129 37130 37131 test -n "$STRIP" && break 37132 done 37133 fi 37134 if test -z "$STRIP"; then 37135 ac_ct_STRIP=$STRIP 37136 for ac_prog in strip 37137 do 37138 # Extract the first word of "$ac_prog", so it can be a program name with args. 37139 set dummy $ac_prog; ac_word=$2 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37141 $as_echo_n "checking for $ac_word... " >&6; } 37142 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37143 $as_echo_n "(cached) " >&6 37144 else 37145 if test -n "$ac_ct_STRIP"; then 37146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37147 else 37148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37149 for as_dir in $PATH 37150 do 37151 IFS=$as_save_IFS 37152 test -z "$as_dir" && as_dir=. 37153 for ac_exec_ext in '' $ac_executable_extensions; do 37154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37155 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37157 break 2 37158 fi 37159 done 37160 done 37161 IFS=$as_save_IFS 37162 37163 fi 37164 fi 37165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37166 if test -n "$ac_ct_STRIP"; then 37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37168 $as_echo "$ac_ct_STRIP" >&6; } 37169 else 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37171 $as_echo "no" >&6; } 37172 fi 37173 37174 37175 test -n "$ac_ct_STRIP" && break 37176 done 37177 37178 if test "x$ac_ct_STRIP" = x; then 37179 STRIP="" 37180 else 37181 case $cross_compiling:$ac_tool_warned in 37182 yes:) 37183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37185 ac_tool_warned=yes ;; 37186 esac 37187 STRIP=$ac_ct_STRIP 37188 fi 37189 fi 37190 37191 else 37192 # The variable is set, but is it from the command line or the environment? 37193 37194 # Try to remove the string !STRIP! from our list. 37195 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37196 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37197 # If it failed, the variable was not from the command line. Ignore it, 37198 # but warn the user (except for BASH, which is always set by the calling BASH). 37199 if test "xSTRIP" != xBASH; then 37200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37201 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37202 fi 37203 # Try to locate tool using the code snippet 37204 if test -n "$ac_tool_prefix"; then 37205 for ac_prog in strip 37206 do 37207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37210 $as_echo_n "checking for $ac_word... " >&6; } 37211 if ${ac_cv_prog_STRIP+:} false; then : 37212 $as_echo_n "(cached) " >&6 37213 else 37214 if test -n "$STRIP"; then 37215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37216 else 37217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37218 for as_dir in $PATH 37219 do 37220 IFS=$as_save_IFS 37221 test -z "$as_dir" && as_dir=. 37222 for ac_exec_ext in '' $ac_executable_extensions; do 37223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37224 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37226 break 2 37227 fi 37228 done 37229 done 37230 IFS=$as_save_IFS 37231 37232 fi 37233 fi 37234 STRIP=$ac_cv_prog_STRIP 37235 if test -n "$STRIP"; then 37236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37237 $as_echo "$STRIP" >&6; } 37238 else 37239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37240 $as_echo "no" >&6; } 37241 fi 37242 37243 37244 test -n "$STRIP" && break 37245 done 37246 fi 37247 if test -z "$STRIP"; then 37248 ac_ct_STRIP=$STRIP 37249 for ac_prog in strip 37250 do 37251 # Extract the first word of "$ac_prog", so it can be a program name with args. 37252 set dummy $ac_prog; ac_word=$2 37253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37254 $as_echo_n "checking for $ac_word... " >&6; } 37255 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37256 $as_echo_n "(cached) " >&6 37257 else 37258 if test -n "$ac_ct_STRIP"; then 37259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37260 else 37261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37262 for as_dir in $PATH 37263 do 37264 IFS=$as_save_IFS 37265 test -z "$as_dir" && as_dir=. 37266 for ac_exec_ext in '' $ac_executable_extensions; do 37267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37268 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37270 break 2 37271 fi 37272 done 37273 done 37274 IFS=$as_save_IFS 37275 37276 fi 37277 fi 37278 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37279 if test -n "$ac_ct_STRIP"; then 37280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37281 $as_echo "$ac_ct_STRIP" >&6; } 37282 else 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37284 $as_echo "no" >&6; } 37285 fi 37286 37287 37288 test -n "$ac_ct_STRIP" && break 37289 done 37290 37291 if test "x$ac_ct_STRIP" = x; then 37292 STRIP="" 37293 else 37294 case $cross_compiling:$ac_tool_warned in 37295 yes:) 37296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37298 ac_tool_warned=yes ;; 37299 esac 37300 STRIP=$ac_ct_STRIP 37301 fi 37302 fi 37303 37304 else 37305 # If it succeeded, then it was overridden by the user. We will use it 37306 # for the tool. 37307 37308 # First remove it from the list of overridden variables, so we can test 37309 # for unknown variables in the end. 37310 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37311 37312 # Check if the provided tool contains a complete path. 37313 tool_specified="$STRIP" 37314 tool_basename="${tool_specified##*/}" 37315 if test "x$tool_basename" = "x$tool_specified"; then 37316 # A command without a complete path is provided, search $PATH. 37317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37318 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37319 # Extract the first word of "$tool_basename", so it can be a program name with args. 37320 set dummy $tool_basename; ac_word=$2 37321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37322 $as_echo_n "checking for $ac_word... " >&6; } 37323 if ${ac_cv_path_STRIP+:} false; then : 37324 $as_echo_n "(cached) " >&6 37325 else 37326 case $STRIP in 37327 [\\/]* | ?:[\\/]*) 37328 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37329 ;; 37330 *) 37331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37332 for as_dir in $PATH 37333 do 37334 IFS=$as_save_IFS 37335 test -z "$as_dir" && as_dir=. 37336 for ac_exec_ext in '' $ac_executable_extensions; do 37337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37338 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37340 break 2 37341 fi 37342 done 37343 done 37344 IFS=$as_save_IFS 37345 37346 ;; 37347 esac 37348 fi 37349 STRIP=$ac_cv_path_STRIP 37350 if test -n "$STRIP"; then 37351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37352 $as_echo "$STRIP" >&6; } 37353 else 37354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37355 $as_echo "no" >&6; } 37356 fi 37357 37358 37359 if test "x$STRIP" = x; then 37360 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37361 fi 37362 else 37363 # Otherwise we believe it is a complete path. Use it as it is. 37364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37365 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37367 $as_echo_n "checking for STRIP... " >&6; } 37368 if test ! -x "$tool_specified"; then 37369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37370 $as_echo "not found" >&6; } 37371 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37372 fi 37373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37374 $as_echo "$tool_specified" >&6; } 37375 fi 37376 fi 37377 fi 37378 37379 37380 37381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37382 37383 # First separate the path from the arguments. This will split at the first 37384 # space. 37385 complete="$STRIP" 37386 path="${complete%% *}" 37387 tmp="$complete EOL" 37388 arguments="${tmp#* }" 37389 37390 # Input might be given as Windows format, start by converting to 37391 # unix format. 37392 new_path=`$CYGPATH -u "$path"` 37393 37394 # Now try to locate executable using which 37395 new_path=`$WHICH "$new_path" 2> /dev/null` 37396 # bat and cmd files are not always considered executable in cygwin causing which 37397 # to not find them 37398 if test "x$new_path" = x \ 37399 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37400 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37401 new_path=`$CYGPATH -u "$path"` 37402 fi 37403 if test "x$new_path" = x; then 37404 # Oops. Which didn't find the executable. 37405 # The splitting of arguments from the executable at a space might have been incorrect, 37406 # since paths with space are more likely in Windows. Give it another try with the whole 37407 # argument. 37408 path="$complete" 37409 arguments="EOL" 37410 new_path=`$CYGPATH -u "$path"` 37411 new_path=`$WHICH "$new_path" 2> /dev/null` 37412 # bat and cmd files are not always considered executable in cygwin causing which 37413 # to not find them 37414 if test "x$new_path" = x \ 37415 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37416 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37417 new_path=`$CYGPATH -u "$path"` 37418 fi 37419 if test "x$new_path" = x; then 37420 # It's still not found. Now this is an unrecoverable error. 37421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37422 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37423 has_space=`$ECHO "$complete" | $GREP " "` 37424 if test "x$has_space" != x; then 37425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37427 fi 37428 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37429 fi 37430 fi 37431 37432 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37433 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37434 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37435 # "foo.exe" is OK but "foo" is an error. 37436 # 37437 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37438 # It is also a way to make sure we got the proper file name for the real test later on. 37439 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37440 if test "x$test_shortpath" = x; then 37441 # Short path failed, file does not exist as specified. 37442 # Try adding .exe or .cmd 37443 if test -f "${new_path}.exe"; then 37444 input_to_shortpath="${new_path}.exe" 37445 elif test -f "${new_path}.cmd"; then 37446 input_to_shortpath="${new_path}.cmd" 37447 else 37448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37449 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37450 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37451 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37452 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37453 fi 37454 else 37455 input_to_shortpath="$new_path" 37456 fi 37457 37458 # Call helper function which possibly converts this using DOS-style short mode. 37459 # If so, the updated path is stored in $new_path. 37460 new_path="$input_to_shortpath" 37461 37462 input_path="$input_to_shortpath" 37463 # Check if we need to convert this using DOS-style short mode. If the path 37464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37465 # take no chances and rewrite it. 37466 # Note: m4 eats our [], so we need to use [ and ] instead. 37467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37468 if test "x$has_forbidden_chars" != x; then 37469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37470 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37471 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37472 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37473 # Going to short mode and back again did indeed matter. Since short mode is 37474 # case insensitive, let's make it lowercase to improve readability. 37475 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37476 # Now convert it back to Unix-stile (cygpath) 37477 input_path=`$CYGPATH -u "$shortmode_path"` 37478 new_path="$input_path" 37479 fi 37480 fi 37481 37482 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37483 if test "x$test_cygdrive_prefix" = x; then 37484 # As a simple fix, exclude /usr/bin since it's not a real path. 37485 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37486 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37487 # a path prefixed by /cygdrive for fixpath to work. 37488 new_path="$CYGWIN_ROOT_PATH$input_path" 37489 fi 37490 fi 37491 37492 # remove trailing .exe if any 37493 new_path="${new_path/%.exe/}" 37494 37495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37496 37497 # First separate the path from the arguments. This will split at the first 37498 # space. 37499 complete="$STRIP" 37500 path="${complete%% *}" 37501 tmp="$complete EOL" 37502 arguments="${tmp#* }" 37503 37504 # Input might be given as Windows format, start by converting to 37505 # unix format. 37506 new_path="$path" 37507 37508 windows_path="$new_path" 37509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37510 unix_path=`$CYGPATH -u "$windows_path"` 37511 new_path="$unix_path" 37512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37514 new_path="$unix_path" 37515 fi 37516 37517 37518 # Now try to locate executable using which 37519 new_path=`$WHICH "$new_path" 2> /dev/null` 37520 37521 if test "x$new_path" = x; then 37522 # Oops. Which didn't find the executable. 37523 # The splitting of arguments from the executable at a space might have been incorrect, 37524 # since paths with space are more likely in Windows. Give it another try with the whole 37525 # argument. 37526 path="$complete" 37527 arguments="EOL" 37528 new_path="$path" 37529 37530 windows_path="$new_path" 37531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37532 unix_path=`$CYGPATH -u "$windows_path"` 37533 new_path="$unix_path" 37534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37536 new_path="$unix_path" 37537 fi 37538 37539 37540 new_path=`$WHICH "$new_path" 2> /dev/null` 37541 # bat and cmd files are not always considered executable in MSYS causing which 37542 # to not find them 37543 if test "x$new_path" = x \ 37544 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37545 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37546 new_path="$path" 37547 37548 windows_path="$new_path" 37549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37550 unix_path=`$CYGPATH -u "$windows_path"` 37551 new_path="$unix_path" 37552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37554 new_path="$unix_path" 37555 fi 37556 37557 fi 37558 37559 if test "x$new_path" = x; then 37560 # It's still not found. Now this is an unrecoverable error. 37561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37562 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37563 has_space=`$ECHO "$complete" | $GREP " "` 37564 if test "x$has_space" != x; then 37565 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37566 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37567 fi 37568 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37569 fi 37570 fi 37571 37572 # Now new_path has a complete unix path to the binary 37573 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37574 # Keep paths in /bin as-is, but remove trailing .exe if any 37575 new_path="${new_path/%.exe/}" 37576 # Do not save /bin paths to all_fixpath_prefixes! 37577 else 37578 # Not in mixed or Windows style, start by that. 37579 new_path=`cmd //c echo $new_path` 37580 37581 input_path="$new_path" 37582 # Check if we need to convert this using DOS-style short mode. If the path 37583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37584 # take no chances and rewrite it. 37585 # Note: m4 eats our [], so we need to use [ and ] instead. 37586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37587 if test "x$has_forbidden_chars" != x; then 37588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37589 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37590 fi 37591 37592 # Output is in $new_path 37593 37594 windows_path="$new_path" 37595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37596 unix_path=`$CYGPATH -u "$windows_path"` 37597 new_path="$unix_path" 37598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37600 new_path="$unix_path" 37601 fi 37602 37603 # remove trailing .exe if any 37604 new_path="${new_path/%.exe/}" 37605 37606 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37607 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37608 fi 37609 37610 else 37611 # We're on a posix platform. Hooray! :) 37612 # First separate the path from the arguments. This will split at the first 37613 # space. 37614 complete="$STRIP" 37615 path="${complete%% *}" 37616 tmp="$complete EOL" 37617 arguments="${tmp#* }" 37618 37619 # Cannot rely on the command "which" here since it doesn't always work. 37620 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37621 if test -z "$is_absolute_path"; then 37622 # Path to executable is not absolute. Find it. 37623 IFS_save="$IFS" 37624 IFS=: 37625 for p in $PATH; do 37626 if test -f "$p/$path" && test -x "$p/$path"; then 37627 new_path="$p/$path" 37628 break 37629 fi 37630 done 37631 IFS="$IFS_save" 37632 else 37633 # This is an absolute path, we can use it without further modifications. 37634 new_path="$path" 37635 fi 37636 37637 if test "x$new_path" = x; then 37638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37639 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37640 has_space=`$ECHO "$complete" | $GREP " "` 37641 if test "x$has_space" != x; then 37642 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37643 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37644 fi 37645 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37646 fi 37647 fi 37648 37649 # Now join together the path and the arguments once again 37650 if test "x$arguments" != xEOL; then 37651 new_complete="$new_path ${arguments% *}" 37652 else 37653 new_complete="$new_path" 37654 fi 37655 37656 if test "x$complete" != "x$new_complete"; then 37657 STRIP="$new_complete" 37658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37659 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37660 fi 37661 37662 37663 37664 # Publish this variable in the help. 37665 37666 37667 if test "x$NM" = x; then 37668 # The variable is not set by user, try to locate tool using the code snippet 37669 if test -n "$ac_tool_prefix"; then 37670 for ac_prog in nm 37671 do 37672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37675 $as_echo_n "checking for $ac_word... " >&6; } 37676 if ${ac_cv_prog_NM+:} false; then : 37677 $as_echo_n "(cached) " >&6 37678 else 37679 if test -n "$NM"; then 37680 ac_cv_prog_NM="$NM" # Let the user override the test. 37681 else 37682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37683 for as_dir in $PATH 37684 do 37685 IFS=$as_save_IFS 37686 test -z "$as_dir" && as_dir=. 37687 for ac_exec_ext in '' $ac_executable_extensions; do 37688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37689 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37691 break 2 37692 fi 37693 done 37694 done 37695 IFS=$as_save_IFS 37696 37697 fi 37698 fi 37699 NM=$ac_cv_prog_NM 37700 if test -n "$NM"; then 37701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37702 $as_echo "$NM" >&6; } 37703 else 37704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37705 $as_echo "no" >&6; } 37706 fi 37707 37708 37709 test -n "$NM" && break 37710 done 37711 fi 37712 if test -z "$NM"; then 37713 ac_ct_NM=$NM 37714 for ac_prog in nm 37715 do 37716 # Extract the first word of "$ac_prog", so it can be a program name with args. 37717 set dummy $ac_prog; ac_word=$2 37718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37719 $as_echo_n "checking for $ac_word... " >&6; } 37720 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37721 $as_echo_n "(cached) " >&6 37722 else 37723 if test -n "$ac_ct_NM"; then 37724 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37725 else 37726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37727 for as_dir in $PATH 37728 do 37729 IFS=$as_save_IFS 37730 test -z "$as_dir" && as_dir=. 37731 for ac_exec_ext in '' $ac_executable_extensions; do 37732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37733 ac_cv_prog_ac_ct_NM="$ac_prog" 37734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37735 break 2 37736 fi 37737 done 37738 done 37739 IFS=$as_save_IFS 37740 37741 fi 37742 fi 37743 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37744 if test -n "$ac_ct_NM"; then 37745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37746 $as_echo "$ac_ct_NM" >&6; } 37747 else 37748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37749 $as_echo "no" >&6; } 37750 fi 37751 37752 37753 test -n "$ac_ct_NM" && break 37754 done 37755 37756 if test "x$ac_ct_NM" = x; then 37757 NM="" 37758 else 37759 case $cross_compiling:$ac_tool_warned in 37760 yes:) 37761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37763 ac_tool_warned=yes ;; 37764 esac 37765 NM=$ac_ct_NM 37766 fi 37767 fi 37768 37769 else 37770 # The variable is set, but is it from the command line or the environment? 37771 37772 # Try to remove the string !NM! from our list. 37773 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37774 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37775 # If it failed, the variable was not from the command line. Ignore it, 37776 # but warn the user (except for BASH, which is always set by the calling BASH). 37777 if test "xNM" != xBASH; then 37778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37779 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37780 fi 37781 # Try to locate tool using the code snippet 37782 if test -n "$ac_tool_prefix"; then 37783 for ac_prog in nm 37784 do 37785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37788 $as_echo_n "checking for $ac_word... " >&6; } 37789 if ${ac_cv_prog_NM+:} false; then : 37790 $as_echo_n "(cached) " >&6 37791 else 37792 if test -n "$NM"; then 37793 ac_cv_prog_NM="$NM" # Let the user override the test. 37794 else 37795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37796 for as_dir in $PATH 37797 do 37798 IFS=$as_save_IFS 37799 test -z "$as_dir" && as_dir=. 37800 for ac_exec_ext in '' $ac_executable_extensions; do 37801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37802 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37804 break 2 37805 fi 37806 done 37807 done 37808 IFS=$as_save_IFS 37809 37810 fi 37811 fi 37812 NM=$ac_cv_prog_NM 37813 if test -n "$NM"; then 37814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37815 $as_echo "$NM" >&6; } 37816 else 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37818 $as_echo "no" >&6; } 37819 fi 37820 37821 37822 test -n "$NM" && break 37823 done 37824 fi 37825 if test -z "$NM"; then 37826 ac_ct_NM=$NM 37827 for ac_prog in nm 37828 do 37829 # Extract the first word of "$ac_prog", so it can be a program name with args. 37830 set dummy $ac_prog; ac_word=$2 37831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37832 $as_echo_n "checking for $ac_word... " >&6; } 37833 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37834 $as_echo_n "(cached) " >&6 37835 else 37836 if test -n "$ac_ct_NM"; then 37837 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37838 else 37839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37840 for as_dir in $PATH 37841 do 37842 IFS=$as_save_IFS 37843 test -z "$as_dir" && as_dir=. 37844 for ac_exec_ext in '' $ac_executable_extensions; do 37845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37846 ac_cv_prog_ac_ct_NM="$ac_prog" 37847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37848 break 2 37849 fi 37850 done 37851 done 37852 IFS=$as_save_IFS 37853 37854 fi 37855 fi 37856 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37857 if test -n "$ac_ct_NM"; then 37858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37859 $as_echo "$ac_ct_NM" >&6; } 37860 else 37861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37862 $as_echo "no" >&6; } 37863 fi 37864 37865 37866 test -n "$ac_ct_NM" && break 37867 done 37868 37869 if test "x$ac_ct_NM" = x; then 37870 NM="" 37871 else 37872 case $cross_compiling:$ac_tool_warned in 37873 yes:) 37874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37876 ac_tool_warned=yes ;; 37877 esac 37878 NM=$ac_ct_NM 37879 fi 37880 fi 37881 37882 else 37883 # If it succeeded, then it was overridden by the user. We will use it 37884 # for the tool. 37885 37886 # First remove it from the list of overridden variables, so we can test 37887 # for unknown variables in the end. 37888 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37889 37890 # Check if the provided tool contains a complete path. 37891 tool_specified="$NM" 37892 tool_basename="${tool_specified##*/}" 37893 if test "x$tool_basename" = "x$tool_specified"; then 37894 # A command without a complete path is provided, search $PATH. 37895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37896 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37897 # Extract the first word of "$tool_basename", so it can be a program name with args. 37898 set dummy $tool_basename; ac_word=$2 37899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37900 $as_echo_n "checking for $ac_word... " >&6; } 37901 if ${ac_cv_path_NM+:} false; then : 37902 $as_echo_n "(cached) " >&6 37903 else 37904 case $NM in 37905 [\\/]* | ?:[\\/]*) 37906 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37907 ;; 37908 *) 37909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37910 for as_dir in $PATH 37911 do 37912 IFS=$as_save_IFS 37913 test -z "$as_dir" && as_dir=. 37914 for ac_exec_ext in '' $ac_executable_extensions; do 37915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37916 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37918 break 2 37919 fi 37920 done 37921 done 37922 IFS=$as_save_IFS 37923 37924 ;; 37925 esac 37926 fi 37927 NM=$ac_cv_path_NM 37928 if test -n "$NM"; then 37929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37930 $as_echo "$NM" >&6; } 37931 else 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37933 $as_echo "no" >&6; } 37934 fi 37935 37936 37937 if test "x$NM" = x; then 37938 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37939 fi 37940 else 37941 # Otherwise we believe it is a complete path. Use it as it is. 37942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37943 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37945 $as_echo_n "checking for NM... " >&6; } 37946 if test ! -x "$tool_specified"; then 37947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37948 $as_echo "not found" >&6; } 37949 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37950 fi 37951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37952 $as_echo "$tool_specified" >&6; } 37953 fi 37954 fi 37955 fi 37956 37957 37958 37959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37960 37961 # First separate the path from the arguments. This will split at the first 37962 # space. 37963 complete="$NM" 37964 path="${complete%% *}" 37965 tmp="$complete EOL" 37966 arguments="${tmp#* }" 37967 37968 # Input might be given as Windows format, start by converting to 37969 # unix format. 37970 new_path=`$CYGPATH -u "$path"` 37971 37972 # Now try to locate executable using which 37973 new_path=`$WHICH "$new_path" 2> /dev/null` 37974 # bat and cmd files are not always considered executable in cygwin causing which 37975 # to not find them 37976 if test "x$new_path" = x \ 37977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37979 new_path=`$CYGPATH -u "$path"` 37980 fi 37981 if test "x$new_path" = x; then 37982 # Oops. Which didn't find the executable. 37983 # The splitting of arguments from the executable at a space might have been incorrect, 37984 # since paths with space are more likely in Windows. Give it another try with the whole 37985 # argument. 37986 path="$complete" 37987 arguments="EOL" 37988 new_path=`$CYGPATH -u "$path"` 37989 new_path=`$WHICH "$new_path" 2> /dev/null` 37990 # bat and cmd files are not always considered executable in cygwin causing which 37991 # to not find them 37992 if test "x$new_path" = x \ 37993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37995 new_path=`$CYGPATH -u "$path"` 37996 fi 37997 if test "x$new_path" = x; then 37998 # It's still not found. Now this is an unrecoverable error. 37999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38000 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38001 has_space=`$ECHO "$complete" | $GREP " "` 38002 if test "x$has_space" != x; then 38003 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38004 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38005 fi 38006 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38007 fi 38008 fi 38009 38010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38013 # "foo.exe" is OK but "foo" is an error. 38014 # 38015 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38016 # It is also a way to make sure we got the proper file name for the real test later on. 38017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38018 if test "x$test_shortpath" = x; then 38019 # Short path failed, file does not exist as specified. 38020 # Try adding .exe or .cmd 38021 if test -f "${new_path}.exe"; then 38022 input_to_shortpath="${new_path}.exe" 38023 elif test -f "${new_path}.cmd"; then 38024 input_to_shortpath="${new_path}.cmd" 38025 else 38026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38027 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38028 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38029 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38030 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38031 fi 38032 else 38033 input_to_shortpath="$new_path" 38034 fi 38035 38036 # Call helper function which possibly converts this using DOS-style short mode. 38037 # If so, the updated path is stored in $new_path. 38038 new_path="$input_to_shortpath" 38039 38040 input_path="$input_to_shortpath" 38041 # Check if we need to convert this using DOS-style short mode. If the path 38042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38043 # take no chances and rewrite it. 38044 # Note: m4 eats our [], so we need to use [ and ] instead. 38045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38046 if test "x$has_forbidden_chars" != x; then 38047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38051 # Going to short mode and back again did indeed matter. Since short mode is 38052 # case insensitive, let's make it lowercase to improve readability. 38053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38054 # Now convert it back to Unix-stile (cygpath) 38055 input_path=`$CYGPATH -u "$shortmode_path"` 38056 new_path="$input_path" 38057 fi 38058 fi 38059 38060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38061 if test "x$test_cygdrive_prefix" = x; then 38062 # As a simple fix, exclude /usr/bin since it's not a real path. 38063 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38065 # a path prefixed by /cygdrive for fixpath to work. 38066 new_path="$CYGWIN_ROOT_PATH$input_path" 38067 fi 38068 fi 38069 38070 # remove trailing .exe if any 38071 new_path="${new_path/%.exe/}" 38072 38073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38074 38075 # First separate the path from the arguments. This will split at the first 38076 # space. 38077 complete="$NM" 38078 path="${complete%% *}" 38079 tmp="$complete EOL" 38080 arguments="${tmp#* }" 38081 38082 # Input might be given as Windows format, start by converting to 38083 # unix format. 38084 new_path="$path" 38085 38086 windows_path="$new_path" 38087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38088 unix_path=`$CYGPATH -u "$windows_path"` 38089 new_path="$unix_path" 38090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38092 new_path="$unix_path" 38093 fi 38094 38095 38096 # Now try to locate executable using which 38097 new_path=`$WHICH "$new_path" 2> /dev/null` 38098 38099 if test "x$new_path" = x; then 38100 # Oops. Which didn't find the executable. 38101 # The splitting of arguments from the executable at a space might have been incorrect, 38102 # since paths with space are more likely in Windows. Give it another try with the whole 38103 # argument. 38104 path="$complete" 38105 arguments="EOL" 38106 new_path="$path" 38107 38108 windows_path="$new_path" 38109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38110 unix_path=`$CYGPATH -u "$windows_path"` 38111 new_path="$unix_path" 38112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38114 new_path="$unix_path" 38115 fi 38116 38117 38118 new_path=`$WHICH "$new_path" 2> /dev/null` 38119 # bat and cmd files are not always considered executable in MSYS causing which 38120 # to not find them 38121 if test "x$new_path" = x \ 38122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38124 new_path="$path" 38125 38126 windows_path="$new_path" 38127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38128 unix_path=`$CYGPATH -u "$windows_path"` 38129 new_path="$unix_path" 38130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38132 new_path="$unix_path" 38133 fi 38134 38135 fi 38136 38137 if test "x$new_path" = x; then 38138 # It's still not found. Now this is an unrecoverable error. 38139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38140 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38141 has_space=`$ECHO "$complete" | $GREP " "` 38142 if test "x$has_space" != x; then 38143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38145 fi 38146 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38147 fi 38148 fi 38149 38150 # Now new_path has a complete unix path to the binary 38151 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38152 # Keep paths in /bin as-is, but remove trailing .exe if any 38153 new_path="${new_path/%.exe/}" 38154 # Do not save /bin paths to all_fixpath_prefixes! 38155 else 38156 # Not in mixed or Windows style, start by that. 38157 new_path=`cmd //c echo $new_path` 38158 38159 input_path="$new_path" 38160 # Check if we need to convert this using DOS-style short mode. If the path 38161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38162 # take no chances and rewrite it. 38163 # Note: m4 eats our [], so we need to use [ and ] instead. 38164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38165 if test "x$has_forbidden_chars" != x; then 38166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38168 fi 38169 38170 # Output is in $new_path 38171 38172 windows_path="$new_path" 38173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38174 unix_path=`$CYGPATH -u "$windows_path"` 38175 new_path="$unix_path" 38176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38178 new_path="$unix_path" 38179 fi 38180 38181 # remove trailing .exe if any 38182 new_path="${new_path/%.exe/}" 38183 38184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38186 fi 38187 38188 else 38189 # We're on a posix platform. Hooray! :) 38190 # First separate the path from the arguments. This will split at the first 38191 # space. 38192 complete="$NM" 38193 path="${complete%% *}" 38194 tmp="$complete EOL" 38195 arguments="${tmp#* }" 38196 38197 # Cannot rely on the command "which" here since it doesn't always work. 38198 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38199 if test -z "$is_absolute_path"; then 38200 # Path to executable is not absolute. Find it. 38201 IFS_save="$IFS" 38202 IFS=: 38203 for p in $PATH; do 38204 if test -f "$p/$path" && test -x "$p/$path"; then 38205 new_path="$p/$path" 38206 break 38207 fi 38208 done 38209 IFS="$IFS_save" 38210 else 38211 # This is an absolute path, we can use it without further modifications. 38212 new_path="$path" 38213 fi 38214 38215 if test "x$new_path" = x; then 38216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38217 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38218 has_space=`$ECHO "$complete" | $GREP " "` 38219 if test "x$has_space" != x; then 38220 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38221 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38222 fi 38223 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38224 fi 38225 fi 38226 38227 # Now join together the path and the arguments once again 38228 if test "x$arguments" != xEOL; then 38229 new_complete="$new_path ${arguments% *}" 38230 else 38231 new_complete="$new_path" 38232 fi 38233 38234 if test "x$complete" != "x$new_complete"; then 38235 NM="$new_complete" 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38237 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38238 fi 38239 38240 GNM="$NM" 38241 38242 fi 38243 38244 # objcopy is used for moving debug symbols to separate files when 38245 # full debug symbols are enabled. 38246 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38247 38248 38249 # Publish this variable in the help. 38250 38251 38252 if test "x$OBJCOPY" = x; then 38253 # The variable is not set by user, try to locate tool using the code snippet 38254 if test -n "$ac_tool_prefix"; then 38255 for ac_prog in gobjcopy objcopy 38256 do 38257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38260 $as_echo_n "checking for $ac_word... " >&6; } 38261 if ${ac_cv_prog_OBJCOPY+:} false; then : 38262 $as_echo_n "(cached) " >&6 38263 else 38264 if test -n "$OBJCOPY"; then 38265 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38266 else 38267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38268 for as_dir in $PATH 38269 do 38270 IFS=$as_save_IFS 38271 test -z "$as_dir" && as_dir=. 38272 for ac_exec_ext in '' $ac_executable_extensions; do 38273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38274 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38276 break 2 38277 fi 38278 done 38279 done 38280 IFS=$as_save_IFS 38281 38282 fi 38283 fi 38284 OBJCOPY=$ac_cv_prog_OBJCOPY 38285 if test -n "$OBJCOPY"; then 38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38287 $as_echo "$OBJCOPY" >&6; } 38288 else 38289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38290 $as_echo "no" >&6; } 38291 fi 38292 38293 38294 test -n "$OBJCOPY" && break 38295 done 38296 fi 38297 if test -z "$OBJCOPY"; then 38298 ac_ct_OBJCOPY=$OBJCOPY 38299 for ac_prog in gobjcopy objcopy 38300 do 38301 # Extract the first word of "$ac_prog", so it can be a program name with args. 38302 set dummy $ac_prog; ac_word=$2 38303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38304 $as_echo_n "checking for $ac_word... " >&6; } 38305 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38306 $as_echo_n "(cached) " >&6 38307 else 38308 if test -n "$ac_ct_OBJCOPY"; then 38309 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38310 else 38311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38312 for as_dir in $PATH 38313 do 38314 IFS=$as_save_IFS 38315 test -z "$as_dir" && as_dir=. 38316 for ac_exec_ext in '' $ac_executable_extensions; do 38317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38318 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38320 break 2 38321 fi 38322 done 38323 done 38324 IFS=$as_save_IFS 38325 38326 fi 38327 fi 38328 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38329 if test -n "$ac_ct_OBJCOPY"; then 38330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38331 $as_echo "$ac_ct_OBJCOPY" >&6; } 38332 else 38333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38334 $as_echo "no" >&6; } 38335 fi 38336 38337 38338 test -n "$ac_ct_OBJCOPY" && break 38339 done 38340 38341 if test "x$ac_ct_OBJCOPY" = x; then 38342 OBJCOPY="" 38343 else 38344 case $cross_compiling:$ac_tool_warned in 38345 yes:) 38346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38348 ac_tool_warned=yes ;; 38349 esac 38350 OBJCOPY=$ac_ct_OBJCOPY 38351 fi 38352 fi 38353 38354 else 38355 # The variable is set, but is it from the command line or the environment? 38356 38357 # Try to remove the string !OBJCOPY! from our list. 38358 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38359 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38360 # If it failed, the variable was not from the command line. Ignore it, 38361 # but warn the user (except for BASH, which is always set by the calling BASH). 38362 if test "xOBJCOPY" != xBASH; then 38363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38364 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38365 fi 38366 # Try to locate tool using the code snippet 38367 if test -n "$ac_tool_prefix"; then 38368 for ac_prog in gobjcopy objcopy 38369 do 38370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38373 $as_echo_n "checking for $ac_word... " >&6; } 38374 if ${ac_cv_prog_OBJCOPY+:} false; then : 38375 $as_echo_n "(cached) " >&6 38376 else 38377 if test -n "$OBJCOPY"; then 38378 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38379 else 38380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38381 for as_dir in $PATH 38382 do 38383 IFS=$as_save_IFS 38384 test -z "$as_dir" && as_dir=. 38385 for ac_exec_ext in '' $ac_executable_extensions; do 38386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38387 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38389 break 2 38390 fi 38391 done 38392 done 38393 IFS=$as_save_IFS 38394 38395 fi 38396 fi 38397 OBJCOPY=$ac_cv_prog_OBJCOPY 38398 if test -n "$OBJCOPY"; then 38399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38400 $as_echo "$OBJCOPY" >&6; } 38401 else 38402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38403 $as_echo "no" >&6; } 38404 fi 38405 38406 38407 test -n "$OBJCOPY" && break 38408 done 38409 fi 38410 if test -z "$OBJCOPY"; then 38411 ac_ct_OBJCOPY=$OBJCOPY 38412 for ac_prog in gobjcopy objcopy 38413 do 38414 # Extract the first word of "$ac_prog", so it can be a program name with args. 38415 set dummy $ac_prog; ac_word=$2 38416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38417 $as_echo_n "checking for $ac_word... " >&6; } 38418 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38419 $as_echo_n "(cached) " >&6 38420 else 38421 if test -n "$ac_ct_OBJCOPY"; then 38422 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38423 else 38424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38425 for as_dir in $PATH 38426 do 38427 IFS=$as_save_IFS 38428 test -z "$as_dir" && as_dir=. 38429 for ac_exec_ext in '' $ac_executable_extensions; do 38430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38431 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38433 break 2 38434 fi 38435 done 38436 done 38437 IFS=$as_save_IFS 38438 38439 fi 38440 fi 38441 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38442 if test -n "$ac_ct_OBJCOPY"; then 38443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38444 $as_echo "$ac_ct_OBJCOPY" >&6; } 38445 else 38446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38447 $as_echo "no" >&6; } 38448 fi 38449 38450 38451 test -n "$ac_ct_OBJCOPY" && break 38452 done 38453 38454 if test "x$ac_ct_OBJCOPY" = x; then 38455 OBJCOPY="" 38456 else 38457 case $cross_compiling:$ac_tool_warned in 38458 yes:) 38459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38461 ac_tool_warned=yes ;; 38462 esac 38463 OBJCOPY=$ac_ct_OBJCOPY 38464 fi 38465 fi 38466 38467 else 38468 # If it succeeded, then it was overridden by the user. We will use it 38469 # for the tool. 38470 38471 # First remove it from the list of overridden variables, so we can test 38472 # for unknown variables in the end. 38473 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38474 38475 # Check if the provided tool contains a complete path. 38476 tool_specified="$OBJCOPY" 38477 tool_basename="${tool_specified##*/}" 38478 if test "x$tool_basename" = "x$tool_specified"; then 38479 # A command without a complete path is provided, search $PATH. 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38481 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38482 # Extract the first word of "$tool_basename", so it can be a program name with args. 38483 set dummy $tool_basename; ac_word=$2 38484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38485 $as_echo_n "checking for $ac_word... " >&6; } 38486 if ${ac_cv_path_OBJCOPY+:} false; then : 38487 $as_echo_n "(cached) " >&6 38488 else 38489 case $OBJCOPY in 38490 [\\/]* | ?:[\\/]*) 38491 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38492 ;; 38493 *) 38494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38495 for as_dir in $PATH 38496 do 38497 IFS=$as_save_IFS 38498 test -z "$as_dir" && as_dir=. 38499 for ac_exec_ext in '' $ac_executable_extensions; do 38500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38501 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38503 break 2 38504 fi 38505 done 38506 done 38507 IFS=$as_save_IFS 38508 38509 ;; 38510 esac 38511 fi 38512 OBJCOPY=$ac_cv_path_OBJCOPY 38513 if test -n "$OBJCOPY"; then 38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38515 $as_echo "$OBJCOPY" >&6; } 38516 else 38517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38518 $as_echo "no" >&6; } 38519 fi 38520 38521 38522 if test "x$OBJCOPY" = x; then 38523 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38524 fi 38525 else 38526 # Otherwise we believe it is a complete path. Use it as it is. 38527 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38528 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38530 $as_echo_n "checking for OBJCOPY... " >&6; } 38531 if test ! -x "$tool_specified"; then 38532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38533 $as_echo "not found" >&6; } 38534 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38535 fi 38536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38537 $as_echo "$tool_specified" >&6; } 38538 fi 38539 fi 38540 fi 38541 38542 38543 # Only call fixup if objcopy was found. 38544 if test -n "$OBJCOPY"; then 38545 38546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38547 38548 # First separate the path from the arguments. This will split at the first 38549 # space. 38550 complete="$OBJCOPY" 38551 path="${complete%% *}" 38552 tmp="$complete EOL" 38553 arguments="${tmp#* }" 38554 38555 # Input might be given as Windows format, start by converting to 38556 # unix format. 38557 new_path=`$CYGPATH -u "$path"` 38558 38559 # Now try to locate executable using which 38560 new_path=`$WHICH "$new_path" 2> /dev/null` 38561 # bat and cmd files are not always considered executable in cygwin causing which 38562 # to not find them 38563 if test "x$new_path" = x \ 38564 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38565 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38566 new_path=`$CYGPATH -u "$path"` 38567 fi 38568 if test "x$new_path" = x; then 38569 # Oops. Which didn't find the executable. 38570 # The splitting of arguments from the executable at a space might have been incorrect, 38571 # since paths with space are more likely in Windows. Give it another try with the whole 38572 # argument. 38573 path="$complete" 38574 arguments="EOL" 38575 new_path=`$CYGPATH -u "$path"` 38576 new_path=`$WHICH "$new_path" 2> /dev/null` 38577 # bat and cmd files are not always considered executable in cygwin causing which 38578 # to not find them 38579 if test "x$new_path" = x \ 38580 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38581 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38582 new_path=`$CYGPATH -u "$path"` 38583 fi 38584 if test "x$new_path" = x; then 38585 # It's still not found. Now this is an unrecoverable error. 38586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38587 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38588 has_space=`$ECHO "$complete" | $GREP " "` 38589 if test "x$has_space" != x; then 38590 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38591 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38592 fi 38593 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38594 fi 38595 fi 38596 38597 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38598 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38599 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38600 # "foo.exe" is OK but "foo" is an error. 38601 # 38602 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38603 # It is also a way to make sure we got the proper file name for the real test later on. 38604 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38605 if test "x$test_shortpath" = x; then 38606 # Short path failed, file does not exist as specified. 38607 # Try adding .exe or .cmd 38608 if test -f "${new_path}.exe"; then 38609 input_to_shortpath="${new_path}.exe" 38610 elif test -f "${new_path}.cmd"; then 38611 input_to_shortpath="${new_path}.cmd" 38612 else 38613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38614 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38615 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38616 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38617 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38618 fi 38619 else 38620 input_to_shortpath="$new_path" 38621 fi 38622 38623 # Call helper function which possibly converts this using DOS-style short mode. 38624 # If so, the updated path is stored in $new_path. 38625 new_path="$input_to_shortpath" 38626 38627 input_path="$input_to_shortpath" 38628 # Check if we need to convert this using DOS-style short mode. If the path 38629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38630 # take no chances and rewrite it. 38631 # Note: m4 eats our [], so we need to use [ and ] instead. 38632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38633 if test "x$has_forbidden_chars" != x; then 38634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38635 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38636 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38637 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38638 # Going to short mode and back again did indeed matter. Since short mode is 38639 # case insensitive, let's make it lowercase to improve readability. 38640 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38641 # Now convert it back to Unix-stile (cygpath) 38642 input_path=`$CYGPATH -u "$shortmode_path"` 38643 new_path="$input_path" 38644 fi 38645 fi 38646 38647 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38648 if test "x$test_cygdrive_prefix" = x; then 38649 # As a simple fix, exclude /usr/bin since it's not a real path. 38650 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38651 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38652 # a path prefixed by /cygdrive for fixpath to work. 38653 new_path="$CYGWIN_ROOT_PATH$input_path" 38654 fi 38655 fi 38656 38657 # remove trailing .exe if any 38658 new_path="${new_path/%.exe/}" 38659 38660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38661 38662 # First separate the path from the arguments. This will split at the first 38663 # space. 38664 complete="$OBJCOPY" 38665 path="${complete%% *}" 38666 tmp="$complete EOL" 38667 arguments="${tmp#* }" 38668 38669 # Input might be given as Windows format, start by converting to 38670 # unix format. 38671 new_path="$path" 38672 38673 windows_path="$new_path" 38674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38675 unix_path=`$CYGPATH -u "$windows_path"` 38676 new_path="$unix_path" 38677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38679 new_path="$unix_path" 38680 fi 38681 38682 38683 # Now try to locate executable using which 38684 new_path=`$WHICH "$new_path" 2> /dev/null` 38685 38686 if test "x$new_path" = x; then 38687 # Oops. Which didn't find the executable. 38688 # The splitting of arguments from the executable at a space might have been incorrect, 38689 # since paths with space are more likely in Windows. Give it another try with the whole 38690 # argument. 38691 path="$complete" 38692 arguments="EOL" 38693 new_path="$path" 38694 38695 windows_path="$new_path" 38696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38697 unix_path=`$CYGPATH -u "$windows_path"` 38698 new_path="$unix_path" 38699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38701 new_path="$unix_path" 38702 fi 38703 38704 38705 new_path=`$WHICH "$new_path" 2> /dev/null` 38706 # bat and cmd files are not always considered executable in MSYS causing which 38707 # to not find them 38708 if test "x$new_path" = x \ 38709 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38710 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38711 new_path="$path" 38712 38713 windows_path="$new_path" 38714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38715 unix_path=`$CYGPATH -u "$windows_path"` 38716 new_path="$unix_path" 38717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38719 new_path="$unix_path" 38720 fi 38721 38722 fi 38723 38724 if test "x$new_path" = x; then 38725 # It's still not found. Now this is an unrecoverable error. 38726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38727 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38728 has_space=`$ECHO "$complete" | $GREP " "` 38729 if test "x$has_space" != x; then 38730 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38731 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38732 fi 38733 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38734 fi 38735 fi 38736 38737 # Now new_path has a complete unix path to the binary 38738 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38739 # Keep paths in /bin as-is, but remove trailing .exe if any 38740 new_path="${new_path/%.exe/}" 38741 # Do not save /bin paths to all_fixpath_prefixes! 38742 else 38743 # Not in mixed or Windows style, start by that. 38744 new_path=`cmd //c echo $new_path` 38745 38746 input_path="$new_path" 38747 # Check if we need to convert this using DOS-style short mode. If the path 38748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38749 # take no chances and rewrite it. 38750 # Note: m4 eats our [], so we need to use [ and ] instead. 38751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38752 if test "x$has_forbidden_chars" != x; then 38753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38754 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38755 fi 38756 38757 # Output is in $new_path 38758 38759 windows_path="$new_path" 38760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38761 unix_path=`$CYGPATH -u "$windows_path"` 38762 new_path="$unix_path" 38763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38765 new_path="$unix_path" 38766 fi 38767 38768 # remove trailing .exe if any 38769 new_path="${new_path/%.exe/}" 38770 38771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38773 fi 38774 38775 else 38776 # We're on a posix platform. Hooray! :) 38777 # First separate the path from the arguments. This will split at the first 38778 # space. 38779 complete="$OBJCOPY" 38780 path="${complete%% *}" 38781 tmp="$complete EOL" 38782 arguments="${tmp#* }" 38783 38784 # Cannot rely on the command "which" here since it doesn't always work. 38785 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38786 if test -z "$is_absolute_path"; then 38787 # Path to executable is not absolute. Find it. 38788 IFS_save="$IFS" 38789 IFS=: 38790 for p in $PATH; do 38791 if test -f "$p/$path" && test -x "$p/$path"; then 38792 new_path="$p/$path" 38793 break 38794 fi 38795 done 38796 IFS="$IFS_save" 38797 else 38798 # This is an absolute path, we can use it without further modifications. 38799 new_path="$path" 38800 fi 38801 38802 if test "x$new_path" = x; then 38803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38804 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38805 has_space=`$ECHO "$complete" | $GREP " "` 38806 if test "x$has_space" != x; then 38807 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38808 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38809 fi 38810 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38811 fi 38812 fi 38813 38814 # Now join together the path and the arguments once again 38815 if test "x$arguments" != xEOL; then 38816 new_complete="$new_path ${arguments% *}" 38817 else 38818 new_complete="$new_path" 38819 fi 38820 38821 if test "x$complete" != "x$new_complete"; then 38822 OBJCOPY="$new_complete" 38823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38824 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38825 fi 38826 38827 fi 38828 fi 38829 38830 38831 38832 # Publish this variable in the help. 38833 38834 38835 if test "x$OBJDUMP" = x; then 38836 # The variable is not set by user, try to locate tool using the code snippet 38837 if test -n "$ac_tool_prefix"; then 38838 for ac_prog in gobjdump objdump 38839 do 38840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38843 $as_echo_n "checking for $ac_word... " >&6; } 38844 if ${ac_cv_prog_OBJDUMP+:} false; then : 38845 $as_echo_n "(cached) " >&6 38846 else 38847 if test -n "$OBJDUMP"; then 38848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38849 else 38850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38851 for as_dir in $PATH 38852 do 38853 IFS=$as_save_IFS 38854 test -z "$as_dir" && as_dir=. 38855 for ac_exec_ext in '' $ac_executable_extensions; do 38856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38857 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38859 break 2 38860 fi 38861 done 38862 done 38863 IFS=$as_save_IFS 38864 38865 fi 38866 fi 38867 OBJDUMP=$ac_cv_prog_OBJDUMP 38868 if test -n "$OBJDUMP"; then 38869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38870 $as_echo "$OBJDUMP" >&6; } 38871 else 38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38873 $as_echo "no" >&6; } 38874 fi 38875 38876 38877 test -n "$OBJDUMP" && break 38878 done 38879 fi 38880 if test -z "$OBJDUMP"; then 38881 ac_ct_OBJDUMP=$OBJDUMP 38882 for ac_prog in gobjdump objdump 38883 do 38884 # Extract the first word of "$ac_prog", so it can be a program name with args. 38885 set dummy $ac_prog; ac_word=$2 38886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38887 $as_echo_n "checking for $ac_word... " >&6; } 38888 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38889 $as_echo_n "(cached) " >&6 38890 else 38891 if test -n "$ac_ct_OBJDUMP"; then 38892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38893 else 38894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38895 for as_dir in $PATH 38896 do 38897 IFS=$as_save_IFS 38898 test -z "$as_dir" && as_dir=. 38899 for ac_exec_ext in '' $ac_executable_extensions; do 38900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38901 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38903 break 2 38904 fi 38905 done 38906 done 38907 IFS=$as_save_IFS 38908 38909 fi 38910 fi 38911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38912 if test -n "$ac_ct_OBJDUMP"; then 38913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38914 $as_echo "$ac_ct_OBJDUMP" >&6; } 38915 else 38916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38917 $as_echo "no" >&6; } 38918 fi 38919 38920 38921 test -n "$ac_ct_OBJDUMP" && break 38922 done 38923 38924 if test "x$ac_ct_OBJDUMP" = x; then 38925 OBJDUMP="" 38926 else 38927 case $cross_compiling:$ac_tool_warned in 38928 yes:) 38929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38931 ac_tool_warned=yes ;; 38932 esac 38933 OBJDUMP=$ac_ct_OBJDUMP 38934 fi 38935 fi 38936 38937 else 38938 # The variable is set, but is it from the command line or the environment? 38939 38940 # Try to remove the string !OBJDUMP! from our list. 38941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38943 # If it failed, the variable was not from the command line. Ignore it, 38944 # but warn the user (except for BASH, which is always set by the calling BASH). 38945 if test "xOBJDUMP" != xBASH; then 38946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38947 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38948 fi 38949 # Try to locate tool using the code snippet 38950 if test -n "$ac_tool_prefix"; then 38951 for ac_prog in gobjdump objdump 38952 do 38953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38956 $as_echo_n "checking for $ac_word... " >&6; } 38957 if ${ac_cv_prog_OBJDUMP+:} false; then : 38958 $as_echo_n "(cached) " >&6 38959 else 38960 if test -n "$OBJDUMP"; then 38961 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38962 else 38963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38964 for as_dir in $PATH 38965 do 38966 IFS=$as_save_IFS 38967 test -z "$as_dir" && as_dir=. 38968 for ac_exec_ext in '' $ac_executable_extensions; do 38969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38970 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38972 break 2 38973 fi 38974 done 38975 done 38976 IFS=$as_save_IFS 38977 38978 fi 38979 fi 38980 OBJDUMP=$ac_cv_prog_OBJDUMP 38981 if test -n "$OBJDUMP"; then 38982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38983 $as_echo "$OBJDUMP" >&6; } 38984 else 38985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38986 $as_echo "no" >&6; } 38987 fi 38988 38989 38990 test -n "$OBJDUMP" && break 38991 done 38992 fi 38993 if test -z "$OBJDUMP"; then 38994 ac_ct_OBJDUMP=$OBJDUMP 38995 for ac_prog in gobjdump objdump 38996 do 38997 # Extract the first word of "$ac_prog", so it can be a program name with args. 38998 set dummy $ac_prog; ac_word=$2 38999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39000 $as_echo_n "checking for $ac_word... " >&6; } 39001 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39002 $as_echo_n "(cached) " >&6 39003 else 39004 if test -n "$ac_ct_OBJDUMP"; then 39005 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39006 else 39007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39008 for as_dir in $PATH 39009 do 39010 IFS=$as_save_IFS 39011 test -z "$as_dir" && as_dir=. 39012 for ac_exec_ext in '' $ac_executable_extensions; do 39013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39014 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39016 break 2 39017 fi 39018 done 39019 done 39020 IFS=$as_save_IFS 39021 39022 fi 39023 fi 39024 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39025 if test -n "$ac_ct_OBJDUMP"; then 39026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39027 $as_echo "$ac_ct_OBJDUMP" >&6; } 39028 else 39029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39030 $as_echo "no" >&6; } 39031 fi 39032 39033 39034 test -n "$ac_ct_OBJDUMP" && break 39035 done 39036 39037 if test "x$ac_ct_OBJDUMP" = x; then 39038 OBJDUMP="" 39039 else 39040 case $cross_compiling:$ac_tool_warned in 39041 yes:) 39042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39044 ac_tool_warned=yes ;; 39045 esac 39046 OBJDUMP=$ac_ct_OBJDUMP 39047 fi 39048 fi 39049 39050 else 39051 # If it succeeded, then it was overridden by the user. We will use it 39052 # for the tool. 39053 39054 # First remove it from the list of overridden variables, so we can test 39055 # for unknown variables in the end. 39056 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39057 39058 # Check if the provided tool contains a complete path. 39059 tool_specified="$OBJDUMP" 39060 tool_basename="${tool_specified##*/}" 39061 if test "x$tool_basename" = "x$tool_specified"; then 39062 # A command without a complete path is provided, search $PATH. 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39064 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39065 # Extract the first word of "$tool_basename", so it can be a program name with args. 39066 set dummy $tool_basename; ac_word=$2 39067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39068 $as_echo_n "checking for $ac_word... " >&6; } 39069 if ${ac_cv_path_OBJDUMP+:} false; then : 39070 $as_echo_n "(cached) " >&6 39071 else 39072 case $OBJDUMP in 39073 [\\/]* | ?:[\\/]*) 39074 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39075 ;; 39076 *) 39077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39078 for as_dir in $PATH 39079 do 39080 IFS=$as_save_IFS 39081 test -z "$as_dir" && as_dir=. 39082 for ac_exec_ext in '' $ac_executable_extensions; do 39083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39084 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39086 break 2 39087 fi 39088 done 39089 done 39090 IFS=$as_save_IFS 39091 39092 ;; 39093 esac 39094 fi 39095 OBJDUMP=$ac_cv_path_OBJDUMP 39096 if test -n "$OBJDUMP"; then 39097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39098 $as_echo "$OBJDUMP" >&6; } 39099 else 39100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39101 $as_echo "no" >&6; } 39102 fi 39103 39104 39105 if test "x$OBJDUMP" = x; then 39106 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39107 fi 39108 else 39109 # Otherwise we believe it is a complete path. Use it as it is. 39110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39111 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39113 $as_echo_n "checking for OBJDUMP... " >&6; } 39114 if test ! -x "$tool_specified"; then 39115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39116 $as_echo "not found" >&6; } 39117 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39118 fi 39119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39120 $as_echo "$tool_specified" >&6; } 39121 fi 39122 fi 39123 fi 39124 39125 39126 if test "x$OBJDUMP" != x; then 39127 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39128 # bails if argument is missing. 39129 39130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39131 39132 # First separate the path from the arguments. This will split at the first 39133 # space. 39134 complete="$OBJDUMP" 39135 path="${complete%% *}" 39136 tmp="$complete EOL" 39137 arguments="${tmp#* }" 39138 39139 # Input might be given as Windows format, start by converting to 39140 # unix format. 39141 new_path=`$CYGPATH -u "$path"` 39142 39143 # Now try to locate executable using which 39144 new_path=`$WHICH "$new_path" 2> /dev/null` 39145 # bat and cmd files are not always considered executable in cygwin causing which 39146 # to not find them 39147 if test "x$new_path" = x \ 39148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39150 new_path=`$CYGPATH -u "$path"` 39151 fi 39152 if test "x$new_path" = x; then 39153 # Oops. Which didn't find the executable. 39154 # The splitting of arguments from the executable at a space might have been incorrect, 39155 # since paths with space are more likely in Windows. Give it another try with the whole 39156 # argument. 39157 path="$complete" 39158 arguments="EOL" 39159 new_path=`$CYGPATH -u "$path"` 39160 new_path=`$WHICH "$new_path" 2> /dev/null` 39161 # bat and cmd files are not always considered executable in cygwin causing which 39162 # to not find them 39163 if test "x$new_path" = x \ 39164 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39165 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39166 new_path=`$CYGPATH -u "$path"` 39167 fi 39168 if test "x$new_path" = x; then 39169 # It's still not found. Now this is an unrecoverable error. 39170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39171 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39172 has_space=`$ECHO "$complete" | $GREP " "` 39173 if test "x$has_space" != x; then 39174 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39176 fi 39177 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39178 fi 39179 fi 39180 39181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39184 # "foo.exe" is OK but "foo" is an error. 39185 # 39186 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39187 # It is also a way to make sure we got the proper file name for the real test later on. 39188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39189 if test "x$test_shortpath" = x; then 39190 # Short path failed, file does not exist as specified. 39191 # Try adding .exe or .cmd 39192 if test -f "${new_path}.exe"; then 39193 input_to_shortpath="${new_path}.exe" 39194 elif test -f "${new_path}.cmd"; then 39195 input_to_shortpath="${new_path}.cmd" 39196 else 39197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39198 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39199 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39200 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39201 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39202 fi 39203 else 39204 input_to_shortpath="$new_path" 39205 fi 39206 39207 # Call helper function which possibly converts this using DOS-style short mode. 39208 # If so, the updated path is stored in $new_path. 39209 new_path="$input_to_shortpath" 39210 39211 input_path="$input_to_shortpath" 39212 # Check if we need to convert this using DOS-style short mode. If the path 39213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39214 # take no chances and rewrite it. 39215 # Note: m4 eats our [], so we need to use [ and ] instead. 39216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39217 if test "x$has_forbidden_chars" != x; then 39218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39219 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39222 # Going to short mode and back again did indeed matter. Since short mode is 39223 # case insensitive, let's make it lowercase to improve readability. 39224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39225 # Now convert it back to Unix-stile (cygpath) 39226 input_path=`$CYGPATH -u "$shortmode_path"` 39227 new_path="$input_path" 39228 fi 39229 fi 39230 39231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39232 if test "x$test_cygdrive_prefix" = x; then 39233 # As a simple fix, exclude /usr/bin since it's not a real path. 39234 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39236 # a path prefixed by /cygdrive for fixpath to work. 39237 new_path="$CYGWIN_ROOT_PATH$input_path" 39238 fi 39239 fi 39240 39241 # remove trailing .exe if any 39242 new_path="${new_path/%.exe/}" 39243 39244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39245 39246 # First separate the path from the arguments. This will split at the first 39247 # space. 39248 complete="$OBJDUMP" 39249 path="${complete%% *}" 39250 tmp="$complete EOL" 39251 arguments="${tmp#* }" 39252 39253 # Input might be given as Windows format, start by converting to 39254 # unix format. 39255 new_path="$path" 39256 39257 windows_path="$new_path" 39258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39259 unix_path=`$CYGPATH -u "$windows_path"` 39260 new_path="$unix_path" 39261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39263 new_path="$unix_path" 39264 fi 39265 39266 39267 # Now try to locate executable using which 39268 new_path=`$WHICH "$new_path" 2> /dev/null` 39269 39270 if test "x$new_path" = x; then 39271 # Oops. Which didn't find the executable. 39272 # The splitting of arguments from the executable at a space might have been incorrect, 39273 # since paths with space are more likely in Windows. Give it another try with the whole 39274 # argument. 39275 path="$complete" 39276 arguments="EOL" 39277 new_path="$path" 39278 39279 windows_path="$new_path" 39280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39281 unix_path=`$CYGPATH -u "$windows_path"` 39282 new_path="$unix_path" 39283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39285 new_path="$unix_path" 39286 fi 39287 39288 39289 new_path=`$WHICH "$new_path" 2> /dev/null` 39290 # bat and cmd files are not always considered executable in MSYS causing which 39291 # to not find them 39292 if test "x$new_path" = x \ 39293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39295 new_path="$path" 39296 39297 windows_path="$new_path" 39298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39299 unix_path=`$CYGPATH -u "$windows_path"` 39300 new_path="$unix_path" 39301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39303 new_path="$unix_path" 39304 fi 39305 39306 fi 39307 39308 if test "x$new_path" = x; then 39309 # It's still not found. Now this is an unrecoverable error. 39310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39311 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39312 has_space=`$ECHO "$complete" | $GREP " "` 39313 if test "x$has_space" != x; then 39314 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39315 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39316 fi 39317 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39318 fi 39319 fi 39320 39321 # Now new_path has a complete unix path to the binary 39322 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39323 # Keep paths in /bin as-is, but remove trailing .exe if any 39324 new_path="${new_path/%.exe/}" 39325 # Do not save /bin paths to all_fixpath_prefixes! 39326 else 39327 # Not in mixed or Windows style, start by that. 39328 new_path=`cmd //c echo $new_path` 39329 39330 input_path="$new_path" 39331 # Check if we need to convert this using DOS-style short mode. If the path 39332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39333 # take no chances and rewrite it. 39334 # Note: m4 eats our [], so we need to use [ and ] instead. 39335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39336 if test "x$has_forbidden_chars" != x; then 39337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39339 fi 39340 39341 # Output is in $new_path 39342 39343 windows_path="$new_path" 39344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39345 unix_path=`$CYGPATH -u "$windows_path"` 39346 new_path="$unix_path" 39347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39349 new_path="$unix_path" 39350 fi 39351 39352 # remove trailing .exe if any 39353 new_path="${new_path/%.exe/}" 39354 39355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39357 fi 39358 39359 else 39360 # We're on a posix platform. Hooray! :) 39361 # First separate the path from the arguments. This will split at the first 39362 # space. 39363 complete="$OBJDUMP" 39364 path="${complete%% *}" 39365 tmp="$complete EOL" 39366 arguments="${tmp#* }" 39367 39368 # Cannot rely on the command "which" here since it doesn't always work. 39369 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39370 if test -z "$is_absolute_path"; then 39371 # Path to executable is not absolute. Find it. 39372 IFS_save="$IFS" 39373 IFS=: 39374 for p in $PATH; do 39375 if test -f "$p/$path" && test -x "$p/$path"; then 39376 new_path="$p/$path" 39377 break 39378 fi 39379 done 39380 IFS="$IFS_save" 39381 else 39382 # This is an absolute path, we can use it without further modifications. 39383 new_path="$path" 39384 fi 39385 39386 if test "x$new_path" = x; then 39387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39388 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39389 has_space=`$ECHO "$complete" | $GREP " "` 39390 if test "x$has_space" != x; then 39391 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39392 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39393 fi 39394 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39395 fi 39396 fi 39397 39398 # Now join together the path and the arguments once again 39399 if test "x$arguments" != xEOL; then 39400 new_complete="$new_path ${arguments% *}" 39401 else 39402 new_complete="$new_path" 39403 fi 39404 39405 if test "x$complete" != "x$new_complete"; then 39406 OBJDUMP="$new_complete" 39407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39408 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39409 fi 39410 39411 fi 39412 39413 39414 # Restore old path. 39415 PATH="$OLD_PATH" 39416 39417 # Restore the flags to the user specified values. 39418 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39419 CFLAGS="$ORG_CFLAGS" 39420 CXXFLAGS="$ORG_CXXFLAGS" 39421 OBJCFLAGS="$ORG_OBJCFLAGS" 39422 39423 39424 # Finally do some processing after the detection phase 39425 39426 if test "x$COMPILE_TYPE" = "xcross"; then 39427 # Now we need to find a C/C++ compiler that can build executables for the 39428 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39429 # used once. Also, we need to do this without adding a tools dir to the 39430 # path, otherwise we might pick up cross-compilers which don't use standard 39431 # naming. 39432 39433 # FIXME: we should list the discovered compilers as an exclude pattern! 39434 # If we do that, we can do this detection before POST_DETECTION, and still 39435 # find the build compilers in the tools dir, if needed. 39436 39437 39438 # Publish this variable in the help. 39439 39440 39441 if test "x$BUILD_CC" = x; then 39442 # The variable is not set by user, try to locate tool using the code snippet 39443 for ac_prog in cl cc gcc 39444 do 39445 # Extract the first word of "$ac_prog", so it can be a program name with args. 39446 set dummy $ac_prog; ac_word=$2 39447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39448 $as_echo_n "checking for $ac_word... " >&6; } 39449 if ${ac_cv_path_BUILD_CC+:} false; then : 39450 $as_echo_n "(cached) " >&6 39451 else 39452 case $BUILD_CC in 39453 [\\/]* | ?:[\\/]*) 39454 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39455 ;; 39456 *) 39457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39458 for as_dir in $PATH 39459 do 39460 IFS=$as_save_IFS 39461 test -z "$as_dir" && as_dir=. 39462 for ac_exec_ext in '' $ac_executable_extensions; do 39463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39464 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39466 break 2 39467 fi 39468 done 39469 done 39470 IFS=$as_save_IFS 39471 39472 ;; 39473 esac 39474 fi 39475 BUILD_CC=$ac_cv_path_BUILD_CC 39476 if test -n "$BUILD_CC"; then 39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39478 $as_echo "$BUILD_CC" >&6; } 39479 else 39480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39481 $as_echo "no" >&6; } 39482 fi 39483 39484 39485 test -n "$BUILD_CC" && break 39486 done 39487 39488 else 39489 # The variable is set, but is it from the command line or the environment? 39490 39491 # Try to remove the string !BUILD_CC! from our list. 39492 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39493 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39494 # If it failed, the variable was not from the command line. Ignore it, 39495 # but warn the user (except for BASH, which is always set by the calling BASH). 39496 if test "xBUILD_CC" != xBASH; then 39497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39498 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39499 fi 39500 # Try to locate tool using the code snippet 39501 for ac_prog in cl cc gcc 39502 do 39503 # Extract the first word of "$ac_prog", so it can be a program name with args. 39504 set dummy $ac_prog; ac_word=$2 39505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39506 $as_echo_n "checking for $ac_word... " >&6; } 39507 if ${ac_cv_path_BUILD_CC+:} false; then : 39508 $as_echo_n "(cached) " >&6 39509 else 39510 case $BUILD_CC in 39511 [\\/]* | ?:[\\/]*) 39512 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39513 ;; 39514 *) 39515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39516 for as_dir in $PATH 39517 do 39518 IFS=$as_save_IFS 39519 test -z "$as_dir" && as_dir=. 39520 for ac_exec_ext in '' $ac_executable_extensions; do 39521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39522 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39524 break 2 39525 fi 39526 done 39527 done 39528 IFS=$as_save_IFS 39529 39530 ;; 39531 esac 39532 fi 39533 BUILD_CC=$ac_cv_path_BUILD_CC 39534 if test -n "$BUILD_CC"; then 39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39536 $as_echo "$BUILD_CC" >&6; } 39537 else 39538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39539 $as_echo "no" >&6; } 39540 fi 39541 39542 39543 test -n "$BUILD_CC" && break 39544 done 39545 39546 else 39547 # If it succeeded, then it was overridden by the user. We will use it 39548 # for the tool. 39549 39550 # First remove it from the list of overridden variables, so we can test 39551 # for unknown variables in the end. 39552 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39553 39554 # Check if the provided tool contains a complete path. 39555 tool_specified="$BUILD_CC" 39556 tool_basename="${tool_specified##*/}" 39557 if test "x$tool_basename" = "x$tool_specified"; then 39558 # A command without a complete path is provided, search $PATH. 39559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39560 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39561 # Extract the first word of "$tool_basename", so it can be a program name with args. 39562 set dummy $tool_basename; ac_word=$2 39563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39564 $as_echo_n "checking for $ac_word... " >&6; } 39565 if ${ac_cv_path_BUILD_CC+:} false; then : 39566 $as_echo_n "(cached) " >&6 39567 else 39568 case $BUILD_CC in 39569 [\\/]* | ?:[\\/]*) 39570 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39571 ;; 39572 *) 39573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39574 for as_dir in $PATH 39575 do 39576 IFS=$as_save_IFS 39577 test -z "$as_dir" && as_dir=. 39578 for ac_exec_ext in '' $ac_executable_extensions; do 39579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39580 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39582 break 2 39583 fi 39584 done 39585 done 39586 IFS=$as_save_IFS 39587 39588 ;; 39589 esac 39590 fi 39591 BUILD_CC=$ac_cv_path_BUILD_CC 39592 if test -n "$BUILD_CC"; then 39593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39594 $as_echo "$BUILD_CC" >&6; } 39595 else 39596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39597 $as_echo "no" >&6; } 39598 fi 39599 39600 39601 if test "x$BUILD_CC" = x; then 39602 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39603 fi 39604 else 39605 # Otherwise we believe it is a complete path. Use it as it is. 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39607 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39609 $as_echo_n "checking for BUILD_CC... " >&6; } 39610 if test ! -x "$tool_specified"; then 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39612 $as_echo "not found" >&6; } 39613 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39614 fi 39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39616 $as_echo "$tool_specified" >&6; } 39617 fi 39618 fi 39619 fi 39620 39621 39622 39623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39624 39625 # First separate the path from the arguments. This will split at the first 39626 # space. 39627 complete="$BUILD_CC" 39628 path="${complete%% *}" 39629 tmp="$complete EOL" 39630 arguments="${tmp#* }" 39631 39632 # Input might be given as Windows format, start by converting to 39633 # unix format. 39634 new_path=`$CYGPATH -u "$path"` 39635 39636 # Now try to locate executable using which 39637 new_path=`$WHICH "$new_path" 2> /dev/null` 39638 # bat and cmd files are not always considered executable in cygwin causing which 39639 # to not find them 39640 if test "x$new_path" = x \ 39641 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39642 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39643 new_path=`$CYGPATH -u "$path"` 39644 fi 39645 if test "x$new_path" = x; then 39646 # Oops. Which didn't find the executable. 39647 # The splitting of arguments from the executable at a space might have been incorrect, 39648 # since paths with space are more likely in Windows. Give it another try with the whole 39649 # argument. 39650 path="$complete" 39651 arguments="EOL" 39652 new_path=`$CYGPATH -u "$path"` 39653 new_path=`$WHICH "$new_path" 2> /dev/null` 39654 # bat and cmd files are not always considered executable in cygwin causing which 39655 # to not find them 39656 if test "x$new_path" = x \ 39657 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39658 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39659 new_path=`$CYGPATH -u "$path"` 39660 fi 39661 if test "x$new_path" = x; then 39662 # It's still not found. Now this is an unrecoverable error. 39663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39664 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39665 has_space=`$ECHO "$complete" | $GREP " "` 39666 if test "x$has_space" != x; then 39667 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39668 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39669 fi 39670 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39671 fi 39672 fi 39673 39674 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39675 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39676 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39677 # "foo.exe" is OK but "foo" is an error. 39678 # 39679 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39680 # It is also a way to make sure we got the proper file name for the real test later on. 39681 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39682 if test "x$test_shortpath" = x; then 39683 # Short path failed, file does not exist as specified. 39684 # Try adding .exe or .cmd 39685 if test -f "${new_path}.exe"; then 39686 input_to_shortpath="${new_path}.exe" 39687 elif test -f "${new_path}.cmd"; then 39688 input_to_shortpath="${new_path}.cmd" 39689 else 39690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39691 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39692 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39693 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39694 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39695 fi 39696 else 39697 input_to_shortpath="$new_path" 39698 fi 39699 39700 # Call helper function which possibly converts this using DOS-style short mode. 39701 # If so, the updated path is stored in $new_path. 39702 new_path="$input_to_shortpath" 39703 39704 input_path="$input_to_shortpath" 39705 # Check if we need to convert this using DOS-style short mode. If the path 39706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39707 # take no chances and rewrite it. 39708 # Note: m4 eats our [], so we need to use [ and ] instead. 39709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39710 if test "x$has_forbidden_chars" != x; then 39711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39712 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39713 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39714 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39715 # Going to short mode and back again did indeed matter. Since short mode is 39716 # case insensitive, let's make it lowercase to improve readability. 39717 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39718 # Now convert it back to Unix-stile (cygpath) 39719 input_path=`$CYGPATH -u "$shortmode_path"` 39720 new_path="$input_path" 39721 fi 39722 fi 39723 39724 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39725 if test "x$test_cygdrive_prefix" = x; then 39726 # As a simple fix, exclude /usr/bin since it's not a real path. 39727 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39728 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39729 # a path prefixed by /cygdrive for fixpath to work. 39730 new_path="$CYGWIN_ROOT_PATH$input_path" 39731 fi 39732 fi 39733 39734 # remove trailing .exe if any 39735 new_path="${new_path/%.exe/}" 39736 39737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39738 39739 # First separate the path from the arguments. This will split at the first 39740 # space. 39741 complete="$BUILD_CC" 39742 path="${complete%% *}" 39743 tmp="$complete EOL" 39744 arguments="${tmp#* }" 39745 39746 # Input might be given as Windows format, start by converting to 39747 # unix format. 39748 new_path="$path" 39749 39750 windows_path="$new_path" 39751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39752 unix_path=`$CYGPATH -u "$windows_path"` 39753 new_path="$unix_path" 39754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39756 new_path="$unix_path" 39757 fi 39758 39759 39760 # Now try to locate executable using which 39761 new_path=`$WHICH "$new_path" 2> /dev/null` 39762 39763 if test "x$new_path" = x; then 39764 # Oops. Which didn't find the executable. 39765 # The splitting of arguments from the executable at a space might have been incorrect, 39766 # since paths with space are more likely in Windows. Give it another try with the whole 39767 # argument. 39768 path="$complete" 39769 arguments="EOL" 39770 new_path="$path" 39771 39772 windows_path="$new_path" 39773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39774 unix_path=`$CYGPATH -u "$windows_path"` 39775 new_path="$unix_path" 39776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39778 new_path="$unix_path" 39779 fi 39780 39781 39782 new_path=`$WHICH "$new_path" 2> /dev/null` 39783 # bat and cmd files are not always considered executable in MSYS causing which 39784 # to not find them 39785 if test "x$new_path" = x \ 39786 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39787 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39788 new_path="$path" 39789 39790 windows_path="$new_path" 39791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39792 unix_path=`$CYGPATH -u "$windows_path"` 39793 new_path="$unix_path" 39794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39796 new_path="$unix_path" 39797 fi 39798 39799 fi 39800 39801 if test "x$new_path" = x; then 39802 # It's still not found. Now this is an unrecoverable error. 39803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39804 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39805 has_space=`$ECHO "$complete" | $GREP " "` 39806 if test "x$has_space" != x; then 39807 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39809 fi 39810 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39811 fi 39812 fi 39813 39814 # Now new_path has a complete unix path to the binary 39815 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39816 # Keep paths in /bin as-is, but remove trailing .exe if any 39817 new_path="${new_path/%.exe/}" 39818 # Do not save /bin paths to all_fixpath_prefixes! 39819 else 39820 # Not in mixed or Windows style, start by that. 39821 new_path=`cmd //c echo $new_path` 39822 39823 input_path="$new_path" 39824 # Check if we need to convert this using DOS-style short mode. If the path 39825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39826 # take no chances and rewrite it. 39827 # Note: m4 eats our [], so we need to use [ and ] instead. 39828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39829 if test "x$has_forbidden_chars" != x; then 39830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39831 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39832 fi 39833 39834 # Output is in $new_path 39835 39836 windows_path="$new_path" 39837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39838 unix_path=`$CYGPATH -u "$windows_path"` 39839 new_path="$unix_path" 39840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39842 new_path="$unix_path" 39843 fi 39844 39845 # remove trailing .exe if any 39846 new_path="${new_path/%.exe/}" 39847 39848 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39849 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39850 fi 39851 39852 else 39853 # We're on a posix platform. Hooray! :) 39854 # First separate the path from the arguments. This will split at the first 39855 # space. 39856 complete="$BUILD_CC" 39857 path="${complete%% *}" 39858 tmp="$complete EOL" 39859 arguments="${tmp#* }" 39860 39861 # Cannot rely on the command "which" here since it doesn't always work. 39862 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39863 if test -z "$is_absolute_path"; then 39864 # Path to executable is not absolute. Find it. 39865 IFS_save="$IFS" 39866 IFS=: 39867 for p in $PATH; do 39868 if test -f "$p/$path" && test -x "$p/$path"; then 39869 new_path="$p/$path" 39870 break 39871 fi 39872 done 39873 IFS="$IFS_save" 39874 else 39875 # This is an absolute path, we can use it without further modifications. 39876 new_path="$path" 39877 fi 39878 39879 if test "x$new_path" = x; then 39880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39881 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39882 has_space=`$ECHO "$complete" | $GREP " "` 39883 if test "x$has_space" != x; then 39884 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39885 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39886 fi 39887 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39888 fi 39889 fi 39890 39891 # Now join together the path and the arguments once again 39892 if test "x$arguments" != xEOL; then 39893 new_complete="$new_path ${arguments% *}" 39894 else 39895 new_complete="$new_path" 39896 fi 39897 39898 if test "x$complete" != "x$new_complete"; then 39899 BUILD_CC="$new_complete" 39900 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39901 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39902 fi 39903 39904 39905 39906 # Publish this variable in the help. 39907 39908 39909 if test "x$BUILD_CXX" = x; then 39910 # The variable is not set by user, try to locate tool using the code snippet 39911 for ac_prog in cl CC g++ 39912 do 39913 # Extract the first word of "$ac_prog", so it can be a program name with args. 39914 set dummy $ac_prog; ac_word=$2 39915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39916 $as_echo_n "checking for $ac_word... " >&6; } 39917 if ${ac_cv_path_BUILD_CXX+:} false; then : 39918 $as_echo_n "(cached) " >&6 39919 else 39920 case $BUILD_CXX in 39921 [\\/]* | ?:[\\/]*) 39922 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39923 ;; 39924 *) 39925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39926 for as_dir in $PATH 39927 do 39928 IFS=$as_save_IFS 39929 test -z "$as_dir" && as_dir=. 39930 for ac_exec_ext in '' $ac_executable_extensions; do 39931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39932 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39934 break 2 39935 fi 39936 done 39937 done 39938 IFS=$as_save_IFS 39939 39940 ;; 39941 esac 39942 fi 39943 BUILD_CXX=$ac_cv_path_BUILD_CXX 39944 if test -n "$BUILD_CXX"; then 39945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39946 $as_echo "$BUILD_CXX" >&6; } 39947 else 39948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39949 $as_echo "no" >&6; } 39950 fi 39951 39952 39953 test -n "$BUILD_CXX" && break 39954 done 39955 39956 else 39957 # The variable is set, but is it from the command line or the environment? 39958 39959 # Try to remove the string !BUILD_CXX! from our list. 39960 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39961 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39962 # If it failed, the variable was not from the command line. Ignore it, 39963 # but warn the user (except for BASH, which is always set by the calling BASH). 39964 if test "xBUILD_CXX" != xBASH; then 39965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39966 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39967 fi 39968 # Try to locate tool using the code snippet 39969 for ac_prog in cl CC g++ 39970 do 39971 # Extract the first word of "$ac_prog", so it can be a program name with args. 39972 set dummy $ac_prog; ac_word=$2 39973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39974 $as_echo_n "checking for $ac_word... " >&6; } 39975 if ${ac_cv_path_BUILD_CXX+:} false; then : 39976 $as_echo_n "(cached) " >&6 39977 else 39978 case $BUILD_CXX in 39979 [\\/]* | ?:[\\/]*) 39980 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39981 ;; 39982 *) 39983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39984 for as_dir in $PATH 39985 do 39986 IFS=$as_save_IFS 39987 test -z "$as_dir" && as_dir=. 39988 for ac_exec_ext in '' $ac_executable_extensions; do 39989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39990 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39992 break 2 39993 fi 39994 done 39995 done 39996 IFS=$as_save_IFS 39997 39998 ;; 39999 esac 40000 fi 40001 BUILD_CXX=$ac_cv_path_BUILD_CXX 40002 if test -n "$BUILD_CXX"; then 40003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40004 $as_echo "$BUILD_CXX" >&6; } 40005 else 40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40007 $as_echo "no" >&6; } 40008 fi 40009 40010 40011 test -n "$BUILD_CXX" && break 40012 done 40013 40014 else 40015 # If it succeeded, then it was overridden by the user. We will use it 40016 # for the tool. 40017 40018 # First remove it from the list of overridden variables, so we can test 40019 # for unknown variables in the end. 40020 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40021 40022 # Check if the provided tool contains a complete path. 40023 tool_specified="$BUILD_CXX" 40024 tool_basename="${tool_specified##*/}" 40025 if test "x$tool_basename" = "x$tool_specified"; then 40026 # A command without a complete path is provided, search $PATH. 40027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40028 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40029 # Extract the first word of "$tool_basename", so it can be a program name with args. 40030 set dummy $tool_basename; ac_word=$2 40031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40032 $as_echo_n "checking for $ac_word... " >&6; } 40033 if ${ac_cv_path_BUILD_CXX+:} false; then : 40034 $as_echo_n "(cached) " >&6 40035 else 40036 case $BUILD_CXX in 40037 [\\/]* | ?:[\\/]*) 40038 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40039 ;; 40040 *) 40041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40042 for as_dir in $PATH 40043 do 40044 IFS=$as_save_IFS 40045 test -z "$as_dir" && as_dir=. 40046 for ac_exec_ext in '' $ac_executable_extensions; do 40047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40048 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40050 break 2 40051 fi 40052 done 40053 done 40054 IFS=$as_save_IFS 40055 40056 ;; 40057 esac 40058 fi 40059 BUILD_CXX=$ac_cv_path_BUILD_CXX 40060 if test -n "$BUILD_CXX"; then 40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40062 $as_echo "$BUILD_CXX" >&6; } 40063 else 40064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40065 $as_echo "no" >&6; } 40066 fi 40067 40068 40069 if test "x$BUILD_CXX" = x; then 40070 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40071 fi 40072 else 40073 # Otherwise we believe it is a complete path. Use it as it is. 40074 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40075 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40077 $as_echo_n "checking for BUILD_CXX... " >&6; } 40078 if test ! -x "$tool_specified"; then 40079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40080 $as_echo "not found" >&6; } 40081 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40082 fi 40083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40084 $as_echo "$tool_specified" >&6; } 40085 fi 40086 fi 40087 fi 40088 40089 40090 40091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40092 40093 # First separate the path from the arguments. This will split at the first 40094 # space. 40095 complete="$BUILD_CXX" 40096 path="${complete%% *}" 40097 tmp="$complete EOL" 40098 arguments="${tmp#* }" 40099 40100 # Input might be given as Windows format, start by converting to 40101 # unix format. 40102 new_path=`$CYGPATH -u "$path"` 40103 40104 # Now try to locate executable using which 40105 new_path=`$WHICH "$new_path" 2> /dev/null` 40106 # bat and cmd files are not always considered executable in cygwin causing which 40107 # to not find them 40108 if test "x$new_path" = x \ 40109 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40110 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40111 new_path=`$CYGPATH -u "$path"` 40112 fi 40113 if test "x$new_path" = x; then 40114 # Oops. Which didn't find the executable. 40115 # The splitting of arguments from the executable at a space might have been incorrect, 40116 # since paths with space are more likely in Windows. Give it another try with the whole 40117 # argument. 40118 path="$complete" 40119 arguments="EOL" 40120 new_path=`$CYGPATH -u "$path"` 40121 new_path=`$WHICH "$new_path" 2> /dev/null` 40122 # bat and cmd files are not always considered executable in cygwin causing which 40123 # to not find them 40124 if test "x$new_path" = x \ 40125 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40126 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40127 new_path=`$CYGPATH -u "$path"` 40128 fi 40129 if test "x$new_path" = x; then 40130 # It's still not found. Now this is an unrecoverable error. 40131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40132 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40133 has_space=`$ECHO "$complete" | $GREP " "` 40134 if test "x$has_space" != x; then 40135 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40136 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40137 fi 40138 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40139 fi 40140 fi 40141 40142 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40143 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40144 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40145 # "foo.exe" is OK but "foo" is an error. 40146 # 40147 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40148 # It is also a way to make sure we got the proper file name for the real test later on. 40149 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40150 if test "x$test_shortpath" = x; then 40151 # Short path failed, file does not exist as specified. 40152 # Try adding .exe or .cmd 40153 if test -f "${new_path}.exe"; then 40154 input_to_shortpath="${new_path}.exe" 40155 elif test -f "${new_path}.cmd"; then 40156 input_to_shortpath="${new_path}.cmd" 40157 else 40158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40159 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40160 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40161 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40162 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40163 fi 40164 else 40165 input_to_shortpath="$new_path" 40166 fi 40167 40168 # Call helper function which possibly converts this using DOS-style short mode. 40169 # If so, the updated path is stored in $new_path. 40170 new_path="$input_to_shortpath" 40171 40172 input_path="$input_to_shortpath" 40173 # Check if we need to convert this using DOS-style short mode. If the path 40174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40175 # take no chances and rewrite it. 40176 # Note: m4 eats our [], so we need to use [ and ] instead. 40177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40178 if test "x$has_forbidden_chars" != x; then 40179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40180 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40181 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40182 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40183 # Going to short mode and back again did indeed matter. Since short mode is 40184 # case insensitive, let's make it lowercase to improve readability. 40185 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40186 # Now convert it back to Unix-stile (cygpath) 40187 input_path=`$CYGPATH -u "$shortmode_path"` 40188 new_path="$input_path" 40189 fi 40190 fi 40191 40192 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40193 if test "x$test_cygdrive_prefix" = x; then 40194 # As a simple fix, exclude /usr/bin since it's not a real path. 40195 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40196 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40197 # a path prefixed by /cygdrive for fixpath to work. 40198 new_path="$CYGWIN_ROOT_PATH$input_path" 40199 fi 40200 fi 40201 40202 # remove trailing .exe if any 40203 new_path="${new_path/%.exe/}" 40204 40205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40206 40207 # First separate the path from the arguments. This will split at the first 40208 # space. 40209 complete="$BUILD_CXX" 40210 path="${complete%% *}" 40211 tmp="$complete EOL" 40212 arguments="${tmp#* }" 40213 40214 # Input might be given as Windows format, start by converting to 40215 # unix format. 40216 new_path="$path" 40217 40218 windows_path="$new_path" 40219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40220 unix_path=`$CYGPATH -u "$windows_path"` 40221 new_path="$unix_path" 40222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40224 new_path="$unix_path" 40225 fi 40226 40227 40228 # Now try to locate executable using which 40229 new_path=`$WHICH "$new_path" 2> /dev/null` 40230 40231 if test "x$new_path" = x; then 40232 # Oops. Which didn't find the executable. 40233 # The splitting of arguments from the executable at a space might have been incorrect, 40234 # since paths with space are more likely in Windows. Give it another try with the whole 40235 # argument. 40236 path="$complete" 40237 arguments="EOL" 40238 new_path="$path" 40239 40240 windows_path="$new_path" 40241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40242 unix_path=`$CYGPATH -u "$windows_path"` 40243 new_path="$unix_path" 40244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40245 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40246 new_path="$unix_path" 40247 fi 40248 40249 40250 new_path=`$WHICH "$new_path" 2> /dev/null` 40251 # bat and cmd files are not always considered executable in MSYS causing which 40252 # to not find them 40253 if test "x$new_path" = x \ 40254 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40255 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40256 new_path="$path" 40257 40258 windows_path="$new_path" 40259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40260 unix_path=`$CYGPATH -u "$windows_path"` 40261 new_path="$unix_path" 40262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40264 new_path="$unix_path" 40265 fi 40266 40267 fi 40268 40269 if test "x$new_path" = x; then 40270 # It's still not found. Now this is an unrecoverable error. 40271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40272 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40273 has_space=`$ECHO "$complete" | $GREP " "` 40274 if test "x$has_space" != x; then 40275 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40276 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40277 fi 40278 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40279 fi 40280 fi 40281 40282 # Now new_path has a complete unix path to the binary 40283 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40284 # Keep paths in /bin as-is, but remove trailing .exe if any 40285 new_path="${new_path/%.exe/}" 40286 # Do not save /bin paths to all_fixpath_prefixes! 40287 else 40288 # Not in mixed or Windows style, start by that. 40289 new_path=`cmd //c echo $new_path` 40290 40291 input_path="$new_path" 40292 # Check if we need to convert this using DOS-style short mode. If the path 40293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40294 # take no chances and rewrite it. 40295 # Note: m4 eats our [], so we need to use [ and ] instead. 40296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40297 if test "x$has_forbidden_chars" != x; then 40298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40299 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40300 fi 40301 40302 # Output is in $new_path 40303 40304 windows_path="$new_path" 40305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40306 unix_path=`$CYGPATH -u "$windows_path"` 40307 new_path="$unix_path" 40308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40310 new_path="$unix_path" 40311 fi 40312 40313 # remove trailing .exe if any 40314 new_path="${new_path/%.exe/}" 40315 40316 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40317 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40318 fi 40319 40320 else 40321 # We're on a posix platform. Hooray! :) 40322 # First separate the path from the arguments. This will split at the first 40323 # space. 40324 complete="$BUILD_CXX" 40325 path="${complete%% *}" 40326 tmp="$complete EOL" 40327 arguments="${tmp#* }" 40328 40329 # Cannot rely on the command "which" here since it doesn't always work. 40330 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40331 if test -z "$is_absolute_path"; then 40332 # Path to executable is not absolute. Find it. 40333 IFS_save="$IFS" 40334 IFS=: 40335 for p in $PATH; do 40336 if test -f "$p/$path" && test -x "$p/$path"; then 40337 new_path="$p/$path" 40338 break 40339 fi 40340 done 40341 IFS="$IFS_save" 40342 else 40343 # This is an absolute path, we can use it without further modifications. 40344 new_path="$path" 40345 fi 40346 40347 if test "x$new_path" = x; then 40348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40349 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40350 has_space=`$ECHO "$complete" | $GREP " "` 40351 if test "x$has_space" != x; then 40352 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40353 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40354 fi 40355 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40356 fi 40357 fi 40358 40359 # Now join together the path and the arguments once again 40360 if test "x$arguments" != xEOL; then 40361 new_complete="$new_path ${arguments% *}" 40362 else 40363 new_complete="$new_path" 40364 fi 40365 40366 if test "x$complete" != "x$new_complete"; then 40367 BUILD_CXX="$new_complete" 40368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40369 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40370 fi 40371 40372 40373 40374 # Publish this variable in the help. 40375 40376 40377 if test "x$BUILD_LD" = x; then 40378 # The variable is not set by user, try to locate tool using the code snippet 40379 for ac_prog in ld 40380 do 40381 # Extract the first word of "$ac_prog", so it can be a program name with args. 40382 set dummy $ac_prog; ac_word=$2 40383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40384 $as_echo_n "checking for $ac_word... " >&6; } 40385 if ${ac_cv_path_BUILD_LD+:} false; then : 40386 $as_echo_n "(cached) " >&6 40387 else 40388 case $BUILD_LD in 40389 [\\/]* | ?:[\\/]*) 40390 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40391 ;; 40392 *) 40393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40394 for as_dir in $PATH 40395 do 40396 IFS=$as_save_IFS 40397 test -z "$as_dir" && as_dir=. 40398 for ac_exec_ext in '' $ac_executable_extensions; do 40399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40400 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40402 break 2 40403 fi 40404 done 40405 done 40406 IFS=$as_save_IFS 40407 40408 ;; 40409 esac 40410 fi 40411 BUILD_LD=$ac_cv_path_BUILD_LD 40412 if test -n "$BUILD_LD"; then 40413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40414 $as_echo "$BUILD_LD" >&6; } 40415 else 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40417 $as_echo "no" >&6; } 40418 fi 40419 40420 40421 test -n "$BUILD_LD" && break 40422 done 40423 40424 else 40425 # The variable is set, but is it from the command line or the environment? 40426 40427 # Try to remove the string !BUILD_LD! from our list. 40428 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40429 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40430 # If it failed, the variable was not from the command line. Ignore it, 40431 # but warn the user (except for BASH, which is always set by the calling BASH). 40432 if test "xBUILD_LD" != xBASH; then 40433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40434 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40435 fi 40436 # Try to locate tool using the code snippet 40437 for ac_prog in ld 40438 do 40439 # Extract the first word of "$ac_prog", so it can be a program name with args. 40440 set dummy $ac_prog; ac_word=$2 40441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40442 $as_echo_n "checking for $ac_word... " >&6; } 40443 if ${ac_cv_path_BUILD_LD+:} false; then : 40444 $as_echo_n "(cached) " >&6 40445 else 40446 case $BUILD_LD in 40447 [\\/]* | ?:[\\/]*) 40448 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40449 ;; 40450 *) 40451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40452 for as_dir in $PATH 40453 do 40454 IFS=$as_save_IFS 40455 test -z "$as_dir" && as_dir=. 40456 for ac_exec_ext in '' $ac_executable_extensions; do 40457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40458 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40460 break 2 40461 fi 40462 done 40463 done 40464 IFS=$as_save_IFS 40465 40466 ;; 40467 esac 40468 fi 40469 BUILD_LD=$ac_cv_path_BUILD_LD 40470 if test -n "$BUILD_LD"; then 40471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40472 $as_echo "$BUILD_LD" >&6; } 40473 else 40474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40475 $as_echo "no" >&6; } 40476 fi 40477 40478 40479 test -n "$BUILD_LD" && break 40480 done 40481 40482 else 40483 # If it succeeded, then it was overridden by the user. We will use it 40484 # for the tool. 40485 40486 # First remove it from the list of overridden variables, so we can test 40487 # for unknown variables in the end. 40488 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40489 40490 # Check if the provided tool contains a complete path. 40491 tool_specified="$BUILD_LD" 40492 tool_basename="${tool_specified##*/}" 40493 if test "x$tool_basename" = "x$tool_specified"; then 40494 # A command without a complete path is provided, search $PATH. 40495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40496 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40497 # Extract the first word of "$tool_basename", so it can be a program name with args. 40498 set dummy $tool_basename; ac_word=$2 40499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40500 $as_echo_n "checking for $ac_word... " >&6; } 40501 if ${ac_cv_path_BUILD_LD+:} false; then : 40502 $as_echo_n "(cached) " >&6 40503 else 40504 case $BUILD_LD in 40505 [\\/]* | ?:[\\/]*) 40506 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40507 ;; 40508 *) 40509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40510 for as_dir in $PATH 40511 do 40512 IFS=$as_save_IFS 40513 test -z "$as_dir" && as_dir=. 40514 for ac_exec_ext in '' $ac_executable_extensions; do 40515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40516 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40518 break 2 40519 fi 40520 done 40521 done 40522 IFS=$as_save_IFS 40523 40524 ;; 40525 esac 40526 fi 40527 BUILD_LD=$ac_cv_path_BUILD_LD 40528 if test -n "$BUILD_LD"; then 40529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40530 $as_echo "$BUILD_LD" >&6; } 40531 else 40532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40533 $as_echo "no" >&6; } 40534 fi 40535 40536 40537 if test "x$BUILD_LD" = x; then 40538 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40539 fi 40540 else 40541 # Otherwise we believe it is a complete path. Use it as it is. 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40543 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40545 $as_echo_n "checking for BUILD_LD... " >&6; } 40546 if test ! -x "$tool_specified"; then 40547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40548 $as_echo "not found" >&6; } 40549 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40550 fi 40551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40552 $as_echo "$tool_specified" >&6; } 40553 fi 40554 fi 40555 fi 40556 40557 40558 40559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40560 40561 # First separate the path from the arguments. This will split at the first 40562 # space. 40563 complete="$BUILD_LD" 40564 path="${complete%% *}" 40565 tmp="$complete EOL" 40566 arguments="${tmp#* }" 40567 40568 # Input might be given as Windows format, start by converting to 40569 # unix format. 40570 new_path=`$CYGPATH -u "$path"` 40571 40572 # Now try to locate executable using which 40573 new_path=`$WHICH "$new_path" 2> /dev/null` 40574 # bat and cmd files are not always considered executable in cygwin causing which 40575 # to not find them 40576 if test "x$new_path" = x \ 40577 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40578 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40579 new_path=`$CYGPATH -u "$path"` 40580 fi 40581 if test "x$new_path" = x; then 40582 # Oops. Which didn't find the executable. 40583 # The splitting of arguments from the executable at a space might have been incorrect, 40584 # since paths with space are more likely in Windows. Give it another try with the whole 40585 # argument. 40586 path="$complete" 40587 arguments="EOL" 40588 new_path=`$CYGPATH -u "$path"` 40589 new_path=`$WHICH "$new_path" 2> /dev/null` 40590 # bat and cmd files are not always considered executable in cygwin causing which 40591 # to not find them 40592 if test "x$new_path" = x \ 40593 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40594 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40595 new_path=`$CYGPATH -u "$path"` 40596 fi 40597 if test "x$new_path" = x; then 40598 # It's still not found. Now this is an unrecoverable error. 40599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40600 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40601 has_space=`$ECHO "$complete" | $GREP " "` 40602 if test "x$has_space" != x; then 40603 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40604 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40605 fi 40606 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40607 fi 40608 fi 40609 40610 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40611 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40612 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40613 # "foo.exe" is OK but "foo" is an error. 40614 # 40615 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40616 # It is also a way to make sure we got the proper file name for the real test later on. 40617 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40618 if test "x$test_shortpath" = x; then 40619 # Short path failed, file does not exist as specified. 40620 # Try adding .exe or .cmd 40621 if test -f "${new_path}.exe"; then 40622 input_to_shortpath="${new_path}.exe" 40623 elif test -f "${new_path}.cmd"; then 40624 input_to_shortpath="${new_path}.cmd" 40625 else 40626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40627 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40628 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40629 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40630 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40631 fi 40632 else 40633 input_to_shortpath="$new_path" 40634 fi 40635 40636 # Call helper function which possibly converts this using DOS-style short mode. 40637 # If so, the updated path is stored in $new_path. 40638 new_path="$input_to_shortpath" 40639 40640 input_path="$input_to_shortpath" 40641 # Check if we need to convert this using DOS-style short mode. If the path 40642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40643 # take no chances and rewrite it. 40644 # Note: m4 eats our [], so we need to use [ and ] instead. 40645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40646 if test "x$has_forbidden_chars" != x; then 40647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40648 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40649 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40650 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40651 # Going to short mode and back again did indeed matter. Since short mode is 40652 # case insensitive, let's make it lowercase to improve readability. 40653 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40654 # Now convert it back to Unix-stile (cygpath) 40655 input_path=`$CYGPATH -u "$shortmode_path"` 40656 new_path="$input_path" 40657 fi 40658 fi 40659 40660 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40661 if test "x$test_cygdrive_prefix" = x; then 40662 # As a simple fix, exclude /usr/bin since it's not a real path. 40663 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40664 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40665 # a path prefixed by /cygdrive for fixpath to work. 40666 new_path="$CYGWIN_ROOT_PATH$input_path" 40667 fi 40668 fi 40669 40670 # remove trailing .exe if any 40671 new_path="${new_path/%.exe/}" 40672 40673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40674 40675 # First separate the path from the arguments. This will split at the first 40676 # space. 40677 complete="$BUILD_LD" 40678 path="${complete%% *}" 40679 tmp="$complete EOL" 40680 arguments="${tmp#* }" 40681 40682 # Input might be given as Windows format, start by converting to 40683 # unix format. 40684 new_path="$path" 40685 40686 windows_path="$new_path" 40687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40688 unix_path=`$CYGPATH -u "$windows_path"` 40689 new_path="$unix_path" 40690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40692 new_path="$unix_path" 40693 fi 40694 40695 40696 # Now try to locate executable using which 40697 new_path=`$WHICH "$new_path" 2> /dev/null` 40698 40699 if test "x$new_path" = x; then 40700 # Oops. Which didn't find the executable. 40701 # The splitting of arguments from the executable at a space might have been incorrect, 40702 # since paths with space are more likely in Windows. Give it another try with the whole 40703 # argument. 40704 path="$complete" 40705 arguments="EOL" 40706 new_path="$path" 40707 40708 windows_path="$new_path" 40709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40710 unix_path=`$CYGPATH -u "$windows_path"` 40711 new_path="$unix_path" 40712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40714 new_path="$unix_path" 40715 fi 40716 40717 40718 new_path=`$WHICH "$new_path" 2> /dev/null` 40719 # bat and cmd files are not always considered executable in MSYS causing which 40720 # to not find them 40721 if test "x$new_path" = x \ 40722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40724 new_path="$path" 40725 40726 windows_path="$new_path" 40727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40728 unix_path=`$CYGPATH -u "$windows_path"` 40729 new_path="$unix_path" 40730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40732 new_path="$unix_path" 40733 fi 40734 40735 fi 40736 40737 if test "x$new_path" = x; then 40738 # It's still not found. Now this is an unrecoverable error. 40739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40740 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40741 has_space=`$ECHO "$complete" | $GREP " "` 40742 if test "x$has_space" != x; then 40743 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40745 fi 40746 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40747 fi 40748 fi 40749 40750 # Now new_path has a complete unix path to the binary 40751 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40752 # Keep paths in /bin as-is, but remove trailing .exe if any 40753 new_path="${new_path/%.exe/}" 40754 # Do not save /bin paths to all_fixpath_prefixes! 40755 else 40756 # Not in mixed or Windows style, start by that. 40757 new_path=`cmd //c echo $new_path` 40758 40759 input_path="$new_path" 40760 # Check if we need to convert this using DOS-style short mode. If the path 40761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40762 # take no chances and rewrite it. 40763 # Note: m4 eats our [], so we need to use [ and ] instead. 40764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40765 if test "x$has_forbidden_chars" != x; then 40766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40767 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40768 fi 40769 40770 # Output is in $new_path 40771 40772 windows_path="$new_path" 40773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40774 unix_path=`$CYGPATH -u "$windows_path"` 40775 new_path="$unix_path" 40776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40778 new_path="$unix_path" 40779 fi 40780 40781 # remove trailing .exe if any 40782 new_path="${new_path/%.exe/}" 40783 40784 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40785 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40786 fi 40787 40788 else 40789 # We're on a posix platform. Hooray! :) 40790 # First separate the path from the arguments. This will split at the first 40791 # space. 40792 complete="$BUILD_LD" 40793 path="${complete%% *}" 40794 tmp="$complete EOL" 40795 arguments="${tmp#* }" 40796 40797 # Cannot rely on the command "which" here since it doesn't always work. 40798 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40799 if test -z "$is_absolute_path"; then 40800 # Path to executable is not absolute. Find it. 40801 IFS_save="$IFS" 40802 IFS=: 40803 for p in $PATH; do 40804 if test -f "$p/$path" && test -x "$p/$path"; then 40805 new_path="$p/$path" 40806 break 40807 fi 40808 done 40809 IFS="$IFS_save" 40810 else 40811 # This is an absolute path, we can use it without further modifications. 40812 new_path="$path" 40813 fi 40814 40815 if test "x$new_path" = x; then 40816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40817 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40818 has_space=`$ECHO "$complete" | $GREP " "` 40819 if test "x$has_space" != x; then 40820 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40821 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40822 fi 40823 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40824 fi 40825 fi 40826 40827 # Now join together the path and the arguments once again 40828 if test "x$arguments" != xEOL; then 40829 new_complete="$new_path ${arguments% *}" 40830 else 40831 new_complete="$new_path" 40832 fi 40833 40834 if test "x$complete" != "x$new_complete"; then 40835 BUILD_LD="$new_complete" 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40837 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40838 fi 40839 40840 else 40841 # If we are not cross compiling, use the normal target compilers for 40842 # building the build platform executables. 40843 BUILD_CC="$CC" 40844 BUILD_CXX="$CXX" 40845 BUILD_LD="$LD" 40846 fi 40847 40848 40849 40850 40851 40852 40853 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40854 # For hotspot, we need these in Windows mixed path, 40855 # so rewrite them all. Need added .exe suffix. 40856 HOTSPOT_CXX="$CXX.exe" 40857 HOTSPOT_LD="$LD.exe" 40858 HOTSPOT_MT="$MT.exe" 40859 HOTSPOT_RC="$RC.exe" 40860 40861 unix_path="$HOTSPOT_CXX" 40862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40863 windows_path=`$CYGPATH -m "$unix_path"` 40864 HOTSPOT_CXX="$windows_path" 40865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40866 windows_path=`cmd //c echo $unix_path` 40867 HOTSPOT_CXX="$windows_path" 40868 fi 40869 40870 40871 unix_path="$HOTSPOT_LD" 40872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40873 windows_path=`$CYGPATH -m "$unix_path"` 40874 HOTSPOT_LD="$windows_path" 40875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40876 windows_path=`cmd //c echo $unix_path` 40877 HOTSPOT_LD="$windows_path" 40878 fi 40879 40880 40881 unix_path="$HOTSPOT_MT" 40882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40883 windows_path=`$CYGPATH -m "$unix_path"` 40884 HOTSPOT_MT="$windows_path" 40885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40886 windows_path=`cmd //c echo $unix_path` 40887 HOTSPOT_MT="$windows_path" 40888 fi 40889 40890 40891 unix_path="$HOTSPOT_RC" 40892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40893 windows_path=`$CYGPATH -m "$unix_path"` 40894 HOTSPOT_RC="$windows_path" 40895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40896 windows_path=`cmd //c echo $unix_path` 40897 HOTSPOT_RC="$windows_path" 40898 fi 40899 40900 40901 40902 else 40903 HOTSPOT_CXX="$CXX" 40904 HOTSPOT_LD="$LD" 40905 fi 40906 40907 40908 40909 if test "x$TOOLCHAIN_TYPE" = xclang; then 40910 USE_CLANG=true 40911 fi 40912 40913 40914 # LDEXE is the linker to use, when creating executables. Not really used. 40915 # FIXME: These should just be removed! 40916 LDEXE="$LD" 40917 LDEXECXX="$LDCXX" 40918 40919 40920 40921 40922 40923 40924 # The package path is used only on macosx? 40925 # FIXME: clean this up, and/or move it elsewhere. 40926 PACKAGE_PATH=/opt/local 40927 40928 40929 # Check for extra potential brokenness. 40930 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40931 # On Windows, double-check that we got the right compiler. 40932 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40933 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40934 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40935 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40936 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40937 fi 40938 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40939 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40940 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40941 fi 40942 fi 40943 fi 40944 40945 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40946 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40947 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40948 # This is later checked when setting flags. 40949 40950 # "-Og" suppported for GCC 4.8 and later 40951 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40952 40953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40954 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40955 supports=yes 40956 40957 saved_cflags="$CFLAGS" 40958 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40959 ac_ext=c 40960 ac_cpp='$CPP $CPPFLAGS' 40961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40963 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40964 40965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40966 /* end confdefs.h. */ 40967 int i; 40968 _ACEOF 40969 if ac_fn_c_try_compile "$LINENO"; then : 40970 40971 else 40972 supports=no 40973 fi 40974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40975 ac_ext=cpp 40976 ac_cpp='$CXXCPP $CPPFLAGS' 40977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40980 40981 CFLAGS="$saved_cflags" 40982 40983 saved_cxxflags="$CXXFLAGS" 40984 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40985 ac_ext=cpp 40986 ac_cpp='$CXXCPP $CPPFLAGS' 40987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40990 40991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40992 /* end confdefs.h. */ 40993 int i; 40994 _ACEOF 40995 if ac_fn_cxx_try_compile "$LINENO"; then : 40996 40997 else 40998 supports=no 40999 fi 41000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41001 ac_ext=cpp 41002 ac_cpp='$CXXCPP $CPPFLAGS' 41003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41006 41007 CXXFLAGS="$saved_cxxflags" 41008 41009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41010 $as_echo "$supports" >&6; } 41011 if test "x$supports" = "xyes" ; then 41012 HAS_CFLAG_OPTIMIZE_DEBUG=true 41013 else 41014 HAS_CFLAG_OPTIMIZE_DEBUG=false 41015 fi 41016 41017 41018 # "-fsanitize=undefined" supported for GCC 4.9 and later 41019 CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG="-fsanitize=undefined -fsanitize-recover" 41020 41021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"" >&5 41022 $as_echo_n "checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"... " >&6; } 41023 supports=yes 41024 41025 saved_cflags="$CFLAGS" 41026 CFLAGS="$CFLAGS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41027 ac_ext=c 41028 ac_cpp='$CPP $CPPFLAGS' 41029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41031 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41032 41033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41034 /* end confdefs.h. */ 41035 int i; 41036 _ACEOF 41037 if ac_fn_c_try_compile "$LINENO"; then : 41038 41039 else 41040 supports=no 41041 fi 41042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41043 ac_ext=cpp 41044 ac_cpp='$CXXCPP $CPPFLAGS' 41045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41048 41049 CFLAGS="$saved_cflags" 41050 41051 saved_cxxflags="$CXXFLAGS" 41052 CXXFLAGS="$CXXFLAG $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41053 ac_ext=cpp 41054 ac_cpp='$CXXCPP $CPPFLAGS' 41055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41058 41059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41060 /* end confdefs.h. */ 41061 int i; 41062 _ACEOF 41063 if ac_fn_cxx_try_compile "$LINENO"; then : 41064 41065 else 41066 supports=no 41067 fi 41068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41069 ac_ext=cpp 41070 ac_cpp='$CXXCPP $CPPFLAGS' 41071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41074 41075 CXXFLAGS="$saved_cxxflags" 41076 41077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41078 $as_echo "$supports" >&6; } 41079 if test "x$supports" = "xyes" ; then 41080 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=true 41081 else 41082 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=false 41083 fi 41084 41085 41086 # "-z relro" supported in GNU binutils 2.17 and later 41087 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41088 41089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41090 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41091 supports=yes 41092 41093 saved_ldflags="$LDFLAGS" 41094 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41095 ac_ext=c 41096 ac_cpp='$CPP $CPPFLAGS' 41097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41099 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41100 41101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41102 /* end confdefs.h. */ 41103 41104 int 41105 main () 41106 { 41107 41108 ; 41109 return 0; 41110 } 41111 _ACEOF 41112 if ac_fn_c_try_link "$LINENO"; then : 41113 41114 else 41115 supports=no 41116 fi 41117 rm -f core conftest.err conftest.$ac_objext \ 41118 conftest$ac_exeext conftest.$ac_ext 41119 ac_ext=cpp 41120 ac_cpp='$CXXCPP $CPPFLAGS' 41121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41124 41125 LDFLAGS="$saved_ldflags" 41126 41127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41128 $as_echo "$supports" >&6; } 41129 if test "x$supports" = "xyes" ; then 41130 HAS_LINKER_RELRO=true 41131 else 41132 HAS_LINKER_RELRO=false 41133 fi 41134 41135 41136 # "-z now" supported in GNU binutils 2.11 and later 41137 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41138 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41140 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41141 supports=yes 41142 41143 saved_ldflags="$LDFLAGS" 41144 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41145 ac_ext=c 41146 ac_cpp='$CPP $CPPFLAGS' 41147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41149 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41150 41151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41152 /* end confdefs.h. */ 41153 41154 int 41155 main () 41156 { 41157 41158 ; 41159 return 0; 41160 } 41161 _ACEOF 41162 if ac_fn_c_try_link "$LINENO"; then : 41163 41164 else 41165 supports=no 41166 fi 41167 rm -f core conftest.err conftest.$ac_objext \ 41168 conftest$ac_exeext conftest.$ac_ext 41169 ac_ext=cpp 41170 ac_cpp='$CXXCPP $CPPFLAGS' 41171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41174 41175 LDFLAGS="$saved_ldflags" 41176 41177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41178 $as_echo "$supports" >&6; } 41179 if test "x$supports" = "xyes" ; then 41180 HAS_LINKER_NOW=true 41181 else 41182 HAS_LINKER_NOW=false 41183 fi 41184 41185 fi 41186 41187 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41188 # in executable.' 41189 USING_BROKEN_SUSE_LD=no 41190 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41192 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41193 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41194 $ECHO "int main() { }" > main.c 41195 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41197 $as_echo "no" >&6; } 41198 USING_BROKEN_SUSE_LD=no 41199 else 41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41201 $as_echo "yes" >&6; } 41202 USING_BROKEN_SUSE_LD=yes 41203 fi 41204 rm -rf version-script.map main.c a.out 41205 fi 41206 41207 41208 41209 # Setup the JTReg Regression Test Harness. 41210 41211 41212 # Check whether --with-jtreg was given. 41213 if test "${with_jtreg+set}" = set; then : 41214 withval=$with_jtreg; 41215 else 41216 with_jtreg=no 41217 fi 41218 41219 41220 if test "x$with_jtreg" = xno; then 41221 # jtreg disabled 41222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41223 $as_echo_n "checking for jtreg... " >&6; } 41224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41225 $as_echo "no" >&6; } 41226 else 41227 if test "x$with_jtreg" != xyes; then 41228 # with path specified. 41229 JT_HOME="$with_jtreg" 41230 fi 41231 41232 if test "x$JT_HOME" != x; then 41233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41234 $as_echo_n "checking for jtreg... " >&6; } 41235 41236 # use JT_HOME enviroment var. 41237 41238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41239 41240 # Input might be given as Windows format, start by converting to 41241 # unix format. 41242 path="$JT_HOME" 41243 new_path=`$CYGPATH -u "$path"` 41244 41245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41248 # "foo.exe" is OK but "foo" is an error. 41249 # 41250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41251 # It is also a way to make sure we got the proper file name for the real test later on. 41252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41253 if test "x$test_shortpath" = x; then 41254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41255 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41256 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41257 fi 41258 41259 # Call helper function which possibly converts this using DOS-style short mode. 41260 # If so, the updated path is stored in $new_path. 41261 41262 input_path="$new_path" 41263 # Check if we need to convert this using DOS-style short mode. If the path 41264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41265 # take no chances and rewrite it. 41266 # Note: m4 eats our [], so we need to use [ and ] instead. 41267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41268 if test "x$has_forbidden_chars" != x; then 41269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41273 # Going to short mode and back again did indeed matter. Since short mode is 41274 # case insensitive, let's make it lowercase to improve readability. 41275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41276 # Now convert it back to Unix-stile (cygpath) 41277 input_path=`$CYGPATH -u "$shortmode_path"` 41278 new_path="$input_path" 41279 fi 41280 fi 41281 41282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41283 if test "x$test_cygdrive_prefix" = x; then 41284 # As a simple fix, exclude /usr/bin since it's not a real path. 41285 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41287 # a path prefixed by /cygdrive for fixpath to work. 41288 new_path="$CYGWIN_ROOT_PATH$input_path" 41289 fi 41290 fi 41291 41292 41293 if test "x$path" != "x$new_path"; then 41294 JT_HOME="$new_path" 41295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41296 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41297 fi 41298 41299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41300 41301 path="$JT_HOME" 41302 has_colon=`$ECHO $path | $GREP ^.:` 41303 new_path="$path" 41304 if test "x$has_colon" = x; then 41305 # Not in mixed or Windows style, start by that. 41306 new_path=`cmd //c echo $path` 41307 fi 41308 41309 41310 input_path="$new_path" 41311 # Check if we need to convert this using DOS-style short mode. If the path 41312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41313 # take no chances and rewrite it. 41314 # Note: m4 eats our [], so we need to use [ and ] instead. 41315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41316 if test "x$has_forbidden_chars" != x; then 41317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41318 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41319 fi 41320 41321 41322 windows_path="$new_path" 41323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41324 unix_path=`$CYGPATH -u "$windows_path"` 41325 new_path="$unix_path" 41326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41328 new_path="$unix_path" 41329 fi 41330 41331 if test "x$path" != "x$new_path"; then 41332 JT_HOME="$new_path" 41333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41334 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41335 fi 41336 41337 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41338 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41339 41340 else 41341 # We're on a posix platform. Hooray! :) 41342 path="$JT_HOME" 41343 has_space=`$ECHO "$path" | $GREP " "` 41344 if test "x$has_space" != x; then 41345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41346 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41347 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41348 fi 41349 41350 # Use eval to expand a potential ~ 41351 eval path="$path" 41352 if test ! -f "$path" && test ! -d "$path"; then 41353 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41354 fi 41355 41356 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41357 fi 41358 41359 41360 # jtreg win32 script works for everybody 41361 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41362 41363 if test ! -f "$JTREGEXE"; then 41364 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41365 fi 41366 41367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41368 $as_echo "$JTREGEXE" >&6; } 41369 else 41370 # try to find jtreg on path 41371 41372 41373 41374 # Publish this variable in the help. 41375 41376 41377 if test "x$JTREGEXE" = x; then 41378 # The variable is not set by user, try to locate tool using the code snippet 41379 for ac_prog in jtreg 41380 do 41381 # Extract the first word of "$ac_prog", so it can be a program name with args. 41382 set dummy $ac_prog; ac_word=$2 41383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41384 $as_echo_n "checking for $ac_word... " >&6; } 41385 if ${ac_cv_path_JTREGEXE+:} false; then : 41386 $as_echo_n "(cached) " >&6 41387 else 41388 case $JTREGEXE in 41389 [\\/]* | ?:[\\/]*) 41390 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41391 ;; 41392 *) 41393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41394 for as_dir in $PATH 41395 do 41396 IFS=$as_save_IFS 41397 test -z "$as_dir" && as_dir=. 41398 for ac_exec_ext in '' $ac_executable_extensions; do 41399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41400 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41402 break 2 41403 fi 41404 done 41405 done 41406 IFS=$as_save_IFS 41407 41408 ;; 41409 esac 41410 fi 41411 JTREGEXE=$ac_cv_path_JTREGEXE 41412 if test -n "$JTREGEXE"; then 41413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41414 $as_echo "$JTREGEXE" >&6; } 41415 else 41416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41417 $as_echo "no" >&6; } 41418 fi 41419 41420 41421 test -n "$JTREGEXE" && break 41422 done 41423 41424 else 41425 # The variable is set, but is it from the command line or the environment? 41426 41427 # Try to remove the string !JTREGEXE! from our list. 41428 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41429 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41430 # If it failed, the variable was not from the command line. Ignore it, 41431 # but warn the user (except for BASH, which is always set by the calling BASH). 41432 if test "xJTREGEXE" != xBASH; then 41433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41434 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41435 fi 41436 # Try to locate tool using the code snippet 41437 for ac_prog in jtreg 41438 do 41439 # Extract the first word of "$ac_prog", so it can be a program name with args. 41440 set dummy $ac_prog; ac_word=$2 41441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41442 $as_echo_n "checking for $ac_word... " >&6; } 41443 if ${ac_cv_path_JTREGEXE+:} false; then : 41444 $as_echo_n "(cached) " >&6 41445 else 41446 case $JTREGEXE in 41447 [\\/]* | ?:[\\/]*) 41448 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41449 ;; 41450 *) 41451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41452 for as_dir in $PATH 41453 do 41454 IFS=$as_save_IFS 41455 test -z "$as_dir" && as_dir=. 41456 for ac_exec_ext in '' $ac_executable_extensions; do 41457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41458 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41460 break 2 41461 fi 41462 done 41463 done 41464 IFS=$as_save_IFS 41465 41466 ;; 41467 esac 41468 fi 41469 JTREGEXE=$ac_cv_path_JTREGEXE 41470 if test -n "$JTREGEXE"; then 41471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41472 $as_echo "$JTREGEXE" >&6; } 41473 else 41474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41475 $as_echo "no" >&6; } 41476 fi 41477 41478 41479 test -n "$JTREGEXE" && break 41480 done 41481 41482 else 41483 # If it succeeded, then it was overridden by the user. We will use it 41484 # for the tool. 41485 41486 # First remove it from the list of overridden variables, so we can test 41487 # for unknown variables in the end. 41488 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41489 41490 # Check if the provided tool contains a complete path. 41491 tool_specified="$JTREGEXE" 41492 tool_basename="${tool_specified##*/}" 41493 if test "x$tool_basename" = "x$tool_specified"; then 41494 # A command without a complete path is provided, search $PATH. 41495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41496 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41497 # Extract the first word of "$tool_basename", so it can be a program name with args. 41498 set dummy $tool_basename; ac_word=$2 41499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41500 $as_echo_n "checking for $ac_word... " >&6; } 41501 if ${ac_cv_path_JTREGEXE+:} false; then : 41502 $as_echo_n "(cached) " >&6 41503 else 41504 case $JTREGEXE in 41505 [\\/]* | ?:[\\/]*) 41506 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41507 ;; 41508 *) 41509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41510 for as_dir in $PATH 41511 do 41512 IFS=$as_save_IFS 41513 test -z "$as_dir" && as_dir=. 41514 for ac_exec_ext in '' $ac_executable_extensions; do 41515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41516 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41518 break 2 41519 fi 41520 done 41521 done 41522 IFS=$as_save_IFS 41523 41524 ;; 41525 esac 41526 fi 41527 JTREGEXE=$ac_cv_path_JTREGEXE 41528 if test -n "$JTREGEXE"; then 41529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41530 $as_echo "$JTREGEXE" >&6; } 41531 else 41532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41533 $as_echo "no" >&6; } 41534 fi 41535 41536 41537 if test "x$JTREGEXE" = x; then 41538 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41539 fi 41540 else 41541 # Otherwise we believe it is a complete path. Use it as it is. 41542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41543 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41545 $as_echo_n "checking for JTREGEXE... " >&6; } 41546 if test ! -x "$tool_specified"; then 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41548 $as_echo "not found" >&6; } 41549 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41550 fi 41551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41552 $as_echo "$tool_specified" >&6; } 41553 fi 41554 fi 41555 fi 41556 41557 41558 41559 if test "x$JTREGEXE" = x; then 41560 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41561 fi 41562 41563 41564 JT_HOME="`$DIRNAME $JTREGEXE`" 41565 fi 41566 fi 41567 41568 41569 41570 41571 41572 41573 # Option used to tell the compiler whether to create 32- or 64-bit executables 41574 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41575 COMPILER_TARGET_BITS_FLAG="-q" 41576 else 41577 COMPILER_TARGET_BITS_FLAG="-m" 41578 fi 41579 41580 41581 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41582 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41583 ARFLAGS="-r" 41584 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41585 ARFLAGS="-X64" 41586 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41587 # lib.exe is used as AR to create static libraries. 41588 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41589 else 41590 ARFLAGS="" 41591 fi 41592 41593 41594 ## Setup strip. 41595 # FIXME: should this really be per platform, or should it be per toolchain type? 41596 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41597 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41598 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41599 STRIPFLAGS="-g" 41600 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41601 STRIPFLAGS="-x" 41602 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41603 STRIPFLAGS="-S" 41604 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41605 STRIPFLAGS="-X32_64" 41606 fi 41607 41608 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41609 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41610 fi 41611 41612 41613 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41614 # FIXME: break out into MCSFLAGS 41615 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41616 fi 41617 41618 41619 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41620 CC_OUT_OPTION=-Fo 41621 EXE_OUT_OPTION=-out: 41622 LD_OUT_OPTION=-out: 41623 AR_OUT_OPTION=-out: 41624 else 41625 # The option used to specify the target .o,.a or .so file. 41626 # When compiling, how to specify the to be created object file. 41627 CC_OUT_OPTION='-o$(SPACE)' 41628 # When linking, how to specify the to be created executable. 41629 EXE_OUT_OPTION='-o$(SPACE)' 41630 # When linking, how to specify the to be created dynamically linkable library. 41631 LD_OUT_OPTION='-o$(SPACE)' 41632 # When archiving, how to specify the to be create static archive for object files. 41633 AR_OUT_OPTION='rcs$(SPACE)' 41634 fi 41635 41636 41637 41638 41639 41640 # On Windows, we need to set RC flags. 41641 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41642 RC_FLAGS="-nologo -l 0x409 -r" 41643 if test "x$VARIANT" = xOPT; then 41644 RC_FLAGS="$RC_FLAGS -d NDEBUG" 41645 fi 41646 41647 # The version variables used to create RC_FLAGS may be overridden 41648 # in a custom configure script, or possibly the command line. 41649 # Let those variables be expanded at make time in spec.gmk. 41650 # The \$ are escaped to the shell, and the $(...) variables 41651 # are evaluated by make. 41652 RC_FLAGS="$RC_FLAGS \ 41653 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41654 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41655 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41656 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41657 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41658 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41659 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41660 fi 41661 41662 41663 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41664 # silence copyright notice and other headers. 41665 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41666 fi 41667 41668 if test "x$SYSROOT" != "x"; then 41669 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41670 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41671 # Solaris Studio does not have a concept of sysroot. Instead we must 41672 # make sure the default include and lib dirs are appended to each 41673 # compile and link command line. 41674 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41675 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41676 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41677 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41678 fi 41679 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41680 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41681 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41682 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41683 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41684 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41685 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41686 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41687 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41688 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41689 fi 41690 # Propagate the sysroot args to hotspot 41691 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41692 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41693 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41694 fi 41695 41696 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41697 # set this here so it doesn't have to be peppered throughout the forest 41698 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41699 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41700 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41701 fi 41702 41703 41704 41705 41706 41707 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41708 41709 # Now we can test some aspects on the target using configure macros. 41710 41711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41712 $as_echo_n "checking for ANSI C header files... " >&6; } 41713 if ${ac_cv_header_stdc+:} false; then : 41714 $as_echo_n "(cached) " >&6 41715 else 41716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41717 /* end confdefs.h. */ 41718 #include <stdlib.h> 41719 #include <stdarg.h> 41720 #include <string.h> 41721 #include <float.h> 41722 41723 int 41724 main () 41725 { 41726 41727 ; 41728 return 0; 41729 } 41730 _ACEOF 41731 if ac_fn_cxx_try_compile "$LINENO"; then : 41732 ac_cv_header_stdc=yes 41733 else 41734 ac_cv_header_stdc=no 41735 fi 41736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41737 41738 if test $ac_cv_header_stdc = yes; then 41739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41741 /* end confdefs.h. */ 41742 #include <string.h> 41743 41744 _ACEOF 41745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41746 $EGREP "memchr" >/dev/null 2>&1; then : 41747 41748 else 41749 ac_cv_header_stdc=no 41750 fi 41751 rm -f conftest* 41752 41753 fi 41754 41755 if test $ac_cv_header_stdc = yes; then 41756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41758 /* end confdefs.h. */ 41759 #include <stdlib.h> 41760 41761 _ACEOF 41762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41763 $EGREP "free" >/dev/null 2>&1; then : 41764 41765 else 41766 ac_cv_header_stdc=no 41767 fi 41768 rm -f conftest* 41769 41770 fi 41771 41772 if test $ac_cv_header_stdc = yes; then 41773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41774 if test "$cross_compiling" = yes; then : 41775 : 41776 else 41777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41778 /* end confdefs.h. */ 41779 #include <ctype.h> 41780 #include <stdlib.h> 41781 #if ((' ' & 0x0FF) == 0x020) 41782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41784 #else 41785 # define ISLOWER(c) \ 41786 (('a' <= (c) && (c) <= 'i') \ 41787 || ('j' <= (c) && (c) <= 'r') \ 41788 || ('s' <= (c) && (c) <= 'z')) 41789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41790 #endif 41791 41792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41793 int 41794 main () 41795 { 41796 int i; 41797 for (i = 0; i < 256; i++) 41798 if (XOR (islower (i), ISLOWER (i)) 41799 || toupper (i) != TOUPPER (i)) 41800 return 2; 41801 return 0; 41802 } 41803 _ACEOF 41804 if ac_fn_cxx_try_run "$LINENO"; then : 41805 41806 else 41807 ac_cv_header_stdc=no 41808 fi 41809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41810 conftest.$ac_objext conftest.beam conftest.$ac_ext 41811 fi 41812 41813 fi 41814 fi 41815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41816 $as_echo "$ac_cv_header_stdc" >&6; } 41817 if test $ac_cv_header_stdc = yes; then 41818 41819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41820 41821 fi 41822 41823 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41825 inttypes.h stdint.h unistd.h 41826 do : 41827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41828 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41829 " 41830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41831 cat >>confdefs.h <<_ACEOF 41832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41833 _ACEOF 41834 41835 fi 41836 41837 done 41838 41839 41840 41841 ############################################################################### 41842 # 41843 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41844 # (The JVM can use 32 or 64 bit Java pointers but that decision 41845 # is made at runtime.) 41846 # 41847 41848 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41849 # Always specify -m flag on Solaris 41850 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41851 41852 # When we add flags to the "official" CFLAGS etc, we need to 41853 # keep track of these additions in ADDED_CFLAGS etc. These 41854 # will later be checked to make sure only controlled additions 41855 # have been made to CFLAGS etc. 41856 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41857 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41858 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41859 41860 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41861 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41862 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41863 41864 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41865 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41866 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41867 41868 elif test "x$COMPILE_TYPE" = xreduced; then 41869 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41870 # Specify -m if running reduced on other Posix platforms 41871 41872 # When we add flags to the "official" CFLAGS etc, we need to 41873 # keep track of these additions in ADDED_CFLAGS etc. These 41874 # will later be checked to make sure only controlled additions 41875 # have been made to CFLAGS etc. 41876 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41877 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41878 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41879 41880 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41881 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41882 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41883 41884 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41885 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41886 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41887 41888 fi 41889 fi 41890 41891 # Make compilation sanity check 41892 for ac_header in stdio.h 41893 do : 41894 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41895 if test "x$ac_cv_header_stdio_h" = xyes; then : 41896 cat >>confdefs.h <<_ACEOF 41897 #define HAVE_STDIO_H 1 41898 _ACEOF 41899 41900 else 41901 41902 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41903 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41904 if test "x$COMPILE_TYPE" = xreduced; then 41905 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41906 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41907 elif test "x$COMPILE_TYPE" = xcross; then 41908 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41909 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41910 fi 41911 as_fn_error $? "Cannot continue." "$LINENO" 5 41912 41913 fi 41914 41915 done 41916 41917 41918 # The cast to long int works around a bug in the HP C Compiler 41919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41921 # This bug is HP SR number 8606223364. 41922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41923 $as_echo_n "checking size of int *... " >&6; } 41924 if ${ac_cv_sizeof_int_p+:} false; then : 41925 $as_echo_n "(cached) " >&6 41926 else 41927 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41928 41929 else 41930 if test "$ac_cv_type_int_p" = yes; then 41931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41933 as_fn_error 77 "cannot compute sizeof (int *) 41934 See \`config.log' for more details" "$LINENO" 5; } 41935 else 41936 ac_cv_sizeof_int_p=0 41937 fi 41938 fi 41939 41940 fi 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41942 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41943 41944 41945 41946 cat >>confdefs.h <<_ACEOF 41947 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41948 _ACEOF 41949 41950 41951 41952 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41953 if test "x$ac_cv_sizeof_int_p" = x; then 41954 # The test failed, lets stick to the assumed value. 41955 { $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 41956 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41957 else 41958 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41959 41960 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41961 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41962 # Let's try to implicitely set the compilers target architecture and retry the test 41963 { $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 41964 $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;} 41965 { $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 41966 $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;} 41967 41968 # When we add flags to the "official" CFLAGS etc, we need to 41969 # keep track of these additions in ADDED_CFLAGS etc. These 41970 # will later be checked to make sure only controlled additions 41971 # have been made to CFLAGS etc. 41972 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41973 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41974 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41975 41976 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41977 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41978 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41979 41980 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41981 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41982 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41983 41984 41985 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41986 unset ac_cv_sizeof_int_p 41987 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41988 cat >>confdefs.h <<_ACEOF 41989 #undef SIZEOF_INT_P 41990 _ACEOF 41991 41992 # The cast to long int works around a bug in the HP C Compiler 41993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41995 # This bug is HP SR number 8606223364. 41996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41997 $as_echo_n "checking size of int *... " >&6; } 41998 if ${ac_cv_sizeof_int_p+:} false; then : 41999 $as_echo_n "(cached) " >&6 42000 else 42001 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42002 42003 else 42004 if test "$ac_cv_type_int_p" = yes; then 42005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42007 as_fn_error 77 "cannot compute sizeof (int *) 42008 See \`config.log' for more details" "$LINENO" 5; } 42009 else 42010 ac_cv_sizeof_int_p=0 42011 fi 42012 fi 42013 42014 fi 42015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42016 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42017 42018 42019 42020 cat >>confdefs.h <<_ACEOF 42021 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42022 _ACEOF 42023 42024 42025 42026 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42027 42028 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42029 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 42030 fi 42031 fi 42032 fi 42033 42034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42035 $as_echo_n "checking for target address size... " >&6; } 42036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42037 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42038 42039 42040 ############################################################################### 42041 # 42042 # Is the target little of big endian? 42043 # 42044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42045 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42046 if ${ac_cv_c_bigendian+:} false; then : 42047 $as_echo_n "(cached) " >&6 42048 else 42049 ac_cv_c_bigendian=unknown 42050 # See if we're dealing with a universal compiler. 42051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42052 /* end confdefs.h. */ 42053 #ifndef __APPLE_CC__ 42054 not a universal capable compiler 42055 #endif 42056 typedef int dummy; 42057 42058 _ACEOF 42059 if ac_fn_cxx_try_compile "$LINENO"; then : 42060 42061 # Check for potential -arch flags. It is not universal unless 42062 # there are at least two -arch flags with different values. 42063 ac_arch= 42064 ac_prev= 42065 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42066 if test -n "$ac_prev"; then 42067 case $ac_word in 42068 i?86 | x86_64 | ppc | ppc64) 42069 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42070 ac_arch=$ac_word 42071 else 42072 ac_cv_c_bigendian=universal 42073 break 42074 fi 42075 ;; 42076 esac 42077 ac_prev= 42078 elif test "x$ac_word" = "x-arch"; then 42079 ac_prev=arch 42080 fi 42081 done 42082 fi 42083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42084 if test $ac_cv_c_bigendian = unknown; then 42085 # See if sys/param.h defines the BYTE_ORDER macro. 42086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42087 /* end confdefs.h. */ 42088 #include <sys/types.h> 42089 #include <sys/param.h> 42090 42091 int 42092 main () 42093 { 42094 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42095 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42096 && LITTLE_ENDIAN) 42097 bogus endian macros 42098 #endif 42099 42100 ; 42101 return 0; 42102 } 42103 _ACEOF 42104 if ac_fn_cxx_try_compile "$LINENO"; then : 42105 # It does; now see whether it defined to BIG_ENDIAN or not. 42106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42107 /* end confdefs.h. */ 42108 #include <sys/types.h> 42109 #include <sys/param.h> 42110 42111 int 42112 main () 42113 { 42114 #if BYTE_ORDER != BIG_ENDIAN 42115 not big endian 42116 #endif 42117 42118 ; 42119 return 0; 42120 } 42121 _ACEOF 42122 if ac_fn_cxx_try_compile "$LINENO"; then : 42123 ac_cv_c_bigendian=yes 42124 else 42125 ac_cv_c_bigendian=no 42126 fi 42127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42128 fi 42129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42130 fi 42131 if test $ac_cv_c_bigendian = unknown; then 42132 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42134 /* end confdefs.h. */ 42135 #include <limits.h> 42136 42137 int 42138 main () 42139 { 42140 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42141 bogus endian macros 42142 #endif 42143 42144 ; 42145 return 0; 42146 } 42147 _ACEOF 42148 if ac_fn_cxx_try_compile "$LINENO"; then : 42149 # It does; now see whether it defined to _BIG_ENDIAN or not. 42150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42151 /* end confdefs.h. */ 42152 #include <limits.h> 42153 42154 int 42155 main () 42156 { 42157 #ifndef _BIG_ENDIAN 42158 not big endian 42159 #endif 42160 42161 ; 42162 return 0; 42163 } 42164 _ACEOF 42165 if ac_fn_cxx_try_compile "$LINENO"; then : 42166 ac_cv_c_bigendian=yes 42167 else 42168 ac_cv_c_bigendian=no 42169 fi 42170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42171 fi 42172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42173 fi 42174 if test $ac_cv_c_bigendian = unknown; then 42175 # Compile a test program. 42176 if test "$cross_compiling" = yes; then : 42177 # Try to guess by grepping values from an object file. 42178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42179 /* end confdefs.h. */ 42180 short int ascii_mm[] = 42181 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42182 short int ascii_ii[] = 42183 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42184 int use_ascii (int i) { 42185 return ascii_mm[i] + ascii_ii[i]; 42186 } 42187 short int ebcdic_ii[] = 42188 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42189 short int ebcdic_mm[] = 42190 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42191 int use_ebcdic (int i) { 42192 return ebcdic_mm[i] + ebcdic_ii[i]; 42193 } 42194 extern int foo; 42195 42196 int 42197 main () 42198 { 42199 return use_ascii (foo) == use_ebcdic (foo); 42200 ; 42201 return 0; 42202 } 42203 _ACEOF 42204 if ac_fn_cxx_try_compile "$LINENO"; then : 42205 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42206 ac_cv_c_bigendian=yes 42207 fi 42208 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42209 if test "$ac_cv_c_bigendian" = unknown; then 42210 ac_cv_c_bigendian=no 42211 else 42212 # finding both strings is unlikely to happen, but who knows? 42213 ac_cv_c_bigendian=unknown 42214 fi 42215 fi 42216 fi 42217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42218 else 42219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42220 /* end confdefs.h. */ 42221 $ac_includes_default 42222 int 42223 main () 42224 { 42225 42226 /* Are we little or big endian? From Harbison&Steele. */ 42227 union 42228 { 42229 long int l; 42230 char c[sizeof (long int)]; 42231 } u; 42232 u.l = 1; 42233 return u.c[sizeof (long int) - 1] == 1; 42234 42235 ; 42236 return 0; 42237 } 42238 _ACEOF 42239 if ac_fn_cxx_try_run "$LINENO"; then : 42240 ac_cv_c_bigendian=no 42241 else 42242 ac_cv_c_bigendian=yes 42243 fi 42244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42245 conftest.$ac_objext conftest.beam conftest.$ac_ext 42246 fi 42247 42248 fi 42249 fi 42250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42251 $as_echo "$ac_cv_c_bigendian" >&6; } 42252 case $ac_cv_c_bigendian in #( 42253 yes) 42254 ENDIAN="big";; #( 42255 no) 42256 ENDIAN="little" ;; #( 42257 universal) 42258 ENDIAN="universal_endianness" 42259 ;; #( 42260 *) 42261 ENDIAN="unknown" ;; 42262 esac 42263 42264 42265 if test "x$ENDIAN" = xuniversal_endianness; then 42266 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42267 fi 42268 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42269 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 42270 fi 42271 42272 42273 # Configure flags for the tools 42274 42275 ############################################################################### 42276 # 42277 # How to compile shared libraries. 42278 # 42279 42280 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42281 PICFLAG="-fPIC" 42282 C_FLAG_REORDER='' 42283 CXX_FLAG_REORDER='' 42284 42285 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42286 # Linking is different on MacOSX 42287 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42288 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42289 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42290 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42291 SET_SHARED_LIBRARY_MAPFILE='' 42292 else 42293 # Default works for linux, might work on other platforms as well. 42294 SHARED_LIBRARY_FLAGS='-shared' 42295 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42296 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42297 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42298 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42299 fi 42300 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42301 PICFLAG='' 42302 C_FLAG_REORDER='' 42303 CXX_FLAG_REORDER='' 42304 42305 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42306 # Linking is different on MacOSX 42307 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42308 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42309 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42310 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42311 SET_SHARED_LIBRARY_MAPFILE='' 42312 else 42313 # Default works for linux, might work on other platforms as well. 42314 SHARED_LIBRARY_FLAGS='-shared' 42315 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42316 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42317 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42318 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42319 fi 42320 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42321 PICFLAG="-KPIC" 42322 C_FLAG_REORDER='-xF' 42323 CXX_FLAG_REORDER='-xF' 42324 SHARED_LIBRARY_FLAGS="-G" 42325 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42326 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42327 SET_SHARED_LIBRARY_NAME='' 42328 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42329 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42330 PICFLAG="-qpic=large" 42331 C_FLAG_REORDER='' 42332 CXX_FLAG_REORDER='' 42333 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42334 SET_EXECUTABLE_ORIGIN="" 42335 SET_SHARED_LIBRARY_ORIGIN='' 42336 SET_SHARED_LIBRARY_NAME='' 42337 SET_SHARED_LIBRARY_MAPFILE='' 42338 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42339 PICFLAG="" 42340 C_FLAG_REORDER='' 42341 CXX_FLAG_REORDER='' 42342 SHARED_LIBRARY_FLAGS="-LD" 42343 SET_EXECUTABLE_ORIGIN='' 42344 SET_SHARED_LIBRARY_ORIGIN='' 42345 SET_SHARED_LIBRARY_NAME='' 42346 SET_SHARED_LIBRARY_MAPFILE='' 42347 fi 42348 42349 42350 42351 42352 42353 42354 42355 42356 42357 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42358 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42359 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42360 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42361 fi 42362 # The (cross) compiler is now configured, we can now test capabilities 42363 # of the target platform. 42364 42365 42366 42367 ############################################################################### 42368 # 42369 # Setup the opt flags for different compilers 42370 # and different operating systems. 42371 # 42372 42373 # FIXME: this was indirectly the old default, but just inherited. 42374 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42375 # C_FLAG_DEPS="-MMD -MF" 42376 # fi 42377 42378 # Generate make dependency files 42379 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42380 C_FLAG_DEPS="-MMD -MF" 42381 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42382 C_FLAG_DEPS="-MMD -MF" 42383 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42384 C_FLAG_DEPS="-xMMD -xMF" 42385 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42386 C_FLAG_DEPS="-qmakedep=gcc -MF" 42387 fi 42388 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42389 42390 42391 42392 # Debug symbols 42393 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42394 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42395 # reduce from default "-g2" option to save space 42396 CFLAGS_DEBUG_SYMBOLS="-g1" 42397 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42398 else 42399 CFLAGS_DEBUG_SYMBOLS="-g" 42400 CXXFLAGS_DEBUG_SYMBOLS="-g" 42401 fi 42402 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42403 CFLAGS_DEBUG_SYMBOLS="-g" 42404 CXXFLAGS_DEBUG_SYMBOLS="-g" 42405 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42406 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42407 # FIXME: likely a bug, this disables debug symbols rather than enables them 42408 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42409 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42410 CFLAGS_DEBUG_SYMBOLS="-g" 42411 CXXFLAGS_DEBUG_SYMBOLS="-g" 42412 fi 42413 42414 42415 42416 # bounds, memory and behavior checking options 42417 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42418 case $DEBUG_LEVEL in 42419 release ) 42420 # no adjustment 42421 ;; 42422 fastdebug ) 42423 # no adjustment 42424 ;; 42425 slowdebug ) 42426 # Add runtime stack smashing and undefined behavior checks 42427 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42428 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42429 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42430 CFLAGS_DEBUG_OPTIONS="$CFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 42431 CXXFLAGS_DEBUG_OPTIONS="$CXXFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIsOR_FLAG" 42432 fi 42433 ;; 42434 esac 42435 fi 42436 42437 42438 42439 # Optimization levels 42440 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42441 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42442 42443 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42444 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42445 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42446 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42447 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42448 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42449 C_O_FLAG_NONE="-xregs=no%frameptr" 42450 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42451 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42452 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42453 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42454 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42455 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42456 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42457 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42458 fi 42459 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42460 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42461 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42462 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42463 C_O_FLAG_DEBUG="" 42464 C_O_FLAG_NONE="" 42465 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42466 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42467 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42468 C_O_FLAG_DEBUG="" 42469 CXX_O_FLAG_NONE="" 42470 fi 42471 else 42472 # The remaining toolchains share opt flags between CC and CXX; 42473 # setup for C and duplicate afterwards. 42474 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42475 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42476 # On MacOSX we optimize for size, something 42477 # we should do for all platforms? 42478 C_O_FLAG_HIGHEST="-Os" 42479 C_O_FLAG_HI="-Os" 42480 C_O_FLAG_NORM="-Os" 42481 else 42482 C_O_FLAG_HIGHEST="-O3" 42483 C_O_FLAG_HI="-O3" 42484 C_O_FLAG_NORM="-O2" 42485 fi 42486 C_O_FLAG_DEBUG="-O0" 42487 C_O_FLAG_NONE="-O0" 42488 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42489 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42490 # On MacOSX we optimize for size, something 42491 # we should do for all platforms? 42492 C_O_FLAG_HIGHEST="-Os" 42493 C_O_FLAG_HI="-Os" 42494 C_O_FLAG_NORM="-Os" 42495 else 42496 C_O_FLAG_HIGHEST="-O3" 42497 C_O_FLAG_HI="-O3" 42498 C_O_FLAG_NORM="-O2" 42499 fi 42500 C_O_FLAG_DEBUG="-O0" 42501 C_O_FLAG_NONE="-O0" 42502 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42503 C_O_FLAG_HIGHEST="-O3" 42504 C_O_FLAG_HI="-O3 -qstrict" 42505 C_O_FLAG_NORM="-O2" 42506 C_O_FLAG_DEBUG="-qnoopt" 42507 C_O_FLAG_NONE="-qnoop" 42508 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42509 C_O_FLAG_HIGHEST="-O2" 42510 C_O_FLAG_HI="-O1" 42511 C_O_FLAG_NORM="-O1" 42512 C_O_FLAG_DEBUG="-Od" 42513 C_O_FLAG_NONE="-Od" 42514 fi 42515 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42516 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42517 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42518 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42519 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42520 fi 42521 42522 # Adjust optimization flags according to debug level. 42523 case $DEBUG_LEVEL in 42524 release ) 42525 # no adjustment 42526 ;; 42527 fastdebug ) 42528 # Not quite so much optimization 42529 C_O_FLAG_HI="$C_O_FLAG_NORM" 42530 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42531 ;; 42532 slowdebug ) 42533 # Disable optimization 42534 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42535 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42536 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42537 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42538 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42539 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42540 ;; 42541 esac 42542 42543 42544 42545 42546 42547 42548 42549 42550 42551 42552 42553 42554 42555 # Special extras... 42556 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42557 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42558 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42559 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42560 fi 42561 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42562 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42563 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42564 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42565 fi 42566 42567 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42569 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42570 fi 42571 42572 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42574 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42575 fi 42576 42577 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42579 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42580 fi 42581 42582 42583 # Check whether --with-extra-cflags was given. 42584 if test "${with_extra_cflags+set}" = set; then : 42585 withval=$with_extra_cflags; 42586 fi 42587 42588 42589 42590 # Check whether --with-extra-cxxflags was given. 42591 if test "${with_extra_cxxflags+set}" = set; then : 42592 withval=$with_extra_cxxflags; 42593 fi 42594 42595 42596 42597 # Check whether --with-extra-ldflags was given. 42598 if test "${with_extra_ldflags+set}" = set; then : 42599 withval=$with_extra_ldflags; 42600 fi 42601 42602 42603 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42604 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42605 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42606 42607 # Hotspot needs these set in their legacy form 42608 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42609 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42610 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42611 42612 42613 42614 42615 42616 ############################################################################### 42617 # 42618 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42619 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42620 # 42621 42622 # Setup compiler/platform specific flags into 42623 # CFLAGS_JDK - C Compiler flags 42624 # CXXFLAGS_JDK - C++ Compiler flags 42625 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42626 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42627 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42628 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42629 case $OPENJDK_TARGET_CPU_ARCH in 42630 arm ) 42631 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42632 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42633 ;; 42634 ppc ) 42635 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42636 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42637 ;; 42638 * ) 42639 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42640 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42641 ;; 42642 esac 42643 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42644 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42645 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42646 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42647 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42648 fi 42649 42650 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42651 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42652 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42653 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42654 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42655 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42656 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42657 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42658 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42659 -DWIN32 -DIAL" 42660 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42661 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42662 else 42663 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42664 fi 42665 fi 42666 42667 ############################################################################### 42668 42669 # Adjust flags according to debug level. 42670 case $DEBUG_LEVEL in 42671 fastdebug | slowdebug ) 42672 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42673 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42674 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42675 ;; 42676 release ) 42677 ;; 42678 * ) 42679 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42680 ;; 42681 esac 42682 42683 # Setup LP64 42684 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42685 42686 # Set some common defines. These works for all compilers, but assume 42687 # -D is universally accepted. 42688 42689 # Setup endianness 42690 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42691 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42692 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42693 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42694 # Note: -Dmacro is the same as #define macro 1 42695 # -Dmacro= is the same as #define macro 42696 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42697 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42698 else 42699 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42700 fi 42701 else 42702 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42703 # are defined in the system? 42704 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42705 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42706 else 42707 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42708 fi 42709 fi 42710 42711 # Setup target OS define. Use OS target name but in upper case. 42712 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42713 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42714 42715 # Setup target CPU 42716 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42717 42718 # Setup debug/release defines 42719 if test "x$DEBUG_LEVEL" = xrelease; then 42720 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42721 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42722 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42723 fi 42724 else 42725 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42726 fi 42727 42728 # Setup release name 42729 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42730 42731 42732 # Set some additional per-OS defines. 42733 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42734 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42735 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42736 # FIXME: PPC64 should not be here. 42737 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42738 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42739 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42740 fi 42741 42742 # Additional macosx handling 42743 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42744 # Setting these parameters makes it an error to link to macosx APIs that are 42745 # newer than the given OS version and makes the linked binaries compatible 42746 # even if built on a newer version of the OS. 42747 # The expected format is X.Y.Z 42748 MACOSX_VERSION_MIN=10.7.0 42749 42750 42751 # The macro takes the version with no dots, ex: 1070 42752 # Let the flags variables get resolved in make for easier override on make 42753 # command line. 42754 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42755 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42756 fi 42757 42758 # Setup some hard coded includes 42759 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42760 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42761 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42762 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_API_DIR/native/include" 42763 42764 # The shared libraries are compiled using the picflag. 42765 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42766 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42767 42768 # Executable flags 42769 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42770 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42771 42772 42773 42774 42775 42776 42777 # Setup LDFLAGS et al. 42778 # 42779 42780 # Now this is odd. The JDK native libraries have to link against libjvm.so 42781 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42782 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42783 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42784 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42785 # libraries will link to whatever is in memory. Yuck. 42786 # 42787 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42788 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42789 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42790 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42791 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42792 fi 42793 # TODO: make -debug optional "--disable-full-debug-symbols" 42794 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42795 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42796 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42797 # We have previously set HAS_GNU_HASH if this is the case 42798 if test -n "$HAS_GNU_HASH"; then 42799 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42800 fi 42801 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42802 # And since we now know that the linker is gnu, then add -z defs, to forbid 42803 # undefined symbols in object files. 42804 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42805 case $DEBUG_LEVEL in 42806 release ) 42807 # tell linker to optimize libraries. 42808 # Should this be supplied to the OSS linker as well? 42809 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42810 ;; 42811 slowdebug ) 42812 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42813 # do relocations at load 42814 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42815 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42816 fi 42817 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42818 # mark relocations read only 42819 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42820 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42821 fi 42822 ;; 42823 fastdebug ) 42824 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42825 # mark relocations read only 42826 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42827 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42828 fi 42829 ;; 42830 * ) 42831 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42832 ;; 42833 esac 42834 fi 42835 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42836 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42837 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42838 fi 42839 42840 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then 42841 # If undefined behaviour detection is enabled then we need to tell linker. 42842 case $DEBUG_LEVEL in 42843 release | fastdebug ) 42844 ;; 42845 slowdebug ) 42846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&5 42847 $as_echo "$as_me: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&2;} 42848 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42849 # enable undefined behaviour checking 42850 LDFLAGS_JDK="$LDFLAGS_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42851 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42852 fi 42853 ;; 42854 * ) 42855 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42856 ;; 42857 esac 42858 fi 42859 42860 # Customize LDFLAGS for executables 42861 42862 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42863 42864 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42865 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42866 LDFLAGS_STACK_SIZE=1048576 42867 else 42868 LDFLAGS_STACK_SIZE=327680 42869 fi 42870 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42871 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42872 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42873 fi 42874 42875 # Customize LDFLAGS for libs 42876 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42877 42878 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42879 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42880 LDFLAGS_JDKLIB_SUFFIX="" 42881 else 42882 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42883 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42884 42885 # On some platforms (mac) the linker warns about non existing -L dirs. 42886 # Add server first if available. Linking aginst client does not always produce the same results. 42887 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42888 # Default to server for other variants. 42889 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42890 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42891 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42892 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42893 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42894 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42895 else 42896 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42897 fi 42898 42899 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42900 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42901 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42902 fi 42903 fi 42904 42905 42906 42907 42908 42909 42910 42911 42912 # Some Zero and Shark settings. 42913 # ZERO_ARCHFLAG tells the compiler which mode to build for 42914 case "${OPENJDK_TARGET_CPU}" in 42915 s390) 42916 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42917 ;; 42918 *) 42919 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42920 esac 42921 42922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42923 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42924 supports=yes 42925 42926 saved_cflags="$CFLAGS" 42927 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42928 ac_ext=c 42929 ac_cpp='$CPP $CPPFLAGS' 42930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42932 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42933 42934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42935 /* end confdefs.h. */ 42936 int i; 42937 _ACEOF 42938 if ac_fn_c_try_compile "$LINENO"; then : 42939 42940 else 42941 supports=no 42942 fi 42943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42944 ac_ext=cpp 42945 ac_cpp='$CXXCPP $CPPFLAGS' 42946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42949 42950 CFLAGS="$saved_cflags" 42951 42952 saved_cxxflags="$CXXFLAGS" 42953 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42954 ac_ext=cpp 42955 ac_cpp='$CXXCPP $CPPFLAGS' 42956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42959 42960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42961 /* end confdefs.h. */ 42962 int i; 42963 _ACEOF 42964 if ac_fn_cxx_try_compile "$LINENO"; then : 42965 42966 else 42967 supports=no 42968 fi 42969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42970 ac_ext=cpp 42971 ac_cpp='$CXXCPP $CPPFLAGS' 42972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42975 42976 CXXFLAGS="$saved_cxxflags" 42977 42978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42979 $as_echo "$supports" >&6; } 42980 if test "x$supports" = "xyes" ; then 42981 : 42982 else 42983 ZERO_ARCHFLAG="" 42984 fi 42985 42986 42987 42988 # Check that the compiler supports -mX (or -qX on AIX) flags 42989 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42990 42991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42992 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42993 supports=yes 42994 42995 saved_cflags="$CFLAGS" 42996 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42997 ac_ext=c 42998 ac_cpp='$CPP $CPPFLAGS' 42999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43001 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43002 43003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43004 /* end confdefs.h. */ 43005 int i; 43006 _ACEOF 43007 if ac_fn_c_try_compile "$LINENO"; then : 43008 43009 else 43010 supports=no 43011 fi 43012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43013 ac_ext=cpp 43014 ac_cpp='$CXXCPP $CPPFLAGS' 43015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43018 43019 CFLAGS="$saved_cflags" 43020 43021 saved_cxxflags="$CXXFLAGS" 43022 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43023 ac_ext=cpp 43024 ac_cpp='$CXXCPP $CPPFLAGS' 43025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43028 43029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43030 /* end confdefs.h. */ 43031 int i; 43032 _ACEOF 43033 if ac_fn_cxx_try_compile "$LINENO"; then : 43034 43035 else 43036 supports=no 43037 fi 43038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43039 ac_ext=cpp 43040 ac_cpp='$CXXCPP $CPPFLAGS' 43041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43044 43045 CXXFLAGS="$saved_cxxflags" 43046 43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43048 $as_echo "$supports" >&6; } 43049 if test "x$supports" = "xyes" ; then 43050 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43051 else 43052 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43053 fi 43054 43055 43056 43057 case "${TOOLCHAIN_TYPE}" in 43058 microsoft) 43059 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43060 ;; 43061 solstudio) 43062 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43063 ;; 43064 gcc) 43065 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43066 ;; 43067 clang) 43068 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43069 ;; 43070 esac 43071 43072 43073 43074 # Setup debug symbols (need objcopy from the toolchain for that) 43075 43076 # 43077 # ENABLE_DEBUG_SYMBOLS 43078 # This must be done after the toolchain is setup, since we're looking at objcopy. 43079 # 43080 # Check whether --enable-debug-symbols was given. 43081 if test "${enable_debug_symbols+set}" = set; then : 43082 enableval=$enable_debug_symbols; 43083 fi 43084 43085 43086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43087 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43088 43089 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43090 # explicit enabling of enable-debug-symbols and can't find objcopy 43091 # this is an error 43092 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43093 fi 43094 43095 if test "x$enable_debug_symbols" = "xyes"; then 43096 ENABLE_DEBUG_SYMBOLS=true 43097 elif test "x$enable_debug_symbols" = "xno"; then 43098 ENABLE_DEBUG_SYMBOLS=false 43099 else 43100 # Default is on if objcopy is found 43101 if test "x$OBJCOPY" != x; then 43102 ENABLE_DEBUG_SYMBOLS=true 43103 # MacOS X and Windows don't use objcopy but default is on for those OSes 43104 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43105 ENABLE_DEBUG_SYMBOLS=true 43106 else 43107 ENABLE_DEBUG_SYMBOLS=false 43108 fi 43109 fi 43110 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43112 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43113 43114 # 43115 # ZIP_DEBUGINFO_FILES 43116 # 43117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43118 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43119 # Check whether --enable-zip-debug-info was given. 43120 if test "${enable_zip_debug_info+set}" = set; then : 43121 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43122 else 43123 enable_zip_debug_info="yes" 43124 fi 43125 43126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43127 $as_echo "${enable_zip_debug_info}" >&6; } 43128 43129 if test "x${enable_zip_debug_info}" = "xno"; then 43130 ZIP_DEBUGINFO_FILES=false 43131 else 43132 ZIP_DEBUGINFO_FILES=true 43133 fi 43134 43135 43136 43137 43138 43139 ############################################################################### 43140 # 43141 # Check dependencies for external and internal libraries. 43142 # 43143 ############################################################################### 43144 43145 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43146 43147 # When using cygwin or msys, we need a wrapper binary that renames 43148 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43149 # @files and rewrites these too! This wrapper binary is 43150 # called fixpath. 43151 FIXPATH= 43152 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43154 $as_echo_n "checking if fixpath can be created... " >&6; } 43155 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43156 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43157 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43158 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43159 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43160 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43161 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43162 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43163 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43164 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43165 43166 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43167 # @ was chosen as separator to minimize risk of other tools messing around with it 43168 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43169 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43170 43171 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43172 fi 43173 rm -f $OUTPUT_ROOT/fixpath* 43174 cd $OUTPUT_ROOT 43175 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43176 cd $CURDIR 43177 43178 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43180 $as_echo "no" >&6; } 43181 cat $OUTPUT_ROOT/fixpath1.log 43182 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43183 fi 43184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43185 $as_echo "yes" >&6; } 43186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43187 $as_echo_n "checking if fixpath.exe works... " >&6; } 43188 cd $OUTPUT_ROOT 43189 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43190 cd $CURDIR 43191 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43193 $as_echo "no" >&6; } 43194 cat $OUTPUT_ROOT/fixpath2.log 43195 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43196 fi 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43198 $as_echo "yes" >&6; } 43199 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43200 fi 43201 43202 43203 43204 43205 43206 43207 ############################################################################### 43208 # 43209 # OS specific settings that we never will need to probe. 43210 # 43211 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43213 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43214 PULSE_NOT_NEEDED=yes 43215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43216 $as_echo "pulse" >&6; } 43217 fi 43218 43219 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43221 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43222 ALSA_NOT_NEEDED=yes 43223 PULSE_NOT_NEEDED=yes 43224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43225 $as_echo "alsa pulse" >&6; } 43226 fi 43227 43228 if test "x$OPENJDK_TARGET_OS" = xaix; then 43229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43230 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43231 ALSA_NOT_NEEDED=yes 43232 PULSE_NOT_NEEDED=yes 43233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43234 $as_echo "alsa pulse" >&6; } 43235 fi 43236 43237 43238 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43240 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43241 CUPS_NOT_NEEDED=yes 43242 ALSA_NOT_NEEDED=yes 43243 PULSE_NOT_NEEDED=yes 43244 X11_NOT_NEEDED=yes 43245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43246 $as_echo "alsa cups pulse x11" >&6; } 43247 fi 43248 43249 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43251 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43252 ALSA_NOT_NEEDED=yes 43253 PULSE_NOT_NEEDED=yes 43254 X11_NOT_NEEDED=yes 43255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43256 $as_echo "alsa pulse x11" >&6; } 43257 fi 43258 43259 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43261 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43262 ALSA_NOT_NEEDED=yes 43263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43264 $as_echo "alsa" >&6; } 43265 fi 43266 43267 if test "x$OPENJDK" = "xfalse"; then 43268 FREETYPE_NOT_NEEDED=yes 43269 fi 43270 43271 if test "x$SUPPORT_HEADFUL" = xno; then 43272 X11_NOT_NEEDED=yes 43273 fi 43274 43275 43276 43277 ############################################################################### 43278 # 43279 # Check for X Windows 43280 # 43281 43282 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43283 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43284 # --x-libraries for the sysroot, if that seems to be correct. 43285 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43286 if test "x$SYSROOT" != "x"; then 43287 if test "x$x_includes" = xNONE; then 43288 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43289 x_includes="$SYSROOT/usr/X11R6/include" 43290 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43291 x_includes="$SYSROOT/usr/include" 43292 fi 43293 fi 43294 if test "x$x_libraries" = xNONE; then 43295 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43296 x_libraries="$SYSROOT/usr/X11R6/lib" 43297 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43298 x_libraries="$SYSROOT/usr/lib64" 43299 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43300 x_libraries="$SYSROOT/usr/lib" 43301 fi 43302 fi 43303 fi 43304 fi 43305 43306 # Now let autoconf do it's magic 43307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43308 $as_echo_n "checking for X... " >&6; } 43309 43310 43311 # Check whether --with-x was given. 43312 if test "${with_x+set}" = set; then : 43313 withval=$with_x; 43314 fi 43315 43316 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43317 if test "x$with_x" = xno; then 43318 # The user explicitly disabled X. 43319 have_x=disabled 43320 else 43321 case $x_includes,$x_libraries in #( 43322 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43323 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43324 $as_echo_n "(cached) " >&6 43325 else 43326 # One or both of the vars are not set, and there is no cached value. 43327 ac_x_includes=no ac_x_libraries=no 43328 rm -f -r conftest.dir 43329 if mkdir conftest.dir; then 43330 cd conftest.dir 43331 cat >Imakefile <<'_ACEOF' 43332 incroot: 43333 @echo incroot='${INCROOT}' 43334 usrlibdir: 43335 @echo usrlibdir='${USRLIBDIR}' 43336 libdir: 43337 @echo libdir='${LIBDIR}' 43338 _ACEOF 43339 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43340 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43341 for ac_var in incroot usrlibdir libdir; do 43342 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43343 done 43344 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43345 for ac_extension in a so sl dylib la dll; do 43346 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43347 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43348 ac_im_usrlibdir=$ac_im_libdir; break 43349 fi 43350 done 43351 # Screen out bogus values from the imake configuration. They are 43352 # bogus both because they are the default anyway, and because 43353 # using them would break gcc on systems where it needs fixed includes. 43354 case $ac_im_incroot in 43355 /usr/include) ac_x_includes= ;; 43356 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43357 esac 43358 case $ac_im_usrlibdir in 43359 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43360 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43361 esac 43362 fi 43363 cd .. 43364 rm -f -r conftest.dir 43365 fi 43366 43367 # Standard set of common directories for X headers. 43368 # Check X11 before X11Rn because it is often a symlink to the current release. 43369 ac_x_header_dirs=' 43370 /usr/X11/include 43371 /usr/X11R7/include 43372 /usr/X11R6/include 43373 /usr/X11R5/include 43374 /usr/X11R4/include 43375 43376 /usr/include/X11 43377 /usr/include/X11R7 43378 /usr/include/X11R6 43379 /usr/include/X11R5 43380 /usr/include/X11R4 43381 43382 /usr/local/X11/include 43383 /usr/local/X11R7/include 43384 /usr/local/X11R6/include 43385 /usr/local/X11R5/include 43386 /usr/local/X11R4/include 43387 43388 /usr/local/include/X11 43389 /usr/local/include/X11R7 43390 /usr/local/include/X11R6 43391 /usr/local/include/X11R5 43392 /usr/local/include/X11R4 43393 43394 /usr/X386/include 43395 /usr/x386/include 43396 /usr/XFree86/include/X11 43397 43398 /usr/include 43399 /usr/local/include 43400 /usr/unsupported/include 43401 /usr/athena/include 43402 /usr/local/x11r5/include 43403 /usr/lpp/Xamples/include 43404 43405 /usr/openwin/include 43406 /usr/openwin/share/include' 43407 43408 if test "$ac_x_includes" = no; then 43409 # Guess where to find include files, by looking for Xlib.h. 43410 # First, try using that file with no special directory specified. 43411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43412 /* end confdefs.h. */ 43413 #include <X11/Xlib.h> 43414 _ACEOF 43415 if ac_fn_cxx_try_cpp "$LINENO"; then : 43416 # We can compile using X headers with no special include directory. 43417 ac_x_includes= 43418 else 43419 for ac_dir in $ac_x_header_dirs; do 43420 if test -r "$ac_dir/X11/Xlib.h"; then 43421 ac_x_includes=$ac_dir 43422 break 43423 fi 43424 done 43425 fi 43426 rm -f conftest.err conftest.i conftest.$ac_ext 43427 fi # $ac_x_includes = no 43428 43429 if test "$ac_x_libraries" = no; then 43430 # Check for the libraries. 43431 # See if we find them without any special options. 43432 # Don't add to $LIBS permanently. 43433 ac_save_LIBS=$LIBS 43434 LIBS="-lX11 $LIBS" 43435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43436 /* end confdefs.h. */ 43437 #include <X11/Xlib.h> 43438 int 43439 main () 43440 { 43441 XrmInitialize () 43442 ; 43443 return 0; 43444 } 43445 _ACEOF 43446 if ac_fn_cxx_try_link "$LINENO"; then : 43447 LIBS=$ac_save_LIBS 43448 # We can link X programs with no special library path. 43449 ac_x_libraries= 43450 else 43451 LIBS=$ac_save_LIBS 43452 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43453 do 43454 # Don't even attempt the hair of trying to link an X program! 43455 for ac_extension in a so sl dylib la dll; do 43456 if test -r "$ac_dir/libX11.$ac_extension"; then 43457 ac_x_libraries=$ac_dir 43458 break 2 43459 fi 43460 done 43461 done 43462 fi 43463 rm -f core conftest.err conftest.$ac_objext \ 43464 conftest$ac_exeext conftest.$ac_ext 43465 fi # $ac_x_libraries = no 43466 43467 case $ac_x_includes,$ac_x_libraries in #( 43468 no,* | *,no | *\'*) 43469 # Didn't find X, or a directory has "'" in its name. 43470 ac_cv_have_x="have_x=no";; #( 43471 *) 43472 # Record where we found X for the cache. 43473 ac_cv_have_x="have_x=yes\ 43474 ac_x_includes='$ac_x_includes'\ 43475 ac_x_libraries='$ac_x_libraries'" 43476 esac 43477 fi 43478 ;; #( 43479 *) have_x=yes;; 43480 esac 43481 eval "$ac_cv_have_x" 43482 fi # $with_x != no 43483 43484 if test "$have_x" != yes; then 43485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43486 $as_echo "$have_x" >&6; } 43487 no_x=yes 43488 else 43489 # If each of the values was on the command line, it overrides each guess. 43490 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43491 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43492 # Update the cache value to reflect the command line values. 43493 ac_cv_have_x="have_x=yes\ 43494 ac_x_includes='$x_includes'\ 43495 ac_x_libraries='$x_libraries'" 43496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43497 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43498 fi 43499 43500 if test "$no_x" = yes; then 43501 # Not all programs may use this symbol, but it does not hurt to define it. 43502 43503 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43504 43505 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43506 else 43507 if test -n "$x_includes"; then 43508 X_CFLAGS="$X_CFLAGS -I$x_includes" 43509 fi 43510 43511 # It would also be nice to do this for all -L options, not just this one. 43512 if test -n "$x_libraries"; then 43513 X_LIBS="$X_LIBS -L$x_libraries" 43514 # For Solaris; some versions of Sun CC require a space after -R and 43515 # others require no space. Words are not sufficient . . . . 43516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43517 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43518 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43519 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43520 ac_cxx_werror_flag=yes 43521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43522 /* end confdefs.h. */ 43523 43524 int 43525 main () 43526 { 43527 43528 ; 43529 return 0; 43530 } 43531 _ACEOF 43532 if ac_fn_cxx_try_link "$LINENO"; then : 43533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43534 $as_echo "no" >&6; } 43535 X_LIBS="$X_LIBS -R$x_libraries" 43536 else 43537 LIBS="$ac_xsave_LIBS -R $x_libraries" 43538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43539 /* end confdefs.h. */ 43540 43541 int 43542 main () 43543 { 43544 43545 ; 43546 return 0; 43547 } 43548 _ACEOF 43549 if ac_fn_cxx_try_link "$LINENO"; then : 43550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43551 $as_echo "yes" >&6; } 43552 X_LIBS="$X_LIBS -R $x_libraries" 43553 else 43554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43555 $as_echo "neither works" >&6; } 43556 fi 43557 rm -f core conftest.err conftest.$ac_objext \ 43558 conftest$ac_exeext conftest.$ac_ext 43559 fi 43560 rm -f core conftest.err conftest.$ac_objext \ 43561 conftest$ac_exeext conftest.$ac_ext 43562 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43563 LIBS=$ac_xsave_LIBS 43564 fi 43565 43566 # Check for system-dependent libraries X programs must link with. 43567 # Do this before checking for the system-independent R6 libraries 43568 # (-lICE), since we may need -lsocket or whatever for X linking. 43569 43570 if test "$ISC" = yes; then 43571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43572 else 43573 # Martyn Johnson says this is needed for Ultrix, if the X 43574 # libraries were built with DECnet support. And Karl Berry says 43575 # the Alpha needs dnet_stub (dnet does not exist). 43576 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43578 /* end confdefs.h. */ 43579 43580 /* Override any GCC internal prototype to avoid an error. 43581 Use char because int might match the return type of a GCC 43582 builtin and then its argument prototype would still apply. */ 43583 #ifdef __cplusplus 43584 extern "C" 43585 #endif 43586 char XOpenDisplay (); 43587 int 43588 main () 43589 { 43590 return XOpenDisplay (); 43591 ; 43592 return 0; 43593 } 43594 _ACEOF 43595 if ac_fn_cxx_try_link "$LINENO"; then : 43596 43597 else 43598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43599 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43600 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43601 $as_echo_n "(cached) " >&6 43602 else 43603 ac_check_lib_save_LIBS=$LIBS 43604 LIBS="-ldnet $LIBS" 43605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43606 /* end confdefs.h. */ 43607 43608 /* Override any GCC internal prototype to avoid an error. 43609 Use char because int might match the return type of a GCC 43610 builtin and then its argument prototype would still apply. */ 43611 #ifdef __cplusplus 43612 extern "C" 43613 #endif 43614 char dnet_ntoa (); 43615 int 43616 main () 43617 { 43618 return dnet_ntoa (); 43619 ; 43620 return 0; 43621 } 43622 _ACEOF 43623 if ac_fn_cxx_try_link "$LINENO"; then : 43624 ac_cv_lib_dnet_dnet_ntoa=yes 43625 else 43626 ac_cv_lib_dnet_dnet_ntoa=no 43627 fi 43628 rm -f core conftest.err conftest.$ac_objext \ 43629 conftest$ac_exeext conftest.$ac_ext 43630 LIBS=$ac_check_lib_save_LIBS 43631 fi 43632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43633 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43634 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43635 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43636 fi 43637 43638 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43640 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43641 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43642 $as_echo_n "(cached) " >&6 43643 else 43644 ac_check_lib_save_LIBS=$LIBS 43645 LIBS="-ldnet_stub $LIBS" 43646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43647 /* end confdefs.h. */ 43648 43649 /* Override any GCC internal prototype to avoid an error. 43650 Use char because int might match the return type of a GCC 43651 builtin and then its argument prototype would still apply. */ 43652 #ifdef __cplusplus 43653 extern "C" 43654 #endif 43655 char dnet_ntoa (); 43656 int 43657 main () 43658 { 43659 return dnet_ntoa (); 43660 ; 43661 return 0; 43662 } 43663 _ACEOF 43664 if ac_fn_cxx_try_link "$LINENO"; then : 43665 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43666 else 43667 ac_cv_lib_dnet_stub_dnet_ntoa=no 43668 fi 43669 rm -f core conftest.err conftest.$ac_objext \ 43670 conftest$ac_exeext conftest.$ac_ext 43671 LIBS=$ac_check_lib_save_LIBS 43672 fi 43673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43674 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43675 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43677 fi 43678 43679 fi 43680 fi 43681 rm -f core conftest.err conftest.$ac_objext \ 43682 conftest$ac_exeext conftest.$ac_ext 43683 LIBS="$ac_xsave_LIBS" 43684 43685 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43686 # to get the SysV transport functions. 43687 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43688 # needs -lnsl. 43689 # The nsl library prevents programs from opening the X display 43690 # on Irix 5.2, according to T.E. Dickey. 43691 # The functions gethostbyname, getservbyname, and inet_addr are 43692 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43693 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43694 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43695 43696 fi 43697 43698 if test $ac_cv_func_gethostbyname = no; then 43699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43700 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43701 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43702 $as_echo_n "(cached) " >&6 43703 else 43704 ac_check_lib_save_LIBS=$LIBS 43705 LIBS="-lnsl $LIBS" 43706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43707 /* end confdefs.h. */ 43708 43709 /* Override any GCC internal prototype to avoid an error. 43710 Use char because int might match the return type of a GCC 43711 builtin and then its argument prototype would still apply. */ 43712 #ifdef __cplusplus 43713 extern "C" 43714 #endif 43715 char gethostbyname (); 43716 int 43717 main () 43718 { 43719 return gethostbyname (); 43720 ; 43721 return 0; 43722 } 43723 _ACEOF 43724 if ac_fn_cxx_try_link "$LINENO"; then : 43725 ac_cv_lib_nsl_gethostbyname=yes 43726 else 43727 ac_cv_lib_nsl_gethostbyname=no 43728 fi 43729 rm -f core conftest.err conftest.$ac_objext \ 43730 conftest$ac_exeext conftest.$ac_ext 43731 LIBS=$ac_check_lib_save_LIBS 43732 fi 43733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43734 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43735 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43736 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43737 fi 43738 43739 if test $ac_cv_lib_nsl_gethostbyname = no; then 43740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43741 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43742 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43743 $as_echo_n "(cached) " >&6 43744 else 43745 ac_check_lib_save_LIBS=$LIBS 43746 LIBS="-lbsd $LIBS" 43747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43748 /* end confdefs.h. */ 43749 43750 /* Override any GCC internal prototype to avoid an error. 43751 Use char because int might match the return type of a GCC 43752 builtin and then its argument prototype would still apply. */ 43753 #ifdef __cplusplus 43754 extern "C" 43755 #endif 43756 char gethostbyname (); 43757 int 43758 main () 43759 { 43760 return gethostbyname (); 43761 ; 43762 return 0; 43763 } 43764 _ACEOF 43765 if ac_fn_cxx_try_link "$LINENO"; then : 43766 ac_cv_lib_bsd_gethostbyname=yes 43767 else 43768 ac_cv_lib_bsd_gethostbyname=no 43769 fi 43770 rm -f core conftest.err conftest.$ac_objext \ 43771 conftest$ac_exeext conftest.$ac_ext 43772 LIBS=$ac_check_lib_save_LIBS 43773 fi 43774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43775 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43776 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43778 fi 43779 43780 fi 43781 fi 43782 43783 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43784 # socket/setsockopt and other routines are undefined under SCO ODT 43785 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43786 # on later versions), says Simon Leinen: it contains gethostby* 43787 # variants that don't use the name server (or something). -lsocket 43788 # must be given before -lnsl if both are needed. We assume that 43789 # if connect needs -lnsl, so does gethostbyname. 43790 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43791 if test "x$ac_cv_func_connect" = xyes; then : 43792 43793 fi 43794 43795 if test $ac_cv_func_connect = no; then 43796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43797 $as_echo_n "checking for connect in -lsocket... " >&6; } 43798 if ${ac_cv_lib_socket_connect+:} false; then : 43799 $as_echo_n "(cached) " >&6 43800 else 43801 ac_check_lib_save_LIBS=$LIBS 43802 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43804 /* end confdefs.h. */ 43805 43806 /* Override any GCC internal prototype to avoid an error. 43807 Use char because int might match the return type of a GCC 43808 builtin and then its argument prototype would still apply. */ 43809 #ifdef __cplusplus 43810 extern "C" 43811 #endif 43812 char connect (); 43813 int 43814 main () 43815 { 43816 return connect (); 43817 ; 43818 return 0; 43819 } 43820 _ACEOF 43821 if ac_fn_cxx_try_link "$LINENO"; then : 43822 ac_cv_lib_socket_connect=yes 43823 else 43824 ac_cv_lib_socket_connect=no 43825 fi 43826 rm -f core conftest.err conftest.$ac_objext \ 43827 conftest$ac_exeext conftest.$ac_ext 43828 LIBS=$ac_check_lib_save_LIBS 43829 fi 43830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43831 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43832 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43834 fi 43835 43836 fi 43837 43838 # Guillermo Gomez says -lposix is necessary on A/UX. 43839 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43840 if test "x$ac_cv_func_remove" = xyes; then : 43841 43842 fi 43843 43844 if test $ac_cv_func_remove = no; then 43845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43846 $as_echo_n "checking for remove in -lposix... " >&6; } 43847 if ${ac_cv_lib_posix_remove+:} false; then : 43848 $as_echo_n "(cached) " >&6 43849 else 43850 ac_check_lib_save_LIBS=$LIBS 43851 LIBS="-lposix $LIBS" 43852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43853 /* end confdefs.h. */ 43854 43855 /* Override any GCC internal prototype to avoid an error. 43856 Use char because int might match the return type of a GCC 43857 builtin and then its argument prototype would still apply. */ 43858 #ifdef __cplusplus 43859 extern "C" 43860 #endif 43861 char remove (); 43862 int 43863 main () 43864 { 43865 return remove (); 43866 ; 43867 return 0; 43868 } 43869 _ACEOF 43870 if ac_fn_cxx_try_link "$LINENO"; then : 43871 ac_cv_lib_posix_remove=yes 43872 else 43873 ac_cv_lib_posix_remove=no 43874 fi 43875 rm -f core conftest.err conftest.$ac_objext \ 43876 conftest$ac_exeext conftest.$ac_ext 43877 LIBS=$ac_check_lib_save_LIBS 43878 fi 43879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43880 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43881 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43883 fi 43884 43885 fi 43886 43887 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43888 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43889 if test "x$ac_cv_func_shmat" = xyes; then : 43890 43891 fi 43892 43893 if test $ac_cv_func_shmat = no; then 43894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43895 $as_echo_n "checking for shmat in -lipc... " >&6; } 43896 if ${ac_cv_lib_ipc_shmat+:} false; then : 43897 $as_echo_n "(cached) " >&6 43898 else 43899 ac_check_lib_save_LIBS=$LIBS 43900 LIBS="-lipc $LIBS" 43901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43902 /* end confdefs.h. */ 43903 43904 /* Override any GCC internal prototype to avoid an error. 43905 Use char because int might match the return type of a GCC 43906 builtin and then its argument prototype would still apply. */ 43907 #ifdef __cplusplus 43908 extern "C" 43909 #endif 43910 char shmat (); 43911 int 43912 main () 43913 { 43914 return shmat (); 43915 ; 43916 return 0; 43917 } 43918 _ACEOF 43919 if ac_fn_cxx_try_link "$LINENO"; then : 43920 ac_cv_lib_ipc_shmat=yes 43921 else 43922 ac_cv_lib_ipc_shmat=no 43923 fi 43924 rm -f core conftest.err conftest.$ac_objext \ 43925 conftest$ac_exeext conftest.$ac_ext 43926 LIBS=$ac_check_lib_save_LIBS 43927 fi 43928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43929 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43930 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43932 fi 43933 43934 fi 43935 fi 43936 43937 # Check for libraries that X11R6 Xt/Xaw programs need. 43938 ac_save_LDFLAGS=$LDFLAGS 43939 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43940 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43941 # check for ICE first), but we must link in the order -lSM -lICE or 43942 # we get undefined symbols. So assume we have SM if we have ICE. 43943 # These have to be linked with before -lX11, unlike the other 43944 # libraries we check for below, so use a different variable. 43945 # John Interrante, Karl Berry 43946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43947 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43948 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43949 $as_echo_n "(cached) " >&6 43950 else 43951 ac_check_lib_save_LIBS=$LIBS 43952 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43954 /* end confdefs.h. */ 43955 43956 /* Override any GCC internal prototype to avoid an error. 43957 Use char because int might match the return type of a GCC 43958 builtin and then its argument prototype would still apply. */ 43959 #ifdef __cplusplus 43960 extern "C" 43961 #endif 43962 char IceConnectionNumber (); 43963 int 43964 main () 43965 { 43966 return IceConnectionNumber (); 43967 ; 43968 return 0; 43969 } 43970 _ACEOF 43971 if ac_fn_cxx_try_link "$LINENO"; then : 43972 ac_cv_lib_ICE_IceConnectionNumber=yes 43973 else 43974 ac_cv_lib_ICE_IceConnectionNumber=no 43975 fi 43976 rm -f core conftest.err conftest.$ac_objext \ 43977 conftest$ac_exeext conftest.$ac_ext 43978 LIBS=$ac_check_lib_save_LIBS 43979 fi 43980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43981 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43982 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43983 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43984 fi 43985 43986 LDFLAGS=$ac_save_LDFLAGS 43987 43988 fi 43989 43990 43991 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43992 # this doesn't make sense so we remove it. 43993 if test "x$COMPILE_TYPE" = xcross; then 43994 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43995 fi 43996 43997 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43998 43999 # Print a helpful message on how to acquire the necessary build dependency. 44000 # x11 is the help tag: freetype, cups, pulse, alsa etc 44001 MISSING_DEPENDENCY=x11 44002 44003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44004 cygwin_help $MISSING_DEPENDENCY 44005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44006 msys_help $MISSING_DEPENDENCY 44007 else 44008 PKGHANDLER_COMMAND= 44009 44010 case $PKGHANDLER in 44011 apt-get) 44012 apt_help $MISSING_DEPENDENCY ;; 44013 yum) 44014 yum_help $MISSING_DEPENDENCY ;; 44015 port) 44016 port_help $MISSING_DEPENDENCY ;; 44017 pkgutil) 44018 pkgutil_help $MISSING_DEPENDENCY ;; 44019 pkgadd) 44020 pkgadd_help $MISSING_DEPENDENCY ;; 44021 esac 44022 44023 if test "x$PKGHANDLER_COMMAND" != x; then 44024 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44025 fi 44026 fi 44027 44028 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44029 fi 44030 44031 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44032 OPENWIN_HOME="/usr/openwin" 44033 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44034 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44035 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44036 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44037 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44038 fi 44039 44040 ac_ext=c 44041 ac_cpp='$CPP $CPPFLAGS' 44042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44044 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44045 44046 OLD_CFLAGS="$CFLAGS" 44047 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44048 44049 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44050 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44051 do : 44052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44054 # include <X11/Xlib.h> 44055 # include <X11/Xutil.h> 44056 44057 44058 " 44059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44060 cat >>confdefs.h <<_ACEOF 44061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44062 _ACEOF 44063 X11_A_OK=yes 44064 else 44065 X11_A_OK=no; break 44066 fi 44067 44068 done 44069 44070 44071 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44072 # defined in libawt_xawt. 44073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44074 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44076 /* end confdefs.h. */ 44077 #include <X11/extensions/Xrender.h> 44078 int 44079 main () 44080 { 44081 XLinearGradient x; 44082 ; 44083 return 0; 44084 } 44085 _ACEOF 44086 if ac_fn_c_try_compile "$LINENO"; then : 44087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44088 $as_echo "yes" >&6; } 44089 else 44090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44091 $as_echo "no" >&6; } 44092 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44093 fi 44094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44095 44096 CFLAGS="$OLD_CFLAGS" 44097 ac_ext=cpp 44098 ac_cpp='$CXXCPP $CPPFLAGS' 44099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44102 44103 44104 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 44105 44106 # Print a helpful message on how to acquire the necessary build dependency. 44107 # x11 is the help tag: freetype, cups, pulse, alsa etc 44108 MISSING_DEPENDENCY=x11 44109 44110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44111 cygwin_help $MISSING_DEPENDENCY 44112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44113 msys_help $MISSING_DEPENDENCY 44114 else 44115 PKGHANDLER_COMMAND= 44116 44117 case $PKGHANDLER in 44118 apt-get) 44119 apt_help $MISSING_DEPENDENCY ;; 44120 yum) 44121 yum_help $MISSING_DEPENDENCY ;; 44122 port) 44123 port_help $MISSING_DEPENDENCY ;; 44124 pkgutil) 44125 pkgutil_help $MISSING_DEPENDENCY ;; 44126 pkgadd) 44127 pkgadd_help $MISSING_DEPENDENCY ;; 44128 esac 44129 44130 if test "x$PKGHANDLER_COMMAND" != x; then 44131 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44132 fi 44133 fi 44134 44135 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44136 fi 44137 44138 44139 44140 44141 44142 44143 ############################################################################### 44144 # 44145 # The common unix printing system cups is used to print from java. 44146 # 44147 44148 # Check whether --with-cups was given. 44149 if test "${with_cups+set}" = set; then : 44150 withval=$with_cups; 44151 fi 44152 44153 44154 # Check whether --with-cups-include was given. 44155 if test "${with_cups_include+set}" = set; then : 44156 withval=$with_cups_include; 44157 fi 44158 44159 44160 if test "x$CUPS_NOT_NEEDED" = xyes; then 44161 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44163 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44164 fi 44165 CUPS_CFLAGS= 44166 else 44167 CUPS_FOUND=no 44168 44169 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44170 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44171 fi 44172 44173 if test "x${with_cups}" != x; then 44174 CUPS_CFLAGS="-I${with_cups}/include" 44175 CUPS_FOUND=yes 44176 fi 44177 if test "x${with_cups_include}" != x; then 44178 CUPS_CFLAGS="-I${with_cups_include}" 44179 CUPS_FOUND=yes 44180 fi 44181 if test "x$CUPS_FOUND" = xno; then 44182 44183 44184 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44185 # Source the builddeps file again, to make sure it uses the latest variables! 44186 . $builddepsfile 44187 # Look for a target and build machine specific resource! 44188 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44189 if test "x$resource" = x; then 44190 # Ok, lets instead look for a target specific resource 44191 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44192 fi 44193 if test "x$resource" = x; then 44194 # Ok, lets instead look for a build specific resource 44195 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44196 fi 44197 if test "x$resource" = x; then 44198 # Ok, lets instead look for a generic resource 44199 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44200 resource=${builddep_cups} 44201 fi 44202 if test "x$resource" != x; then 44203 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44204 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44205 # If the resource in the builddeps.conf file is an existing directory, 44206 # for example /java/linux/cups 44207 if test -d ${resource}; then 44208 depdir=${resource} 44209 else 44210 44211 # cups is for example mymodule 44212 # $resource is for example libs/general/libmymod_1_2_3.zip 44213 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44214 # $with_builddeps_dir is for example /localhome/builddeps 44215 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44216 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44217 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44218 filename=`basename $resource` 44219 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44220 filebase=${filename%%.*} 44221 extension=${filename#*.} 44222 installdir=$with_builddeps_dir/$filebase 44223 if test ! -f $installdir/$filename.unpacked; then 44224 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44225 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44226 if test ! -d $installdir; then 44227 mkdir -p $installdir 44228 fi 44229 if test ! -d $installdir; then 44230 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44231 fi 44232 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44233 touch $tmpfile 44234 if test ! -f $tmpfile; then 44235 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44236 fi 44237 44238 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44239 # $tmpfile is the local file name for the downloaded file. 44240 VALID_TOOL=no 44241 if test "x$BDEPS_FTP" = xwget; then 44242 VALID_TOOL=yes 44243 wget -O $tmpfile $with_builddeps_server/$resource 44244 fi 44245 if test "x$BDEPS_FTP" = xlftp; then 44246 VALID_TOOL=yes 44247 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44248 fi 44249 if test "x$BDEPS_FTP" = xftp; then 44250 VALID_TOOL=yes 44251 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44252 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44253 FTPUSERPWD=${FTPSERVER%%@*} 44254 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44255 FTPUSER=${userpwd%%:*} 44256 FTPPWD=${userpwd#*@} 44257 FTPSERVER=${FTPSERVER#*@} 44258 else 44259 FTPUSER=ftp 44260 FTPPWD=ftp 44261 fi 44262 # the "pass" command does not work on some 44263 # ftp clients (read ftp.exe) but if it works, 44264 # passive mode is better! 44265 ( \ 44266 echo "user $FTPUSER $FTPPWD" ; \ 44267 echo "pass" ; \ 44268 echo "bin" ; \ 44269 echo "get $FTPPATH $tmpfile" ; \ 44270 ) | ftp -in $FTPSERVER 44271 fi 44272 if test "x$VALID_TOOL" != xyes; then 44273 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44274 fi 44275 44276 mv $tmpfile $installdir/$filename 44277 if test ! -s $installdir/$filename; then 44278 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44279 fi 44280 case "$extension" in 44281 zip) echo "Unzipping $installdir/$filename..." 44282 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44283 ;; 44284 tar.gz) echo "Untaring $installdir/$filename..." 44285 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44286 ;; 44287 tgz) echo "Untaring $installdir/$filename..." 44288 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44289 ;; 44290 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44291 ;; 44292 esac 44293 fi 44294 if test -f $installdir/$filename.unpacked; then 44295 depdir=$installdir 44296 fi 44297 44298 fi 44299 # Source the builddeps file again, because in the previous command, the depdir 44300 # was updated to point at the current build dependency install directory. 44301 . $builddepsfile 44302 # Now extract variables from the builddeps.conf files. 44303 theroot=${builddep_cups_ROOT} 44304 thecflags=${builddep_cups_CFLAGS} 44305 thelibs=${builddep_cups_LIBS} 44306 if test "x$depdir" = x; then 44307 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44308 fi 44309 CUPS=$depdir 44310 if test "x$theroot" != x; then 44311 CUPS="$theroot" 44312 fi 44313 if test "x$thecflags" != x; then 44314 CUPS_CFLAGS="$thecflags" 44315 fi 44316 if test "x$thelibs" != x; then 44317 CUPS_LIBS="$thelibs" 44318 fi 44319 CUPS_FOUND=yes 44320 44321 fi 44322 44323 fi 44324 44325 fi 44326 if test "x$CUPS_FOUND" = xno; then 44327 # Are the cups headers installed in the default /usr/include location? 44328 for ac_header in cups/cups.h cups/ppd.h 44329 do : 44330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44331 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44333 cat >>confdefs.h <<_ACEOF 44334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44335 _ACEOF 44336 44337 CUPS_FOUND=yes 44338 CUPS_CFLAGS= 44339 DEFAULT_CUPS=yes 44340 44341 44342 fi 44343 44344 done 44345 44346 fi 44347 if test "x$CUPS_FOUND" = xno; then 44348 # Getting nervous now? Lets poke around for standard Solaris third-party 44349 # package installation locations. 44350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44351 $as_echo_n "checking for cups headers... " >&6; } 44352 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44353 # An SFW package seems to be installed! 44354 CUPS_FOUND=yes 44355 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44356 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44357 # A CSW package seems to be installed! 44358 CUPS_FOUND=yes 44359 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44360 fi 44361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44362 $as_echo "$CUPS_FOUND" >&6; } 44363 fi 44364 if test "x$CUPS_FOUND" = xno; then 44365 44366 # Print a helpful message on how to acquire the necessary build dependency. 44367 # cups is the help tag: freetype, cups, pulse, alsa etc 44368 MISSING_DEPENDENCY=cups 44369 44370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44371 cygwin_help $MISSING_DEPENDENCY 44372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44373 msys_help $MISSING_DEPENDENCY 44374 else 44375 PKGHANDLER_COMMAND= 44376 44377 case $PKGHANDLER in 44378 apt-get) 44379 apt_help $MISSING_DEPENDENCY ;; 44380 yum) 44381 yum_help $MISSING_DEPENDENCY ;; 44382 port) 44383 port_help $MISSING_DEPENDENCY ;; 44384 pkgutil) 44385 pkgutil_help $MISSING_DEPENDENCY ;; 44386 pkgadd) 44387 pkgadd_help $MISSING_DEPENDENCY ;; 44388 esac 44389 44390 if test "x$PKGHANDLER_COMMAND" != x; then 44391 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44392 fi 44393 fi 44394 44395 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44396 fi 44397 fi 44398 44399 44400 44401 44402 44403 44404 ############################################################################### 44405 # 44406 # The ubiquitous freetype library is used to render fonts. 44407 # 44408 44409 # Check whether --with-freetype was given. 44410 if test "${with_freetype+set}" = set; then : 44411 withval=$with_freetype; 44412 fi 44413 44414 44415 # Check whether --with-freetype-include was given. 44416 if test "${with_freetype_include+set}" = set; then : 44417 withval=$with_freetype_include; 44418 fi 44419 44420 44421 # Check whether --with-freetype-lib was given. 44422 if test "${with_freetype_lib+set}" = set; then : 44423 withval=$with_freetype_lib; 44424 fi 44425 44426 44427 # Check whether --with-freetype-src was given. 44428 if test "${with_freetype_src+set}" = set; then : 44429 withval=$with_freetype_src; 44430 fi 44431 44432 # Check whether --enable-freetype-bundling was given. 44433 if test "${enable_freetype_bundling+set}" = set; then : 44434 enableval=$enable_freetype_bundling; 44435 fi 44436 44437 44438 FREETYPE_CFLAGS= 44439 FREETYPE_LIBS= 44440 FREETYPE_BUNDLE_LIB_PATH= 44441 44442 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44443 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 44444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44445 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44446 fi 44447 if test "x$enable_freetype_bundling" != x; then 44448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44449 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44450 fi 44451 else 44452 # freetype is needed to build; go get it! 44453 44454 BUNDLE_FREETYPE="$enable_freetype_bundling" 44455 44456 if test "x$with_freetype_src" != x; then 44457 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44458 # Try to build freetype if --with-freetype-src was given on Windows 44459 44460 FREETYPE_SRC_PATH="$with_freetype_src" 44461 BUILD_FREETYPE=yes 44462 44463 # Check if the freetype sources are acessible.. 44464 if ! test -d $FREETYPE_SRC_PATH; then 44465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 44466 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44467 BUILD_FREETYPE=no 44468 fi 44469 # ..and contain a vc2010 project file 44470 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44471 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 44473 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44474 BUILD_FREETYPE=no 44475 fi 44476 # Now check if configure found a version of 'msbuild.exe' 44477 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44479 $as_echo "$as_me: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44480 BUILD_FREETYPE=no 44481 fi 44482 44483 # Ready to go.. 44484 if test "x$BUILD_FREETYPE" = xyes; then 44485 44486 # msbuild requires trailing slashes for output directories 44487 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44488 freetype_lib_path_unix="$freetype_lib_path" 44489 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44490 44491 unix_path="$vcxproj_path" 44492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44493 windows_path=`$CYGPATH -m "$unix_path"` 44494 vcxproj_path="$windows_path" 44495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44496 windows_path=`cmd //c echo $unix_path` 44497 vcxproj_path="$windows_path" 44498 fi 44499 44500 44501 unix_path="$freetype_lib_path" 44502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44503 windows_path=`$CYGPATH -m "$unix_path"` 44504 freetype_lib_path="$windows_path" 44505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44506 windows_path=`cmd //c echo $unix_path` 44507 freetype_lib_path="$windows_path" 44508 fi 44509 44510 44511 unix_path="$freetype_obj_path" 44512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44513 windows_path=`$CYGPATH -m "$unix_path"` 44514 freetype_obj_path="$windows_path" 44515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44516 windows_path=`cmd //c echo $unix_path` 44517 freetype_obj_path="$windows_path" 44518 fi 44519 44520 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44521 freetype_platform=x64 44522 else 44523 freetype_platform=win32 44524 fi 44525 44526 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44527 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44528 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44529 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44530 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44531 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44532 44533 # First we try to build the freetype.dll 44534 $ECHO -e "@echo off\n"\ 44535 "$MSBUILD $vcxproj_path "\ 44536 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44537 "/p:Configuration=\"Release Multithreaded\" "\ 44538 "/p:Platform=$freetype_platform "\ 44539 "/p:ConfigurationType=DynamicLibrary "\ 44540 "/p:TargetName=freetype "\ 44541 "/p:OutDir=\"$freetype_lib_path\" "\ 44542 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44543 cmd /c freetype.bat 44544 44545 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44546 # If that succeeds we also build freetype.lib 44547 $ECHO -e "@echo off\n"\ 44548 "$MSBUILD $vcxproj_path "\ 44549 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44550 "/p:Configuration=\"Release Multithreaded\" "\ 44551 "/p:Platform=$freetype_platform "\ 44552 "/p:ConfigurationType=StaticLibrary "\ 44553 "/p:TargetName=freetype "\ 44554 "/p:OutDir=\"$freetype_lib_path\" "\ 44555 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44556 cmd /c freetype.bat 44557 44558 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44559 # Once we build both, lib and dll, set freetype lib and include path appropriately 44560 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44561 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44562 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44563 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44564 else 44565 BUILD_FREETYPE=no 44566 fi 44567 else 44568 BUILD_FREETYPE=no 44569 fi 44570 fi 44571 44572 if test "x$BUILD_FREETYPE" = xyes; then 44573 # Okay, we built it. Check that it works. 44574 44575 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44576 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44577 METHOD="--with-freetype-src" 44578 44579 # First check if the files exists. 44580 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44581 # We found an arbitrary include file. That's a good sign. 44582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44583 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44584 FOUND_FREETYPE=yes 44585 44586 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44587 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44588 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44589 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44590 FOUND_FREETYPE=no 44591 else 44592 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44593 # On Windows, we will need both .lib and .dll file. 44594 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44595 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44596 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44597 FOUND_FREETYPE=no 44598 fi 44599 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44600 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44601 # Found lib in isa dir, use that instead. 44602 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44603 fi 44604 fi 44605 fi 44606 44607 if test "x$FOUND_FREETYPE" = xyes; then 44608 44609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44610 44611 # Input might be given as Windows format, start by converting to 44612 # unix format. 44613 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44614 new_path=`$CYGPATH -u "$path"` 44615 44616 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44617 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44618 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44619 # "foo.exe" is OK but "foo" is an error. 44620 # 44621 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44622 # It is also a way to make sure we got the proper file name for the real test later on. 44623 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44624 if test "x$test_shortpath" = x; then 44625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44626 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44627 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44628 fi 44629 44630 # Call helper function which possibly converts this using DOS-style short mode. 44631 # If so, the updated path is stored in $new_path. 44632 44633 input_path="$new_path" 44634 # Check if we need to convert this using DOS-style short mode. If the path 44635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44636 # take no chances and rewrite it. 44637 # Note: m4 eats our [], so we need to use [ and ] instead. 44638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44639 if test "x$has_forbidden_chars" != x; then 44640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44641 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44642 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44643 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44644 # Going to short mode and back again did indeed matter. Since short mode is 44645 # case insensitive, let's make it lowercase to improve readability. 44646 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44647 # Now convert it back to Unix-stile (cygpath) 44648 input_path=`$CYGPATH -u "$shortmode_path"` 44649 new_path="$input_path" 44650 fi 44651 fi 44652 44653 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44654 if test "x$test_cygdrive_prefix" = x; then 44655 # As a simple fix, exclude /usr/bin since it's not a real path. 44656 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44657 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44658 # a path prefixed by /cygdrive for fixpath to work. 44659 new_path="$CYGWIN_ROOT_PATH$input_path" 44660 fi 44661 fi 44662 44663 44664 if test "x$path" != "x$new_path"; then 44665 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44667 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44668 fi 44669 44670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44671 44672 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44673 has_colon=`$ECHO $path | $GREP ^.:` 44674 new_path="$path" 44675 if test "x$has_colon" = x; then 44676 # Not in mixed or Windows style, start by that. 44677 new_path=`cmd //c echo $path` 44678 fi 44679 44680 44681 input_path="$new_path" 44682 # Check if we need to convert this using DOS-style short mode. If the path 44683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44684 # take no chances and rewrite it. 44685 # Note: m4 eats our [], so we need to use [ and ] instead. 44686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44687 if test "x$has_forbidden_chars" != x; then 44688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44689 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44690 fi 44691 44692 44693 windows_path="$new_path" 44694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44695 unix_path=`$CYGPATH -u "$windows_path"` 44696 new_path="$unix_path" 44697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44699 new_path="$unix_path" 44700 fi 44701 44702 if test "x$path" != "x$new_path"; then 44703 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44705 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44706 fi 44707 44708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44710 44711 else 44712 # We're on a posix platform. Hooray! :) 44713 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44714 has_space=`$ECHO "$path" | $GREP " "` 44715 if test "x$has_space" != x; then 44716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44717 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44718 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44719 fi 44720 44721 # Use eval to expand a potential ~ 44722 eval path="$path" 44723 if test ! -f "$path" && test ! -d "$path"; then 44724 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44725 fi 44726 44727 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44728 fi 44729 44730 44731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44732 44733 # Input might be given as Windows format, start by converting to 44734 # unix format. 44735 path="$POTENTIAL_FREETYPE_LIB_PATH" 44736 new_path=`$CYGPATH -u "$path"` 44737 44738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44741 # "foo.exe" is OK but "foo" is an error. 44742 # 44743 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44744 # It is also a way to make sure we got the proper file name for the real test later on. 44745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44746 if test "x$test_shortpath" = x; then 44747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44748 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44749 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44750 fi 44751 44752 # Call helper function which possibly converts this using DOS-style short mode. 44753 # If so, the updated path is stored in $new_path. 44754 44755 input_path="$new_path" 44756 # Check if we need to convert this using DOS-style short mode. If the path 44757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44758 # take no chances and rewrite it. 44759 # Note: m4 eats our [], so we need to use [ and ] instead. 44760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44761 if test "x$has_forbidden_chars" != x; then 44762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44763 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44764 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44765 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44766 # Going to short mode and back again did indeed matter. Since short mode is 44767 # case insensitive, let's make it lowercase to improve readability. 44768 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44769 # Now convert it back to Unix-stile (cygpath) 44770 input_path=`$CYGPATH -u "$shortmode_path"` 44771 new_path="$input_path" 44772 fi 44773 fi 44774 44775 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44776 if test "x$test_cygdrive_prefix" = x; then 44777 # As a simple fix, exclude /usr/bin since it's not a real path. 44778 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44779 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44780 # a path prefixed by /cygdrive for fixpath to work. 44781 new_path="$CYGWIN_ROOT_PATH$input_path" 44782 fi 44783 fi 44784 44785 44786 if test "x$path" != "x$new_path"; then 44787 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44789 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44790 fi 44791 44792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44793 44794 path="$POTENTIAL_FREETYPE_LIB_PATH" 44795 has_colon=`$ECHO $path | $GREP ^.:` 44796 new_path="$path" 44797 if test "x$has_colon" = x; then 44798 # Not in mixed or Windows style, start by that. 44799 new_path=`cmd //c echo $path` 44800 fi 44801 44802 44803 input_path="$new_path" 44804 # Check if we need to convert this using DOS-style short mode. If the path 44805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44806 # take no chances and rewrite it. 44807 # Note: m4 eats our [], so we need to use [ and ] instead. 44808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44809 if test "x$has_forbidden_chars" != x; then 44810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44812 fi 44813 44814 44815 windows_path="$new_path" 44816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44817 unix_path=`$CYGPATH -u "$windows_path"` 44818 new_path="$unix_path" 44819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44821 new_path="$unix_path" 44822 fi 44823 44824 if test "x$path" != "x$new_path"; then 44825 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44827 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44828 fi 44829 44830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44832 44833 else 44834 # We're on a posix platform. Hooray! :) 44835 path="$POTENTIAL_FREETYPE_LIB_PATH" 44836 has_space=`$ECHO "$path" | $GREP " "` 44837 if test "x$has_space" != x; then 44838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44839 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44840 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44841 fi 44842 44843 # Use eval to expand a potential ~ 44844 eval path="$path" 44845 if test ! -f "$path" && test ! -d "$path"; then 44846 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44847 fi 44848 44849 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44850 fi 44851 44852 44853 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44855 $as_echo_n "checking for freetype includes... " >&6; } 44856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44857 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44858 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44860 $as_echo_n "checking for freetype libraries... " >&6; } 44861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44862 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44863 fi 44864 44865 if test "x$FOUND_FREETYPE" != xyes; then 44866 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44867 fi 44868 else 44869 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44870 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44871 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44872 fi 44873 else 44874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44875 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44876 fi 44877 fi 44878 44879 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44880 # User has specified settings 44881 44882 if test "x$BUNDLE_FREETYPE" = x; then 44883 # If not specified, default is to bundle freetype 44884 BUNDLE_FREETYPE=yes 44885 fi 44886 44887 if test "x$with_freetype" != x; then 44888 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44889 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44890 fi 44891 44892 # Allow --with-freetype-lib and --with-freetype-include to override 44893 if test "x$with_freetype_include" != x; then 44894 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44895 fi 44896 if test "x$with_freetype_lib" != x; then 44897 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44898 fi 44899 44900 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44901 # Okay, we got it. Check that it works. 44902 44903 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44904 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44905 METHOD="--with-freetype" 44906 44907 # First check if the files exists. 44908 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44909 # We found an arbitrary include file. That's a good sign. 44910 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44911 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44912 FOUND_FREETYPE=yes 44913 44914 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44915 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44916 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44917 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44918 FOUND_FREETYPE=no 44919 else 44920 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44921 # On Windows, we will need both .lib and .dll file. 44922 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44923 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44924 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44925 FOUND_FREETYPE=no 44926 fi 44927 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44928 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44929 # Found lib in isa dir, use that instead. 44930 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44931 fi 44932 fi 44933 fi 44934 44935 if test "x$FOUND_FREETYPE" = xyes; then 44936 44937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44938 44939 # Input might be given as Windows format, start by converting to 44940 # unix format. 44941 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44942 new_path=`$CYGPATH -u "$path"` 44943 44944 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44945 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44946 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44947 # "foo.exe" is OK but "foo" is an error. 44948 # 44949 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44950 # It is also a way to make sure we got the proper file name for the real test later on. 44951 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44952 if test "x$test_shortpath" = x; then 44953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44954 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44955 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44956 fi 44957 44958 # Call helper function which possibly converts this using DOS-style short mode. 44959 # If so, the updated path is stored in $new_path. 44960 44961 input_path="$new_path" 44962 # Check if we need to convert this using DOS-style short mode. If the path 44963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44964 # take no chances and rewrite it. 44965 # Note: m4 eats our [], so we need to use [ and ] instead. 44966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44967 if test "x$has_forbidden_chars" != x; then 44968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44969 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44970 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44971 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44972 # Going to short mode and back again did indeed matter. Since short mode is 44973 # case insensitive, let's make it lowercase to improve readability. 44974 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44975 # Now convert it back to Unix-stile (cygpath) 44976 input_path=`$CYGPATH -u "$shortmode_path"` 44977 new_path="$input_path" 44978 fi 44979 fi 44980 44981 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44982 if test "x$test_cygdrive_prefix" = x; then 44983 # As a simple fix, exclude /usr/bin since it's not a real path. 44984 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44985 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44986 # a path prefixed by /cygdrive for fixpath to work. 44987 new_path="$CYGWIN_ROOT_PATH$input_path" 44988 fi 44989 fi 44990 44991 44992 if test "x$path" != "x$new_path"; then 44993 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44994 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44995 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44996 fi 44997 44998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44999 45000 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45001 has_colon=`$ECHO $path | $GREP ^.:` 45002 new_path="$path" 45003 if test "x$has_colon" = x; then 45004 # Not in mixed or Windows style, start by that. 45005 new_path=`cmd //c echo $path` 45006 fi 45007 45008 45009 input_path="$new_path" 45010 # Check if we need to convert this using DOS-style short mode. If the path 45011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45012 # take no chances and rewrite it. 45013 # Note: m4 eats our [], so we need to use [ and ] instead. 45014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45015 if test "x$has_forbidden_chars" != x; then 45016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45017 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45018 fi 45019 45020 45021 windows_path="$new_path" 45022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45023 unix_path=`$CYGPATH -u "$windows_path"` 45024 new_path="$unix_path" 45025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45027 new_path="$unix_path" 45028 fi 45029 45030 if test "x$path" != "x$new_path"; then 45031 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45033 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45034 fi 45035 45036 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45037 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45038 45039 else 45040 # We're on a posix platform. Hooray! :) 45041 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45042 has_space=`$ECHO "$path" | $GREP " "` 45043 if test "x$has_space" != x; then 45044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45045 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45046 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45047 fi 45048 45049 # Use eval to expand a potential ~ 45050 eval path="$path" 45051 if test ! -f "$path" && test ! -d "$path"; then 45052 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45053 fi 45054 45055 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45056 fi 45057 45058 45059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45060 45061 # Input might be given as Windows format, start by converting to 45062 # unix format. 45063 path="$POTENTIAL_FREETYPE_LIB_PATH" 45064 new_path=`$CYGPATH -u "$path"` 45065 45066 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45067 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45068 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45069 # "foo.exe" is OK but "foo" is an error. 45070 # 45071 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45072 # It is also a way to make sure we got the proper file name for the real test later on. 45073 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45074 if test "x$test_shortpath" = x; then 45075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45076 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45077 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45078 fi 45079 45080 # Call helper function which possibly converts this using DOS-style short mode. 45081 # If so, the updated path is stored in $new_path. 45082 45083 input_path="$new_path" 45084 # Check if we need to convert this using DOS-style short mode. If the path 45085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45086 # take no chances and rewrite it. 45087 # Note: m4 eats our [], so we need to use [ and ] instead. 45088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45089 if test "x$has_forbidden_chars" != x; then 45090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45091 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45092 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45093 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45094 # Going to short mode and back again did indeed matter. Since short mode is 45095 # case insensitive, let's make it lowercase to improve readability. 45096 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45097 # Now convert it back to Unix-stile (cygpath) 45098 input_path=`$CYGPATH -u "$shortmode_path"` 45099 new_path="$input_path" 45100 fi 45101 fi 45102 45103 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45104 if test "x$test_cygdrive_prefix" = x; then 45105 # As a simple fix, exclude /usr/bin since it's not a real path. 45106 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45107 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45108 # a path prefixed by /cygdrive for fixpath to work. 45109 new_path="$CYGWIN_ROOT_PATH$input_path" 45110 fi 45111 fi 45112 45113 45114 if test "x$path" != "x$new_path"; then 45115 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45117 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45118 fi 45119 45120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45121 45122 path="$POTENTIAL_FREETYPE_LIB_PATH" 45123 has_colon=`$ECHO $path | $GREP ^.:` 45124 new_path="$path" 45125 if test "x$has_colon" = x; then 45126 # Not in mixed or Windows style, start by that. 45127 new_path=`cmd //c echo $path` 45128 fi 45129 45130 45131 input_path="$new_path" 45132 # Check if we need to convert this using DOS-style short mode. If the path 45133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45134 # take no chances and rewrite it. 45135 # Note: m4 eats our [], so we need to use [ and ] instead. 45136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45137 if test "x$has_forbidden_chars" != x; then 45138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45139 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45140 fi 45141 45142 45143 windows_path="$new_path" 45144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45145 unix_path=`$CYGPATH -u "$windows_path"` 45146 new_path="$unix_path" 45147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45149 new_path="$unix_path" 45150 fi 45151 45152 if test "x$path" != "x$new_path"; then 45153 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45155 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45156 fi 45157 45158 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45159 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45160 45161 else 45162 # We're on a posix platform. Hooray! :) 45163 path="$POTENTIAL_FREETYPE_LIB_PATH" 45164 has_space=`$ECHO "$path" | $GREP " "` 45165 if test "x$has_space" != x; then 45166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45167 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45168 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45169 fi 45170 45171 # Use eval to expand a potential ~ 45172 eval path="$path" 45173 if test ! -f "$path" && test ! -d "$path"; then 45174 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45175 fi 45176 45177 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45178 fi 45179 45180 45181 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45183 $as_echo_n "checking for freetype includes... " >&6; } 45184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45185 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45186 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45188 $as_echo_n "checking for freetype libraries... " >&6; } 45189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45190 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45191 fi 45192 45193 if test "x$FOUND_FREETYPE" != xyes; then 45194 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45195 fi 45196 else 45197 # User specified only one of lib or include. This is an error. 45198 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45199 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45200 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45201 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45202 else 45203 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45204 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45205 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45206 fi 45207 fi 45208 else 45209 # User did not specify settings, but we need freetype. Try to locate it. 45210 45211 if test "x$BUNDLE_FREETYPE" = x; then 45212 # If not specified, default is to bundle freetype only on windows 45213 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45214 BUNDLE_FREETYPE=yes 45215 else 45216 BUNDLE_FREETYPE=no 45217 fi 45218 fi 45219 45220 if test "x$FOUND_FREETYPE" != xyes; then 45221 # Check builddeps 45222 45223 45224 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45225 # Source the builddeps file again, to make sure it uses the latest variables! 45226 . $builddepsfile 45227 # Look for a target and build machine specific resource! 45228 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45229 if test "x$resource" = x; then 45230 # Ok, lets instead look for a target specific resource 45231 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45232 fi 45233 if test "x$resource" = x; then 45234 # Ok, lets instead look for a build specific resource 45235 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45236 fi 45237 if test "x$resource" = x; then 45238 # Ok, lets instead look for a generic resource 45239 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45240 resource=${builddep_freetype2} 45241 fi 45242 if test "x$resource" != x; then 45243 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45244 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45245 # If the resource in the builddeps.conf file is an existing directory, 45246 # for example /java/linux/cups 45247 if test -d ${resource}; then 45248 depdir=${resource} 45249 else 45250 45251 # freetype2 is for example mymodule 45252 # $resource is for example libs/general/libmymod_1_2_3.zip 45253 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45254 # $with_builddeps_dir is for example /localhome/builddeps 45255 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45256 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45257 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45258 filename=`basename $resource` 45259 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45260 filebase=${filename%%.*} 45261 extension=${filename#*.} 45262 installdir=$with_builddeps_dir/$filebase 45263 if test ! -f $installdir/$filename.unpacked; then 45264 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45265 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45266 if test ! -d $installdir; then 45267 mkdir -p $installdir 45268 fi 45269 if test ! -d $installdir; then 45270 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45271 fi 45272 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45273 touch $tmpfile 45274 if test ! -f $tmpfile; then 45275 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45276 fi 45277 45278 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45279 # $tmpfile is the local file name for the downloaded file. 45280 VALID_TOOL=no 45281 if test "x$BDEPS_FTP" = xwget; then 45282 VALID_TOOL=yes 45283 wget -O $tmpfile $with_builddeps_server/$resource 45284 fi 45285 if test "x$BDEPS_FTP" = xlftp; then 45286 VALID_TOOL=yes 45287 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45288 fi 45289 if test "x$BDEPS_FTP" = xftp; then 45290 VALID_TOOL=yes 45291 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45292 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45293 FTPUSERPWD=${FTPSERVER%%@*} 45294 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45295 FTPUSER=${userpwd%%:*} 45296 FTPPWD=${userpwd#*@} 45297 FTPSERVER=${FTPSERVER#*@} 45298 else 45299 FTPUSER=ftp 45300 FTPPWD=ftp 45301 fi 45302 # the "pass" command does not work on some 45303 # ftp clients (read ftp.exe) but if it works, 45304 # passive mode is better! 45305 ( \ 45306 echo "user $FTPUSER $FTPPWD" ; \ 45307 echo "pass" ; \ 45308 echo "bin" ; \ 45309 echo "get $FTPPATH $tmpfile" ; \ 45310 ) | ftp -in $FTPSERVER 45311 fi 45312 if test "x$VALID_TOOL" != xyes; then 45313 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45314 fi 45315 45316 mv $tmpfile $installdir/$filename 45317 if test ! -s $installdir/$filename; then 45318 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45319 fi 45320 case "$extension" in 45321 zip) echo "Unzipping $installdir/$filename..." 45322 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45323 ;; 45324 tar.gz) echo "Untaring $installdir/$filename..." 45325 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45326 ;; 45327 tgz) echo "Untaring $installdir/$filename..." 45328 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45329 ;; 45330 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45331 ;; 45332 esac 45333 fi 45334 if test -f $installdir/$filename.unpacked; then 45335 depdir=$installdir 45336 fi 45337 45338 fi 45339 # Source the builddeps file again, because in the previous command, the depdir 45340 # was updated to point at the current build dependency install directory. 45341 . $builddepsfile 45342 # Now extract variables from the builddeps.conf files. 45343 theroot=${builddep_freetype2_ROOT} 45344 thecflags=${builddep_freetype2_CFLAGS} 45345 thelibs=${builddep_freetype2_LIBS} 45346 if test "x$depdir" = x; then 45347 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45348 fi 45349 FREETYPE=$depdir 45350 if test "x$theroot" != x; then 45351 FREETYPE="$theroot" 45352 fi 45353 if test "x$thecflags" != x; then 45354 FREETYPE_CFLAGS="$thecflags" 45355 fi 45356 if test "x$thelibs" != x; then 45357 FREETYPE_LIBS="$thelibs" 45358 fi 45359 FOUND_FREETYPE=yes 45360 else FOUND_FREETYPE=no 45361 45362 fi 45363 else FOUND_FREETYPE=no 45364 45365 fi 45366 45367 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45368 if test "x$FOUND_FREETYPE" = xyes; then 45369 if test "x$BUNDLE_FREETYPE" = xyes; then 45370 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45371 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45372 FOUND_FREETYPE=no 45373 else 45374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45375 $as_echo_n "checking for freetype... " >&6; } 45376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45377 $as_echo "yes (using builddeps)" >&6; } 45378 fi 45379 fi 45380 fi 45381 45382 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45383 if test "x$SYSROOT" = x; then 45384 if test "x$FOUND_FREETYPE" != xyes; then 45385 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45386 if test "x$PKG_CONFIG" != x; then 45387 45388 pkg_failed=no 45389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45390 $as_echo_n "checking for FREETYPE... " >&6; } 45391 45392 if test -n "$FREETYPE_CFLAGS"; then 45393 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45394 elif test -n "$PKG_CONFIG"; then 45395 if test -n "$PKG_CONFIG" && \ 45396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45397 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45398 ac_status=$? 45399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45400 test $ac_status = 0; }; then 45401 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45402 else 45403 pkg_failed=yes 45404 fi 45405 else 45406 pkg_failed=untried 45407 fi 45408 if test -n "$FREETYPE_LIBS"; then 45409 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45410 elif test -n "$PKG_CONFIG"; then 45411 if test -n "$PKG_CONFIG" && \ 45412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45413 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45414 ac_status=$? 45415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45416 test $ac_status = 0; }; then 45417 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45418 else 45419 pkg_failed=yes 45420 fi 45421 else 45422 pkg_failed=untried 45423 fi 45424 45425 45426 45427 if test $pkg_failed = yes; then 45428 45429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45430 _pkg_short_errors_supported=yes 45431 else 45432 _pkg_short_errors_supported=no 45433 fi 45434 if test $_pkg_short_errors_supported = yes; then 45435 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45436 else 45437 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45438 fi 45439 # Put the nasty error message in config.log where it belongs 45440 echo "$FREETYPE_PKG_ERRORS" >&5 45441 45442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45443 $as_echo "no" >&6; } 45444 FOUND_FREETYPE=no 45445 elif test $pkg_failed = untried; then 45446 FOUND_FREETYPE=no 45447 else 45448 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45449 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45451 $as_echo "yes" >&6; } 45452 FOUND_FREETYPE=yes 45453 fi 45454 if test "x$FOUND_FREETYPE" = xyes; then 45455 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45456 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45457 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45458 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45459 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45460 fi 45461 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45462 if test "x$BUNDLE_FREETYPE" = xyes; then 45463 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45464 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45465 FOUND_FREETYPE=no 45466 else 45467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45468 $as_echo_n "checking for freetype... " >&6; } 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45470 $as_echo "yes (using pkg-config)" >&6; } 45471 fi 45472 fi 45473 fi 45474 fi 45475 fi 45476 45477 if test "x$FOUND_FREETYPE" != xyes; then 45478 # Check in well-known locations 45479 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45480 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45481 45482 windows_path="$FREETYPE_BASE_DIR" 45483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45484 unix_path=`$CYGPATH -u "$windows_path"` 45485 FREETYPE_BASE_DIR="$unix_path" 45486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45488 FREETYPE_BASE_DIR="$unix_path" 45489 fi 45490 45491 45492 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45493 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45494 METHOD="well-known location" 45495 45496 # First check if the files exists. 45497 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45498 # We found an arbitrary include file. That's a good sign. 45499 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45500 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45501 FOUND_FREETYPE=yes 45502 45503 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45504 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45505 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45506 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45507 FOUND_FREETYPE=no 45508 else 45509 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45510 # On Windows, we will need both .lib and .dll file. 45511 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45512 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45513 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45514 FOUND_FREETYPE=no 45515 fi 45516 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45517 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45518 # Found lib in isa dir, use that instead. 45519 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45520 fi 45521 fi 45522 fi 45523 45524 if test "x$FOUND_FREETYPE" = xyes; then 45525 45526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45527 45528 # Input might be given as Windows format, start by converting to 45529 # unix format. 45530 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45531 new_path=`$CYGPATH -u "$path"` 45532 45533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45536 # "foo.exe" is OK but "foo" is an error. 45537 # 45538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45539 # It is also a way to make sure we got the proper file name for the real test later on. 45540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45541 if test "x$test_shortpath" = x; then 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45543 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45544 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45545 fi 45546 45547 # Call helper function which possibly converts this using DOS-style short mode. 45548 # If so, the updated path is stored in $new_path. 45549 45550 input_path="$new_path" 45551 # Check if we need to convert this using DOS-style short mode. If the path 45552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45553 # take no chances and rewrite it. 45554 # Note: m4 eats our [], so we need to use [ and ] instead. 45555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45556 if test "x$has_forbidden_chars" != x; then 45557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45561 # Going to short mode and back again did indeed matter. Since short mode is 45562 # case insensitive, let's make it lowercase to improve readability. 45563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45564 # Now convert it back to Unix-stile (cygpath) 45565 input_path=`$CYGPATH -u "$shortmode_path"` 45566 new_path="$input_path" 45567 fi 45568 fi 45569 45570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45571 if test "x$test_cygdrive_prefix" = x; then 45572 # As a simple fix, exclude /usr/bin since it's not a real path. 45573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45575 # a path prefixed by /cygdrive for fixpath to work. 45576 new_path="$CYGWIN_ROOT_PATH$input_path" 45577 fi 45578 fi 45579 45580 45581 if test "x$path" != "x$new_path"; then 45582 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45585 fi 45586 45587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45588 45589 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45590 has_colon=`$ECHO $path | $GREP ^.:` 45591 new_path="$path" 45592 if test "x$has_colon" = x; then 45593 # Not in mixed or Windows style, start by that. 45594 new_path=`cmd //c echo $path` 45595 fi 45596 45597 45598 input_path="$new_path" 45599 # Check if we need to convert this using DOS-style short mode. If the path 45600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45601 # take no chances and rewrite it. 45602 # Note: m4 eats our [], so we need to use [ and ] instead. 45603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45604 if test "x$has_forbidden_chars" != x; then 45605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45607 fi 45608 45609 45610 windows_path="$new_path" 45611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45612 unix_path=`$CYGPATH -u "$windows_path"` 45613 new_path="$unix_path" 45614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45616 new_path="$unix_path" 45617 fi 45618 45619 if test "x$path" != "x$new_path"; then 45620 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45622 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45623 fi 45624 45625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45627 45628 else 45629 # We're on a posix platform. Hooray! :) 45630 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45631 has_space=`$ECHO "$path" | $GREP " "` 45632 if test "x$has_space" != x; then 45633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45634 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45636 fi 45637 45638 # Use eval to expand a potential ~ 45639 eval path="$path" 45640 if test ! -f "$path" && test ! -d "$path"; then 45641 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45642 fi 45643 45644 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45645 fi 45646 45647 45648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45649 45650 # Input might be given as Windows format, start by converting to 45651 # unix format. 45652 path="$POTENTIAL_FREETYPE_LIB_PATH" 45653 new_path=`$CYGPATH -u "$path"` 45654 45655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45658 # "foo.exe" is OK but "foo" is an error. 45659 # 45660 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45661 # It is also a way to make sure we got the proper file name for the real test later on. 45662 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45663 if test "x$test_shortpath" = x; then 45664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45665 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45666 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45667 fi 45668 45669 # Call helper function which possibly converts this using DOS-style short mode. 45670 # If so, the updated path is stored in $new_path. 45671 45672 input_path="$new_path" 45673 # Check if we need to convert this using DOS-style short mode. If the path 45674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45675 # take no chances and rewrite it. 45676 # Note: m4 eats our [], so we need to use [ and ] instead. 45677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45678 if test "x$has_forbidden_chars" != x; then 45679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45680 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45681 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45682 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45683 # Going to short mode and back again did indeed matter. Since short mode is 45684 # case insensitive, let's make it lowercase to improve readability. 45685 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45686 # Now convert it back to Unix-stile (cygpath) 45687 input_path=`$CYGPATH -u "$shortmode_path"` 45688 new_path="$input_path" 45689 fi 45690 fi 45691 45692 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45693 if test "x$test_cygdrive_prefix" = x; then 45694 # As a simple fix, exclude /usr/bin since it's not a real path. 45695 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45696 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45697 # a path prefixed by /cygdrive for fixpath to work. 45698 new_path="$CYGWIN_ROOT_PATH$input_path" 45699 fi 45700 fi 45701 45702 45703 if test "x$path" != "x$new_path"; then 45704 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45706 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45707 fi 45708 45709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45710 45711 path="$POTENTIAL_FREETYPE_LIB_PATH" 45712 has_colon=`$ECHO $path | $GREP ^.:` 45713 new_path="$path" 45714 if test "x$has_colon" = x; then 45715 # Not in mixed or Windows style, start by that. 45716 new_path=`cmd //c echo $path` 45717 fi 45718 45719 45720 input_path="$new_path" 45721 # Check if we need to convert this using DOS-style short mode. If the path 45722 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45723 # take no chances and rewrite it. 45724 # Note: m4 eats our [], so we need to use [ and ] instead. 45725 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45726 if test "x$has_forbidden_chars" != x; then 45727 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45728 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45729 fi 45730 45731 45732 windows_path="$new_path" 45733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45734 unix_path=`$CYGPATH -u "$windows_path"` 45735 new_path="$unix_path" 45736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45738 new_path="$unix_path" 45739 fi 45740 45741 if test "x$path" != "x$new_path"; then 45742 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45744 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45745 fi 45746 45747 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45748 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45749 45750 else 45751 # We're on a posix platform. Hooray! :) 45752 path="$POTENTIAL_FREETYPE_LIB_PATH" 45753 has_space=`$ECHO "$path" | $GREP " "` 45754 if test "x$has_space" != x; then 45755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45756 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45757 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45758 fi 45759 45760 # Use eval to expand a potential ~ 45761 eval path="$path" 45762 if test ! -f "$path" && test ! -d "$path"; then 45763 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45764 fi 45765 45766 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45767 fi 45768 45769 45770 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45772 $as_echo_n "checking for freetype includes... " >&6; } 45773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45774 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45775 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45777 $as_echo_n "checking for freetype libraries... " >&6; } 45778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45779 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45780 fi 45781 45782 if test "x$FOUND_FREETYPE" != xyes; then 45783 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45784 45785 windows_path="$FREETYPE_BASE_DIR" 45786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45787 unix_path=`$CYGPATH -u "$windows_path"` 45788 FREETYPE_BASE_DIR="$unix_path" 45789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45791 FREETYPE_BASE_DIR="$unix_path" 45792 fi 45793 45794 45795 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45796 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45797 METHOD="well-known location" 45798 45799 # First check if the files exists. 45800 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45801 # We found an arbitrary include file. That's a good sign. 45802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45803 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45804 FOUND_FREETYPE=yes 45805 45806 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45807 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45808 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45809 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45810 FOUND_FREETYPE=no 45811 else 45812 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45813 # On Windows, we will need both .lib and .dll file. 45814 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45815 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45816 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45817 FOUND_FREETYPE=no 45818 fi 45819 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45820 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45821 # Found lib in isa dir, use that instead. 45822 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45823 fi 45824 fi 45825 fi 45826 45827 if test "x$FOUND_FREETYPE" = xyes; then 45828 45829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45830 45831 # Input might be given as Windows format, start by converting to 45832 # unix format. 45833 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45834 new_path=`$CYGPATH -u "$path"` 45835 45836 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45837 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45838 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45839 # "foo.exe" is OK but "foo" is an error. 45840 # 45841 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45842 # It is also a way to make sure we got the proper file name for the real test later on. 45843 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45844 if test "x$test_shortpath" = x; then 45845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45846 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45847 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45848 fi 45849 45850 # Call helper function which possibly converts this using DOS-style short mode. 45851 # If so, the updated path is stored in $new_path. 45852 45853 input_path="$new_path" 45854 # Check if we need to convert this using DOS-style short mode. If the path 45855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45856 # take no chances and rewrite it. 45857 # Note: m4 eats our [], so we need to use [ and ] instead. 45858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45859 if test "x$has_forbidden_chars" != x; then 45860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45864 # Going to short mode and back again did indeed matter. Since short mode is 45865 # case insensitive, let's make it lowercase to improve readability. 45866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45867 # Now convert it back to Unix-stile (cygpath) 45868 input_path=`$CYGPATH -u "$shortmode_path"` 45869 new_path="$input_path" 45870 fi 45871 fi 45872 45873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45874 if test "x$test_cygdrive_prefix" = x; then 45875 # As a simple fix, exclude /usr/bin since it's not a real path. 45876 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45878 # a path prefixed by /cygdrive for fixpath to work. 45879 new_path="$CYGWIN_ROOT_PATH$input_path" 45880 fi 45881 fi 45882 45883 45884 if test "x$path" != "x$new_path"; then 45885 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45887 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45888 fi 45889 45890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45891 45892 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45893 has_colon=`$ECHO $path | $GREP ^.:` 45894 new_path="$path" 45895 if test "x$has_colon" = x; then 45896 # Not in mixed or Windows style, start by that. 45897 new_path=`cmd //c echo $path` 45898 fi 45899 45900 45901 input_path="$new_path" 45902 # Check if we need to convert this using DOS-style short mode. If the path 45903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45904 # take no chances and rewrite it. 45905 # Note: m4 eats our [], so we need to use [ and ] instead. 45906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45907 if test "x$has_forbidden_chars" != x; then 45908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45910 fi 45911 45912 45913 windows_path="$new_path" 45914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45915 unix_path=`$CYGPATH -u "$windows_path"` 45916 new_path="$unix_path" 45917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45919 new_path="$unix_path" 45920 fi 45921 45922 if test "x$path" != "x$new_path"; then 45923 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45925 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45926 fi 45927 45928 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45929 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45930 45931 else 45932 # We're on a posix platform. Hooray! :) 45933 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45934 has_space=`$ECHO "$path" | $GREP " "` 45935 if test "x$has_space" != x; then 45936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45937 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45938 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45939 fi 45940 45941 # Use eval to expand a potential ~ 45942 eval path="$path" 45943 if test ! -f "$path" && test ! -d "$path"; then 45944 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45945 fi 45946 45947 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45948 fi 45949 45950 45951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45952 45953 # Input might be given as Windows format, start by converting to 45954 # unix format. 45955 path="$POTENTIAL_FREETYPE_LIB_PATH" 45956 new_path=`$CYGPATH -u "$path"` 45957 45958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45961 # "foo.exe" is OK but "foo" is an error. 45962 # 45963 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45964 # It is also a way to make sure we got the proper file name for the real test later on. 45965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45966 if test "x$test_shortpath" = x; then 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45968 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45969 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45970 fi 45971 45972 # Call helper function which possibly converts this using DOS-style short mode. 45973 # If so, the updated path is stored in $new_path. 45974 45975 input_path="$new_path" 45976 # Check if we need to convert this using DOS-style short mode. If the path 45977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45978 # take no chances and rewrite it. 45979 # Note: m4 eats our [], so we need to use [ and ] instead. 45980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45981 if test "x$has_forbidden_chars" != x; then 45982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45986 # Going to short mode and back again did indeed matter. Since short mode is 45987 # case insensitive, let's make it lowercase to improve readability. 45988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45989 # Now convert it back to Unix-stile (cygpath) 45990 input_path=`$CYGPATH -u "$shortmode_path"` 45991 new_path="$input_path" 45992 fi 45993 fi 45994 45995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45996 if test "x$test_cygdrive_prefix" = x; then 45997 # As a simple fix, exclude /usr/bin since it's not a real path. 45998 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46000 # a path prefixed by /cygdrive for fixpath to work. 46001 new_path="$CYGWIN_ROOT_PATH$input_path" 46002 fi 46003 fi 46004 46005 46006 if test "x$path" != "x$new_path"; then 46007 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46009 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46010 fi 46011 46012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46013 46014 path="$POTENTIAL_FREETYPE_LIB_PATH" 46015 has_colon=`$ECHO $path | $GREP ^.:` 46016 new_path="$path" 46017 if test "x$has_colon" = x; then 46018 # Not in mixed or Windows style, start by that. 46019 new_path=`cmd //c echo $path` 46020 fi 46021 46022 46023 input_path="$new_path" 46024 # Check if we need to convert this using DOS-style short mode. If the path 46025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46026 # take no chances and rewrite it. 46027 # Note: m4 eats our [], so we need to use [ and ] instead. 46028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46029 if test "x$has_forbidden_chars" != x; then 46030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46032 fi 46033 46034 46035 windows_path="$new_path" 46036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46037 unix_path=`$CYGPATH -u "$windows_path"` 46038 new_path="$unix_path" 46039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46041 new_path="$unix_path" 46042 fi 46043 46044 if test "x$path" != "x$new_path"; then 46045 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46047 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46048 fi 46049 46050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46052 46053 else 46054 # We're on a posix platform. Hooray! :) 46055 path="$POTENTIAL_FREETYPE_LIB_PATH" 46056 has_space=`$ECHO "$path" | $GREP " "` 46057 if test "x$has_space" != x; then 46058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46059 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46060 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46061 fi 46062 46063 # Use eval to expand a potential ~ 46064 eval path="$path" 46065 if test ! -f "$path" && test ! -d "$path"; then 46066 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46067 fi 46068 46069 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46070 fi 46071 46072 46073 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46075 $as_echo_n "checking for freetype includes... " >&6; } 46076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46077 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46078 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46080 $as_echo_n "checking for freetype libraries... " >&6; } 46081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46082 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46083 fi 46084 46085 fi 46086 else 46087 FREETYPE_BASE_DIR="$SYSROOT/usr" 46088 46089 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46090 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46091 METHOD="well-known location" 46092 46093 # First check if the files exists. 46094 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46095 # We found an arbitrary include file. That's a good sign. 46096 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46097 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46098 FOUND_FREETYPE=yes 46099 46100 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46101 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46102 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46103 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46104 FOUND_FREETYPE=no 46105 else 46106 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46107 # On Windows, we will need both .lib and .dll file. 46108 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46109 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46110 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46111 FOUND_FREETYPE=no 46112 fi 46113 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46114 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46115 # Found lib in isa dir, use that instead. 46116 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46117 fi 46118 fi 46119 fi 46120 46121 if test "x$FOUND_FREETYPE" = xyes; then 46122 46123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46124 46125 # Input might be given as Windows format, start by converting to 46126 # unix format. 46127 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46128 new_path=`$CYGPATH -u "$path"` 46129 46130 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46131 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46132 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46133 # "foo.exe" is OK but "foo" is an error. 46134 # 46135 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46136 # It is also a way to make sure we got the proper file name for the real test later on. 46137 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46138 if test "x$test_shortpath" = x; then 46139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46140 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46141 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46142 fi 46143 46144 # Call helper function which possibly converts this using DOS-style short mode. 46145 # If so, the updated path is stored in $new_path. 46146 46147 input_path="$new_path" 46148 # Check if we need to convert this using DOS-style short mode. If the path 46149 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46150 # take no chances and rewrite it. 46151 # Note: m4 eats our [], so we need to use [ and ] instead. 46152 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46153 if test "x$has_forbidden_chars" != x; then 46154 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46155 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46156 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46157 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46158 # Going to short mode and back again did indeed matter. Since short mode is 46159 # case insensitive, let's make it lowercase to improve readability. 46160 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46161 # Now convert it back to Unix-stile (cygpath) 46162 input_path=`$CYGPATH -u "$shortmode_path"` 46163 new_path="$input_path" 46164 fi 46165 fi 46166 46167 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46168 if test "x$test_cygdrive_prefix" = x; then 46169 # As a simple fix, exclude /usr/bin since it's not a real path. 46170 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46171 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46172 # a path prefixed by /cygdrive for fixpath to work. 46173 new_path="$CYGWIN_ROOT_PATH$input_path" 46174 fi 46175 fi 46176 46177 46178 if test "x$path" != "x$new_path"; then 46179 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46181 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46182 fi 46183 46184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46185 46186 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46187 has_colon=`$ECHO $path | $GREP ^.:` 46188 new_path="$path" 46189 if test "x$has_colon" = x; then 46190 # Not in mixed or Windows style, start by that. 46191 new_path=`cmd //c echo $path` 46192 fi 46193 46194 46195 input_path="$new_path" 46196 # Check if we need to convert this using DOS-style short mode. If the path 46197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46198 # take no chances and rewrite it. 46199 # Note: m4 eats our [], so we need to use [ and ] instead. 46200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46201 if test "x$has_forbidden_chars" != x; then 46202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46203 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46204 fi 46205 46206 46207 windows_path="$new_path" 46208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46209 unix_path=`$CYGPATH -u "$windows_path"` 46210 new_path="$unix_path" 46211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46213 new_path="$unix_path" 46214 fi 46215 46216 if test "x$path" != "x$new_path"; then 46217 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46218 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46219 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46220 fi 46221 46222 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46223 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46224 46225 else 46226 # We're on a posix platform. Hooray! :) 46227 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46228 has_space=`$ECHO "$path" | $GREP " "` 46229 if test "x$has_space" != x; then 46230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46231 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46232 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46233 fi 46234 46235 # Use eval to expand a potential ~ 46236 eval path="$path" 46237 if test ! -f "$path" && test ! -d "$path"; then 46238 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46239 fi 46240 46241 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46242 fi 46243 46244 46245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46246 46247 # Input might be given as Windows format, start by converting to 46248 # unix format. 46249 path="$POTENTIAL_FREETYPE_LIB_PATH" 46250 new_path=`$CYGPATH -u "$path"` 46251 46252 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46253 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46254 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46255 # "foo.exe" is OK but "foo" is an error. 46256 # 46257 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46258 # It is also a way to make sure we got the proper file name for the real test later on. 46259 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46260 if test "x$test_shortpath" = x; then 46261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46262 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46263 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46264 fi 46265 46266 # Call helper function which possibly converts this using DOS-style short mode. 46267 # If so, the updated path is stored in $new_path. 46268 46269 input_path="$new_path" 46270 # Check if we need to convert this using DOS-style short mode. If the path 46271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46272 # take no chances and rewrite it. 46273 # Note: m4 eats our [], so we need to use [ and ] instead. 46274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46275 if test "x$has_forbidden_chars" != x; then 46276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46277 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46278 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46279 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46280 # Going to short mode and back again did indeed matter. Since short mode is 46281 # case insensitive, let's make it lowercase to improve readability. 46282 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46283 # Now convert it back to Unix-stile (cygpath) 46284 input_path=`$CYGPATH -u "$shortmode_path"` 46285 new_path="$input_path" 46286 fi 46287 fi 46288 46289 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46290 if test "x$test_cygdrive_prefix" = x; then 46291 # As a simple fix, exclude /usr/bin since it's not a real path. 46292 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46293 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46294 # a path prefixed by /cygdrive for fixpath to work. 46295 new_path="$CYGWIN_ROOT_PATH$input_path" 46296 fi 46297 fi 46298 46299 46300 if test "x$path" != "x$new_path"; then 46301 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46303 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46304 fi 46305 46306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46307 46308 path="$POTENTIAL_FREETYPE_LIB_PATH" 46309 has_colon=`$ECHO $path | $GREP ^.:` 46310 new_path="$path" 46311 if test "x$has_colon" = x; then 46312 # Not in mixed or Windows style, start by that. 46313 new_path=`cmd //c echo $path` 46314 fi 46315 46316 46317 input_path="$new_path" 46318 # Check if we need to convert this using DOS-style short mode. If the path 46319 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46320 # take no chances and rewrite it. 46321 # Note: m4 eats our [], so we need to use [ and ] instead. 46322 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46323 if test "x$has_forbidden_chars" != x; then 46324 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46325 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46326 fi 46327 46328 46329 windows_path="$new_path" 46330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46331 unix_path=`$CYGPATH -u "$windows_path"` 46332 new_path="$unix_path" 46333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46334 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46335 new_path="$unix_path" 46336 fi 46337 46338 if test "x$path" != "x$new_path"; then 46339 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46340 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46341 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46342 fi 46343 46344 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46345 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46346 46347 else 46348 # We're on a posix platform. Hooray! :) 46349 path="$POTENTIAL_FREETYPE_LIB_PATH" 46350 has_space=`$ECHO "$path" | $GREP " "` 46351 if test "x$has_space" != x; then 46352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46353 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46354 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46355 fi 46356 46357 # Use eval to expand a potential ~ 46358 eval path="$path" 46359 if test ! -f "$path" && test ! -d "$path"; then 46360 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46361 fi 46362 46363 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46364 fi 46365 46366 46367 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46369 $as_echo_n "checking for freetype includes... " >&6; } 46370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46371 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46372 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46374 $as_echo_n "checking for freetype libraries... " >&6; } 46375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46376 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46377 fi 46378 46379 46380 if test "x$FOUND_FREETYPE" != xyes; then 46381 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46382 46383 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46384 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46385 METHOD="well-known location" 46386 46387 # First check if the files exists. 46388 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46389 # We found an arbitrary include file. That's a good sign. 46390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46391 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46392 FOUND_FREETYPE=yes 46393 46394 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46395 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46396 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46397 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46398 FOUND_FREETYPE=no 46399 else 46400 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46401 # On Windows, we will need both .lib and .dll file. 46402 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46403 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46404 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46405 FOUND_FREETYPE=no 46406 fi 46407 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46408 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46409 # Found lib in isa dir, use that instead. 46410 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46411 fi 46412 fi 46413 fi 46414 46415 if test "x$FOUND_FREETYPE" = xyes; then 46416 46417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46418 46419 # Input might be given as Windows format, start by converting to 46420 # unix format. 46421 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46422 new_path=`$CYGPATH -u "$path"` 46423 46424 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46425 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46426 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46427 # "foo.exe" is OK but "foo" is an error. 46428 # 46429 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46430 # It is also a way to make sure we got the proper file name for the real test later on. 46431 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46432 if test "x$test_shortpath" = x; then 46433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46434 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46435 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46436 fi 46437 46438 # Call helper function which possibly converts this using DOS-style short mode. 46439 # If so, the updated path is stored in $new_path. 46440 46441 input_path="$new_path" 46442 # Check if we need to convert this using DOS-style short mode. If the path 46443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46444 # take no chances and rewrite it. 46445 # Note: m4 eats our [], so we need to use [ and ] instead. 46446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46447 if test "x$has_forbidden_chars" != x; then 46448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46449 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46450 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46451 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46452 # Going to short mode and back again did indeed matter. Since short mode is 46453 # case insensitive, let's make it lowercase to improve readability. 46454 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46455 # Now convert it back to Unix-stile (cygpath) 46456 input_path=`$CYGPATH -u "$shortmode_path"` 46457 new_path="$input_path" 46458 fi 46459 fi 46460 46461 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46462 if test "x$test_cygdrive_prefix" = x; then 46463 # As a simple fix, exclude /usr/bin since it's not a real path. 46464 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46465 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46466 # a path prefixed by /cygdrive for fixpath to work. 46467 new_path="$CYGWIN_ROOT_PATH$input_path" 46468 fi 46469 fi 46470 46471 46472 if test "x$path" != "x$new_path"; then 46473 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46475 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46476 fi 46477 46478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46479 46480 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46481 has_colon=`$ECHO $path | $GREP ^.:` 46482 new_path="$path" 46483 if test "x$has_colon" = x; then 46484 # Not in mixed or Windows style, start by that. 46485 new_path=`cmd //c echo $path` 46486 fi 46487 46488 46489 input_path="$new_path" 46490 # Check if we need to convert this using DOS-style short mode. If the path 46491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46492 # take no chances and rewrite it. 46493 # Note: m4 eats our [], so we need to use [ and ] instead. 46494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46495 if test "x$has_forbidden_chars" != x; then 46496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46497 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46498 fi 46499 46500 46501 windows_path="$new_path" 46502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46503 unix_path=`$CYGPATH -u "$windows_path"` 46504 new_path="$unix_path" 46505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46507 new_path="$unix_path" 46508 fi 46509 46510 if test "x$path" != "x$new_path"; then 46511 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46513 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46514 fi 46515 46516 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46517 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46518 46519 else 46520 # We're on a posix platform. Hooray! :) 46521 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46522 has_space=`$ECHO "$path" | $GREP " "` 46523 if test "x$has_space" != x; then 46524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46525 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46526 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46527 fi 46528 46529 # Use eval to expand a potential ~ 46530 eval path="$path" 46531 if test ! -f "$path" && test ! -d "$path"; then 46532 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46533 fi 46534 46535 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46536 fi 46537 46538 46539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46540 46541 # Input might be given as Windows format, start by converting to 46542 # unix format. 46543 path="$POTENTIAL_FREETYPE_LIB_PATH" 46544 new_path=`$CYGPATH -u "$path"` 46545 46546 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46547 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46548 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46549 # "foo.exe" is OK but "foo" is an error. 46550 # 46551 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46552 # It is also a way to make sure we got the proper file name for the real test later on. 46553 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46554 if test "x$test_shortpath" = x; then 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46556 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46557 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46558 fi 46559 46560 # Call helper function which possibly converts this using DOS-style short mode. 46561 # If so, the updated path is stored in $new_path. 46562 46563 input_path="$new_path" 46564 # Check if we need to convert this using DOS-style short mode. If the path 46565 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46566 # take no chances and rewrite it. 46567 # Note: m4 eats our [], so we need to use [ and ] instead. 46568 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46569 if test "x$has_forbidden_chars" != x; then 46570 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46571 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46572 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46573 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46574 # Going to short mode and back again did indeed matter. Since short mode is 46575 # case insensitive, let's make it lowercase to improve readability. 46576 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46577 # Now convert it back to Unix-stile (cygpath) 46578 input_path=`$CYGPATH -u "$shortmode_path"` 46579 new_path="$input_path" 46580 fi 46581 fi 46582 46583 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46584 if test "x$test_cygdrive_prefix" = x; then 46585 # As a simple fix, exclude /usr/bin since it's not a real path. 46586 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46587 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46588 # a path prefixed by /cygdrive for fixpath to work. 46589 new_path="$CYGWIN_ROOT_PATH$input_path" 46590 fi 46591 fi 46592 46593 46594 if test "x$path" != "x$new_path"; then 46595 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46597 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46598 fi 46599 46600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46601 46602 path="$POTENTIAL_FREETYPE_LIB_PATH" 46603 has_colon=`$ECHO $path | $GREP ^.:` 46604 new_path="$path" 46605 if test "x$has_colon" = x; then 46606 # Not in mixed or Windows style, start by that. 46607 new_path=`cmd //c echo $path` 46608 fi 46609 46610 46611 input_path="$new_path" 46612 # Check if we need to convert this using DOS-style short mode. If the path 46613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46614 # take no chances and rewrite it. 46615 # Note: m4 eats our [], so we need to use [ and ] instead. 46616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46617 if test "x$has_forbidden_chars" != x; then 46618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46619 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46620 fi 46621 46622 46623 windows_path="$new_path" 46624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46625 unix_path=`$CYGPATH -u "$windows_path"` 46626 new_path="$unix_path" 46627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46628 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46629 new_path="$unix_path" 46630 fi 46631 46632 if test "x$path" != "x$new_path"; then 46633 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46634 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46635 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46636 fi 46637 46638 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46639 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46640 46641 else 46642 # We're on a posix platform. Hooray! :) 46643 path="$POTENTIAL_FREETYPE_LIB_PATH" 46644 has_space=`$ECHO "$path" | $GREP " "` 46645 if test "x$has_space" != x; then 46646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46647 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46648 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46649 fi 46650 46651 # Use eval to expand a potential ~ 46652 eval path="$path" 46653 if test ! -f "$path" && test ! -d "$path"; then 46654 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46655 fi 46656 46657 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46658 fi 46659 46660 46661 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46663 $as_echo_n "checking for freetype includes... " >&6; } 46664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46665 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46666 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46668 $as_echo_n "checking for freetype libraries... " >&6; } 46669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46670 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46671 fi 46672 46673 fi 46674 46675 if test "x$FOUND_FREETYPE" != xyes; then 46676 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46677 46678 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46679 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46680 METHOD="well-known location" 46681 46682 # First check if the files exists. 46683 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46684 # We found an arbitrary include file. That's a good sign. 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46686 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46687 FOUND_FREETYPE=yes 46688 46689 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46690 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46691 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46692 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46693 FOUND_FREETYPE=no 46694 else 46695 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46696 # On Windows, we will need both .lib and .dll file. 46697 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46698 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46699 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46700 FOUND_FREETYPE=no 46701 fi 46702 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46703 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46704 # Found lib in isa dir, use that instead. 46705 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46706 fi 46707 fi 46708 fi 46709 46710 if test "x$FOUND_FREETYPE" = xyes; then 46711 46712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46713 46714 # Input might be given as Windows format, start by converting to 46715 # unix format. 46716 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46717 new_path=`$CYGPATH -u "$path"` 46718 46719 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46720 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46721 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46722 # "foo.exe" is OK but "foo" is an error. 46723 # 46724 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46725 # It is also a way to make sure we got the proper file name for the real test later on. 46726 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46727 if test "x$test_shortpath" = x; then 46728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46729 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46730 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46731 fi 46732 46733 # Call helper function which possibly converts this using DOS-style short mode. 46734 # If so, the updated path is stored in $new_path. 46735 46736 input_path="$new_path" 46737 # Check if we need to convert this using DOS-style short mode. If the path 46738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46739 # take no chances and rewrite it. 46740 # Note: m4 eats our [], so we need to use [ and ] instead. 46741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46742 if test "x$has_forbidden_chars" != x; then 46743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46744 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46745 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46746 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46747 # Going to short mode and back again did indeed matter. Since short mode is 46748 # case insensitive, let's make it lowercase to improve readability. 46749 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46750 # Now convert it back to Unix-stile (cygpath) 46751 input_path=`$CYGPATH -u "$shortmode_path"` 46752 new_path="$input_path" 46753 fi 46754 fi 46755 46756 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46757 if test "x$test_cygdrive_prefix" = x; then 46758 # As a simple fix, exclude /usr/bin since it's not a real path. 46759 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46760 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46761 # a path prefixed by /cygdrive for fixpath to work. 46762 new_path="$CYGWIN_ROOT_PATH$input_path" 46763 fi 46764 fi 46765 46766 46767 if test "x$path" != "x$new_path"; then 46768 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46770 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46771 fi 46772 46773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46774 46775 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46776 has_colon=`$ECHO $path | $GREP ^.:` 46777 new_path="$path" 46778 if test "x$has_colon" = x; then 46779 # Not in mixed or Windows style, start by that. 46780 new_path=`cmd //c echo $path` 46781 fi 46782 46783 46784 input_path="$new_path" 46785 # Check if we need to convert this using DOS-style short mode. If the path 46786 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46787 # take no chances and rewrite it. 46788 # Note: m4 eats our [], so we need to use [ and ] instead. 46789 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46790 if test "x$has_forbidden_chars" != x; then 46791 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46792 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46793 fi 46794 46795 46796 windows_path="$new_path" 46797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46798 unix_path=`$CYGPATH -u "$windows_path"` 46799 new_path="$unix_path" 46800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46801 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46802 new_path="$unix_path" 46803 fi 46804 46805 if test "x$path" != "x$new_path"; then 46806 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46807 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46808 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46809 fi 46810 46811 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46812 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46813 46814 else 46815 # We're on a posix platform. Hooray! :) 46816 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46817 has_space=`$ECHO "$path" | $GREP " "` 46818 if test "x$has_space" != x; then 46819 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46820 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46821 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46822 fi 46823 46824 # Use eval to expand a potential ~ 46825 eval path="$path" 46826 if test ! -f "$path" && test ! -d "$path"; then 46827 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46828 fi 46829 46830 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46831 fi 46832 46833 46834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46835 46836 # Input might be given as Windows format, start by converting to 46837 # unix format. 46838 path="$POTENTIAL_FREETYPE_LIB_PATH" 46839 new_path=`$CYGPATH -u "$path"` 46840 46841 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46842 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46843 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46844 # "foo.exe" is OK but "foo" is an error. 46845 # 46846 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46847 # It is also a way to make sure we got the proper file name for the real test later on. 46848 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46849 if test "x$test_shortpath" = x; then 46850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46851 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46852 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46853 fi 46854 46855 # Call helper function which possibly converts this using DOS-style short mode. 46856 # If so, the updated path is stored in $new_path. 46857 46858 input_path="$new_path" 46859 # Check if we need to convert this using DOS-style short mode. If the path 46860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46861 # take no chances and rewrite it. 46862 # Note: m4 eats our [], so we need to use [ and ] instead. 46863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46864 if test "x$has_forbidden_chars" != x; then 46865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46869 # Going to short mode and back again did indeed matter. Since short mode is 46870 # case insensitive, let's make it lowercase to improve readability. 46871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46872 # Now convert it back to Unix-stile (cygpath) 46873 input_path=`$CYGPATH -u "$shortmode_path"` 46874 new_path="$input_path" 46875 fi 46876 fi 46877 46878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46879 if test "x$test_cygdrive_prefix" = x; then 46880 # As a simple fix, exclude /usr/bin since it's not a real path. 46881 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46883 # a path prefixed by /cygdrive for fixpath to work. 46884 new_path="$CYGWIN_ROOT_PATH$input_path" 46885 fi 46886 fi 46887 46888 46889 if test "x$path" != "x$new_path"; then 46890 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46892 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46893 fi 46894 46895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46896 46897 path="$POTENTIAL_FREETYPE_LIB_PATH" 46898 has_colon=`$ECHO $path | $GREP ^.:` 46899 new_path="$path" 46900 if test "x$has_colon" = x; then 46901 # Not in mixed or Windows style, start by that. 46902 new_path=`cmd //c echo $path` 46903 fi 46904 46905 46906 input_path="$new_path" 46907 # Check if we need to convert this using DOS-style short mode. If the path 46908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46909 # take no chances and rewrite it. 46910 # Note: m4 eats our [], so we need to use [ and ] instead. 46911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46912 if test "x$has_forbidden_chars" != x; then 46913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46914 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46915 fi 46916 46917 46918 windows_path="$new_path" 46919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46920 unix_path=`$CYGPATH -u "$windows_path"` 46921 new_path="$unix_path" 46922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46924 new_path="$unix_path" 46925 fi 46926 46927 if test "x$path" != "x$new_path"; then 46928 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46930 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46931 fi 46932 46933 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46934 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46935 46936 else 46937 # We're on a posix platform. Hooray! :) 46938 path="$POTENTIAL_FREETYPE_LIB_PATH" 46939 has_space=`$ECHO "$path" | $GREP " "` 46940 if test "x$has_space" != x; then 46941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46942 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46943 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46944 fi 46945 46946 # Use eval to expand a potential ~ 46947 eval path="$path" 46948 if test ! -f "$path" && test ! -d "$path"; then 46949 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46950 fi 46951 46952 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46953 fi 46954 46955 46956 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46958 $as_echo_n "checking for freetype includes... " >&6; } 46959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46960 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46961 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46963 $as_echo_n "checking for freetype libraries... " >&6; } 46964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46965 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46966 fi 46967 46968 fi 46969 46970 if test "x$FOUND_FREETYPE" != xyes; then 46971 FREETYPE_BASE_DIR="$SYSROOT/usr" 46972 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46973 46974 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46975 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46976 METHOD="well-known location" 46977 46978 # First check if the files exists. 46979 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46980 # We found an arbitrary include file. That's a good sign. 46981 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46982 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46983 FOUND_FREETYPE=yes 46984 46985 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46986 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46987 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46988 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46989 FOUND_FREETYPE=no 46990 else 46991 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46992 # On Windows, we will need both .lib and .dll file. 46993 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46994 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46995 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46996 FOUND_FREETYPE=no 46997 fi 46998 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46999 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47000 # Found lib in isa dir, use that instead. 47001 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47002 fi 47003 fi 47004 fi 47005 47006 if test "x$FOUND_FREETYPE" = xyes; then 47007 47008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47009 47010 # Input might be given as Windows format, start by converting to 47011 # unix format. 47012 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47013 new_path=`$CYGPATH -u "$path"` 47014 47015 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47016 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47017 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47018 # "foo.exe" is OK but "foo" is an error. 47019 # 47020 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47021 # It is also a way to make sure we got the proper file name for the real test later on. 47022 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47023 if test "x$test_shortpath" = x; then 47024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47025 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47026 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47027 fi 47028 47029 # Call helper function which possibly converts this using DOS-style short mode. 47030 # If so, the updated path is stored in $new_path. 47031 47032 input_path="$new_path" 47033 # Check if we need to convert this using DOS-style short mode. If the path 47034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47035 # take no chances and rewrite it. 47036 # Note: m4 eats our [], so we need to use [ and ] instead. 47037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47038 if test "x$has_forbidden_chars" != x; then 47039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47043 # Going to short mode and back again did indeed matter. Since short mode is 47044 # case insensitive, let's make it lowercase to improve readability. 47045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47046 # Now convert it back to Unix-stile (cygpath) 47047 input_path=`$CYGPATH -u "$shortmode_path"` 47048 new_path="$input_path" 47049 fi 47050 fi 47051 47052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47053 if test "x$test_cygdrive_prefix" = x; then 47054 # As a simple fix, exclude /usr/bin since it's not a real path. 47055 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47057 # a path prefixed by /cygdrive for fixpath to work. 47058 new_path="$CYGWIN_ROOT_PATH$input_path" 47059 fi 47060 fi 47061 47062 47063 if test "x$path" != "x$new_path"; then 47064 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47066 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47067 fi 47068 47069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47070 47071 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47072 has_colon=`$ECHO $path | $GREP ^.:` 47073 new_path="$path" 47074 if test "x$has_colon" = x; then 47075 # Not in mixed or Windows style, start by that. 47076 new_path=`cmd //c echo $path` 47077 fi 47078 47079 47080 input_path="$new_path" 47081 # Check if we need to convert this using DOS-style short mode. If the path 47082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47083 # take no chances and rewrite it. 47084 # Note: m4 eats our [], so we need to use [ and ] instead. 47085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47086 if test "x$has_forbidden_chars" != x; then 47087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47089 fi 47090 47091 47092 windows_path="$new_path" 47093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47094 unix_path=`$CYGPATH -u "$windows_path"` 47095 new_path="$unix_path" 47096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47098 new_path="$unix_path" 47099 fi 47100 47101 if test "x$path" != "x$new_path"; then 47102 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47104 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47105 fi 47106 47107 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47108 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47109 47110 else 47111 # We're on a posix platform. Hooray! :) 47112 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47113 has_space=`$ECHO "$path" | $GREP " "` 47114 if test "x$has_space" != x; then 47115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47116 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47117 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47118 fi 47119 47120 # Use eval to expand a potential ~ 47121 eval path="$path" 47122 if test ! -f "$path" && test ! -d "$path"; then 47123 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47124 fi 47125 47126 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47127 fi 47128 47129 47130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47131 47132 # Input might be given as Windows format, start by converting to 47133 # unix format. 47134 path="$POTENTIAL_FREETYPE_LIB_PATH" 47135 new_path=`$CYGPATH -u "$path"` 47136 47137 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47138 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47139 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47140 # "foo.exe" is OK but "foo" is an error. 47141 # 47142 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47143 # It is also a way to make sure we got the proper file name for the real test later on. 47144 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47145 if test "x$test_shortpath" = x; then 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47147 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47148 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47149 fi 47150 47151 # Call helper function which possibly converts this using DOS-style short mode. 47152 # If so, the updated path is stored in $new_path. 47153 47154 input_path="$new_path" 47155 # Check if we need to convert this using DOS-style short mode. If the path 47156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47157 # take no chances and rewrite it. 47158 # Note: m4 eats our [], so we need to use [ and ] instead. 47159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47160 if test "x$has_forbidden_chars" != x; then 47161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47162 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47163 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47164 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47165 # Going to short mode and back again did indeed matter. Since short mode is 47166 # case insensitive, let's make it lowercase to improve readability. 47167 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47168 # Now convert it back to Unix-stile (cygpath) 47169 input_path=`$CYGPATH -u "$shortmode_path"` 47170 new_path="$input_path" 47171 fi 47172 fi 47173 47174 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47175 if test "x$test_cygdrive_prefix" = x; then 47176 # As a simple fix, exclude /usr/bin since it's not a real path. 47177 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47178 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47179 # a path prefixed by /cygdrive for fixpath to work. 47180 new_path="$CYGWIN_ROOT_PATH$input_path" 47181 fi 47182 fi 47183 47184 47185 if test "x$path" != "x$new_path"; then 47186 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47188 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47189 fi 47190 47191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47192 47193 path="$POTENTIAL_FREETYPE_LIB_PATH" 47194 has_colon=`$ECHO $path | $GREP ^.:` 47195 new_path="$path" 47196 if test "x$has_colon" = x; then 47197 # Not in mixed or Windows style, start by that. 47198 new_path=`cmd //c echo $path` 47199 fi 47200 47201 47202 input_path="$new_path" 47203 # Check if we need to convert this using DOS-style short mode. If the path 47204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47205 # take no chances and rewrite it. 47206 # Note: m4 eats our [], so we need to use [ and ] instead. 47207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47208 if test "x$has_forbidden_chars" != x; then 47209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47210 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47211 fi 47212 47213 47214 windows_path="$new_path" 47215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47216 unix_path=`$CYGPATH -u "$windows_path"` 47217 new_path="$unix_path" 47218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47220 new_path="$unix_path" 47221 fi 47222 47223 if test "x$path" != "x$new_path"; then 47224 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47226 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47227 fi 47228 47229 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47230 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47231 47232 else 47233 # We're on a posix platform. Hooray! :) 47234 path="$POTENTIAL_FREETYPE_LIB_PATH" 47235 has_space=`$ECHO "$path" | $GREP " "` 47236 if test "x$has_space" != x; then 47237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47238 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47239 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47240 fi 47241 47242 # Use eval to expand a potential ~ 47243 eval path="$path" 47244 if test ! -f "$path" && test ! -d "$path"; then 47245 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47246 fi 47247 47248 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47249 fi 47250 47251 47252 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47254 $as_echo_n "checking for freetype includes... " >&6; } 47255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47256 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47257 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47259 $as_echo_n "checking for freetype libraries... " >&6; } 47260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47261 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47262 fi 47263 47264 else 47265 47266 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47267 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47268 METHOD="well-known location" 47269 47270 # First check if the files exists. 47271 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47272 # We found an arbitrary include file. That's a good sign. 47273 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47274 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47275 FOUND_FREETYPE=yes 47276 47277 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47278 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47279 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47280 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47281 FOUND_FREETYPE=no 47282 else 47283 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47284 # On Windows, we will need both .lib and .dll file. 47285 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47286 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47287 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47288 FOUND_FREETYPE=no 47289 fi 47290 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47291 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47292 # Found lib in isa dir, use that instead. 47293 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47294 fi 47295 fi 47296 fi 47297 47298 if test "x$FOUND_FREETYPE" = xyes; then 47299 47300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47301 47302 # Input might be given as Windows format, start by converting to 47303 # unix format. 47304 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47305 new_path=`$CYGPATH -u "$path"` 47306 47307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47310 # "foo.exe" is OK but "foo" is an error. 47311 # 47312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47313 # It is also a way to make sure we got the proper file name for the real test later on. 47314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47315 if test "x$test_shortpath" = x; then 47316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47317 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47318 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47319 fi 47320 47321 # Call helper function which possibly converts this using DOS-style short mode. 47322 # If so, the updated path is stored in $new_path. 47323 47324 input_path="$new_path" 47325 # Check if we need to convert this using DOS-style short mode. If the path 47326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47327 # take no chances and rewrite it. 47328 # Note: m4 eats our [], so we need to use [ and ] instead. 47329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47330 if test "x$has_forbidden_chars" != x; then 47331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47335 # Going to short mode and back again did indeed matter. Since short mode is 47336 # case insensitive, let's make it lowercase to improve readability. 47337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47338 # Now convert it back to Unix-stile (cygpath) 47339 input_path=`$CYGPATH -u "$shortmode_path"` 47340 new_path="$input_path" 47341 fi 47342 fi 47343 47344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47345 if test "x$test_cygdrive_prefix" = x; then 47346 # As a simple fix, exclude /usr/bin since it's not a real path. 47347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47349 # a path prefixed by /cygdrive for fixpath to work. 47350 new_path="$CYGWIN_ROOT_PATH$input_path" 47351 fi 47352 fi 47353 47354 47355 if test "x$path" != "x$new_path"; then 47356 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47358 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47359 fi 47360 47361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47362 47363 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47364 has_colon=`$ECHO $path | $GREP ^.:` 47365 new_path="$path" 47366 if test "x$has_colon" = x; then 47367 # Not in mixed or Windows style, start by that. 47368 new_path=`cmd //c echo $path` 47369 fi 47370 47371 47372 input_path="$new_path" 47373 # Check if we need to convert this using DOS-style short mode. If the path 47374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47375 # take no chances and rewrite it. 47376 # Note: m4 eats our [], so we need to use [ and ] instead. 47377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47378 if test "x$has_forbidden_chars" != x; then 47379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47381 fi 47382 47383 47384 windows_path="$new_path" 47385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47386 unix_path=`$CYGPATH -u "$windows_path"` 47387 new_path="$unix_path" 47388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47390 new_path="$unix_path" 47391 fi 47392 47393 if test "x$path" != "x$new_path"; then 47394 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47396 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47397 fi 47398 47399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47401 47402 else 47403 # We're on a posix platform. Hooray! :) 47404 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47405 has_space=`$ECHO "$path" | $GREP " "` 47406 if test "x$has_space" != x; then 47407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47408 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47410 fi 47411 47412 # Use eval to expand a potential ~ 47413 eval path="$path" 47414 if test ! -f "$path" && test ! -d "$path"; then 47415 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47416 fi 47417 47418 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47419 fi 47420 47421 47422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47423 47424 # Input might be given as Windows format, start by converting to 47425 # unix format. 47426 path="$POTENTIAL_FREETYPE_LIB_PATH" 47427 new_path=`$CYGPATH -u "$path"` 47428 47429 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47430 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47431 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47432 # "foo.exe" is OK but "foo" is an error. 47433 # 47434 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47435 # It is also a way to make sure we got the proper file name for the real test later on. 47436 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47437 if test "x$test_shortpath" = x; then 47438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47439 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47440 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47441 fi 47442 47443 # Call helper function which possibly converts this using DOS-style short mode. 47444 # If so, the updated path is stored in $new_path. 47445 47446 input_path="$new_path" 47447 # Check if we need to convert this using DOS-style short mode. If the path 47448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47449 # take no chances and rewrite it. 47450 # Note: m4 eats our [], so we need to use [ and ] instead. 47451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47452 if test "x$has_forbidden_chars" != x; then 47453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47454 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47455 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47456 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47457 # Going to short mode and back again did indeed matter. Since short mode is 47458 # case insensitive, let's make it lowercase to improve readability. 47459 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47460 # Now convert it back to Unix-stile (cygpath) 47461 input_path=`$CYGPATH -u "$shortmode_path"` 47462 new_path="$input_path" 47463 fi 47464 fi 47465 47466 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47467 if test "x$test_cygdrive_prefix" = x; then 47468 # As a simple fix, exclude /usr/bin since it's not a real path. 47469 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47470 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47471 # a path prefixed by /cygdrive for fixpath to work. 47472 new_path="$CYGWIN_ROOT_PATH$input_path" 47473 fi 47474 fi 47475 47476 47477 if test "x$path" != "x$new_path"; then 47478 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47479 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47480 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47481 fi 47482 47483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47484 47485 path="$POTENTIAL_FREETYPE_LIB_PATH" 47486 has_colon=`$ECHO $path | $GREP ^.:` 47487 new_path="$path" 47488 if test "x$has_colon" = x; then 47489 # Not in mixed or Windows style, start by that. 47490 new_path=`cmd //c echo $path` 47491 fi 47492 47493 47494 input_path="$new_path" 47495 # Check if we need to convert this using DOS-style short mode. If the path 47496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47497 # take no chances and rewrite it. 47498 # Note: m4 eats our [], so we need to use [ and ] instead. 47499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47500 if test "x$has_forbidden_chars" != x; then 47501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47502 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47503 fi 47504 47505 47506 windows_path="$new_path" 47507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47508 unix_path=`$CYGPATH -u "$windows_path"` 47509 new_path="$unix_path" 47510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47512 new_path="$unix_path" 47513 fi 47514 47515 if test "x$path" != "x$new_path"; then 47516 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47517 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47518 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47519 fi 47520 47521 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47522 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47523 47524 else 47525 # We're on a posix platform. Hooray! :) 47526 path="$POTENTIAL_FREETYPE_LIB_PATH" 47527 has_space=`$ECHO "$path" | $GREP " "` 47528 if test "x$has_space" != x; then 47529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47530 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47531 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47532 fi 47533 47534 # Use eval to expand a potential ~ 47535 eval path="$path" 47536 if test ! -f "$path" && test ! -d "$path"; then 47537 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47538 fi 47539 47540 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47541 fi 47542 47543 47544 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47546 $as_echo_n "checking for freetype includes... " >&6; } 47547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47548 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47549 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47551 $as_echo_n "checking for freetype libraries... " >&6; } 47552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47553 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47554 fi 47555 47556 if test "x$FOUND_FREETYPE" != xyes; then 47557 47558 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47559 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47560 METHOD="well-known location" 47561 47562 # First check if the files exists. 47563 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47564 # We found an arbitrary include file. That's a good sign. 47565 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47566 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47567 FOUND_FREETYPE=yes 47568 47569 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47570 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47571 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47572 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47573 FOUND_FREETYPE=no 47574 else 47575 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47576 # On Windows, we will need both .lib and .dll file. 47577 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47578 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47579 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47580 FOUND_FREETYPE=no 47581 fi 47582 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47583 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47584 # Found lib in isa dir, use that instead. 47585 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47586 fi 47587 fi 47588 fi 47589 47590 if test "x$FOUND_FREETYPE" = xyes; then 47591 47592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47593 47594 # Input might be given as Windows format, start by converting to 47595 # unix format. 47596 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47597 new_path=`$CYGPATH -u "$path"` 47598 47599 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47600 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47601 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47602 # "foo.exe" is OK but "foo" is an error. 47603 # 47604 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47605 # It is also a way to make sure we got the proper file name for the real test later on. 47606 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47607 if test "x$test_shortpath" = x; then 47608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47609 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47610 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47611 fi 47612 47613 # Call helper function which possibly converts this using DOS-style short mode. 47614 # If so, the updated path is stored in $new_path. 47615 47616 input_path="$new_path" 47617 # Check if we need to convert this using DOS-style short mode. If the path 47618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47619 # take no chances and rewrite it. 47620 # Note: m4 eats our [], so we need to use [ and ] instead. 47621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47622 if test "x$has_forbidden_chars" != x; then 47623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47624 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47625 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47626 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47627 # Going to short mode and back again did indeed matter. Since short mode is 47628 # case insensitive, let's make it lowercase to improve readability. 47629 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47630 # Now convert it back to Unix-stile (cygpath) 47631 input_path=`$CYGPATH -u "$shortmode_path"` 47632 new_path="$input_path" 47633 fi 47634 fi 47635 47636 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47637 if test "x$test_cygdrive_prefix" = x; then 47638 # As a simple fix, exclude /usr/bin since it's not a real path. 47639 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47640 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47641 # a path prefixed by /cygdrive for fixpath to work. 47642 new_path="$CYGWIN_ROOT_PATH$input_path" 47643 fi 47644 fi 47645 47646 47647 if test "x$path" != "x$new_path"; then 47648 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47650 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47651 fi 47652 47653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47654 47655 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47656 has_colon=`$ECHO $path | $GREP ^.:` 47657 new_path="$path" 47658 if test "x$has_colon" = x; then 47659 # Not in mixed or Windows style, start by that. 47660 new_path=`cmd //c echo $path` 47661 fi 47662 47663 47664 input_path="$new_path" 47665 # Check if we need to convert this using DOS-style short mode. If the path 47666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47667 # take no chances and rewrite it. 47668 # Note: m4 eats our [], so we need to use [ and ] instead. 47669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47670 if test "x$has_forbidden_chars" != x; then 47671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47672 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47673 fi 47674 47675 47676 windows_path="$new_path" 47677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47678 unix_path=`$CYGPATH -u "$windows_path"` 47679 new_path="$unix_path" 47680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47682 new_path="$unix_path" 47683 fi 47684 47685 if test "x$path" != "x$new_path"; then 47686 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47688 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47689 fi 47690 47691 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47692 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47693 47694 else 47695 # We're on a posix platform. Hooray! :) 47696 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47697 has_space=`$ECHO "$path" | $GREP " "` 47698 if test "x$has_space" != x; then 47699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47700 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47701 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47702 fi 47703 47704 # Use eval to expand a potential ~ 47705 eval path="$path" 47706 if test ! -f "$path" && test ! -d "$path"; then 47707 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47708 fi 47709 47710 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47711 fi 47712 47713 47714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47715 47716 # Input might be given as Windows format, start by converting to 47717 # unix format. 47718 path="$POTENTIAL_FREETYPE_LIB_PATH" 47719 new_path=`$CYGPATH -u "$path"` 47720 47721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47724 # "foo.exe" is OK but "foo" is an error. 47725 # 47726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47727 # It is also a way to make sure we got the proper file name for the real test later on. 47728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47729 if test "x$test_shortpath" = x; then 47730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47731 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47732 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47733 fi 47734 47735 # Call helper function which possibly converts this using DOS-style short mode. 47736 # If so, the updated path is stored in $new_path. 47737 47738 input_path="$new_path" 47739 # Check if we need to convert this using DOS-style short mode. If the path 47740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47741 # take no chances and rewrite it. 47742 # Note: m4 eats our [], so we need to use [ and ] instead. 47743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47744 if test "x$has_forbidden_chars" != x; then 47745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47749 # Going to short mode and back again did indeed matter. Since short mode is 47750 # case insensitive, let's make it lowercase to improve readability. 47751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47752 # Now convert it back to Unix-stile (cygpath) 47753 input_path=`$CYGPATH -u "$shortmode_path"` 47754 new_path="$input_path" 47755 fi 47756 fi 47757 47758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47759 if test "x$test_cygdrive_prefix" = x; then 47760 # As a simple fix, exclude /usr/bin since it's not a real path. 47761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47763 # a path prefixed by /cygdrive for fixpath to work. 47764 new_path="$CYGWIN_ROOT_PATH$input_path" 47765 fi 47766 fi 47767 47768 47769 if test "x$path" != "x$new_path"; then 47770 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47772 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47773 fi 47774 47775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47776 47777 path="$POTENTIAL_FREETYPE_LIB_PATH" 47778 has_colon=`$ECHO $path | $GREP ^.:` 47779 new_path="$path" 47780 if test "x$has_colon" = x; then 47781 # Not in mixed or Windows style, start by that. 47782 new_path=`cmd //c echo $path` 47783 fi 47784 47785 47786 input_path="$new_path" 47787 # Check if we need to convert this using DOS-style short mode. If the path 47788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47789 # take no chances and rewrite it. 47790 # Note: m4 eats our [], so we need to use [ and ] instead. 47791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47792 if test "x$has_forbidden_chars" != x; then 47793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47795 fi 47796 47797 47798 windows_path="$new_path" 47799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47800 unix_path=`$CYGPATH -u "$windows_path"` 47801 new_path="$unix_path" 47802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47804 new_path="$unix_path" 47805 fi 47806 47807 if test "x$path" != "x$new_path"; then 47808 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47810 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47811 fi 47812 47813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47815 47816 else 47817 # We're on a posix platform. Hooray! :) 47818 path="$POTENTIAL_FREETYPE_LIB_PATH" 47819 has_space=`$ECHO "$path" | $GREP " "` 47820 if test "x$has_space" != x; then 47821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47822 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47824 fi 47825 47826 # Use eval to expand a potential ~ 47827 eval path="$path" 47828 if test ! -f "$path" && test ! -d "$path"; then 47829 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47830 fi 47831 47832 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47833 fi 47834 47835 47836 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47838 $as_echo_n "checking for freetype includes... " >&6; } 47839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47840 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47841 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47843 $as_echo_n "checking for freetype libraries... " >&6; } 47844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47845 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47846 fi 47847 47848 fi 47849 fi 47850 fi 47851 fi 47852 fi # end check in well-known locations 47853 47854 if test "x$FOUND_FREETYPE" != xyes; then 47855 47856 # Print a helpful message on how to acquire the necessary build dependency. 47857 # freetype is the help tag: freetype, cups, pulse, alsa etc 47858 MISSING_DEPENDENCY=freetype 47859 47860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47861 cygwin_help $MISSING_DEPENDENCY 47862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47863 msys_help $MISSING_DEPENDENCY 47864 else 47865 PKGHANDLER_COMMAND= 47866 47867 case $PKGHANDLER in 47868 apt-get) 47869 apt_help $MISSING_DEPENDENCY ;; 47870 yum) 47871 yum_help $MISSING_DEPENDENCY ;; 47872 port) 47873 port_help $MISSING_DEPENDENCY ;; 47874 pkgutil) 47875 pkgutil_help $MISSING_DEPENDENCY ;; 47876 pkgadd) 47877 pkgadd_help $MISSING_DEPENDENCY ;; 47878 esac 47879 47880 if test "x$PKGHANDLER_COMMAND" != x; then 47881 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47882 fi 47883 fi 47884 47885 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47886 fi 47887 fi # end user specified settings 47888 47889 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47890 if test "x$FREETYPE_CFLAGS" = x; then 47891 47892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47893 47894 # Input might be given as Windows format, start by converting to 47895 # unix format. 47896 path="$FREETYPE_INCLUDE_PATH" 47897 new_path=`$CYGPATH -u "$path"` 47898 47899 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47900 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47901 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47902 # "foo.exe" is OK but "foo" is an error. 47903 # 47904 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47905 # It is also a way to make sure we got the proper file name for the real test later on. 47906 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47907 if test "x$test_shortpath" = x; then 47908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47909 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47910 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47911 fi 47912 47913 # Call helper function which possibly converts this using DOS-style short mode. 47914 # If so, the updated path is stored in $new_path. 47915 47916 input_path="$new_path" 47917 # Check if we need to convert this using DOS-style short mode. If the path 47918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47919 # take no chances and rewrite it. 47920 # Note: m4 eats our [], so we need to use [ and ] instead. 47921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47922 if test "x$has_forbidden_chars" != x; then 47923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47924 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47925 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47926 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47927 # Going to short mode and back again did indeed matter. Since short mode is 47928 # case insensitive, let's make it lowercase to improve readability. 47929 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47930 # Now convert it back to Unix-stile (cygpath) 47931 input_path=`$CYGPATH -u "$shortmode_path"` 47932 new_path="$input_path" 47933 fi 47934 fi 47935 47936 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47937 if test "x$test_cygdrive_prefix" = x; then 47938 # As a simple fix, exclude /usr/bin since it's not a real path. 47939 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47940 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47941 # a path prefixed by /cygdrive for fixpath to work. 47942 new_path="$CYGWIN_ROOT_PATH$input_path" 47943 fi 47944 fi 47945 47946 47947 if test "x$path" != "x$new_path"; then 47948 FREETYPE_INCLUDE_PATH="$new_path" 47949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47950 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47951 fi 47952 47953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47954 47955 path="$FREETYPE_INCLUDE_PATH" 47956 has_colon=`$ECHO $path | $GREP ^.:` 47957 new_path="$path" 47958 if test "x$has_colon" = x; then 47959 # Not in mixed or Windows style, start by that. 47960 new_path=`cmd //c echo $path` 47961 fi 47962 47963 47964 input_path="$new_path" 47965 # Check if we need to convert this using DOS-style short mode. If the path 47966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47967 # take no chances and rewrite it. 47968 # Note: m4 eats our [], so we need to use [ and ] instead. 47969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47970 if test "x$has_forbidden_chars" != x; then 47971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47972 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47973 fi 47974 47975 47976 windows_path="$new_path" 47977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47978 unix_path=`$CYGPATH -u "$windows_path"` 47979 new_path="$unix_path" 47980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47982 new_path="$unix_path" 47983 fi 47984 47985 if test "x$path" != "x$new_path"; then 47986 FREETYPE_INCLUDE_PATH="$new_path" 47987 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47988 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47989 fi 47990 47991 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47992 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47993 47994 else 47995 # We're on a posix platform. Hooray! :) 47996 path="$FREETYPE_INCLUDE_PATH" 47997 has_space=`$ECHO "$path" | $GREP " "` 47998 if test "x$has_space" != x; then 47999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48000 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48001 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48002 fi 48003 48004 # Use eval to expand a potential ~ 48005 eval path="$path" 48006 if test ! -f "$path" && test ! -d "$path"; then 48007 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48008 fi 48009 48010 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48011 fi 48012 48013 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48014 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48015 else 48016 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48017 fi 48018 fi 48019 48020 if test "x$FREETYPE_LIBS" = x; then 48021 48022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48023 48024 # Input might be given as Windows format, start by converting to 48025 # unix format. 48026 path="$FREETYPE_LIB_PATH" 48027 new_path=`$CYGPATH -u "$path"` 48028 48029 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48030 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48031 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48032 # "foo.exe" is OK but "foo" is an error. 48033 # 48034 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48035 # It is also a way to make sure we got the proper file name for the real test later on. 48036 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48037 if test "x$test_shortpath" = x; then 48038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48039 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48040 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48041 fi 48042 48043 # Call helper function which possibly converts this using DOS-style short mode. 48044 # If so, the updated path is stored in $new_path. 48045 48046 input_path="$new_path" 48047 # Check if we need to convert this using DOS-style short mode. If the path 48048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48049 # take no chances and rewrite it. 48050 # Note: m4 eats our [], so we need to use [ and ] instead. 48051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48052 if test "x$has_forbidden_chars" != x; then 48053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48054 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48055 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48056 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48057 # Going to short mode and back again did indeed matter. Since short mode is 48058 # case insensitive, let's make it lowercase to improve readability. 48059 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48060 # Now convert it back to Unix-stile (cygpath) 48061 input_path=`$CYGPATH -u "$shortmode_path"` 48062 new_path="$input_path" 48063 fi 48064 fi 48065 48066 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48067 if test "x$test_cygdrive_prefix" = x; then 48068 # As a simple fix, exclude /usr/bin since it's not a real path. 48069 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48070 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48071 # a path prefixed by /cygdrive for fixpath to work. 48072 new_path="$CYGWIN_ROOT_PATH$input_path" 48073 fi 48074 fi 48075 48076 48077 if test "x$path" != "x$new_path"; then 48078 FREETYPE_LIB_PATH="$new_path" 48079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48080 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48081 fi 48082 48083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48084 48085 path="$FREETYPE_LIB_PATH" 48086 has_colon=`$ECHO $path | $GREP ^.:` 48087 new_path="$path" 48088 if test "x$has_colon" = x; then 48089 # Not in mixed or Windows style, start by that. 48090 new_path=`cmd //c echo $path` 48091 fi 48092 48093 48094 input_path="$new_path" 48095 # Check if we need to convert this using DOS-style short mode. If the path 48096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48097 # take no chances and rewrite it. 48098 # Note: m4 eats our [], so we need to use [ and ] instead. 48099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48100 if test "x$has_forbidden_chars" != x; then 48101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48102 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48103 fi 48104 48105 48106 windows_path="$new_path" 48107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48108 unix_path=`$CYGPATH -u "$windows_path"` 48109 new_path="$unix_path" 48110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48111 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48112 new_path="$unix_path" 48113 fi 48114 48115 if test "x$path" != "x$new_path"; then 48116 FREETYPE_LIB_PATH="$new_path" 48117 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48118 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48119 fi 48120 48121 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48122 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48123 48124 else 48125 # We're on a posix platform. Hooray! :) 48126 path="$FREETYPE_LIB_PATH" 48127 has_space=`$ECHO "$path" | $GREP " "` 48128 if test "x$has_space" != x; then 48129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48130 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48131 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48132 fi 48133 48134 # Use eval to expand a potential ~ 48135 eval path="$path" 48136 if test ! -f "$path" && test ! -d "$path"; then 48137 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48138 fi 48139 48140 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48141 fi 48142 48143 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48144 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 48145 else 48146 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 48147 fi 48148 fi 48149 48150 # Try to compile it 48151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48152 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48153 ac_ext=cpp 48154 ac_cpp='$CXXCPP $CPPFLAGS' 48155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48158 48159 PREV_CXXCFLAGS="$CXXFLAGS" 48160 PREV_LIBS="$LIBS" 48161 PREV_CXX="$CXX" 48162 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48163 LIBS="$LIBS $FREETYPE_LIBS" 48164 CXX="$FIXPATH $CXX" 48165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48166 /* end confdefs.h. */ 48167 48168 #include<ft2build.h> 48169 #include FT_FREETYPE_H 48170 int main () { 48171 FT_Init_FreeType(NULL); 48172 return 0; 48173 } 48174 48175 _ACEOF 48176 if ac_fn_cxx_try_link "$LINENO"; then : 48177 48178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48179 $as_echo "yes" >&6; } 48180 48181 else 48182 48183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48184 $as_echo "no" >&6; } 48185 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48186 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48187 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48188 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48189 48190 48191 # Print a helpful message on how to acquire the necessary build dependency. 48192 # freetype is the help tag: freetype, cups, pulse, alsa etc 48193 MISSING_DEPENDENCY=freetype 48194 48195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48196 cygwin_help $MISSING_DEPENDENCY 48197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48198 msys_help $MISSING_DEPENDENCY 48199 else 48200 PKGHANDLER_COMMAND= 48201 48202 case $PKGHANDLER in 48203 apt-get) 48204 apt_help $MISSING_DEPENDENCY ;; 48205 yum) 48206 yum_help $MISSING_DEPENDENCY ;; 48207 port) 48208 port_help $MISSING_DEPENDENCY ;; 48209 pkgutil) 48210 pkgutil_help $MISSING_DEPENDENCY ;; 48211 pkgadd) 48212 pkgadd_help $MISSING_DEPENDENCY ;; 48213 esac 48214 48215 if test "x$PKGHANDLER_COMMAND" != x; then 48216 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48217 fi 48218 fi 48219 48220 48221 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48222 48223 48224 fi 48225 rm -f core conftest.err conftest.$ac_objext \ 48226 conftest$ac_exeext conftest.$ac_ext 48227 CXXCFLAGS="$PREV_CXXFLAGS" 48228 LIBS="$PREV_LIBS" 48229 CXX="$PREV_CXX" 48230 ac_ext=cpp 48231 ac_cpp='$CXXCPP $CPPFLAGS' 48232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48235 48236 48237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48238 $as_echo_n "checking if we should bundle freetype... " >&6; } 48239 if test "x$BUNDLE_FREETYPE" = xyes; then 48240 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48241 fi 48242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48243 $as_echo "$BUNDLE_FREETYPE" >&6; } 48244 48245 fi # end freetype needed 48246 48247 48248 48249 48250 48251 48252 48253 ############################################################################### 48254 # 48255 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48256 # 48257 48258 # Check whether --with-alsa was given. 48259 if test "${with_alsa+set}" = set; then : 48260 withval=$with_alsa; 48261 fi 48262 48263 48264 # Check whether --with-alsa-include was given. 48265 if test "${with_alsa_include+set}" = set; then : 48266 withval=$with_alsa_include; 48267 fi 48268 48269 48270 # Check whether --with-alsa-lib was given. 48271 if test "${with_alsa_lib+set}" = set; then : 48272 withval=$with_alsa_lib; 48273 fi 48274 48275 48276 if test "x$ALSA_NOT_NEEDED" = xyes; then 48277 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48279 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48280 fi 48281 ALSA_CFLAGS= 48282 ALSA_LIBS= 48283 else 48284 ALSA_FOUND=no 48285 48286 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48287 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48288 fi 48289 48290 if test "x${with_alsa}" != x; then 48291 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48292 ALSA_CFLAGS="-I${with_alsa}/include" 48293 ALSA_FOUND=yes 48294 fi 48295 if test "x${with_alsa_include}" != x; then 48296 ALSA_CFLAGS="-I${with_alsa_include}" 48297 ALSA_FOUND=yes 48298 fi 48299 if test "x${with_alsa_lib}" != x; then 48300 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48301 ALSA_FOUND=yes 48302 fi 48303 if test "x$ALSA_FOUND" = xno; then 48304 48305 48306 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48307 # Source the builddeps file again, to make sure it uses the latest variables! 48308 . $builddepsfile 48309 # Look for a target and build machine specific resource! 48310 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48311 if test "x$resource" = x; then 48312 # Ok, lets instead look for a target specific resource 48313 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48314 fi 48315 if test "x$resource" = x; then 48316 # Ok, lets instead look for a build specific resource 48317 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48318 fi 48319 if test "x$resource" = x; then 48320 # Ok, lets instead look for a generic resource 48321 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48322 resource=${builddep_alsa} 48323 fi 48324 if test "x$resource" != x; then 48325 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48326 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48327 # If the resource in the builddeps.conf file is an existing directory, 48328 # for example /java/linux/cups 48329 if test -d ${resource}; then 48330 depdir=${resource} 48331 else 48332 48333 # alsa is for example mymodule 48334 # $resource is for example libs/general/libmymod_1_2_3.zip 48335 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48336 # $with_builddeps_dir is for example /localhome/builddeps 48337 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48338 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48339 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48340 filename=`basename $resource` 48341 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48342 filebase=${filename%%.*} 48343 extension=${filename#*.} 48344 installdir=$with_builddeps_dir/$filebase 48345 if test ! -f $installdir/$filename.unpacked; then 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48347 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48348 if test ! -d $installdir; then 48349 mkdir -p $installdir 48350 fi 48351 if test ! -d $installdir; then 48352 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48353 fi 48354 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48355 touch $tmpfile 48356 if test ! -f $tmpfile; then 48357 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48358 fi 48359 48360 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48361 # $tmpfile is the local file name for the downloaded file. 48362 VALID_TOOL=no 48363 if test "x$BDEPS_FTP" = xwget; then 48364 VALID_TOOL=yes 48365 wget -O $tmpfile $with_builddeps_server/$resource 48366 fi 48367 if test "x$BDEPS_FTP" = xlftp; then 48368 VALID_TOOL=yes 48369 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48370 fi 48371 if test "x$BDEPS_FTP" = xftp; then 48372 VALID_TOOL=yes 48373 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48374 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48375 FTPUSERPWD=${FTPSERVER%%@*} 48376 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48377 FTPUSER=${userpwd%%:*} 48378 FTPPWD=${userpwd#*@} 48379 FTPSERVER=${FTPSERVER#*@} 48380 else 48381 FTPUSER=ftp 48382 FTPPWD=ftp 48383 fi 48384 # the "pass" command does not work on some 48385 # ftp clients (read ftp.exe) but if it works, 48386 # passive mode is better! 48387 ( \ 48388 echo "user $FTPUSER $FTPPWD" ; \ 48389 echo "pass" ; \ 48390 echo "bin" ; \ 48391 echo "get $FTPPATH $tmpfile" ; \ 48392 ) | ftp -in $FTPSERVER 48393 fi 48394 if test "x$VALID_TOOL" != xyes; then 48395 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48396 fi 48397 48398 mv $tmpfile $installdir/$filename 48399 if test ! -s $installdir/$filename; then 48400 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48401 fi 48402 case "$extension" in 48403 zip) echo "Unzipping $installdir/$filename..." 48404 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48405 ;; 48406 tar.gz) echo "Untaring $installdir/$filename..." 48407 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48408 ;; 48409 tgz) echo "Untaring $installdir/$filename..." 48410 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48411 ;; 48412 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48413 ;; 48414 esac 48415 fi 48416 if test -f $installdir/$filename.unpacked; then 48417 depdir=$installdir 48418 fi 48419 48420 fi 48421 # Source the builddeps file again, because in the previous command, the depdir 48422 # was updated to point at the current build dependency install directory. 48423 . $builddepsfile 48424 # Now extract variables from the builddeps.conf files. 48425 theroot=${builddep_alsa_ROOT} 48426 thecflags=${builddep_alsa_CFLAGS} 48427 thelibs=${builddep_alsa_LIBS} 48428 if test "x$depdir" = x; then 48429 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48430 fi 48431 ALSA=$depdir 48432 if test "x$theroot" != x; then 48433 ALSA="$theroot" 48434 fi 48435 if test "x$thecflags" != x; then 48436 ALSA_CFLAGS="$thecflags" 48437 fi 48438 if test "x$thelibs" != x; then 48439 ALSA_LIBS="$thelibs" 48440 fi 48441 ALSA_FOUND=yes 48442 else ALSA_FOUND=no 48443 48444 fi 48445 else ALSA_FOUND=no 48446 48447 fi 48448 48449 fi 48450 # Do not try pkg-config if we have a sysroot set. 48451 if test "x$SYSROOT" = x; then 48452 if test "x$ALSA_FOUND" = xno; then 48453 48454 pkg_failed=no 48455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48456 $as_echo_n "checking for ALSA... " >&6; } 48457 48458 if test -n "$ALSA_CFLAGS"; then 48459 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48460 elif test -n "$PKG_CONFIG"; then 48461 if test -n "$PKG_CONFIG" && \ 48462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48463 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48464 ac_status=$? 48465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48466 test $ac_status = 0; }; then 48467 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48468 else 48469 pkg_failed=yes 48470 fi 48471 else 48472 pkg_failed=untried 48473 fi 48474 if test -n "$ALSA_LIBS"; then 48475 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48476 elif test -n "$PKG_CONFIG"; then 48477 if test -n "$PKG_CONFIG" && \ 48478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48479 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48480 ac_status=$? 48481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48482 test $ac_status = 0; }; then 48483 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48484 else 48485 pkg_failed=yes 48486 fi 48487 else 48488 pkg_failed=untried 48489 fi 48490 48491 48492 48493 if test $pkg_failed = yes; then 48494 48495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48496 _pkg_short_errors_supported=yes 48497 else 48498 _pkg_short_errors_supported=no 48499 fi 48500 if test $_pkg_short_errors_supported = yes; then 48501 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48502 else 48503 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48504 fi 48505 # Put the nasty error message in config.log where it belongs 48506 echo "$ALSA_PKG_ERRORS" >&5 48507 48508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48509 $as_echo "no" >&6; } 48510 ALSA_FOUND=no 48511 elif test $pkg_failed = untried; then 48512 ALSA_FOUND=no 48513 else 48514 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48515 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48517 $as_echo "yes" >&6; } 48518 ALSA_FOUND=yes 48519 fi 48520 fi 48521 fi 48522 if test "x$ALSA_FOUND" = xno; then 48523 for ac_header in alsa/asoundlib.h 48524 do : 48525 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48526 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48527 cat >>confdefs.h <<_ACEOF 48528 #define HAVE_ALSA_ASOUNDLIB_H 1 48529 _ACEOF 48530 48531 ALSA_FOUND=yes 48532 ALSA_CFLAGS=-Iignoreme 48533 ALSA_LIBS=-lasound 48534 DEFAULT_ALSA=yes 48535 48536 else 48537 ALSA_FOUND=no 48538 fi 48539 48540 done 48541 48542 fi 48543 if test "x$ALSA_FOUND" = xno; then 48544 48545 # Print a helpful message on how to acquire the necessary build dependency. 48546 # alsa is the help tag: freetype, cups, pulse, alsa etc 48547 MISSING_DEPENDENCY=alsa 48548 48549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48550 cygwin_help $MISSING_DEPENDENCY 48551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48552 msys_help $MISSING_DEPENDENCY 48553 else 48554 PKGHANDLER_COMMAND= 48555 48556 case $PKGHANDLER in 48557 apt-get) 48558 apt_help $MISSING_DEPENDENCY ;; 48559 yum) 48560 yum_help $MISSING_DEPENDENCY ;; 48561 port) 48562 port_help $MISSING_DEPENDENCY ;; 48563 pkgutil) 48564 pkgutil_help $MISSING_DEPENDENCY ;; 48565 pkgadd) 48566 pkgadd_help $MISSING_DEPENDENCY ;; 48567 esac 48568 48569 if test "x$PKGHANDLER_COMMAND" != x; then 48570 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48571 fi 48572 fi 48573 48574 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48575 fi 48576 fi 48577 48578 48579 48580 48581 48582 48583 ############################################################################### 48584 # 48585 # Check for the jpeg library 48586 # 48587 48588 48589 # Check whether --with-libjpeg was given. 48590 if test "${with_libjpeg+set}" = set; then : 48591 withval=$with_libjpeg; 48592 fi 48593 48594 48595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48596 $as_echo_n "checking for which libjpeg to use... " >&6; } 48597 48598 # default is bundled 48599 DEFAULT_LIBJPEG=bundled 48600 48601 # 48602 # if user didn't specify, use DEFAULT_LIBJPEG 48603 # 48604 if test "x${with_libjpeg}" = "x"; then 48605 with_libjpeg=${DEFAULT_LIBJPEG} 48606 fi 48607 48608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48609 $as_echo "${with_libjpeg}" >&6; } 48610 48611 if test "x${with_libjpeg}" = "xbundled"; then 48612 USE_EXTERNAL_LIBJPEG=false 48613 elif test "x${with_libjpeg}" = "xsystem"; then 48614 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48615 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48616 48617 else 48618 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48619 fi 48620 48621 48622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48623 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48624 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48625 $as_echo_n "(cached) " >&6 48626 else 48627 ac_check_lib_save_LIBS=$LIBS 48628 LIBS="-ljpeg $LIBS" 48629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48630 /* end confdefs.h. */ 48631 48632 /* Override any GCC internal prototype to avoid an error. 48633 Use char because int might match the return type of a GCC 48634 builtin and then its argument prototype would still apply. */ 48635 #ifdef __cplusplus 48636 extern "C" 48637 #endif 48638 char jpeg_CreateDecompress (); 48639 int 48640 main () 48641 { 48642 return jpeg_CreateDecompress (); 48643 ; 48644 return 0; 48645 } 48646 _ACEOF 48647 if ac_fn_cxx_try_link "$LINENO"; then : 48648 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48649 else 48650 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48651 fi 48652 rm -f core conftest.err conftest.$ac_objext \ 48653 conftest$ac_exeext conftest.$ac_ext 48654 LIBS=$ac_check_lib_save_LIBS 48655 fi 48656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48657 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48658 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48659 cat >>confdefs.h <<_ACEOF 48660 #define HAVE_LIBJPEG 1 48661 _ACEOF 48662 48663 LIBS="-ljpeg $LIBS" 48664 48665 else 48666 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48667 fi 48668 48669 48670 USE_EXTERNAL_LIBJPEG=true 48671 else 48672 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48673 fi 48674 48675 48676 48677 ############################################################################### 48678 # 48679 # Check for the gif library 48680 # 48681 48682 48683 # Check whether --with-giflib was given. 48684 if test "${with_giflib+set}" = set; then : 48685 withval=$with_giflib; 48686 fi 48687 48688 48689 48690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48691 $as_echo_n "checking for which giflib to use... " >&6; } 48692 48693 # default is bundled 48694 DEFAULT_GIFLIB=bundled 48695 48696 # 48697 # if user didn't specify, use DEFAULT_GIFLIB 48698 # 48699 if test "x${with_giflib}" = "x"; then 48700 with_giflib=${DEFAULT_GIFLIB} 48701 fi 48702 48703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48704 $as_echo "${with_giflib}" >&6; } 48705 48706 if test "x${with_giflib}" = "xbundled"; then 48707 USE_EXTERNAL_LIBGIF=false 48708 elif test "x${with_giflib}" = "xsystem"; then 48709 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48710 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48711 48712 else 48713 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48714 fi 48715 48716 48717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48718 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48719 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48720 $as_echo_n "(cached) " >&6 48721 else 48722 ac_check_lib_save_LIBS=$LIBS 48723 LIBS="-lgif $LIBS" 48724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48725 /* end confdefs.h. */ 48726 48727 /* Override any GCC internal prototype to avoid an error. 48728 Use char because int might match the return type of a GCC 48729 builtin and then its argument prototype would still apply. */ 48730 #ifdef __cplusplus 48731 extern "C" 48732 #endif 48733 char DGifGetCode (); 48734 int 48735 main () 48736 { 48737 return DGifGetCode (); 48738 ; 48739 return 0; 48740 } 48741 _ACEOF 48742 if ac_fn_cxx_try_link "$LINENO"; then : 48743 ac_cv_lib_gif_DGifGetCode=yes 48744 else 48745 ac_cv_lib_gif_DGifGetCode=no 48746 fi 48747 rm -f core conftest.err conftest.$ac_objext \ 48748 conftest$ac_exeext conftest.$ac_ext 48749 LIBS=$ac_check_lib_save_LIBS 48750 fi 48751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48752 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48753 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48754 cat >>confdefs.h <<_ACEOF 48755 #define HAVE_LIBGIF 1 48756 _ACEOF 48757 48758 LIBS="-lgif $LIBS" 48759 48760 else 48761 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48762 fi 48763 48764 48765 USE_EXTERNAL_LIBGIF=true 48766 else 48767 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48768 fi 48769 48770 48771 ############################################################################### 48772 # 48773 # Check for the lcms2 library 48774 # 48775 48776 48777 # Check whether --with-lcms was given. 48778 if test "${with_lcms+set}" = set; then : 48779 withval=$with_lcms; 48780 fi 48781 48782 48783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 48784 $as_echo_n "checking for which lcms to use... " >&6; } 48785 48786 DEFAULT_LCMS=bundled 48787 48788 # 48789 # If user didn't specify, use DEFAULT_LCMS 48790 # 48791 if test "x${with_lcms}" = "x"; then 48792 with_lcms=${DEFAULT_LCMS} 48793 fi 48794 48795 if test "x${with_lcms}" = "xbundled"; then 48796 USE_EXTERNAL_LCMS=false 48797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48798 $as_echo "bundled" >&6; } 48799 elif test "x${with_lcms}" = "xsystem"; then 48800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48801 $as_echo "system" >&6; } 48802 48803 pkg_failed=no 48804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 48805 $as_echo_n "checking for LCMS... " >&6; } 48806 48807 if test -n "$LCMS_CFLAGS"; then 48808 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 48809 elif test -n "$PKG_CONFIG"; then 48810 if test -n "$PKG_CONFIG" && \ 48811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48812 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48813 ac_status=$? 48814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48815 test $ac_status = 0; }; then 48816 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 48817 else 48818 pkg_failed=yes 48819 fi 48820 else 48821 pkg_failed=untried 48822 fi 48823 if test -n "$LCMS_LIBS"; then 48824 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 48825 elif test -n "$PKG_CONFIG"; then 48826 if test -n "$PKG_CONFIG" && \ 48827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48828 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48829 ac_status=$? 48830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48831 test $ac_status = 0; }; then 48832 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 48833 else 48834 pkg_failed=yes 48835 fi 48836 else 48837 pkg_failed=untried 48838 fi 48839 48840 48841 48842 if test $pkg_failed = yes; then 48843 48844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48845 _pkg_short_errors_supported=yes 48846 else 48847 _pkg_short_errors_supported=no 48848 fi 48849 if test $_pkg_short_errors_supported = yes; then 48850 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 48851 else 48852 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 48853 fi 48854 # Put the nasty error message in config.log where it belongs 48855 echo "$LCMS_PKG_ERRORS" >&5 48856 48857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48858 $as_echo "no" >&6; } 48859 LCMS_FOUND=no 48860 elif test $pkg_failed = untried; then 48861 LCMS_FOUND=no 48862 else 48863 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 48864 LCMS_LIBS=$pkg_cv_LCMS_LIBS 48865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48866 $as_echo "yes" >&6; } 48867 LCMS_FOUND=yes 48868 fi 48869 if test "x${LCMS_FOUND}" = "xyes"; then 48870 USE_EXTERNAL_LCMS=true 48871 else 48872 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 48873 fi 48874 else 48875 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 48876 fi 48877 48878 48879 48880 ############################################################################### 48881 # 48882 # Check for the png library 48883 # 48884 48885 48886 # Check whether --with-libpng was given. 48887 if test "${with_libpng+set}" = set; then : 48888 withval=$with_libpng; 48889 fi 48890 48891 48892 48893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 48894 $as_echo_n "checking for which libpng to use... " >&6; } 48895 48896 # default is bundled 48897 DEFAULT_LIBPNG=bundled 48898 48899 # 48900 # if user didn't specify, use DEFAULT_LIBPNG 48901 # 48902 if test "x${with_libpng}" = "x"; then 48903 with_libpng=${DEFAULT_LIBPNG} 48904 fi 48905 48906 if test "x${with_libpng}" = "xbundled"; then 48907 USE_EXTERNAL_LIBPNG=false 48908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48909 $as_echo "bundled" >&6; } 48910 elif test "x${with_libpng}" = "xsystem"; then 48911 48912 pkg_failed=no 48913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 48914 $as_echo_n "checking for PNG... " >&6; } 48915 48916 if test -n "$PNG_CFLAGS"; then 48917 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 48918 elif test -n "$PKG_CONFIG"; then 48919 if test -n "$PKG_CONFIG" && \ 48920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48921 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48922 ac_status=$? 48923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48924 test $ac_status = 0; }; then 48925 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 48926 else 48927 pkg_failed=yes 48928 fi 48929 else 48930 pkg_failed=untried 48931 fi 48932 if test -n "$PNG_LIBS"; then 48933 pkg_cv_PNG_LIBS="$PNG_LIBS" 48934 elif test -n "$PKG_CONFIG"; then 48935 if test -n "$PKG_CONFIG" && \ 48936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48937 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48938 ac_status=$? 48939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48940 test $ac_status = 0; }; then 48941 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 48942 else 48943 pkg_failed=yes 48944 fi 48945 else 48946 pkg_failed=untried 48947 fi 48948 48949 48950 48951 if test $pkg_failed = yes; then 48952 48953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48954 _pkg_short_errors_supported=yes 48955 else 48956 _pkg_short_errors_supported=no 48957 fi 48958 if test $_pkg_short_errors_supported = yes; then 48959 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 48960 else 48961 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 48962 fi 48963 # Put the nasty error message in config.log where it belongs 48964 echo "$PNG_PKG_ERRORS" >&5 48965 48966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48967 $as_echo "no" >&6; } 48968 LIBPNG_FOUND=no 48969 elif test $pkg_failed = untried; then 48970 LIBPNG_FOUND=no 48971 else 48972 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 48973 PNG_LIBS=$pkg_cv_PNG_LIBS 48974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48975 $as_echo "yes" >&6; } 48976 LIBPNG_FOUND=yes 48977 fi 48978 if test "x${LIBPNG_FOUND}" = "xyes"; then 48979 USE_EXTERNAL_LIBPNG=true 48980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48981 $as_echo "system" >&6; } 48982 else 48983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48984 $as_echo "system not found" >&6; } 48985 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 48986 fi 48987 else 48988 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 48989 fi 48990 48991 48992 ############################################################################### 48993 # 48994 # Check for the zlib library 48995 # 48996 48997 48998 # Check whether --with-zlib was given. 48999 if test "${with_zlib+set}" = set; then : 49000 withval=$with_zlib; 49001 fi 49002 49003 49004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49005 $as_echo_n "checking for compress in -lz... " >&6; } 49006 if ${ac_cv_lib_z_compress+:} false; then : 49007 $as_echo_n "(cached) " >&6 49008 else 49009 ac_check_lib_save_LIBS=$LIBS 49010 LIBS="-lz $LIBS" 49011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49012 /* end confdefs.h. */ 49013 49014 /* Override any GCC internal prototype to avoid an error. 49015 Use char because int might match the return type of a GCC 49016 builtin and then its argument prototype would still apply. */ 49017 #ifdef __cplusplus 49018 extern "C" 49019 #endif 49020 char compress (); 49021 int 49022 main () 49023 { 49024 return compress (); 49025 ; 49026 return 0; 49027 } 49028 _ACEOF 49029 if ac_fn_cxx_try_link "$LINENO"; then : 49030 ac_cv_lib_z_compress=yes 49031 else 49032 ac_cv_lib_z_compress=no 49033 fi 49034 rm -f core conftest.err conftest.$ac_objext \ 49035 conftest$ac_exeext conftest.$ac_ext 49036 LIBS=$ac_check_lib_save_LIBS 49037 fi 49038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49039 $as_echo "$ac_cv_lib_z_compress" >&6; } 49040 if test "x$ac_cv_lib_z_compress" = xyes; then : 49041 ZLIB_FOUND=yes 49042 else 49043 ZLIB_FOUND=no 49044 fi 49045 49046 49047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49048 $as_echo_n "checking for which zlib to use... " >&6; } 49049 49050 DEFAULT_ZLIB=bundled 49051 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49052 # 49053 # On macosx default is system...on others default is 49054 # 49055 DEFAULT_ZLIB=system 49056 fi 49057 49058 if test "x${ZLIB_FOUND}" != "xyes"; then 49059 # 49060 # If we don't find any system...set default to bundled 49061 # 49062 DEFAULT_ZLIB=bundled 49063 fi 49064 49065 # 49066 # If user didn't specify, use DEFAULT_ZLIB 49067 # 49068 if test "x${with_zlib}" = "x"; then 49069 with_zlib=${DEFAULT_ZLIB} 49070 fi 49071 49072 if test "x${with_zlib}" = "xbundled"; then 49073 USE_EXTERNAL_LIBZ=false 49074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49075 $as_echo "bundled" >&6; } 49076 elif test "x${with_zlib}" = "xsystem"; then 49077 if test "x${ZLIB_FOUND}" = "xyes"; then 49078 USE_EXTERNAL_LIBZ=true 49079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49080 $as_echo "system" >&6; } 49081 else 49082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49083 $as_echo "system not found" >&6; } 49084 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49085 fi 49086 else 49087 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49088 fi 49089 49090 49091 49092 ############################################################################### 49093 LIBZIP_CAN_USE_MMAP=true 49094 49095 49096 49097 ############################################################################### 49098 # 49099 # Check if altzone exists in time.h 49100 # 49101 49102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49103 /* end confdefs.h. */ 49104 #include <time.h> 49105 int 49106 main () 49107 { 49108 return (int)altzone; 49109 ; 49110 return 0; 49111 } 49112 _ACEOF 49113 if ac_fn_cxx_try_link "$LINENO"; then : 49114 has_altzone=yes 49115 else 49116 has_altzone=no 49117 fi 49118 rm -f core conftest.err conftest.$ac_objext \ 49119 conftest$ac_exeext conftest.$ac_ext 49120 if test "x$has_altzone" = xyes; then 49121 49122 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49123 49124 fi 49125 49126 ############################################################################### 49127 # 49128 # Check the maths library 49129 # 49130 49131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49132 $as_echo_n "checking for cos in -lm... " >&6; } 49133 if ${ac_cv_lib_m_cos+:} false; then : 49134 $as_echo_n "(cached) " >&6 49135 else 49136 ac_check_lib_save_LIBS=$LIBS 49137 LIBS="-lm $LIBS" 49138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49139 /* end confdefs.h. */ 49140 49141 /* Override any GCC internal prototype to avoid an error. 49142 Use char because int might match the return type of a GCC 49143 builtin and then its argument prototype would still apply. */ 49144 #ifdef __cplusplus 49145 extern "C" 49146 #endif 49147 char cos (); 49148 int 49149 main () 49150 { 49151 return cos (); 49152 ; 49153 return 0; 49154 } 49155 _ACEOF 49156 if ac_fn_cxx_try_link "$LINENO"; then : 49157 ac_cv_lib_m_cos=yes 49158 else 49159 ac_cv_lib_m_cos=no 49160 fi 49161 rm -f core conftest.err conftest.$ac_objext \ 49162 conftest$ac_exeext conftest.$ac_ext 49163 LIBS=$ac_check_lib_save_LIBS 49164 fi 49165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49166 $as_echo "$ac_cv_lib_m_cos" >&6; } 49167 if test "x$ac_cv_lib_m_cos" = xyes; then : 49168 cat >>confdefs.h <<_ACEOF 49169 #define HAVE_LIBM 1 49170 _ACEOF 49171 49172 LIBS="-lm $LIBS" 49173 49174 else 49175 49176 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49177 $as_echo "$as_me: Maths library was not found" >&6;} 49178 49179 49180 fi 49181 49182 49183 49184 ############################################################################### 49185 # 49186 # Check for libdl.so 49187 49188 save_LIBS="$LIBS" 49189 LIBS="" 49190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49191 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49192 if ${ac_cv_lib_dl_dlopen+:} false; then : 49193 $as_echo_n "(cached) " >&6 49194 else 49195 ac_check_lib_save_LIBS=$LIBS 49196 LIBS="-ldl $LIBS" 49197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49198 /* end confdefs.h. */ 49199 49200 /* Override any GCC internal prototype to avoid an error. 49201 Use char because int might match the return type of a GCC 49202 builtin and then its argument prototype would still apply. */ 49203 #ifdef __cplusplus 49204 extern "C" 49205 #endif 49206 char dlopen (); 49207 int 49208 main () 49209 { 49210 return dlopen (); 49211 ; 49212 return 0; 49213 } 49214 _ACEOF 49215 if ac_fn_cxx_try_link "$LINENO"; then : 49216 ac_cv_lib_dl_dlopen=yes 49217 else 49218 ac_cv_lib_dl_dlopen=no 49219 fi 49220 rm -f core conftest.err conftest.$ac_objext \ 49221 conftest$ac_exeext conftest.$ac_ext 49222 LIBS=$ac_check_lib_save_LIBS 49223 fi 49224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49225 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49226 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49227 cat >>confdefs.h <<_ACEOF 49228 #define HAVE_LIBDL 1 49229 _ACEOF 49230 49231 LIBS="-ldl $LIBS" 49232 49233 fi 49234 49235 LIBDL="$LIBS" 49236 49237 LIBS="$save_LIBS" 49238 49239 49240 ############################################################################### 49241 # 49242 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49243 # dynamic build is configured on command line. 49244 # 49245 49246 # Check whether --with-stdc++lib was given. 49247 if test "${with_stdc__lib+set}" = set; then : 49248 withval=$with_stdc__lib; 49249 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49250 && test "x$with_stdc__lib" != xdefault; then 49251 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49252 fi 49253 49254 else 49255 with_stdc__lib=default 49256 49257 fi 49258 49259 49260 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49261 # Test if -lstdc++ works. 49262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49263 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49264 ac_ext=cpp 49265 ac_cpp='$CXXCPP $CPPFLAGS' 49266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49269 49270 OLD_CXXFLAGS="$CXXFLAGS" 49271 CXXFLAGS="$CXXFLAGS -lstdc++" 49272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49273 /* end confdefs.h. */ 49274 49275 int 49276 main () 49277 { 49278 return 0; 49279 ; 49280 return 0; 49281 } 49282 _ACEOF 49283 if ac_fn_cxx_try_link "$LINENO"; then : 49284 has_dynamic_libstdcxx=yes 49285 else 49286 has_dynamic_libstdcxx=no 49287 fi 49288 rm -f core conftest.err conftest.$ac_objext \ 49289 conftest$ac_exeext conftest.$ac_ext 49290 CXXFLAGS="$OLD_CXXFLAGS" 49291 ac_ext=cpp 49292 ac_cpp='$CXXCPP $CPPFLAGS' 49293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49296 49297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49298 $as_echo "$has_dynamic_libstdcxx" >&6; } 49299 49300 # Test if stdc++ can be linked statically. 49301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49302 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49303 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49304 ac_ext=cpp 49305 ac_cpp='$CXXCPP $CPPFLAGS' 49306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49309 49310 OLD_LIBS="$LIBS" 49311 OLD_CXX="$CXX" 49312 LIBS="$STATIC_STDCXX_FLAGS" 49313 CXX="$CC" 49314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49315 /* end confdefs.h. */ 49316 49317 int 49318 main () 49319 { 49320 return 0; 49321 ; 49322 return 0; 49323 } 49324 _ACEOF 49325 if ac_fn_cxx_try_link "$LINENO"; then : 49326 has_static_libstdcxx=yes 49327 else 49328 has_static_libstdcxx=no 49329 fi 49330 rm -f core conftest.err conftest.$ac_objext \ 49331 conftest$ac_exeext conftest.$ac_ext 49332 LIBS="$OLD_LIBS" 49333 CXX="$OLD_CXX" 49334 ac_ext=cpp 49335 ac_cpp='$CXXCPP $CPPFLAGS' 49336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49339 49340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49341 $as_echo "$has_static_libstdcxx" >&6; } 49342 49343 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49344 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49345 fi 49346 49347 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49348 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49349 fi 49350 49351 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49352 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49353 fi 49354 49355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49356 $as_echo_n "checking how to link with libstdc++... " >&6; } 49357 # If dynamic was requested, it's available since it would fail above otherwise. 49358 # If dynamic wasn't requested, go with static unless it isn't available. 49359 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49360 LIBCXX="$LIBCXX -lstdc++" 49361 LDCXX="$CXX" 49362 STATIC_CXX_SETTING="STATIC_CXX=false" 49363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49364 $as_echo "dynamic" >&6; } 49365 else 49366 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49367 LDCXX="$CC" 49368 STATIC_CXX_SETTING="STATIC_CXX=true" 49369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49370 $as_echo "static" >&6; } 49371 fi 49372 fi 49373 49374 49375 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49376 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49377 49378 pkg_failed=no 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49380 $as_echo_n "checking for LIBFFI... " >&6; } 49381 49382 if test -n "$LIBFFI_CFLAGS"; then 49383 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49384 elif test -n "$PKG_CONFIG"; then 49385 if test -n "$PKG_CONFIG" && \ 49386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49387 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49388 ac_status=$? 49389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49390 test $ac_status = 0; }; then 49391 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49392 else 49393 pkg_failed=yes 49394 fi 49395 else 49396 pkg_failed=untried 49397 fi 49398 if test -n "$LIBFFI_LIBS"; then 49399 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49400 elif test -n "$PKG_CONFIG"; then 49401 if test -n "$PKG_CONFIG" && \ 49402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49403 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49404 ac_status=$? 49405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49406 test $ac_status = 0; }; then 49407 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49408 else 49409 pkg_failed=yes 49410 fi 49411 else 49412 pkg_failed=untried 49413 fi 49414 49415 49416 49417 if test $pkg_failed = yes; then 49418 49419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49420 _pkg_short_errors_supported=yes 49421 else 49422 _pkg_short_errors_supported=no 49423 fi 49424 if test $_pkg_short_errors_supported = yes; then 49425 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49426 else 49427 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49428 fi 49429 # Put the nasty error message in config.log where it belongs 49430 echo "$LIBFFI_PKG_ERRORS" >&5 49431 49432 as_fn_error $? "Package requirements (libffi) were not met: 49433 49434 $LIBFFI_PKG_ERRORS 49435 49436 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49437 installed software in a non-standard prefix. 49438 49439 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49440 and LIBFFI_LIBS to avoid the need to call pkg-config. 49441 See the pkg-config man page for more details. 49442 " "$LINENO" 5 49443 elif test $pkg_failed = untried; then 49444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49446 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49447 is in your PATH or set the PKG_CONFIG environment variable to the full 49448 path to pkg-config. 49449 49450 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49451 and LIBFFI_LIBS to avoid the need to call pkg-config. 49452 See the pkg-config man page for more details. 49453 49454 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49455 See \`config.log' for more details" "$LINENO" 5; } 49456 else 49457 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49458 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49460 $as_echo "yes" >&6; } 49461 : 49462 fi 49463 49464 fi 49465 49466 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49467 # Extract the first word of "llvm-config", so it can be a program name with args. 49468 set dummy llvm-config; ac_word=$2 49469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49470 $as_echo_n "checking for $ac_word... " >&6; } 49471 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49472 $as_echo_n "(cached) " >&6 49473 else 49474 if test -n "$LLVM_CONFIG"; then 49475 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49476 else 49477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49478 for as_dir in $PATH 49479 do 49480 IFS=$as_save_IFS 49481 test -z "$as_dir" && as_dir=. 49482 for ac_exec_ext in '' $ac_executable_extensions; do 49483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49484 ac_cv_prog_LLVM_CONFIG="llvm-config" 49485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49486 break 2 49487 fi 49488 done 49489 done 49490 IFS=$as_save_IFS 49491 49492 fi 49493 fi 49494 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49495 if test -n "$LLVM_CONFIG"; then 49496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49497 $as_echo "$LLVM_CONFIG" >&6; } 49498 else 49499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49500 $as_echo "no" >&6; } 49501 fi 49502 49503 49504 49505 if test "x$LLVM_CONFIG" != xllvm-config; then 49506 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49507 fi 49508 49509 llvm_components="jit mcjit engine nativecodegen native" 49510 unset LLVM_CFLAGS 49511 for flag in $("$LLVM_CONFIG" --cxxflags); do 49512 if echo "${flag}" | grep -q '^-[ID]'; then 49513 if test "${flag}" != "-D_DEBUG" ; then 49514 if test "${LLVM_CFLAGS}" != "" ; then 49515 LLVM_CFLAGS="${LLVM_CFLAGS} " 49516 fi 49517 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49518 fi 49519 fi 49520 done 49521 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49522 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49523 49524 unset LLVM_LDFLAGS 49525 for flag in $("${LLVM_CONFIG}" --ldflags); do 49526 if echo "${flag}" | grep -q '^-L'; then 49527 if test "${LLVM_LDFLAGS}" != ""; then 49528 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49529 fi 49530 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49531 fi 49532 done 49533 49534 unset LLVM_LIBS 49535 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49536 if echo "${flag}" | grep -q '^-l'; then 49537 if test "${LLVM_LIBS}" != ""; then 49538 LLVM_LIBS="${LLVM_LIBS} " 49539 fi 49540 LLVM_LIBS="${LLVM_LIBS}${flag}" 49541 fi 49542 done 49543 49544 49545 49546 49547 fi 49548 49549 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49550 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49551 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49552 fi 49553 49554 # TODO better (platform agnostic) test 49555 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49556 LIBCXX="-lstdc++" 49557 fi 49558 49559 49560 49561 49562 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49563 49564 49565 # Check whether --with-msvcr-dll was given. 49566 if test "${with_msvcr_dll+set}" = set; then : 49567 withval=$with_msvcr_dll; 49568 fi 49569 49570 49571 if test "x$with_msvcr_dll" != x; then 49572 # If given explicitely by user, do not probe. If not present, fail directly. 49573 49574 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49575 METHOD="--with-msvcr-dll" 49576 if test -e "$POSSIBLE_MSVCR_DLL"; then 49577 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49578 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49579 49580 # Need to check if the found msvcr is correct architecture 49581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49582 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49583 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49585 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49586 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49587 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49588 CORRECT_MSVCR_ARCH="PE32 executable" 49589 else 49590 CORRECT_MSVCR_ARCH="PE32+ executable" 49591 fi 49592 else 49593 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49594 CORRECT_MSVCR_ARCH=386 49595 else 49596 CORRECT_MSVCR_ARCH=x86-64 49597 fi 49598 fi 49599 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49601 $as_echo "ok" >&6; } 49602 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49604 $as_echo_n "checking for msvcr100.dll... " >&6; } 49605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49606 $as_echo "$MSVCR_DLL" >&6; } 49607 else 49608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49609 $as_echo "incorrect, ignoring" >&6; } 49610 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49611 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49612 fi 49613 fi 49614 49615 if test "x$MSVCR_DLL" = x; then 49616 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49617 fi 49618 fi 49619 49620 if test "x$MSVCR_DLL" = x; then 49621 # Probe: Using well-known location from Visual Studio 10.0 49622 if test "x$VCINSTALLDIR" != x; then 49623 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49624 49625 windows_path="$CYGWIN_VC_INSTALL_DIR" 49626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49627 unix_path=`$CYGPATH -u "$windows_path"` 49628 CYGWIN_VC_INSTALL_DIR="$unix_path" 49629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49631 CYGWIN_VC_INSTALL_DIR="$unix_path" 49632 fi 49633 49634 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49635 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49636 else 49637 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49638 fi 49639 49640 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49641 METHOD="well-known location in VCINSTALLDIR" 49642 if test -e "$POSSIBLE_MSVCR_DLL"; then 49643 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49644 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49645 49646 # Need to check if the found msvcr is correct architecture 49647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49648 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49649 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49651 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49652 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49653 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49654 CORRECT_MSVCR_ARCH="PE32 executable" 49655 else 49656 CORRECT_MSVCR_ARCH="PE32+ executable" 49657 fi 49658 else 49659 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49660 CORRECT_MSVCR_ARCH=386 49661 else 49662 CORRECT_MSVCR_ARCH=x86-64 49663 fi 49664 fi 49665 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49667 $as_echo "ok" >&6; } 49668 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49670 $as_echo_n "checking for msvcr100.dll... " >&6; } 49671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49672 $as_echo "$MSVCR_DLL" >&6; } 49673 else 49674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49675 $as_echo "incorrect, ignoring" >&6; } 49676 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49677 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49678 fi 49679 fi 49680 49681 fi 49682 fi 49683 49684 if test "x$MSVCR_DLL" = x; then 49685 # Probe: Check in the Boot JDK directory. 49686 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49687 49688 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49689 METHOD="well-known location in Boot JDK" 49690 if test -e "$POSSIBLE_MSVCR_DLL"; then 49691 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49692 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49693 49694 # Need to check if the found msvcr is correct architecture 49695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49696 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49697 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49699 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49700 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49701 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49702 CORRECT_MSVCR_ARCH="PE32 executable" 49703 else 49704 CORRECT_MSVCR_ARCH="PE32+ executable" 49705 fi 49706 else 49707 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49708 CORRECT_MSVCR_ARCH=386 49709 else 49710 CORRECT_MSVCR_ARCH=x86-64 49711 fi 49712 fi 49713 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49715 $as_echo "ok" >&6; } 49716 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49718 $as_echo_n "checking for msvcr100.dll... " >&6; } 49719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49720 $as_echo "$MSVCR_DLL" >&6; } 49721 else 49722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49723 $as_echo "incorrect, ignoring" >&6; } 49724 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49725 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49726 fi 49727 fi 49728 49729 fi 49730 49731 if test "x$MSVCR_DLL" = x; then 49732 # Probe: Look in the Windows system32 directory 49733 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49734 49735 windows_path="$CYGWIN_SYSTEMROOT" 49736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49737 unix_path=`$CYGPATH -u "$windows_path"` 49738 CYGWIN_SYSTEMROOT="$unix_path" 49739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49741 CYGWIN_SYSTEMROOT="$unix_path" 49742 fi 49743 49744 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 49745 49746 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49747 METHOD="well-known location in SYSTEMROOT" 49748 if test -e "$POSSIBLE_MSVCR_DLL"; then 49749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49750 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49751 49752 # Need to check if the found msvcr is correct architecture 49753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49754 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49755 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49757 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49758 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49759 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49760 CORRECT_MSVCR_ARCH="PE32 executable" 49761 else 49762 CORRECT_MSVCR_ARCH="PE32+ executable" 49763 fi 49764 else 49765 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49766 CORRECT_MSVCR_ARCH=386 49767 else 49768 CORRECT_MSVCR_ARCH=x86-64 49769 fi 49770 fi 49771 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49773 $as_echo "ok" >&6; } 49774 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49776 $as_echo_n "checking for msvcr100.dll... " >&6; } 49777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49778 $as_echo "$MSVCR_DLL" >&6; } 49779 else 49780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49781 $as_echo "incorrect, ignoring" >&6; } 49782 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49783 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49784 fi 49785 fi 49786 49787 fi 49788 49789 if test "x$MSVCR_DLL" = x; then 49790 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49791 if test "x$VS100COMNTOOLS" != x; then 49792 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49793 49794 windows_path="$CYGWIN_VS_TOOLS_DIR" 49795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49796 unix_path=`$CYGPATH -u "$windows_path"` 49797 CYGWIN_VS_TOOLS_DIR="$unix_path" 49798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49800 CYGWIN_VS_TOOLS_DIR="$unix_path" 49801 fi 49802 49803 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49804 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 49805 else 49806 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 49807 fi 49808 49809 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49810 METHOD="search of VS100COMNTOOLS" 49811 if test -e "$POSSIBLE_MSVCR_DLL"; then 49812 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49813 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49814 49815 # Need to check if the found msvcr is correct architecture 49816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49817 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49818 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49820 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49821 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49822 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49823 CORRECT_MSVCR_ARCH="PE32 executable" 49824 else 49825 CORRECT_MSVCR_ARCH="PE32+ executable" 49826 fi 49827 else 49828 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49829 CORRECT_MSVCR_ARCH=386 49830 else 49831 CORRECT_MSVCR_ARCH=x86-64 49832 fi 49833 fi 49834 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49836 $as_echo "ok" >&6; } 49837 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49839 $as_echo_n "checking for msvcr100.dll... " >&6; } 49840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49841 $as_echo "$MSVCR_DLL" >&6; } 49842 else 49843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49844 $as_echo "incorrect, ignoring" >&6; } 49845 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49846 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49847 fi 49848 fi 49849 49850 fi 49851 fi 49852 49853 if test "x$MSVCR_DLL" = x; then 49854 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49855 # (This was the original behaviour; kept since it might turn up something) 49856 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49857 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49858 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 49859 else 49860 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49861 if test "x$POSSIBLE_MSVCR_DLL" = x; then 49862 # We're grasping at straws now... 49863 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 49864 fi 49865 fi 49866 49867 49868 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49869 METHOD="search of VCINSTALLDIR" 49870 if test -e "$POSSIBLE_MSVCR_DLL"; then 49871 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49872 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49873 49874 # Need to check if the found msvcr is correct architecture 49875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49876 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49877 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49879 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49880 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49881 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49882 CORRECT_MSVCR_ARCH="PE32 executable" 49883 else 49884 CORRECT_MSVCR_ARCH="PE32+ executable" 49885 fi 49886 else 49887 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49888 CORRECT_MSVCR_ARCH=386 49889 else 49890 CORRECT_MSVCR_ARCH=x86-64 49891 fi 49892 fi 49893 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49895 $as_echo "ok" >&6; } 49896 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49898 $as_echo_n "checking for msvcr100.dll... " >&6; } 49899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49900 $as_echo "$MSVCR_DLL" >&6; } 49901 else 49902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49903 $as_echo "incorrect, ignoring" >&6; } 49904 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49905 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49906 fi 49907 fi 49908 49909 fi 49910 fi 49911 49912 if test "x$MSVCR_DLL" = x; then 49913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49914 $as_echo_n "checking for msvcr100.dll... " >&6; } 49915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49916 $as_echo "no" >&6; } 49917 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 49918 fi 49919 49920 49921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49922 49923 # Input might be given as Windows format, start by converting to 49924 # unix format. 49925 path="$MSVCR_DLL" 49926 new_path=`$CYGPATH -u "$path"` 49927 49928 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49929 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49930 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49931 # "foo.exe" is OK but "foo" is an error. 49932 # 49933 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49934 # It is also a way to make sure we got the proper file name for the real test later on. 49935 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49936 if test "x$test_shortpath" = x; then 49937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49938 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49939 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 49940 fi 49941 49942 # Call helper function which possibly converts this using DOS-style short mode. 49943 # If so, the updated path is stored in $new_path. 49944 49945 input_path="$new_path" 49946 # Check if we need to convert this using DOS-style short mode. If the path 49947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49948 # take no chances and rewrite it. 49949 # Note: m4 eats our [], so we need to use [ and ] instead. 49950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49951 if test "x$has_forbidden_chars" != x; then 49952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49956 # Going to short mode and back again did indeed matter. Since short mode is 49957 # case insensitive, let's make it lowercase to improve readability. 49958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49959 # Now convert it back to Unix-stile (cygpath) 49960 input_path=`$CYGPATH -u "$shortmode_path"` 49961 new_path="$input_path" 49962 fi 49963 fi 49964 49965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49966 if test "x$test_cygdrive_prefix" = x; then 49967 # As a simple fix, exclude /usr/bin since it's not a real path. 49968 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49970 # a path prefixed by /cygdrive for fixpath to work. 49971 new_path="$CYGWIN_ROOT_PATH$input_path" 49972 fi 49973 fi 49974 49975 49976 if test "x$path" != "x$new_path"; then 49977 MSVCR_DLL="$new_path" 49978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49979 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49980 fi 49981 49982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49983 49984 path="$MSVCR_DLL" 49985 has_colon=`$ECHO $path | $GREP ^.:` 49986 new_path="$path" 49987 if test "x$has_colon" = x; then 49988 # Not in mixed or Windows style, start by that. 49989 new_path=`cmd //c echo $path` 49990 fi 49991 49992 49993 input_path="$new_path" 49994 # Check if we need to convert this using DOS-style short mode. If the path 49995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49996 # take no chances and rewrite it. 49997 # Note: m4 eats our [], so we need to use [ and ] instead. 49998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49999 if test "x$has_forbidden_chars" != x; then 50000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50001 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50002 fi 50003 50004 50005 windows_path="$new_path" 50006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50007 unix_path=`$CYGPATH -u "$windows_path"` 50008 new_path="$unix_path" 50009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50011 new_path="$unix_path" 50012 fi 50013 50014 if test "x$path" != "x$new_path"; then 50015 MSVCR_DLL="$new_path" 50016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50017 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50018 fi 50019 50020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50022 50023 else 50024 # We're on a posix platform. Hooray! :) 50025 path="$MSVCR_DLL" 50026 has_space=`$ECHO "$path" | $GREP " "` 50027 if test "x$has_space" != x; then 50028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50029 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50030 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50031 fi 50032 50033 # Use eval to expand a potential ~ 50034 eval path="$path" 50035 if test ! -f "$path" && test ! -d "$path"; then 50036 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50037 fi 50038 50039 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50040 fi 50041 50042 50043 50044 50045 # Check whether --with-dxsdk was given. 50046 if test "${with_dxsdk+set}" = set; then : 50047 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50048 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50049 fi 50050 50051 50052 50053 50054 # Check whether --with-dxsdk-lib was given. 50055 if test "${with_dxsdk_lib+set}" = set; then : 50056 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50057 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50058 fi 50059 50060 50061 50062 50063 # Check whether --with-dxsdk-include was given. 50064 if test "${with_dxsdk_include+set}" = set; then : 50065 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50066 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50067 fi 50068 50069 50070 fi 50071 50072 50073 50074 ############################################################################### 50075 # 50076 # We need to do some final tweaking, when everything else is done. 50077 # 50078 ############################################################################### 50079 50080 50081 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50082 50083 50084 # The name of the Service Agent jar. 50085 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50086 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50087 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50088 fi 50089 50090 50091 50092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50093 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50094 50095 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50096 ENABLE_INTREE_EC=yes 50097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50098 $as_echo "yes" >&6; } 50099 else 50100 ENABLE_INTREE_EC=no 50101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50102 $as_echo "no" >&6; } 50103 fi 50104 50105 50106 50107 50108 ############################################################################### 50109 # 50110 # Configure parts of the build that only affect the build performance, 50111 # not the result. 50112 # 50113 ############################################################################### 50114 50115 50116 # How many cores do we have on this build system? 50117 50118 # Check whether --with-num-cores was given. 50119 if test "${with_num_cores+set}" = set; then : 50120 withval=$with_num_cores; 50121 fi 50122 50123 if test "x$with_num_cores" = x; then 50124 # The number of cores were not specified, try to probe them. 50125 50126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 50127 $as_echo_n "checking for number of cores... " >&6; } 50128 NUM_CORES=1 50129 FOUND_CORES=no 50130 50131 if test -f /proc/cpuinfo; then 50132 # Looks like a Linux (or cygwin) system 50133 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 50134 FOUND_CORES=yes 50135 elif test -x /usr/sbin/psrinfo; then 50136 # Looks like a Solaris system 50137 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 50138 FOUND_CORES=yes 50139 elif test -x /usr/sbin/system_profiler; then 50140 # Looks like a MacOSX system 50141 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 50142 FOUND_CORES=yes 50143 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 50144 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 50145 FOUND_CORES=yes 50146 elif test -n "$NUMBER_OF_PROCESSORS"; then 50147 # On windows, look in the env 50148 NUM_CORES=$NUMBER_OF_PROCESSORS 50149 FOUND_CORES=yes 50150 fi 50151 50152 if test "x$FOUND_CORES" = xyes; then 50153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 50154 $as_echo "$NUM_CORES" >&6; } 50155 else 50156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 50157 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 50158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 50159 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 50160 fi 50161 50162 else 50163 NUM_CORES=$with_num_cores 50164 fi 50165 50166 50167 50168 # How much memory do we have on this build system? 50169 50170 # Check whether --with-memory-size was given. 50171 if test "${with_memory_size+set}" = set; then : 50172 withval=$with_memory_size; 50173 fi 50174 50175 if test "x$with_memory_size" = x; then 50176 # The memory size was not specified, try to probe it. 50177 50178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 50179 $as_echo_n "checking for memory size... " >&6; } 50180 # Default to 1024 MB 50181 MEMORY_SIZE=1024 50182 FOUND_MEM=no 50183 50184 if test -f /proc/meminfo; then 50185 # Looks like a Linux (or cygwin) system 50186 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 50187 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 50188 FOUND_MEM=yes 50189 elif test -x /usr/sbin/prtconf; then 50190 # Looks like a Solaris or AIX system 50191 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 50192 FOUND_MEM=yes 50193 elif test -x /usr/sbin/system_profiler; then 50194 # Looks like a MacOSX system 50195 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 50196 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 50197 FOUND_MEM=yes 50198 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50199 # Windows, but without cygwin 50200 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 50201 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50202 FOUND_MEM=yes 50203 fi 50204 50205 if test "x$FOUND_MEM" = xyes; then 50206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50207 $as_echo "$MEMORY_SIZE MB" >&6; } 50208 else 50209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50210 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50212 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50213 fi 50214 50215 else 50216 MEMORY_SIZE=$with_memory_size 50217 fi 50218 50219 50220 50221 # Provide a decent default number of parallel jobs for make depending on 50222 # number of cores, amount of memory and machine architecture. 50223 50224 # Check whether --with-jobs was given. 50225 if test "${with_jobs+set}" = set; then : 50226 withval=$with_jobs; 50227 fi 50228 50229 if test "x$with_jobs" = x; then 50230 # Number of jobs was not specified, calculate. 50231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50232 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50233 # Approximate memory in GB. 50234 memory_gb=`expr $MEMORY_SIZE / 1024` 50235 # Pick the lowest of memory in gb and number of cores. 50236 if test "$memory_gb" -lt "$NUM_CORES"; then 50237 JOBS="$memory_gb" 50238 else 50239 JOBS="$NUM_CORES" 50240 # On bigger machines, leave some room for other processes to run 50241 if test "$JOBS" -gt "4"; then 50242 JOBS=`expr $JOBS '*' 90 / 100` 50243 fi 50244 fi 50245 # Cap number of jobs to 16 50246 if test "$JOBS" -gt "16"; then 50247 JOBS=16 50248 fi 50249 if test "$JOBS" -eq "0"; then 50250 JOBS=1 50251 fi 50252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50253 $as_echo "$JOBS" >&6; } 50254 else 50255 JOBS=$with_jobs 50256 fi 50257 50258 50259 50260 # Setup arguments for the boot jdk (after cores and memory have been setup) 50261 50262 ############################################################################## 50263 # 50264 # Specify jvm options for anything that is run with the Boot JDK. 50265 # Not all JVM:s accept the same arguments on the command line. 50266 # 50267 50268 # Check whether --with-boot-jdk-jvmargs was given. 50269 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50270 withval=$with_boot_jdk_jvmargs; 50271 fi 50272 50273 50274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50275 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50276 50277 # Disable special log output when a debug build is used as Boot JDK... 50278 50279 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50280 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50281 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50282 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50283 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50284 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50285 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50286 JVM_ARG_OK=true 50287 else 50288 $ECHO "Arg failed:" >&5 50289 $ECHO "$OUTPUT" >&5 50290 JVM_ARG_OK=false 50291 fi 50292 50293 50294 # Apply user provided options. 50295 50296 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50297 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50298 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50299 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50300 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50301 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50302 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50303 JVM_ARG_OK=true 50304 else 50305 $ECHO "Arg failed:" >&5 50306 $ECHO "$OUTPUT" >&5 50307 JVM_ARG_OK=false 50308 fi 50309 50310 50311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50312 $as_echo "$boot_jdk_jvmargs" >&6; } 50313 50314 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50315 JAVA_FLAGS=$boot_jdk_jvmargs 50316 50317 50318 50319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50320 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50321 50322 # Starting amount of heap memory. 50323 50324 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50325 $ECHO "Command: $JAVA -Xms64M -version" >&5 50326 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50327 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50328 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50329 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50330 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50331 JVM_ARG_OK=true 50332 else 50333 $ECHO "Arg failed:" >&5 50334 $ECHO "$OUTPUT" >&5 50335 JVM_ARG_OK=false 50336 fi 50337 50338 50339 # Maximum amount of heap memory. 50340 # Maximum stack size. 50341 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 50342 if test "x$BUILD_NUM_BITS" = x32; then 50343 if test "$JVM_MAX_HEAP" -gt "1100"; then 50344 JVM_MAX_HEAP=1100 50345 elif test "$JVM_MAX_HEAP" -lt "512"; then 50346 JVM_MAX_HEAP=512 50347 fi 50348 STACK_SIZE=768 50349 else 50350 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 50351 # pointers are used. Apparently, we need to increase the heap and stack 50352 # space for the jvm. More specifically, when running javac to build huge 50353 # jdk batch 50354 if test "$JVM_MAX_HEAP" -gt "1600"; then 50355 JVM_MAX_HEAP=1600 50356 elif test "$JVM_MAX_HEAP" -lt "512"; then 50357 JVM_MAX_HEAP=512 50358 fi 50359 STACK_SIZE=1536 50360 fi 50361 50362 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 50363 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 50364 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 50365 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50366 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50367 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50368 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 50369 JVM_ARG_OK=true 50370 else 50371 $ECHO "Arg failed:" >&5 50372 $ECHO "$OUTPUT" >&5 50373 JVM_ARG_OK=false 50374 fi 50375 50376 50377 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 50378 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 50379 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 50380 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50381 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50382 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50383 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 50384 JVM_ARG_OK=true 50385 else 50386 $ECHO "Arg failed:" >&5 50387 $ECHO "$OUTPUT" >&5 50388 JVM_ARG_OK=false 50389 fi 50390 50391 50392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 50393 $as_echo "$boot_jdk_jvmargs_big" >&6; } 50394 50395 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 50396 50397 50398 50399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 50400 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 50401 50402 # Use serial gc for small short lived tools if possible 50403 50404 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 50405 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 50406 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 50407 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50408 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50409 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50410 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 50411 JVM_ARG_OK=true 50412 else 50413 $ECHO "Arg failed:" >&5 50414 $ECHO "$OUTPUT" >&5 50415 JVM_ARG_OK=false 50416 fi 50417 50418 50419 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 50420 $ECHO "Command: $JAVA -Xms32M -version" >&5 50421 OUTPUT=`$JAVA -Xms32M -version 2>&1` 50422 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50423 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50424 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50425 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 50426 JVM_ARG_OK=true 50427 else 50428 $ECHO "Arg failed:" >&5 50429 $ECHO "$OUTPUT" >&5 50430 JVM_ARG_OK=false 50431 fi 50432 50433 50434 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 50435 $ECHO "Command: $JAVA -Xmx512M -version" >&5 50436 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 50437 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50438 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50439 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50440 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 50441 JVM_ARG_OK=true 50442 else 50443 $ECHO "Arg failed:" >&5 50444 $ECHO "$OUTPUT" >&5 50445 JVM_ARG_OK=false 50446 fi 50447 50448 50449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 50450 $as_echo "$boot_jdk_jvmargs_small" >&6; } 50451 50452 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 50453 50454 50455 JAVA_TOOL_FLAGS_SMALL="" 50456 for f in $JAVA_FLAGS_SMALL; do 50457 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 50458 done 50459 50460 50461 50462 # Setup smart javac (after cores and memory have been setup) 50463 50464 50465 # Check whether --with-sjavac-server-java was given. 50466 if test "${with_sjavac_server_java+set}" = set; then : 50467 withval=$with_sjavac_server_java; 50468 fi 50469 50470 50471 if test "x$with_sjavac_server_java" != x; then 50472 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 50473 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 50474 if test "x$FOUND_VERSION" = x; then 50475 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 50476 fi 50477 else 50478 SJAVAC_SERVER_JAVA="$JAVA" 50479 fi 50480 50481 50482 if test "$MEMORY_SIZE" -gt "3000"; then 50483 50484 $ECHO "Check if jvm arg is ok: -d64" >&5 50485 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 50486 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 50487 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50488 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50489 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50490 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 50491 JVM_ARG_OK=true 50492 else 50493 $ECHO "Arg failed:" >&5 50494 $ECHO "$OUTPUT" >&5 50495 JVM_ARG_OK=false 50496 fi 50497 50498 if test "$JVM_ARG_OK" = true; then 50499 JVM_64BIT=true 50500 JVM_ARG_OK=false 50501 fi 50502 fi 50503 50504 MX_VALUE=`expr $MEMORY_SIZE / 2` 50505 if test "$JVM_64BIT" = true; then 50506 # Set ms lower than mx since more than one instance of the server might 50507 # get launched at the same time before they figure out which instance won. 50508 MS_VALUE=512 50509 if test "$MX_VALUE" -gt "2048"; then 50510 MX_VALUE=2048 50511 fi 50512 else 50513 MS_VALUE=256 50514 if test "$MX_VALUE" -gt "1500"; then 50515 MX_VALUE=1500 50516 fi 50517 fi 50518 if test "$MX_VALUE" -lt "512"; then 50519 MX_VALUE=512 50520 fi 50521 50522 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 50523 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 50524 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 50525 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50526 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50527 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50528 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 50529 JVM_ARG_OK=true 50530 else 50531 $ECHO "Arg failed:" >&5 50532 $ECHO "$OUTPUT" >&5 50533 JVM_ARG_OK=false 50534 fi 50535 50536 50537 50538 # Check whether --enable-sjavac was given. 50539 if test "${enable_sjavac+set}" = set; then : 50540 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50541 else 50542 ENABLE_SJAVAC='no' 50543 fi 50544 50545 if test "x$JVM_ARG_OK" = "xfalse"; then 50546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 50547 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 50548 ENABLE_SJAVAC=no; 50549 fi 50550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50551 $as_echo_n "checking whether to use sjavac... " >&6; } 50552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50553 $as_echo "$ENABLE_SJAVAC" >&6; } 50554 50555 50556 if test "x$ENABLE_SJAVAC" = xyes; then 50557 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50558 else 50559 SJAVAC_SERVER_DIR= 50560 fi 50561 50562 50563 50564 # Can the C/C++ compiler use precompiled headers? 50565 50566 50567 ############################################################################### 50568 # 50569 # Can the C/C++ compiler use precompiled headers? 50570 # 50571 # Check whether --enable-precompiled-headers was given. 50572 if test "${enable_precompiled_headers+set}" = set; then : 50573 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50574 else 50575 ENABLE_PRECOMPH=yes 50576 fi 50577 50578 50579 USE_PRECOMPILED_HEADER=1 50580 if test "x$ENABLE_PRECOMPH" = xno; then 50581 USE_PRECOMPILED_HEADER=0 50582 fi 50583 50584 if test "x$ENABLE_PRECOMPH" = xyes; then 50585 # Check that the compiler actually supports precomp headers. 50586 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50588 $as_echo_n "checking that precompiled headers work... " >&6; } 50589 echo "int alfa();" > conftest.h 50590 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50591 if test ! -f conftest.hpp.gch; then 50592 USE_PRECOMPILED_HEADER=0 50593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50594 $as_echo "no" >&6; } 50595 else 50596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50597 $as_echo "yes" >&6; } 50598 fi 50599 rm -f conftest.h conftest.hpp.gch 50600 fi 50601 fi 50602 50603 50604 50605 50606 # Setup use of ccache, if available 50607 50608 # Check whether --enable-ccache was given. 50609 if test "${enable_ccache+set}" = set; then : 50610 enableval=$enable_ccache; 50611 fi 50612 50613 50614 CCACHE= 50615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50616 $as_echo_n "checking is ccache enabled... " >&6; } 50617 ENABLE_CCACHE=$enable_ccache 50618 if test "x$enable_ccache" = xyes; then 50619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50620 $as_echo "yes" >&6; } 50621 OLD_PATH="$PATH" 50622 if test "x$TOOLCHAIN_PATH" != x; then 50623 PATH=$TOOLCHAIN_PATH:$PATH 50624 fi 50625 50626 50627 50628 # Publish this variable in the help. 50629 50630 50631 if test "x$CCACHE" = x; then 50632 # The variable is not set by user, try to locate tool using the code snippet 50633 for ac_prog in ccache 50634 do 50635 # Extract the first word of "$ac_prog", so it can be a program name with args. 50636 set dummy $ac_prog; ac_word=$2 50637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50638 $as_echo_n "checking for $ac_word... " >&6; } 50639 if ${ac_cv_path_CCACHE+:} false; then : 50640 $as_echo_n "(cached) " >&6 50641 else 50642 case $CCACHE in 50643 [\\/]* | ?:[\\/]*) 50644 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50645 ;; 50646 *) 50647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50648 for as_dir in $PATH 50649 do 50650 IFS=$as_save_IFS 50651 test -z "$as_dir" && as_dir=. 50652 for ac_exec_ext in '' $ac_executable_extensions; do 50653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50654 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50656 break 2 50657 fi 50658 done 50659 done 50660 IFS=$as_save_IFS 50661 50662 ;; 50663 esac 50664 fi 50665 CCACHE=$ac_cv_path_CCACHE 50666 if test -n "$CCACHE"; then 50667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50668 $as_echo "$CCACHE" >&6; } 50669 else 50670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50671 $as_echo "no" >&6; } 50672 fi 50673 50674 50675 test -n "$CCACHE" && break 50676 done 50677 50678 else 50679 # The variable is set, but is it from the command line or the environment? 50680 50681 # Try to remove the string !CCACHE! from our list. 50682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50684 # If it failed, the variable was not from the command line. Ignore it, 50685 # but warn the user (except for BASH, which is always set by the calling BASH). 50686 if test "xCCACHE" != xBASH; then 50687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50688 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50689 fi 50690 # Try to locate tool using the code snippet 50691 for ac_prog in ccache 50692 do 50693 # Extract the first word of "$ac_prog", so it can be a program name with args. 50694 set dummy $ac_prog; ac_word=$2 50695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50696 $as_echo_n "checking for $ac_word... " >&6; } 50697 if ${ac_cv_path_CCACHE+:} false; then : 50698 $as_echo_n "(cached) " >&6 50699 else 50700 case $CCACHE in 50701 [\\/]* | ?:[\\/]*) 50702 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50703 ;; 50704 *) 50705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50706 for as_dir in $PATH 50707 do 50708 IFS=$as_save_IFS 50709 test -z "$as_dir" && as_dir=. 50710 for ac_exec_ext in '' $ac_executable_extensions; do 50711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50712 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50714 break 2 50715 fi 50716 done 50717 done 50718 IFS=$as_save_IFS 50719 50720 ;; 50721 esac 50722 fi 50723 CCACHE=$ac_cv_path_CCACHE 50724 if test -n "$CCACHE"; then 50725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50726 $as_echo "$CCACHE" >&6; } 50727 else 50728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50729 $as_echo "no" >&6; } 50730 fi 50731 50732 50733 test -n "$CCACHE" && break 50734 done 50735 50736 else 50737 # If it succeeded, then it was overridden by the user. We will use it 50738 # for the tool. 50739 50740 # First remove it from the list of overridden variables, so we can test 50741 # for unknown variables in the end. 50742 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50743 50744 # Check if the provided tool contains a complete path. 50745 tool_specified="$CCACHE" 50746 tool_basename="${tool_specified##*/}" 50747 if test "x$tool_basename" = "x$tool_specified"; then 50748 # A command without a complete path is provided, search $PATH. 50749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 50750 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 50751 # Extract the first word of "$tool_basename", so it can be a program name with args. 50752 set dummy $tool_basename; ac_word=$2 50753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50754 $as_echo_n "checking for $ac_word... " >&6; } 50755 if ${ac_cv_path_CCACHE+:} false; then : 50756 $as_echo_n "(cached) " >&6 50757 else 50758 case $CCACHE in 50759 [\\/]* | ?:[\\/]*) 50760 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50761 ;; 50762 *) 50763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50764 for as_dir in $PATH 50765 do 50766 IFS=$as_save_IFS 50767 test -z "$as_dir" && as_dir=. 50768 for ac_exec_ext in '' $ac_executable_extensions; do 50769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50770 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50772 break 2 50773 fi 50774 done 50775 done 50776 IFS=$as_save_IFS 50777 50778 ;; 50779 esac 50780 fi 50781 CCACHE=$ac_cv_path_CCACHE 50782 if test -n "$CCACHE"; then 50783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50784 $as_echo "$CCACHE" >&6; } 50785 else 50786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50787 $as_echo "no" >&6; } 50788 fi 50789 50790 50791 if test "x$CCACHE" = x; then 50792 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50793 fi 50794 else 50795 # Otherwise we believe it is a complete path. Use it as it is. 50796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 50797 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 50798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 50799 $as_echo_n "checking for CCACHE... " >&6; } 50800 if test ! -x "$tool_specified"; then 50801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50802 $as_echo "not found" >&6; } 50803 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 50804 fi 50805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50806 $as_echo "$tool_specified" >&6; } 50807 fi 50808 fi 50809 fi 50810 50811 50812 50813 if test "x$CCACHE" = x; then 50814 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 50815 fi 50816 50817 50818 CCACHE_STATUS="enabled" 50819 PATH="$OLD_PATH" 50820 elif test "x$enable_ccache" = xno; then 50821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 50822 $as_echo "no, explicitly disabled" >&6; } 50823 elif test "x$enable_ccache" = x; then 50824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50825 $as_echo "no" >&6; } 50826 else 50827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 50828 $as_echo "unknown" >&6; } 50829 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 50830 fi 50831 50832 50833 50834 # Check whether --with-ccache-dir was given. 50835 if test "${with_ccache_dir+set}" = set; then : 50836 withval=$with_ccache_dir; 50837 fi 50838 50839 50840 if test "x$with_ccache_dir" != x; then 50841 # When using a non home ccache directory, assume the use is to share ccache files 50842 # with other users. Thus change the umask. 50843 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 50844 if test "x$CCACHE" = x; then 50845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 50846 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 50847 fi 50848 fi 50849 50850 if test "x$CCACHE" != x; then 50851 50852 if test "x$CCACHE" != x; then 50853 # Only use ccache if it is 3.1.4 or later, which supports 50854 # precompiled headers. 50855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 50856 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 50857 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 50858 if test "x$HAS_GOOD_CCACHE" = x; then 50859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 50860 $as_echo "no, disabling ccache" >&6; } 50861 CCACHE= 50862 CCACHE_STATUS="disabled" 50863 else 50864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50865 $as_echo "yes" >&6; } 50866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 50867 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 50868 PUSHED_FLAGS="$CXXFLAGS" 50869 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 50870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50871 /* end confdefs.h. */ 50872 50873 int 50874 main () 50875 { 50876 50877 ; 50878 return 0; 50879 } 50880 _ACEOF 50881 if ac_fn_cxx_try_compile "$LINENO"; then : 50882 CC_KNOWS_CCACHE_TRICK=yes 50883 else 50884 CC_KNOWS_CCACHE_TRICK=no 50885 fi 50886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50887 CXXFLAGS="$PUSHED_FLAGS" 50888 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 50889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50890 $as_echo "yes" >&6; } 50891 else 50892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 50893 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 50894 CCACHE= 50895 CCACHE_STATUS="disabled" 50896 fi 50897 fi 50898 fi 50899 50900 if test "x$CCACHE" != x; then 50901 CCACHE_SLOPPINESS=time_macros 50902 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 50903 CCACHE_FLAGS=-fpch-preprocess 50904 50905 if test "x$SET_CCACHE_DIR" != x; then 50906 mkdir -p $CCACHE_DIR > /dev/null 2>&1 50907 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 50908 fi 50909 fi 50910 50911 fi 50912 50913 50914 ############################################################################### 50915 # 50916 # And now the finish... 50917 # 50918 ############################################################################### 50919 50920 # Check for some common pitfalls 50921 50922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50923 file_to_test="$SRC_ROOT/LICENSE" 50924 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 50925 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 50926 fi 50927 fi 50928 50929 50930 # Did user specify any unknown variables? 50931 50932 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 50933 # Replace the separating ! with spaces before presenting for end user. 50934 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 50935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 50936 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 50937 fi 50938 50939 50940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 50941 $as_echo_n "checking if build directory is on local disk... " >&6; } 50942 50943 # df -l lists only local disks; if the given directory is not found then 50944 # a non-zero exit code is given 50945 if test "x$DF" = x; then 50946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50947 # msys does not have df; use Windows "net use" instead. 50948 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 50949 if test "x$IS_NETWORK_DISK" = x; then 50950 OUTPUT_DIR_IS_LOCAL="yes" 50951 else 50952 OUTPUT_DIR_IS_LOCAL="no" 50953 fi 50954 else 50955 # No df here, say it's local 50956 OUTPUT_DIR_IS_LOCAL="yes" 50957 fi 50958 else 50959 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 50960 OUTPUT_DIR_IS_LOCAL="yes" 50961 else 50962 OUTPUT_DIR_IS_LOCAL="no" 50963 fi 50964 fi 50965 50966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 50967 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 50968 50969 50970 50971 # Check if the user has any old-style ALT_ variables set. 50972 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 50973 50974 # Before generating output files, test if they exist. If they do, this is a reconfigure. 50975 # Since we can't properly handle the dependencies for this, warn the user about the situation 50976 if test -e $OUTPUT_ROOT/spec.gmk; then 50977 IS_RECONFIGURE=yes 50978 else 50979 IS_RECONFIGURE=no 50980 fi 50981 50982 50983 # At the end, call the custom hook. (Dummy macro if no custom sources available) 50984 50985 50986 # We're messing a bit with internal autoconf variables to put the config.status 50987 # in the output directory instead of the current directory. 50988 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 50989 50990 # Create the actual output files. Now the main work of configure is done. 50991 cat >confcache <<\_ACEOF 50992 # This file is a shell script that caches the results of configure 50993 # tests run on this system so they can be shared between configure 50994 # scripts and configure runs, see configure's option --config-cache. 50995 # It is not useful on other systems. If it contains results you don't 50996 # want to keep, you may remove or edit it. 50997 # 50998 # config.status only pays attention to the cache file if you give it 50999 # the --recheck option to rerun configure. 51000 # 51001 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51002 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51003 # following values. 51004 51005 _ACEOF 51006 51007 # The following way of writing the cache mishandles newlines in values, 51008 # but we know of no workaround that is simple, portable, and efficient. 51009 # So, we kill variables containing newlines. 51010 # Ultrix sh set writes to stderr and can't be redirected directly, 51011 # and sets the high bit in the cache file unless we assign to the vars. 51012 ( 51013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51014 eval ac_val=\$$ac_var 51015 case $ac_val in #( 51016 *${as_nl}*) 51017 case $ac_var in #( 51018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51020 esac 51021 case $ac_var in #( 51022 _ | IFS | as_nl) ;; #( 51023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51024 *) { eval $ac_var=; unset $ac_var;} ;; 51025 esac ;; 51026 esac 51027 done 51028 51029 (set) 2>&1 | 51030 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51031 *${as_nl}ac_space=\ *) 51032 # `set' does not quote correctly, so add quotes: double-quote 51033 # substitution turns \\\\ into \\, and sed turns \\ into \. 51034 sed -n \ 51035 "s/'/'\\\\''/g; 51036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51037 ;; #( 51038 *) 51039 # `set' quotes correctly as required by POSIX, so do not add quotes. 51040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51041 ;; 51042 esac | 51043 sort 51044 ) | 51045 sed ' 51046 /^ac_cv_env_/b end 51047 t clear 51048 :clear 51049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51050 t end 51051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51052 :end' >>confcache 51053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51054 if test -w "$cache_file"; then 51055 if test "x$cache_file" != "x/dev/null"; then 51056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51057 $as_echo "$as_me: updating cache $cache_file" >&6;} 51058 if test ! -f "$cache_file" || test -h "$cache_file"; then 51059 cat confcache >"$cache_file" 51060 else 51061 case $cache_file in #( 51062 */* | ?:*) 51063 mv -f confcache "$cache_file"$$ && 51064 mv -f "$cache_file"$$ "$cache_file" ;; #( 51065 *) 51066 mv -f confcache "$cache_file" ;; 51067 esac 51068 fi 51069 fi 51070 else 51071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51073 fi 51074 fi 51075 rm -f confcache 51076 51077 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51078 # Let make expand exec_prefix. 51079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51080 51081 DEFS=-DHAVE_CONFIG_H 51082 51083 ac_libobjs= 51084 ac_ltlibobjs= 51085 U= 51086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51087 # 1. Remove the extension, and $U if already installed. 51088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51091 # will be set to the directory where LIBOBJS objects are built. 51092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51094 done 51095 LIBOBJS=$ac_libobjs 51096 51097 LTLIBOBJS=$ac_ltlibobjs 51098 51099 51100 51101 : "${CONFIG_STATUS=./config.status}" 51102 ac_write_fail=0 51103 ac_clean_files_save=$ac_clean_files 51104 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 51105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51106 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51107 as_write_fail=0 51108 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51109 #! $SHELL 51110 # Generated by $as_me. 51111 # Run this file to recreate the current configuration. 51112 # Compiler output produced by configure, useful for debugging 51113 # configure, is in config.log if it exists. 51114 51115 debug=false 51116 ac_cs_recheck=false 51117 ac_cs_silent=false 51118 51119 SHELL=\${CONFIG_SHELL-$SHELL} 51120 export SHELL 51121 _ASEOF 51122 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 51123 ## -------------------- ## 51124 ## M4sh Initialization. ## 51125 ## -------------------- ## 51126 51127 # Be more Bourne compatible 51128 DUALCASE=1; export DUALCASE # for MKS sh 51129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 51130 emulate sh 51131 NULLCMD=: 51132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 51133 # is contrary to our usage. Disable this feature. 51134 alias -g '${1+"$@"}'='"$@"' 51135 setopt NO_GLOB_SUBST 51136 else 51137 case `(set -o) 2>/dev/null` in #( 51138 *posix*) : 51139 set -o posix ;; #( 51140 *) : 51141 ;; 51142 esac 51143 fi 51144 51145 51146 as_nl=' 51147 ' 51148 export as_nl 51149 # Printing a long string crashes Solaris 7 /usr/bin/printf. 51150 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 51152 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51153 # Prefer a ksh shell builtin over an external printf program on Solaris, 51154 # but without wasting forks for bash or zsh. 51155 if test -z "$BASH_VERSION$ZSH_VERSION" \ 51156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51157 as_echo='print -r --' 51158 as_echo_n='print -rn --' 51159 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51160 as_echo='printf %s\n' 51161 as_echo_n='printf %s' 51162 else 51163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 51165 as_echo_n='/usr/ucb/echo -n' 51166 else 51167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51168 as_echo_n_body='eval 51169 arg=$1; 51170 case $arg in #( 51171 *"$as_nl"*) 51172 expr "X$arg" : "X\\(.*\\)$as_nl"; 51173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51174 esac; 51175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51176 ' 51177 export as_echo_n_body 51178 as_echo_n='sh -c $as_echo_n_body as_echo' 51179 fi 51180 export as_echo_body 51181 as_echo='sh -c $as_echo_body as_echo' 51182 fi 51183 51184 # The user is always right. 51185 if test "${PATH_SEPARATOR+set}" != set; then 51186 PATH_SEPARATOR=: 51187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51189 PATH_SEPARATOR=';' 51190 } 51191 fi 51192 51193 51194 # IFS 51195 # We need space, tab and new line, in precisely that order. Quoting is 51196 # there to prevent editors from complaining about space-tab. 51197 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51198 # splitting by setting IFS to empty value.) 51199 IFS=" "" $as_nl" 51200 51201 # Find who we are. Look in the path if we contain no directory separator. 51202 as_myself= 51203 case $0 in #(( 51204 *[\\/]* ) as_myself=$0 ;; 51205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51206 for as_dir in $PATH 51207 do 51208 IFS=$as_save_IFS 51209 test -z "$as_dir" && as_dir=. 51210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51211 done 51212 IFS=$as_save_IFS 51213 51214 ;; 51215 esac 51216 # We did not find ourselves, most probably we were run as `sh COMMAND' 51217 # in which case we are not to be found in the path. 51218 if test "x$as_myself" = x; then 51219 as_myself=$0 51220 fi 51221 if test ! -f "$as_myself"; then 51222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51223 exit 1 51224 fi 51225 51226 # Unset variables that we do not need and which cause bugs (e.g. in 51227 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51228 # suppresses any "Segmentation fault" message there. '((' could 51229 # trigger a bug in pdksh 5.2.14. 51230 for as_var in BASH_ENV ENV MAIL MAILPATH 51231 do eval test x\${$as_var+set} = xset \ 51232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51233 done 51234 PS1='$ ' 51235 PS2='> ' 51236 PS4='+ ' 51237 51238 # NLS nuisances. 51239 LC_ALL=C 51240 export LC_ALL 51241 LANGUAGE=C 51242 export LANGUAGE 51243 51244 # CDPATH. 51245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51246 51247 51248 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51249 # ---------------------------------------- 51250 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51251 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51252 # script with STATUS, using 1 if that was 0. 51253 as_fn_error () 51254 { 51255 as_status=$1; test $as_status -eq 0 && as_status=1 51256 if test "$4"; then 51257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51259 fi 51260 $as_echo "$as_me: error: $2" >&2 51261 as_fn_exit $as_status 51262 } # as_fn_error 51263 51264 51265 # as_fn_set_status STATUS 51266 # ----------------------- 51267 # Set $? to STATUS, without forking. 51268 as_fn_set_status () 51269 { 51270 return $1 51271 } # as_fn_set_status 51272 51273 # as_fn_exit STATUS 51274 # ----------------- 51275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51276 as_fn_exit () 51277 { 51278 set +e 51279 as_fn_set_status $1 51280 exit $1 51281 } # as_fn_exit 51282 51283 # as_fn_unset VAR 51284 # --------------- 51285 # Portably unset VAR. 51286 as_fn_unset () 51287 { 51288 { eval $1=; unset $1;} 51289 } 51290 as_unset=as_fn_unset 51291 # as_fn_append VAR VALUE 51292 # ---------------------- 51293 # Append the text in VALUE to the end of the definition contained in VAR. Take 51294 # advantage of any shell optimizations that allow amortized linear growth over 51295 # repeated appends, instead of the typical quadratic growth present in naive 51296 # implementations. 51297 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51298 eval 'as_fn_append () 51299 { 51300 eval $1+=\$2 51301 }' 51302 else 51303 as_fn_append () 51304 { 51305 eval $1=\$$1\$2 51306 } 51307 fi # as_fn_append 51308 51309 # as_fn_arith ARG... 51310 # ------------------ 51311 # Perform arithmetic evaluation on the ARGs, and store the result in the 51312 # global $as_val. Take advantage of shells that can avoid forks. The arguments 51313 # must be portable across $(()) and expr. 51314 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51315 eval 'as_fn_arith () 51316 { 51317 as_val=$(( $* )) 51318 }' 51319 else 51320 as_fn_arith () 51321 { 51322 as_val=`expr "$@" || test $? -eq 1` 51323 } 51324 fi # as_fn_arith 51325 51326 51327 if expr a : '\(a\)' >/dev/null 2>&1 && 51328 test "X`expr 00001 : '.*\(...\)'`" = X001; then 51329 as_expr=expr 51330 else 51331 as_expr=false 51332 fi 51333 51334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 51335 as_basename=basename 51336 else 51337 as_basename=false 51338 fi 51339 51340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51341 as_dirname=dirname 51342 else 51343 as_dirname=false 51344 fi 51345 51346 as_me=`$as_basename -- "$0" || 51347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 51348 X"$0" : 'X\(//\)$' \| \ 51349 X"$0" : 'X\(/\)' \| . 2>/dev/null || 51350 $as_echo X/"$0" | 51351 sed '/^.*\/\([^/][^/]*\)\/*$/{ 51352 s//\1/ 51353 q 51354 } 51355 /^X\/\(\/\/\)$/{ 51356 s//\1/ 51357 q 51358 } 51359 /^X\/\(\/\).*/{ 51360 s//\1/ 51361 q 51362 } 51363 s/.*/./; q'` 51364 51365 # Avoid depending upon Character Ranges. 51366 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 51367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 51369 as_cr_digits='0123456789' 51370 as_cr_alnum=$as_cr_Letters$as_cr_digits 51371 51372 ECHO_C= ECHO_N= ECHO_T= 51373 case `echo -n x` in #((((( 51374 -n*) 51375 case `echo 'xy\c'` in 51376 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 51377 xy) ECHO_C='\c';; 51378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51379 ECHO_T=' ';; 51380 esac;; 51381 *) 51382 ECHO_N='-n';; 51383 esac 51384 51385 rm -f conf$$ conf$$.exe conf$$.file 51386 if test -d conf$$.dir; then 51387 rm -f conf$$.dir/conf$$.file 51388 else 51389 rm -f conf$$.dir 51390 mkdir conf$$.dir 2>/dev/null 51391 fi 51392 if (echo >conf$$.file) 2>/dev/null; then 51393 if ln -s conf$$.file conf$$ 2>/dev/null; then 51394 as_ln_s='ln -s' 51395 # ... but there are two gotchas: 51396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 51397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 51398 # In both cases, we have to default to `cp -pR'. 51399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 51400 as_ln_s='cp -pR' 51401 elif ln conf$$.file conf$$ 2>/dev/null; then 51402 as_ln_s=ln 51403 else 51404 as_ln_s='cp -pR' 51405 fi 51406 else 51407 as_ln_s='cp -pR' 51408 fi 51409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51410 rmdir conf$$.dir 2>/dev/null 51411 51412 51413 # as_fn_mkdir_p 51414 # ------------- 51415 # Create "$as_dir" as a directory, including parents if necessary. 51416 as_fn_mkdir_p () 51417 { 51418 51419 case $as_dir in #( 51420 -*) as_dir=./$as_dir;; 51421 esac 51422 test -d "$as_dir" || eval $as_mkdir_p || { 51423 as_dirs= 51424 while :; do 51425 case $as_dir in #( 51426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 51427 *) as_qdir=$as_dir;; 51428 esac 51429 as_dirs="'$as_qdir' $as_dirs" 51430 as_dir=`$as_dirname -- "$as_dir" || 51431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51432 X"$as_dir" : 'X\(//\)[^/]' \| \ 51433 X"$as_dir" : 'X\(//\)$' \| \ 51434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 51435 $as_echo X"$as_dir" | 51436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51437 s//\1/ 51438 q 51439 } 51440 /^X\(\/\/\)[^/].*/{ 51441 s//\1/ 51442 q 51443 } 51444 /^X\(\/\/\)$/{ 51445 s//\1/ 51446 q 51447 } 51448 /^X\(\/\).*/{ 51449 s//\1/ 51450 q 51451 } 51452 s/.*/./; q'` 51453 test -d "$as_dir" && break 51454 done 51455 test -z "$as_dirs" || eval "mkdir $as_dirs" 51456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 51457 51458 51459 } # as_fn_mkdir_p 51460 if mkdir -p . 2>/dev/null; then 51461 as_mkdir_p='mkdir -p "$as_dir"' 51462 else 51463 test -d ./-p && rmdir ./-p 51464 as_mkdir_p=false 51465 fi 51466 51467 51468 # as_fn_executable_p FILE 51469 # ----------------------- 51470 # Test if FILE is an executable regular file. 51471 as_fn_executable_p () 51472 { 51473 test -f "$1" && test -x "$1" 51474 } # as_fn_executable_p 51475 as_test_x='test -x' 51476 as_executable_p=as_fn_executable_p 51477 51478 # Sed expression to map a string onto a valid CPP name. 51479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51480 51481 # Sed expression to map a string onto a valid variable name. 51482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51483 51484 51485 exec 6>&1 51486 ## ----------------------------------- ## 51487 ## Main body of $CONFIG_STATUS script. ## 51488 ## ----------------------------------- ## 51489 _ASEOF 51490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51491 51492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51493 # Save the log message, to keep $0 and so on meaningful, and to 51494 # report actual input values of CONFIG_FILES etc. instead of their 51495 # values after options handling. 51496 ac_log=" 51497 This file was extended by OpenJDK $as_me jdk9, which was 51498 generated by GNU Autoconf 2.69. Invocation command line was 51499 51500 CONFIG_FILES = $CONFIG_FILES 51501 CONFIG_HEADERS = $CONFIG_HEADERS 51502 CONFIG_LINKS = $CONFIG_LINKS 51503 CONFIG_COMMANDS = $CONFIG_COMMANDS 51504 $ $0 $@ 51505 51506 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51507 " 51508 51509 _ACEOF 51510 51511 case $ac_config_files in *" 51512 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51513 esac 51514 51515 case $ac_config_headers in *" 51516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 51517 esac 51518 51519 51520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51521 # Files that config.status was made for. 51522 config_files="$ac_config_files" 51523 config_headers="$ac_config_headers" 51524 51525 _ACEOF 51526 51527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51528 ac_cs_usage="\ 51529 \`$as_me' instantiates files and other configuration actions 51530 from templates according to the current configuration. Unless the files 51531 and actions are specified as TAGs, all are instantiated by default. 51532 51533 Usage: $0 [OPTION]... [TAG]... 51534 51535 -h, --help print this help, then exit 51536 -V, --version print version number and configuration settings, then exit 51537 --config print configuration, then exit 51538 -q, --quiet, --silent 51539 do not print progress messages 51540 -d, --debug don't remove temporary files 51541 --recheck update $as_me by reconfiguring in the same conditions 51542 --file=FILE[:TEMPLATE] 51543 instantiate the configuration file FILE 51544 --header=FILE[:TEMPLATE] 51545 instantiate the configuration header FILE 51546 51547 Configuration files: 51548 $config_files 51549 51550 Configuration headers: 51551 $config_headers 51552 51553 Report bugs to <build-dev@openjdk.java.net>. 51554 OpenJDK home page: <http://openjdk.java.net>." 51555 51556 _ACEOF 51557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51558 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51559 ac_cs_version="\\ 51560 OpenJDK config.status jdk9 51561 configured by $0, generated by GNU Autoconf 2.69, 51562 with options \\"\$ac_cs_config\\" 51563 51564 Copyright (C) 2012 Free Software Foundation, Inc. 51565 This config.status script is free software; the Free Software Foundation 51566 gives unlimited permission to copy, distribute and modify it." 51567 51568 ac_pwd='$ac_pwd' 51569 srcdir='$srcdir' 51570 AWK='$AWK' 51571 test -n "\$AWK" || AWK=awk 51572 _ACEOF 51573 51574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51575 # The default lists apply if the user does not specify any file. 51576 ac_need_defaults=: 51577 while test $# != 0 51578 do 51579 case $1 in 51580 --*=?*) 51581 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51583 ac_shift=: 51584 ;; 51585 --*=) 51586 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51587 ac_optarg= 51588 ac_shift=: 51589 ;; 51590 *) 51591 ac_option=$1 51592 ac_optarg=$2 51593 ac_shift=shift 51594 ;; 51595 esac 51596 51597 case $ac_option in 51598 # Handling of the options. 51599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51600 ac_cs_recheck=: ;; 51601 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51602 $as_echo "$ac_cs_version"; exit ;; 51603 --config | --confi | --conf | --con | --co | --c ) 51604 $as_echo "$ac_cs_config"; exit ;; 51605 --debug | --debu | --deb | --de | --d | -d ) 51606 debug=: ;; 51607 --file | --fil | --fi | --f ) 51608 $ac_shift 51609 case $ac_optarg in 51610 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51611 '') as_fn_error $? "missing file argument" ;; 51612 esac 51613 as_fn_append CONFIG_FILES " '$ac_optarg'" 51614 ac_need_defaults=false;; 51615 --header | --heade | --head | --hea ) 51616 $ac_shift 51617 case $ac_optarg in 51618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51619 esac 51620 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 51621 ac_need_defaults=false;; 51622 --he | --h) 51623 # Conflict between --help and --header 51624 as_fn_error $? "ambiguous option: \`$1' 51625 Try \`$0 --help' for more information.";; 51626 --help | --hel | -h ) 51627 $as_echo "$ac_cs_usage"; exit ;; 51628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51629 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51630 ac_cs_silent=: ;; 51631 51632 # This is an error. 51633 -*) as_fn_error $? "unrecognized option: \`$1' 51634 Try \`$0 --help' for more information." ;; 51635 51636 *) as_fn_append ac_config_targets " $1" 51637 ac_need_defaults=false ;; 51638 51639 esac 51640 shift 51641 done 51642 51643 ac_configure_extra_args= 51644 51645 if $ac_cs_silent; then 51646 exec 6>/dev/null 51647 ac_configure_extra_args="$ac_configure_extra_args --silent" 51648 fi 51649 51650 _ACEOF 51651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51652 if \$ac_cs_recheck; then 51653 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51654 shift 51655 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51656 CONFIG_SHELL='$SHELL' 51657 export CONFIG_SHELL 51658 exec "\$@" 51659 fi 51660 51661 _ACEOF 51662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51663 exec 5>>config.log 51664 { 51665 echo 51666 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51667 ## Running $as_me. ## 51668 _ASBOX 51669 $as_echo "$ac_log" 51670 } >&5 51671 51672 _ACEOF 51673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51674 _ACEOF 51675 51676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51677 51678 # Handling of arguments. 51679 for ac_config_target in $ac_config_targets 51680 do 51681 case $ac_config_target in 51682 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 51683 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51684 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51685 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51686 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51687 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 51688 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51689 51690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51691 esac 51692 done 51693 51694 51695 # If the user did not use the arguments to specify the items to instantiate, 51696 # then the envvar interface is used. Set only those that are not. 51697 # We use the long form for the default assignment because of an extremely 51698 # bizarre bug on SunOS 4.1.3. 51699 if $ac_need_defaults; then 51700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 51702 fi 51703 51704 # Have a temporary directory for convenience. Make it in the build tree 51705 # simply because there is no reason against having it here, and in addition, 51706 # creating and moving files from /tmp can sometimes cause problems. 51707 # Hook for its removal unless debugging. 51708 # Note that there is a small window in which the directory will not be cleaned: 51709 # after its creation but before its name has been assigned to `$tmp'. 51710 $debug || 51711 { 51712 tmp= ac_tmp= 51713 trap 'exit_status=$? 51714 : "${ac_tmp:=$tmp}" 51715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51716 ' 0 51717 trap 'as_fn_exit 1' 1 2 13 15 51718 } 51719 # Create a (secure) tmp directory for tmp files. 51720 51721 { 51722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51723 test -d "$tmp" 51724 } || 51725 { 51726 tmp=./conf$$-$RANDOM 51727 (umask 077 && mkdir "$tmp") 51728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51729 ac_tmp=$tmp 51730 51731 # Set up the scripts for CONFIG_FILES section. 51732 # No need to generate them if there are no CONFIG_FILES. 51733 # This happens for instance with `./config.status config.h'. 51734 if test -n "$CONFIG_FILES"; then 51735 51736 51737 ac_cr=`echo X | tr X '\015'` 51738 # On cygwin, bash can eat \r inside `` if the user requested igncr. 51739 # But we know of no other shell where ac_cr would be empty at this 51740 # point, so we can use a bashism as a fallback. 51741 if test "x$ac_cr" = x; then 51742 eval ac_cr=\$\'\\r\' 51743 fi 51744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51746 ac_cs_awk_cr='\\r' 51747 else 51748 ac_cs_awk_cr=$ac_cr 51749 fi 51750 51751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 51752 _ACEOF 51753 51754 51755 { 51756 echo "cat >conf$$subs.awk <<_ACEOF" && 51757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 51758 echo "_ACEOF" 51759 } >conf$$subs.sh || 51760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 51762 ac_delim='%!_!# ' 51763 for ac_last_try in false false false false false :; do 51764 . ./conf$$subs.sh || 51765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51766 51767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 51768 if test $ac_delim_n = $ac_delim_num; then 51769 break 51770 elif $ac_last_try; then 51771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51772 else 51773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51774 fi 51775 done 51776 rm -f conf$$subs.sh 51777 51778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 51780 _ACEOF 51781 sed -n ' 51782 h 51783 s/^/S["/; s/!.*/"]=/ 51784 p 51785 g 51786 s/^[^!]*!// 51787 :repl 51788 t repl 51789 s/'"$ac_delim"'$// 51790 t delim 51791 :nl 51792 h 51793 s/\(.\{148\}\)..*/\1/ 51794 t more1 51795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 51796 p 51797 n 51798 b repl 51799 :more1 51800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51801 p 51802 g 51803 s/.\{148\}// 51804 t nl 51805 :delim 51806 h 51807 s/\(.\{148\}\)..*/\1/ 51808 t more2 51809 s/["\\]/\\&/g; s/^/"/; s/$/"/ 51810 p 51811 b 51812 :more2 51813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51814 p 51815 g 51816 s/.\{148\}// 51817 t delim 51818 ' <conf$$subs.awk | sed ' 51819 /^[^""]/{ 51820 N 51821 s/\n// 51822 } 51823 ' >>$CONFIG_STATUS || ac_write_fail=1 51824 rm -f conf$$subs.awk 51825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51826 _ACAWK 51827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 51828 for (key in S) S_is_set[key] = 1 51829 FS = "" 51830 51831 } 51832 { 51833 line = $ 0 51834 nfields = split(line, field, "@") 51835 substed = 0 51836 len = length(field[1]) 51837 for (i = 2; i < nfields; i++) { 51838 key = field[i] 51839 keylen = length(key) 51840 if (S_is_set[key]) { 51841 value = S[key] 51842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 51843 len += length(value) + length(field[++i]) 51844 substed = 1 51845 } else 51846 len += 1 + keylen 51847 } 51848 51849 print line 51850 } 51851 51852 _ACAWK 51853 _ACEOF 51854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 51856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 51857 else 51858 cat 51859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 51860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 51861 _ACEOF 51862 51863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 51864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 51865 # trailing colons and then remove the whole line if VPATH becomes empty 51866 # (actually we leave an empty line to preserve line numbers). 51867 if test "x$srcdir" = x.; then 51868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 51869 h 51870 s/// 51871 s/^/:/ 51872 s/[ ]*$/:/ 51873 s/:\$(srcdir):/:/g 51874 s/:\${srcdir}:/:/g 51875 s/:@srcdir@:/:/g 51876 s/^:*// 51877 s/:*$// 51878 x 51879 s/\(=[ ]*\).*/\1/ 51880 G 51881 s/\n// 51882 s/^[^=]*=[ ]*$// 51883 }' 51884 fi 51885 51886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51887 fi # test -n "$CONFIG_FILES" 51888 51889 # Set up the scripts for CONFIG_HEADERS section. 51890 # No need to generate them if there are no CONFIG_HEADERS. 51891 # This happens for instance with `./config.status Makefile'. 51892 if test -n "$CONFIG_HEADERS"; then 51893 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 51894 BEGIN { 51895 _ACEOF 51896 51897 # Transform confdefs.h into an awk script `defines.awk', embedded as 51898 # here-document in config.status, that substitutes the proper values into 51899 # config.h.in to produce config.h. 51900 51901 # Create a delimiter string that does not exist in confdefs.h, to ease 51902 # handling of long lines. 51903 ac_delim='%!_!# ' 51904 for ac_last_try in false false :; do 51905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 51906 if test -z "$ac_tt"; then 51907 break 51908 elif $ac_last_try; then 51909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 51910 else 51911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51912 fi 51913 done 51914 51915 # For the awk script, D is an array of macro values keyed by name, 51916 # likewise P contains macro parameters if any. Preserve backslash 51917 # newline sequences. 51918 51919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 51920 sed -n ' 51921 s/.\{148\}/&'"$ac_delim"'/g 51922 t rset 51923 :rset 51924 s/^[ ]*#[ ]*define[ ][ ]*/ / 51925 t def 51926 d 51927 :def 51928 s/\\$// 51929 t bsnl 51930 s/["\\]/\\&/g 51931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51932 D["\1"]=" \3"/p 51933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 51934 d 51935 :bsnl 51936 s/["\\]/\\&/g 51937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51938 D["\1"]=" \3\\\\\\n"\\/p 51939 t cont 51940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 51941 t cont 51942 d 51943 :cont 51944 n 51945 s/.\{148\}/&'"$ac_delim"'/g 51946 t clear 51947 :clear 51948 s/\\$// 51949 t bsnlc 51950 s/["\\]/\\&/g; s/^/"/; s/$/"/p 51951 d 51952 :bsnlc 51953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 51954 b cont 51955 ' <confdefs.h | sed ' 51956 s/'"$ac_delim"'/"\\\ 51957 "/g' >>$CONFIG_STATUS || ac_write_fail=1 51958 51959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51960 for (key in D) D_is_set[key] = 1 51961 FS = "" 51962 } 51963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 51964 line = \$ 0 51965 split(line, arg, " ") 51966 if (arg[1] == "#") { 51967 defundef = arg[2] 51968 mac1 = arg[3] 51969 } else { 51970 defundef = substr(arg[1], 2) 51971 mac1 = arg[2] 51972 } 51973 split(mac1, mac2, "(") #) 51974 macro = mac2[1] 51975 prefix = substr(line, 1, index(line, defundef) - 1) 51976 if (D_is_set[macro]) { 51977 # Preserve the white space surrounding the "#". 51978 print prefix "define", macro P[macro] D[macro] 51979 next 51980 } else { 51981 # Replace #undef with comments. This is necessary, for example, 51982 # in the case of _POSIX_SOURCE, which is predefined and required 51983 # on some systems where configure will not decide to define it. 51984 if (defundef == "undef") { 51985 print "/*", prefix defundef, macro, "*/" 51986 next 51987 } 51988 } 51989 } 51990 { print } 51991 _ACAWK 51992 _ACEOF 51993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 51995 fi # test -n "$CONFIG_HEADERS" 51996 51997 51998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 51999 shift 52000 for ac_tag 52001 do 52002 case $ac_tag in 52003 :[FHLC]) ac_mode=$ac_tag; continue;; 52004 esac 52005 case $ac_mode$ac_tag in 52006 :[FHL]*:*);; 52007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52008 :[FH]-) ac_tag=-:-;; 52009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52010 esac 52011 ac_save_IFS=$IFS 52012 IFS=: 52013 set x $ac_tag 52014 IFS=$ac_save_IFS 52015 shift 52016 ac_file=$1 52017 shift 52018 52019 case $ac_mode in 52020 :L) ac_source=$1;; 52021 :[FH]) 52022 ac_file_inputs= 52023 for ac_f 52024 do 52025 case $ac_f in 52026 -) ac_f="$ac_tmp/stdin";; 52027 *) # Look for the file first in the build tree, then in the source tree 52028 # (if the path is not absolute). The absolute path cannot be DOS-style, 52029 # because $ac_f cannot contain `:'. 52030 test -f "$ac_f" || 52031 case $ac_f in 52032 [\\/$]*) false;; 52033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52034 esac || 52035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52036 esac 52037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52038 as_fn_append ac_file_inputs " '$ac_f'" 52039 done 52040 52041 # Let's still pretend it is `configure' which instantiates (i.e., don't 52042 # use $as_me), people would be surprised to read: 52043 # /* config.h. Generated by config.status. */ 52044 configure_input='Generated from '` 52045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52046 `' by configure.' 52047 if test x"$ac_file" != x-; then 52048 configure_input="$ac_file. $configure_input" 52049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52050 $as_echo "$as_me: creating $ac_file" >&6;} 52051 fi 52052 # Neutralize special characters interpreted by sed in replacement strings. 52053 case $configure_input in #( 52054 *\&* | *\|* | *\\* ) 52055 ac_sed_conf_input=`$as_echo "$configure_input" | 52056 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52057 *) ac_sed_conf_input=$configure_input;; 52058 esac 52059 52060 case $ac_tag in 52061 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52063 esac 52064 ;; 52065 esac 52066 52067 ac_dir=`$as_dirname -- "$ac_file" || 52068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52069 X"$ac_file" : 'X\(//\)[^/]' \| \ 52070 X"$ac_file" : 'X\(//\)$' \| \ 52071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52072 $as_echo X"$ac_file" | 52073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52074 s//\1/ 52075 q 52076 } 52077 /^X\(\/\/\)[^/].*/{ 52078 s//\1/ 52079 q 52080 } 52081 /^X\(\/\/\)$/{ 52082 s//\1/ 52083 q 52084 } 52085 /^X\(\/\).*/{ 52086 s//\1/ 52087 q 52088 } 52089 s/.*/./; q'` 52090 as_dir="$ac_dir"; as_fn_mkdir_p 52091 ac_builddir=. 52092 52093 case "$ac_dir" in 52094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52095 *) 52096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52097 # A ".." for each directory in $ac_dir_suffix. 52098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52099 case $ac_top_builddir_sub in 52100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52102 esac ;; 52103 esac 52104 ac_abs_top_builddir=$ac_pwd 52105 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52106 # for backward compatibility: 52107 ac_top_builddir=$ac_top_build_prefix 52108 52109 case $srcdir in 52110 .) # We are building in place. 52111 ac_srcdir=. 52112 ac_top_srcdir=$ac_top_builddir_sub 52113 ac_abs_top_srcdir=$ac_pwd ;; 52114 [\\/]* | ?:[\\/]* ) # Absolute name. 52115 ac_srcdir=$srcdir$ac_dir_suffix; 52116 ac_top_srcdir=$srcdir 52117 ac_abs_top_srcdir=$srcdir ;; 52118 *) # Relative name. 52119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52120 ac_top_srcdir=$ac_top_build_prefix$srcdir 52121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52122 esac 52123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52124 52125 52126 case $ac_mode in 52127 :F) 52128 # 52129 # CONFIG_FILE 52130 # 52131 52132 _ACEOF 52133 52134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52135 # If the template does not know about datarootdir, expand it. 52136 # FIXME: This hack should be removed a few years after 2.60. 52137 ac_datarootdir_hack=; ac_datarootdir_seen= 52138 ac_sed_dataroot=' 52139 /datarootdir/ { 52140 p 52141 q 52142 } 52143 /@datadir@/p 52144 /@docdir@/p 52145 /@infodir@/p 52146 /@localedir@/p 52147 /@mandir@/p' 52148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52149 *datarootdir*) ac_datarootdir_seen=yes;; 52150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52153 _ACEOF 52154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52155 ac_datarootdir_hack=' 52156 s&@datadir@&$datadir&g 52157 s&@docdir@&$docdir&g 52158 s&@infodir@&$infodir&g 52159 s&@localedir@&$localedir&g 52160 s&@mandir@&$mandir&g 52161 s&\\\${datarootdir}&$datarootdir&g' ;; 52162 esac 52163 _ACEOF 52164 52165 # Neutralize VPATH when `$srcdir' = `.'. 52166 # Shell code in configure.ac might set extrasub. 52167 # FIXME: do we really want to maintain this feature? 52168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52169 ac_sed_extra="$ac_vpsub 52170 $extrasub 52171 _ACEOF 52172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52173 :t 52174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52175 s|@configure_input@|$ac_sed_conf_input|;t t 52176 s&@top_builddir@&$ac_top_builddir_sub&;t t 52177 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52178 s&@srcdir@&$ac_srcdir&;t t 52179 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52180 s&@top_srcdir@&$ac_top_srcdir&;t t 52181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52182 s&@builddir@&$ac_builddir&;t t 52183 s&@abs_builddir@&$ac_abs_builddir&;t t 52184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52185 $ac_datarootdir_hack 52186 " 52187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52189 52190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52193 "$ac_tmp/out"`; test -z "$ac_out"; } && 52194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52195 which seems to be undefined. Please make sure it is defined" >&5 52196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52197 which seems to be undefined. Please make sure it is defined" >&2;} 52198 52199 rm -f "$ac_tmp/stdin" 52200 case $ac_file in 52201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52203 esac \ 52204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52205 ;; 52206 :H) 52207 # 52208 # CONFIG_HEADER 52209 # 52210 if test x"$ac_file" != x-; then 52211 { 52212 $as_echo "/* $configure_input */" \ 52213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 52214 } >"$ac_tmp/config.h" \ 52215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 52217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 52218 $as_echo "$as_me: $ac_file is unchanged" >&6;} 52219 else 52220 rm -f "$ac_file" 52221 mv "$ac_tmp/config.h" "$ac_file" \ 52222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52223 fi 52224 else 52225 $as_echo "/* $configure_input */" \ 52226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 52227 || as_fn_error $? "could not create -" "$LINENO" 5 52228 fi 52229 ;; 52230 52231 52232 esac 52233 52234 done # for ac_tag 52235 52236 52237 as_fn_exit 0 52238 _ACEOF 52239 ac_clean_files=$ac_clean_files_save 52240 52241 test $ac_write_fail = 0 || 52242 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52243 52244 52245 # configure is writing to config.log, and then calls config.status. 52246 # config.status does its own redirection, appending to config.log. 52247 # Unfortunately, on DOS this fails, as config.log is still kept open 52248 # by configure, so config.status won't be able to write to it; its 52249 # output is simply discarded. So we exec the FD to /dev/null, 52250 # effectively closing config.log, so it can be properly (re)opened and 52251 # appended to by config.status. When coming back to configure, we 52252 # need to make the FD available again. 52253 if test "$no_create" != yes; then 52254 ac_cs_success=: 52255 ac_config_status_args= 52256 test "$silent" = yes && 52257 ac_config_status_args="$ac_config_status_args --quiet" 52258 exec 5>/dev/null 52259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52260 exec 5>>config.log 52261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52262 # would make configure fail if this is the last instruction. 52263 $ac_cs_success || as_fn_exit 1 52264 fi 52265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52268 fi 52269 52270 52271 # Try to move the config.log file to the output directory. 52272 if test -e ./config.log; then 52273 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 52274 fi 52275 52276 # Make the compare script executable 52277 $CHMOD +x $OUTPUT_ROOT/compare.sh 52278 52279 # Finally output some useful information to the user 52280 52281 # Finally output some useful information to the user 52282 52283 printf "\n" 52284 printf "====================================================\n" 52285 if test "x$no_create" != "xyes"; then 52286 if test "x$IS_RECONFIGURE" != "xyes"; then 52287 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 52288 else 52289 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 52290 fi 52291 else 52292 if test "x$IS_RECONFIGURE" != "xyes"; then 52293 printf "A configuration has been successfully checked but not created\n" 52294 else 52295 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 52296 fi 52297 fi 52298 if test "x$CONFIGURE_COMMAND_LINE" != x; then 52299 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 52300 else 52301 printf "using default settings.\n" 52302 fi 52303 52304 printf "\n" 52305 printf "Configuration summary:\n" 52306 printf "* Debug level: $DEBUG_LEVEL\n" 52307 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 52308 printf "* JDK variant: $JDK_VARIANT\n" 52309 printf "* JVM variants: $with_jvm_variants\n" 52310 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 52311 52312 printf "\n" 52313 printf "Tools summary:\n" 52314 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 52315 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 52316 fi 52317 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 52318 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 52319 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52320 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52321 52322 printf "\n" 52323 printf "Build performance summary:\n" 52324 printf "* Cores to use: $JOBS\n" 52325 printf "* Memory limit: $MEMORY_SIZE MB\n" 52326 if test "x$CCACHE_STATUS" != "x"; then 52327 printf "* ccache status: $CCACHE_STATUS\n" 52328 fi 52329 printf "\n" 52330 52331 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52332 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52333 printf "will result in longer build times.\n" 52334 printf "\n" 52335 fi 52336 52337 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52338 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52339 printf "These are not respected, and will be ignored. It is recommended\n" 52340 printf "that you clean your environment. The following variables are set:\n" 52341 printf "$FOUND_ALT_VARIABLES\n" 52342 printf "\n" 52343 fi 52344 52345 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52346 printf "WARNING: Your build output directory is not on a local disk.\n" 52347 printf "This will severely degrade build performance!\n" 52348 printf "It is recommended that you create an output directory on a local disk,\n" 52349 printf "and run the configure script again from that directory.\n" 52350 printf "\n" 52351 fi 52352 52353 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52354 printf "WARNING: The result of this configuration has overridden an older\n" 52355 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52356 printf "proper build. Failure to do so might result in strange build problems.\n" 52357 printf "\n" 52358 fi 52359 52360 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52361 printf "WARNING: The result of this configuration was not saved.\n" 52362 printf "You should run without '--no-create | -n' to create the configuration.\n" 52363 printf "\n" 52364 fi 52365 52366