1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 UCRT_DLL_DIR 644 MSVCP_DLL 645 MSVCR_DLL 646 LIBCXX 647 LLVM_LIBS 648 LLVM_LDFLAGS 649 LLVM_CFLAGS 650 LLVM_CONFIG 651 LIBFFI_LIBS 652 LIBFFI_CFLAGS 653 STATIC_CXX_SETTING 654 LIBDL 655 LIBM 656 LIBZIP_CAN_USE_MMAP 657 USE_EXTERNAL_LIBZ 658 USE_EXTERNAL_LIBGIF 659 USE_EXTERNAL_LIBJPEG 660 FONTCONFIG_CFLAGS 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 DEBUG_BINARIES 675 STRIP_POLICY 676 ENABLE_DEBUG_SYMBOLS 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG 678 ZERO_ARCHFLAG 679 LDFLAGS_CXX_JDK 680 LDFLAGS_JDKEXE_SUFFIX 681 LDFLAGS_JDKLIB_SUFFIX 682 LDFLAGS_JDKEXE 683 LDFLAGS_JDKLIB 684 CXXFLAGS_JDKEXE 685 CXXFLAGS_JDKLIB 686 CFLAGS_JDKEXE 687 CFLAGS_JDKLIB 688 MACOSX_VERSION_MIN 689 FDLIBM_CFLAGS 690 USE_FORMAT_OVERFLOW 691 NO_LIFETIME_DSE_CFLAG 692 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 693 LEGACY_EXTRA_ASFLAGS 694 LEGACY_EXTRA_LDFLAGS 695 LEGACY_EXTRA_CXXFLAGS 696 LEGACY_EXTRA_CFLAGS 697 CXXSTD_CXXFLAG 698 CXX_O_FLAG_NONE 699 CXX_O_FLAG_NORM 700 CXX_O_FLAG_HI 701 CXX_O_FLAG_HIGHEST 702 C_O_FLAG_NONE 703 C_O_FLAG_NORM 704 C_O_FLAG_HI 705 C_O_FLAG_HIGHEST 706 CXXFLAGS_DEBUG_SYMBOLS 707 CFLAGS_DEBUG_SYMBOLS 708 ASFLAGS_DEBUG_SYMBOLS 709 CXX_FLAG_DEPS 710 C_FLAG_DEPS 711 SET_SHARED_LIBRARY_MAPFILE 712 SET_SHARED_LIBRARY_NAME 713 SET_SHARED_LIBRARY_ORIGIN 714 SET_EXECUTABLE_ORIGIN 715 SHARED_LIBRARY_FLAGS 716 CXX_FLAG_REORDER 717 C_FLAG_REORDER 718 SYSROOT_LDFLAGS 719 SYSROOT_CFLAGS 720 RC_FLAGS 721 AR_OUT_OPTION 722 LD_OUT_OPTION 723 EXE_OUT_OPTION 724 CC_OUT_OPTION 725 POST_MCS_CMD 726 POST_STRIP_CMD 727 ARFLAGS 728 COMPILER_TARGET_BITS_FLAG 729 JT_HOME 730 JTREGEXE 731 USING_BROKEN_SUSE_LD 732 PACKAGE_PATH 733 LDEXECXX 734 LDEXE 735 USE_CLANG 736 HOTSPOT_LD 737 HOTSPOT_CXX 738 HOTSPOT_RC 739 HOTSPOT_MT 740 BUILD_LD 741 BUILD_CXX 742 BUILD_CC 743 ac_ct_OBJDUMP 744 OBJDUMP 745 ac_ct_OBJCOPY 746 OBJCOPY 747 ac_ct_NM 748 OTOOL 749 ac_ct_STRIP 750 MCS 751 GNM 752 NM 753 STRIP 754 MSBUILD 755 DUMPBIN 756 RC 757 MT 758 LIPO 759 ac_ct_OBJC 760 OBJCFLAGS 761 OBJC 762 ac_ct_AR 763 AR 764 AS 765 LDCXX 766 LD 767 CXXCPP 768 CPP 769 CXX_VERSION_NUMBER 770 CC_VERSION_NUMBER 771 ac_ct_CXX 772 CXXFLAGS 773 CXX 774 ac_ct_PROPER_COMPILER_CXX 775 PROPER_COMPILER_CXX 776 TOOLCHAIN_PATH_CXX 777 POTENTIAL_CXX 778 OBJEXT 779 EXEEXT 780 ac_ct_CC 781 CPPFLAGS 782 LDFLAGS 783 CFLAGS 784 CC 785 ac_ct_PROPER_COMPILER_CC 786 PROPER_COMPILER_CC 787 TOOLCHAIN_PATH_CC 788 POTENTIAL_CC 789 SDKPATH 790 XCODEBUILD 791 SET_DEVELOPER_DIR 792 VS_LIB 793 VS_INCLUDE 794 VS_PATH 795 CYGWIN_LINK 796 EXE_SUFFIX 797 OBJ_SUFFIX 798 STATIC_LIBRARY 799 SHARED_LIBRARY 800 STATIC_LIBRARY_SUFFIX 801 SHARED_LIBRARY_SUFFIX 802 LIBRARY_PREFIX 803 TOOLCHAIN_TYPE 804 BUILD_HOTSPOT 805 HOTSPOT_DIST 806 BUILD_OUTPUT 807 OVERRIDE_SRC_ROOT 808 ADD_SRC_ROOT 809 JDK_TOPDIR 810 NASHORN_TOPDIR 811 HOTSPOT_TOPDIR 812 JAXWS_TOPDIR 813 JAXP_TOPDIR 814 CORBA_TOPDIR 815 LANGTOOLS_TOPDIR 816 JAVA_FLAGS_SMALL 817 JAVA_FLAGS_BIG 818 JAVA_FLAGS 819 BOOT_JDK_BITS 820 JAVAC_FLAGS 821 BOOT_JDK_SOURCETARGET 822 BOOT_JDK 823 BOOT_TOOLSJAR 824 BOOT_RTJAR 825 JAVA_CHECK 826 JAVAC_CHECK 827 COOKED_BUILD_NUMBER 828 COOKED_JDK_UPDATE_VERSION 829 JDK_VERSION 830 COPYRIGHT_YEAR 831 VENDOR_URL_VM_BUG 832 VENDOR_URL_BUG 833 VENDOR_URL 834 COMPANY_NAME 835 MACOSX_BUNDLE_ID_BASE 836 MACOSX_BUNDLE_NAME_BASE 837 JDK_RC_PLATFORM_NAME 838 PRODUCT_SUFFIX 839 PRODUCT_NAME 840 LAUNCHER_NAME 841 MILESTONE 842 JDK_BUILD_NUMBER 843 JDK_UPDATE_VERSION 844 JDK_MICRO_VERSION 845 JDK_MINOR_VERSION 846 JDK_MAJOR_VERSION 847 USER_RELEASE_SUFFIX 848 ENABLE_JFR 849 COMPRESS_JARS 850 UNLIMITED_CRYPTO 851 CACERTS_FILE 852 TEST_IN_BUILD 853 BUILD_HEADLESS 854 SUPPORT_HEADFUL 855 SUPPORT_HEADLESS 856 BDEPS_FTP 857 BDEPS_UNZIP 858 OS_VERSION_MICRO 859 OS_VERSION_MINOR 860 OS_VERSION_MAJOR 861 PKG_CONFIG 862 CODESIGN 863 XATTR 864 DSYMUTIL 865 IS_GNU_TIME 866 TIME 867 STAT 868 HG 869 READELF 870 LDD 871 ZIP 872 UNZIP 873 FIND_DELETE 874 MAKE 875 CHECK_TOOLSDIR_MAKE 876 CHECK_TOOLSDIR_GMAKE 877 CHECK_MAKE 878 CHECK_GMAKE 879 PKGHANDLER 880 OUTPUT_ROOT 881 CONF_NAME 882 SPEC 883 DEVKIT_LIB_DIR 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 CUSTOM_MAKE_DIR 998 target_alias 999 host_alias 1000 build_alias 1001 LIBS 1002 ECHO_T 1003 ECHO_N 1004 ECHO_C 1005 DEFS 1006 mandir 1007 localedir 1008 libdir 1009 psdir 1010 pdfdir 1011 dvidir 1012 htmldir 1013 infodir 1014 docdir 1015 oldincludedir 1016 includedir 1017 runstatedir 1018 localstatedir 1019 sharedstatedir 1020 sysconfdir 1021 datadir 1022 datarootdir 1023 libexecdir 1024 sbindir 1025 bindir 1026 program_transform_name 1027 prefix 1028 exec_prefix 1029 PACKAGE_URL 1030 PACKAGE_BUGREPORT 1031 PACKAGE_STRING 1032 PACKAGE_VERSION 1033 PACKAGE_TARNAME 1034 PACKAGE_NAME 1035 PATH_SEPARATOR 1036 SHELL' 1037 ac_subst_files='' 1038 ac_user_opts=' 1039 enable_option_checking 1040 with_custom_make_dir 1041 with_target_bits 1042 enable_openjdk_only 1043 with_jdk_variant 1044 with_jvm_interpreter 1045 with_jvm_variants 1046 enable_debug 1047 with_debug_level 1048 with_devkit 1049 with_sys_root 1050 with_sysroot 1051 with_tools_dir 1052 with_toolchain_path 1053 with_extra_path 1054 with_xcode_path 1055 with_conf_name 1056 with_builddeps_conf 1057 with_builddeps_server 1058 with_builddeps_dir 1059 with_builddeps_group 1060 enable_headful 1061 enable_hotspot_test_in_build 1062 with_cacerts_file 1063 enable_unlimited_crypto 1064 enable_jfr 1065 with_milestone 1066 with_update_version 1067 with_user_release_suffix 1068 with_build_number 1069 with_vendor_name 1070 with_vendor_url 1071 with_vendor_bug_url 1072 with_vendor_vm_bug_url 1073 with_copyright_year 1074 with_boot_jdk 1075 with_boot_jdk_jvmargs 1076 with_add_source_root 1077 with_override_source_root 1078 with_adds_and_overrides 1079 with_override_langtools 1080 with_override_corba 1081 with_override_jaxp 1082 with_override_jaxws 1083 with_override_hotspot 1084 with_override_nashorn 1085 with_override_jdk 1086 with_import_hotspot 1087 with_toolchain_type 1088 with_toolchain_version 1089 with_jtreg 1090 with_extra_cflags 1091 with_extra_cxxflags 1092 with_extra_ldflags 1093 with_extra_asflags 1094 enable_debug_symbols 1095 enable_zip_debug_info 1096 with_native_debug_symbols 1097 enable_macosx_runtime_support 1098 with_x 1099 with_cups 1100 with_cups_include 1101 with_freetype 1102 with_freetype_include 1103 with_freetype_lib 1104 with_freetype_src 1105 enable_freetype_bundling 1106 with_alsa 1107 with_alsa_include 1108 with_alsa_lib 1109 with_fontconfig 1110 with_fontconfig_include 1111 with_giflib 1112 with_zlib 1113 with_stdc__lib 1114 with_msvcr_dll 1115 with_msvcp_dll 1116 with_ucrt_dll_dir 1117 with_dxsdk 1118 with_dxsdk_lib 1119 with_dxsdk_include 1120 with_num_cores 1121 with_memory_size 1122 with_jobs 1123 with_sjavac_server_java 1124 enable_sjavac 1125 enable_precompiled_headers 1126 enable_ccache 1127 with_ccache_dir 1128 ' 1129 ac_precious_vars='build_alias 1130 host_alias 1131 target_alias 1132 BASENAME 1133 BASH 1134 CAT 1135 CHMOD 1136 CMP 1137 COMM 1138 CP 1139 CUT 1140 DATE 1141 DIFF 1142 DIRNAME 1143 ECHO 1144 EXPR 1145 FILE 1146 FIND 1147 HEAD 1148 LN 1149 LS 1150 MKDIR 1151 MKTEMP 1152 MV 1153 NAWK 1154 PRINTF 1155 RM 1156 SH 1157 SORT 1158 TAIL 1159 TAR 1160 TEE 1161 TOUCH 1162 TR 1163 UNAME 1164 UNIQ 1165 WC 1166 WHICH 1167 XARGS 1168 AWK 1169 GREP 1170 EGREP 1171 FGREP 1172 SED 1173 CYGPATH 1174 READLINK 1175 DF 1176 SETFILE 1177 CPIO 1178 UNZIP 1179 ZIP 1180 LDD 1181 READELF 1182 HG 1183 STAT 1184 TIME 1185 DSYMUTIL 1186 XATTR 1187 CODESIGN 1188 PKG_CONFIG 1189 CC 1190 CFLAGS 1191 LDFLAGS 1192 LIBS 1193 CPPFLAGS 1194 CXX 1195 CXXFLAGS 1196 CCC 1197 CPP 1198 CXXCPP 1199 AS 1200 AR 1201 OBJC 1202 OBJCFLAGS 1203 LIPO 1204 STRIP 1205 NM 1206 GNM 1207 MCS 1208 OBJCOPY 1209 OBJDUMP 1210 BUILD_CC 1211 BUILD_CXX 1212 BUILD_LD 1213 JTREGEXE 1214 XMKMF 1215 FREETYPE_CFLAGS 1216 FREETYPE_LIBS 1217 ALSA_CFLAGS 1218 ALSA_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 runstatedir='${localstatedir}/run' 1261 includedir='${prefix}/include' 1262 oldincludedir='/usr/include' 1263 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1264 infodir='${datarootdir}/info' 1265 htmldir='${docdir}' 1266 dvidir='${docdir}' 1267 pdfdir='${docdir}' 1268 psdir='${docdir}' 1269 libdir='${exec_prefix}/lib' 1270 localedir='${datarootdir}/locale' 1271 mandir='${datarootdir}/man' 1272 1273 ac_prev= 1274 ac_dashdash= 1275 for ac_option 1276 do 1277 # If the previous option needs an argument, assign it. 1278 if test -n "$ac_prev"; then 1279 eval $ac_prev=\$ac_option 1280 ac_prev= 1281 continue 1282 fi 1283 1284 case $ac_option in 1285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1286 *=) ac_optarg= ;; 1287 *) ac_optarg=yes ;; 1288 esac 1289 1290 # Accept the important Cygnus configure options, so we can diagnose typos. 1291 1292 case $ac_dashdash$ac_option in 1293 --) 1294 ac_dashdash=yes ;; 1295 1296 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1297 ac_prev=bindir ;; 1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1299 bindir=$ac_optarg ;; 1300 1301 -build | --build | --buil | --bui | --bu) 1302 ac_prev=build_alias ;; 1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1304 build_alias=$ac_optarg ;; 1305 1306 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1308 ac_prev=cache_file ;; 1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1311 cache_file=$ac_optarg ;; 1312 1313 --config-cache | -C) 1314 cache_file=config.cache ;; 1315 1316 -datadir | --datadir | --datadi | --datad) 1317 ac_prev=datadir ;; 1318 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1319 datadir=$ac_optarg ;; 1320 1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1322 | --dataroo | --dataro | --datar) 1323 ac_prev=datarootdir ;; 1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1326 datarootdir=$ac_optarg ;; 1327 1328 -disable-* | --disable-*) 1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1330 # Reject names that are not valid shell variable names. 1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1332 as_fn_error $? "invalid feature name: $ac_useropt" 1333 ac_useropt_orig=$ac_useropt 1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1335 case $ac_user_opts in 1336 *" 1337 "enable_$ac_useropt" 1338 "*) ;; 1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1340 ac_unrecognized_sep=', ';; 1341 esac 1342 eval enable_$ac_useropt=no ;; 1343 1344 -docdir | --docdir | --docdi | --doc | --do) 1345 ac_prev=docdir ;; 1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1347 docdir=$ac_optarg ;; 1348 1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1350 ac_prev=dvidir ;; 1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1352 dvidir=$ac_optarg ;; 1353 1354 -enable-* | --enable-*) 1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1356 # Reject names that are not valid shell variable names. 1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1358 as_fn_error $? "invalid feature name: $ac_useropt" 1359 ac_useropt_orig=$ac_useropt 1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1361 case $ac_user_opts in 1362 *" 1363 "enable_$ac_useropt" 1364 "*) ;; 1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1366 ac_unrecognized_sep=', ';; 1367 esac 1368 eval enable_$ac_useropt=\$ac_optarg ;; 1369 1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1372 | --exec | --exe | --ex) 1373 ac_prev=exec_prefix ;; 1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1376 | --exec=* | --exe=* | --ex=*) 1377 exec_prefix=$ac_optarg ;; 1378 1379 -gas | --gas | --ga | --g) 1380 # Obsolete; use --with-gas. 1381 with_gas=yes ;; 1382 1383 -help | --help | --hel | --he | -h) 1384 ac_init_help=long ;; 1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1386 ac_init_help=recursive ;; 1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1388 ac_init_help=short ;; 1389 1390 -host | --host | --hos | --ho) 1391 ac_prev=host_alias ;; 1392 -host=* | --host=* | --hos=* | --ho=*) 1393 host_alias=$ac_optarg ;; 1394 1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1396 ac_prev=htmldir ;; 1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1398 | --ht=*) 1399 htmldir=$ac_optarg ;; 1400 1401 -includedir | --includedir | --includedi | --included | --include \ 1402 | --includ | --inclu | --incl | --inc) 1403 ac_prev=includedir ;; 1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1405 | --includ=* | --inclu=* | --incl=* | --inc=*) 1406 includedir=$ac_optarg ;; 1407 1408 -infodir | --infodir | --infodi | --infod | --info | --inf) 1409 ac_prev=infodir ;; 1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1411 infodir=$ac_optarg ;; 1412 1413 -libdir | --libdir | --libdi | --libd) 1414 ac_prev=libdir ;; 1415 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1416 libdir=$ac_optarg ;; 1417 1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1419 | --libexe | --libex | --libe) 1420 ac_prev=libexecdir ;; 1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1422 | --libexe=* | --libex=* | --libe=*) 1423 libexecdir=$ac_optarg ;; 1424 1425 -localedir | --localedir | --localedi | --localed | --locale) 1426 ac_prev=localedir ;; 1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1428 localedir=$ac_optarg ;; 1429 1430 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1431 | --localstate | --localstat | --localsta | --localst | --locals) 1432 ac_prev=localstatedir ;; 1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1435 localstatedir=$ac_optarg ;; 1436 1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1438 ac_prev=mandir ;; 1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1440 mandir=$ac_optarg ;; 1441 1442 -nfp | --nfp | --nf) 1443 # Obsolete; use --without-fp. 1444 with_fp=no ;; 1445 1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1447 | --no-cr | --no-c | -n) 1448 no_create=yes ;; 1449 1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1452 no_recursion=yes ;; 1453 1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1456 | --oldin | --oldi | --old | --ol | --o) 1457 ac_prev=oldincludedir ;; 1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1461 oldincludedir=$ac_optarg ;; 1462 1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1464 ac_prev=prefix ;; 1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1466 prefix=$ac_optarg ;; 1467 1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1469 | --program-pre | --program-pr | --program-p) 1470 ac_prev=program_prefix ;; 1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1473 program_prefix=$ac_optarg ;; 1474 1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1476 | --program-suf | --program-su | --program-s) 1477 ac_prev=program_suffix ;; 1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1480 program_suffix=$ac_optarg ;; 1481 1482 -program-transform-name | --program-transform-name \ 1483 | --program-transform-nam | --program-transform-na \ 1484 | --program-transform-n | --program-transform- \ 1485 | --program-transform | --program-transfor \ 1486 | --program-transfo | --program-transf \ 1487 | --program-trans | --program-tran \ 1488 | --progr-tra | --program-tr | --program-t) 1489 ac_prev=program_transform_name ;; 1490 -program-transform-name=* | --program-transform-name=* \ 1491 | --program-transform-nam=* | --program-transform-na=* \ 1492 | --program-transform-n=* | --program-transform-=* \ 1493 | --program-transform=* | --program-transfor=* \ 1494 | --program-transfo=* | --program-transf=* \ 1495 | --program-trans=* | --program-tran=* \ 1496 | --progr-tra=* | --program-tr=* | --program-t=*) 1497 program_transform_name=$ac_optarg ;; 1498 1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1500 ac_prev=pdfdir ;; 1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1502 pdfdir=$ac_optarg ;; 1503 1504 -psdir | --psdir | --psdi | --psd | --ps) 1505 ac_prev=psdir ;; 1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1507 psdir=$ac_optarg ;; 1508 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 silent=yes ;; 1512 1513 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1514 | --runstate | --runstat | --runsta | --runst | --runs \ 1515 | --run | --ru | --r) 1516 ac_prev=runstatedir ;; 1517 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1518 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1519 | --run=* | --ru=* | --r=*) 1520 runstatedir=$ac_optarg ;; 1521 1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1523 ac_prev=sbindir ;; 1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1525 | --sbi=* | --sb=*) 1526 sbindir=$ac_optarg ;; 1527 1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1530 | --sharedst | --shareds | --shared | --share | --shar \ 1531 | --sha | --sh) 1532 ac_prev=sharedstatedir ;; 1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1536 | --sha=* | --sh=*) 1537 sharedstatedir=$ac_optarg ;; 1538 1539 -site | --site | --sit) 1540 ac_prev=site ;; 1541 -site=* | --site=* | --sit=*) 1542 site=$ac_optarg ;; 1543 1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1545 ac_prev=srcdir ;; 1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1547 srcdir=$ac_optarg ;; 1548 1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1550 | --syscon | --sysco | --sysc | --sys | --sy) 1551 ac_prev=sysconfdir ;; 1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1554 sysconfdir=$ac_optarg ;; 1555 1556 -target | --target | --targe | --targ | --tar | --ta | --t) 1557 ac_prev=target_alias ;; 1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1559 target_alias=$ac_optarg ;; 1560 1561 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1562 verbose=yes ;; 1563 1564 -version | --version | --versio | --versi | --vers | -V) 1565 ac_init_version=: ;; 1566 1567 -with-* | --with-*) 1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1569 # Reject names that are not valid shell variable names. 1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1571 as_fn_error $? "invalid package name: $ac_useropt" 1572 ac_useropt_orig=$ac_useropt 1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1574 case $ac_user_opts in 1575 *" 1576 "with_$ac_useropt" 1577 "*) ;; 1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1579 ac_unrecognized_sep=', ';; 1580 esac 1581 eval with_$ac_useropt=\$ac_optarg ;; 1582 1583 -without-* | --without-*) 1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1585 # Reject names that are not valid shell variable names. 1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1587 as_fn_error $? "invalid package name: $ac_useropt" 1588 ac_useropt_orig=$ac_useropt 1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1590 case $ac_user_opts in 1591 *" 1592 "with_$ac_useropt" 1593 "*) ;; 1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1595 ac_unrecognized_sep=', ';; 1596 esac 1597 eval with_$ac_useropt=no ;; 1598 1599 --x) 1600 # Obsolete; use --with-x. 1601 with_x=yes ;; 1602 1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1604 | --x-incl | --x-inc | --x-in | --x-i) 1605 ac_prev=x_includes ;; 1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1608 x_includes=$ac_optarg ;; 1609 1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1612 ac_prev=x_libraries ;; 1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1615 x_libraries=$ac_optarg ;; 1616 1617 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1618 Try \`$0 --help' for more information" 1619 ;; 1620 1621 *=*) 1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1623 # Reject names that are not valid shell variable names. 1624 case $ac_envvar in #( 1625 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1627 esac 1628 eval $ac_envvar=\$ac_optarg 1629 export $ac_envvar ;; 1630 1631 *) 1632 # FIXME: should be removed in autoconf 3.0. 1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1637 ;; 1638 1639 esac 1640 done 1641 1642 if test -n "$ac_prev"; then 1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1644 as_fn_error $? "missing argument to $ac_option" 1645 fi 1646 1647 if test -n "$ac_unrecognized_opts"; then 1648 case $enable_option_checking in 1649 no) ;; 1650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1652 esac 1653 fi 1654 1655 # Check all directory arguments for consistency. 1656 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1657 datadir sysconfdir sharedstatedir localstatedir includedir \ 1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1659 libdir localedir mandir runstatedir 1660 do 1661 eval ac_val=\$$ac_var 1662 # Remove trailing slashes. 1663 case $ac_val in 1664 */ ) 1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1666 eval $ac_var=\$ac_val;; 1667 esac 1668 # Be sure to have absolute directory names. 1669 case $ac_val in 1670 [\\/$]* | ?:[\\/]* ) continue;; 1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1672 esac 1673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1674 done 1675 1676 # There might be people who depend on the old broken behavior: `$host' 1677 # used to hold the argument of --host etc. 1678 # FIXME: To remove some day. 1679 build=$build_alias 1680 host=$host_alias 1681 target=$target_alias 1682 1683 # FIXME: To remove some day. 1684 if test "x$host_alias" != x; then 1685 if test "x$build_alias" = x; then 1686 cross_compiling=maybe 1687 elif test "x$build_alias" != "x$host_alias"; then 1688 cross_compiling=yes 1689 fi 1690 fi 1691 1692 ac_tool_prefix= 1693 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1694 1695 test "$silent" = yes && exec 6>/dev/null 1696 1697 1698 ac_pwd=`pwd` && test -n "$ac_pwd" && 1699 ac_ls_di=`ls -di .` && 1700 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1701 as_fn_error $? "working directory cannot be determined" 1702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1703 as_fn_error $? "pwd does not report name of working directory" 1704 1705 1706 # Find the source files, if location was not specified. 1707 if test -z "$srcdir"; then 1708 ac_srcdir_defaulted=yes 1709 # Try the directory containing this script, then the parent directory. 1710 ac_confdir=`$as_dirname -- "$as_myself" || 1711 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1712 X"$as_myself" : 'X\(//\)[^/]' \| \ 1713 X"$as_myself" : 'X\(//\)$' \| \ 1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1715 $as_echo X"$as_myself" | 1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1717 s//\1/ 1718 q 1719 } 1720 /^X\(\/\/\)[^/].*/{ 1721 s//\1/ 1722 q 1723 } 1724 /^X\(\/\/\)$/{ 1725 s//\1/ 1726 q 1727 } 1728 /^X\(\/\).*/{ 1729 s//\1/ 1730 q 1731 } 1732 s/.*/./; q'` 1733 srcdir=$ac_confdir 1734 if test ! -r "$srcdir/$ac_unique_file"; then 1735 srcdir=.. 1736 fi 1737 else 1738 ac_srcdir_defaulted=no 1739 fi 1740 if test ! -r "$srcdir/$ac_unique_file"; then 1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1743 fi 1744 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1745 ac_abs_confdir=`( 1746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1747 pwd)` 1748 # When building in place, set srcdir=. 1749 if test "$ac_abs_confdir" = "$ac_pwd"; then 1750 srcdir=. 1751 fi 1752 # Remove unnecessary trailing slashes from srcdir. 1753 # Double slashes in file names in object file debugging info 1754 # mess up M-x gdb in Emacs. 1755 case $srcdir in 1756 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1757 esac 1758 for ac_var in $ac_precious_vars; do 1759 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1760 eval ac_env_${ac_var}_value=\$${ac_var} 1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1762 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1763 done 1764 1765 # 1766 # Report the --help message. 1767 # 1768 if test "$ac_init_help" = "long"; then 1769 # Omit some internal or obsolete options to make the list less imposing. 1770 # This message is too long to be a string in the A/UX 3.1 sh. 1771 cat <<_ACEOF 1772 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1773 1774 Usage: $0 [OPTION]... [VAR=VALUE]... 1775 1776 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1777 VAR=VALUE. See below for descriptions of some of the useful variables. 1778 1779 Defaults for the options are specified in brackets. 1780 1781 Configuration: 1782 -h, --help display this help and exit 1783 --help=short display options specific to this package 1784 --help=recursive display the short help of all the included packages 1785 -V, --version display version information and exit 1786 -q, --quiet, --silent do not print \`checking ...' messages 1787 --cache-file=FILE cache test results in FILE [disabled] 1788 -C, --config-cache alias for \`--cache-file=config.cache' 1789 -n, --no-create do not create output files 1790 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1791 1792 Installation directories: 1793 --prefix=PREFIX install architecture-independent files in PREFIX 1794 [$ac_default_prefix] 1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1796 [PREFIX] 1797 1798 By default, \`make install' will install all the files in 1799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1800 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1801 for instance \`--prefix=\$HOME'. 1802 1803 For better control, use the options below. 1804 1805 Fine tuning of the installation directories: 1806 --bindir=DIR user executables [EPREFIX/bin] 1807 --sbindir=DIR system admin executables [EPREFIX/sbin] 1808 --libexecdir=DIR program executables [EPREFIX/libexec] 1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1812 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1813 --libdir=DIR object code libraries [EPREFIX/lib] 1814 --includedir=DIR C header files [PREFIX/include] 1815 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1816 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1817 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1818 --infodir=DIR info documentation [DATAROOTDIR/info] 1819 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1820 --mandir=DIR man documentation [DATAROOTDIR/man] 1821 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1822 --htmldir=DIR html documentation [DOCDIR] 1823 --dvidir=DIR dvi documentation [DOCDIR] 1824 --pdfdir=DIR pdf documentation [DOCDIR] 1825 --psdir=DIR ps documentation [DOCDIR] 1826 _ACEOF 1827 1828 cat <<\_ACEOF 1829 1830 X features: 1831 --x-includes=DIR X include files are in DIR 1832 --x-libraries=DIR X library files are in DIR 1833 1834 System types: 1835 --build=BUILD configure for building on BUILD [guessed] 1836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1837 --target=TARGET configure for building compilers for TARGET [HOST] 1838 _ACEOF 1839 fi 1840 1841 if test -n "$ac_init_help"; then 1842 case $ac_init_help in 1843 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1844 esac 1845 cat <<\_ACEOF 1846 1847 Optional Features: 1848 --disable-option-checking ignore unrecognized --enable/--with options 1849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1851 --enable-openjdk-only suppress building custom source even if present 1852 [disabled] 1853 --enable-debug set the debug level to fastdebug (shorthand for 1854 --with-debug-level=fastdebug) [disabled] 1855 --disable-headful disable building headful support (graphical UI 1856 support) [enabled] 1857 --enable-hotspot-test-in-build 1858 run the Queens test after Hotspot build [disabled] 1859 --enable-unlimited-crypto 1860 Enable unlimited crypto policy [disabled] 1861 --disable-jfr Disable Java Flight Recorder support [enabled] 1862 --disable-debug-symbols disable generation of debug symbols [enabled] 1863 --disable-zip-debug-info 1864 disable zipping of debug-info files [enabled] 1865 --enable-macosx-runtime-support 1866 Deprecated. Option is kept for backwards 1867 compatibility and is ignored 1868 --disable-freetype-bundling 1869 disable bundling of the freetype library with the 1870 build result [enabled on Windows or when using 1871 --with-freetype, disabled otherwise] 1872 --enable-sjavac use sjavac to do fast incremental compiles 1873 [disabled] 1874 --disable-precompiled-headers 1875 disable using precompiled headers when compiling C++ 1876 [enabled] 1877 --enable-ccache enable using ccache to speed up recompilations 1878 [disabled] 1879 1880 Optional Packages: 1881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1883 --with-custom-make-dir use this directory for custom build/make files 1884 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1885 support it), e.g. --with-target-bits=32 [guessed] 1886 --with-jdk-variant JDK variant to build (normal) [normal] 1887 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1888 --with-jvm-variants JVM variants (separated by commas) to build (server, 1889 client, minimal1, kernel, zero, zeroshark, core) 1890 [server] 1891 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1892 [release] 1893 --with-devkit use this devkit for compilers, tools and resources 1894 --with-sys-root alias for --with-sysroot for backwards compatability 1895 --with-sysroot use this directory as sysroot) 1896 --with-tools-dir alias for --with-toolchain-path for backwards 1897 compatibility 1898 --with-toolchain-path prepend these directories when searching for 1899 toolchain binaries (compilers etc) 1900 --with-extra-path prepend these directories to the default path 1901 --with-xcode-path explicit path to Xcode application (generally for 1902 building on 10.9 and later) 1903 --with-conf-name use this as the name of the configuration [generated 1904 from important configuration options] 1905 --with-builddeps-conf use this configuration file for the builddeps 1906 --with-builddeps-server download and use build dependencies from this server 1907 url 1908 --with-builddeps-dir store downloaded build dependencies here 1909 [/localhome/builddeps] 1910 --with-builddeps-group chgrp the downloaded build dependencies to this 1911 group 1912 --with-cacerts-file specify alternative cacerts file 1913 --with-milestone Set milestone value for build [internal] 1914 --with-update-version Set update version value for build [b00] 1915 --with-user-release-suffix 1916 Add a custom string to the version string if build 1917 number isn't set.[username_builddateb00] 1918 --with-build-number Set build number value for build [b00] 1919 --with-vendor-name Set vendor name. Among others, used to set the 1920 'java.vendor' and 'java.vm.vendor' system 1921 properties. [not specified] 1922 --with-vendor-url Set the 'java.vendor.url' system property [not 1923 specified] 1924 --with-vendor-bug-url Set the 'java.vendor.url.bug' system property [not 1925 specified] 1926 --with-vendor-vm-bug-url 1927 Sets the bug URL which will be displayed when the VM 1928 crashes [not specified] 1929 --with-copyright-year Set copyright year value for build [current year] 1930 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1931 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1932 invocations of the Boot JDK, overriding the default 1933 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1934 -enableassertions" 1935 --with-add-source-root for each and every source directory, look in this 1936 additional source root for the same directory; if it 1937 exists and have files in it, include it in the build 1938 --with-override-source-root 1939 for each and every source directory, look in this 1940 override source root for the same directory; if it 1941 exists, use that directory instead and ignore the 1942 directory in the original source root 1943 --with-adds-and-overrides 1944 use the subdirs 'adds' and 'overrides' in the 1945 specified directory as add-source-root and 1946 override-source-root 1947 --with-override-langtools 1948 use this langtools dir for the build 1949 --with-override-corba use this corba dir for the build 1950 --with-override-jaxp use this jaxp dir for the build 1951 --with-override-jaxws use this jaxws dir for the build 1952 --with-override-hotspot use this hotspot dir for the build 1953 --with-override-nashorn use this nashorn dir for the build 1954 --with-override-jdk use this jdk dir for the build 1955 --with-import-hotspot import hotspot binaries from this jdk image or 1956 hotspot build dist dir instead of building from 1957 source 1958 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1959 to show possible values [platform dependent] 1960 --with-toolchain-version 1961 the version of the toolchain to look for, use 1962 '--help' to show possible values [platform 1963 dependent] 1964 --with-jtreg Regression Test Harness [probed] 1965 --with-extra-cflags extra flags to be used when compiling jdk c-files 1966 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1967 --with-extra-ldflags extra flags to be used when linking jdk 1968 --with-extra-asflags extra flags to be passed to the assembler 1969 --with-native-debug-symbols 1970 set the native debug symbol configuration (none, 1971 internal, external, zipped) [varying] 1972 --with-x use the X Window System 1973 --with-cups specify prefix directory for the cups package 1974 (expecting the headers under PATH/include) 1975 --with-cups-include specify directory for the cups include files 1976 --with-freetype specify prefix directory for the freetype package 1977 (expecting the libraries under PATH/lib and the 1978 headers under PATH/include) 1979 --with-freetype-include specify directory for the freetype include files 1980 --with-freetype-lib specify directory for the freetype library 1981 --with-freetype-src specify directory with freetype sources to 1982 automatically build the library (experimental, 1983 Windows-only) 1984 --with-alsa specify prefix directory for the alsa package 1985 (expecting the libraries under PATH/lib and the 1986 headers under PATH/include) 1987 --with-alsa-include specify directory for the alsa include files 1988 --with-alsa-lib specify directory for the alsa library 1989 --with-fontconfig specify prefix directory for the fontconfig package 1990 (expecting the headers under PATH/include) 1991 --with-fontconfig-include 1992 specify directory for the fontconfig include files 1993 --with-giflib use giflib from build system or OpenJDK source 1994 (system, bundled) [bundled] 1995 --with-zlib use zlib from build system or OpenJDK source 1996 (system, bundled) [bundled] 1997 --with-stdc++lib=<static>,<dynamic>,<default> 1998 force linking of the C++ runtime on Linux to either 1999 static or dynamic, default is static with dynamic as 2000 fallback 2001 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2002 (Windows only) [probed] 2003 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2004 (Windows only) [probed] 2005 --with-ucrt-dll-dir path to Microsoft Windows Kit UCRT DLL dir (Windows 2006 only) [probed] 2007 --with-dxsdk Deprecated. Option is kept for backwards 2008 compatibility and is ignored 2009 --with-dxsdk-lib Deprecated. Option is kept for backwards 2010 compatibility and is ignored 2011 --with-dxsdk-include Deprecated. Option is kept for backwards 2012 compatibility and is ignored 2013 --with-num-cores number of cores in the build system, e.g. 2014 --with-num-cores=8 [probed] 2015 --with-memory-size memory (in MB) available in the build system, e.g. 2016 --with-memory-size=1024 [probed] 2017 --with-jobs number of parallel jobs to let make run [calculated 2018 based on cores and memory] 2019 --with-sjavac-server-java 2020 use this java binary for running the sjavac 2021 background server [Boot JDK java] 2022 --with-ccache-dir where to store ccache files [~/.ccache] 2023 2024 Some influential environment variables: 2025 BASENAME Override default value for BASENAME 2026 BASH Override default value for BASH 2027 CAT Override default value for CAT 2028 CHMOD Override default value for CHMOD 2029 CMP Override default value for CMP 2030 COMM Override default value for COMM 2031 CP Override default value for CP 2032 CUT Override default value for CUT 2033 DATE Override default value for DATE 2034 DIFF Override default value for DIFF 2035 DIRNAME Override default value for DIRNAME 2036 ECHO Override default value for ECHO 2037 EXPR Override default value for EXPR 2038 FILE Override default value for FILE 2039 FIND Override default value for FIND 2040 HEAD Override default value for HEAD 2041 LN Override default value for LN 2042 LS Override default value for LS 2043 MKDIR Override default value for MKDIR 2044 MKTEMP Override default value for MKTEMP 2045 MV Override default value for MV 2046 NAWK Override default value for NAWK 2047 PRINTF Override default value for PRINTF 2048 RM Override default value for RM 2049 SH Override default value for SH 2050 SORT Override default value for SORT 2051 TAIL Override default value for TAIL 2052 TAR Override default value for TAR 2053 TEE Override default value for TEE 2054 TOUCH Override default value for TOUCH 2055 TR Override default value for TR 2056 UNAME Override default value for UNAME 2057 UNIQ Override default value for UNIQ 2058 WC Override default value for WC 2059 WHICH Override default value for WHICH 2060 XARGS Override default value for XARGS 2061 AWK Override default value for AWK 2062 GREP Override default value for GREP 2063 EGREP Override default value for EGREP 2064 FGREP Override default value for FGREP 2065 SED Override default value for SED 2066 CYGPATH Override default value for CYGPATH 2067 READLINK Override default value for READLINK 2068 DF Override default value for DF 2069 SETFILE Override default value for SETFILE 2070 CPIO Override default value for CPIO 2071 UNZIP Override default value for UNZIP 2072 ZIP Override default value for ZIP 2073 LDD Override default value for LDD 2074 READELF Override default value for READELF 2075 HG Override default value for HG 2076 STAT Override default value for STAT 2077 TIME Override default value for TIME 2078 DSYMUTIL Override default value for DSYMUTIL 2079 XATTR Override default value for XATTR 2080 CODESIGN Override default value for CODESIGN 2081 PKG_CONFIG path to pkg-config utility 2082 CC C compiler command 2083 CFLAGS C compiler flags 2084 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2085 nonstandard directory <lib dir> 2086 LIBS libraries to pass to the linker, e.g. -l<library> 2087 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2088 you have headers in a nonstandard directory <include dir> 2089 CXX C++ compiler command 2090 CXXFLAGS C++ compiler flags 2091 CPP C preprocessor 2092 CXXCPP C++ preprocessor 2093 AS Override default value for AS 2094 AR Override default value for AR 2095 OBJC Objective C compiler command 2096 OBJCFLAGS Objective C compiler flags 2097 LIPO Override default value for LIPO 2098 STRIP Override default value for STRIP 2099 NM Override default value for NM 2100 GNM Override default value for GNM 2101 MCS Override default value for MCS 2102 OBJCOPY Override default value for OBJCOPY 2103 OBJDUMP Override default value for OBJDUMP 2104 BUILD_CC Override default value for BUILD_CC 2105 BUILD_CXX Override default value for BUILD_CXX 2106 BUILD_LD Override default value for BUILD_LD 2107 JTREGEXE Override default value for JTREGEXE 2108 XMKMF Path to xmkmf, Makefile generator for X Window System 2109 FREETYPE_CFLAGS 2110 C compiler flags for FREETYPE, overriding pkg-config 2111 FREETYPE_LIBS 2112 linker flags for FREETYPE, overriding pkg-config 2113 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2114 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2115 LIBFFI_CFLAGS 2116 C compiler flags for LIBFFI, overriding pkg-config 2117 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2118 CCACHE Override default value for CCACHE 2119 2120 Use these variables to override the choices made by `configure' or to help 2121 it to find libraries and programs with nonstandard names/locations. 2122 2123 Report bugs to <build-dev@openjdk.java.net>. 2124 OpenJDK home page: <http://openjdk.java.net>. 2125 _ACEOF 2126 ac_status=$? 2127 fi 2128 2129 if test "$ac_init_help" = "recursive"; then 2130 # If there are subdirs, report their specific --help. 2131 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2132 test -d "$ac_dir" || 2133 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2134 continue 2135 ac_builddir=. 2136 2137 case "$ac_dir" in 2138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2139 *) 2140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2141 # A ".." for each directory in $ac_dir_suffix. 2142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2143 case $ac_top_builddir_sub in 2144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2146 esac ;; 2147 esac 2148 ac_abs_top_builddir=$ac_pwd 2149 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2150 # for backward compatibility: 2151 ac_top_builddir=$ac_top_build_prefix 2152 2153 case $srcdir in 2154 .) # We are building in place. 2155 ac_srcdir=. 2156 ac_top_srcdir=$ac_top_builddir_sub 2157 ac_abs_top_srcdir=$ac_pwd ;; 2158 [\\/]* | ?:[\\/]* ) # Absolute name. 2159 ac_srcdir=$srcdir$ac_dir_suffix; 2160 ac_top_srcdir=$srcdir 2161 ac_abs_top_srcdir=$srcdir ;; 2162 *) # Relative name. 2163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2164 ac_top_srcdir=$ac_top_build_prefix$srcdir 2165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2166 esac 2167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2168 2169 cd "$ac_dir" || { ac_status=$?; continue; } 2170 # Check for guested configure. 2171 if test -f "$ac_srcdir/configure.gnu"; then 2172 echo && 2173 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2174 elif test -f "$ac_srcdir/configure"; then 2175 echo && 2176 $SHELL "$ac_srcdir/configure" --help=recursive 2177 else 2178 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2179 fi || ac_status=$? 2180 cd "$ac_pwd" || { ac_status=$?; break; } 2181 done 2182 fi 2183 2184 test -n "$ac_init_help" && exit $ac_status 2185 if $ac_init_version; then 2186 cat <<\_ACEOF 2187 OpenJDK configure jdk8 2188 generated by GNU Autoconf 2.69 2189 2190 Copyright (C) 2012 Free Software Foundation, Inc. 2191 This configure script is free software; the Free Software Foundation 2192 gives unlimited permission to copy, distribute and modify it. 2193 _ACEOF 2194 exit 2195 fi 2196 2197 ## ------------------------ ## 2198 ## Autoconf initialization. ## 2199 ## ------------------------ ## 2200 2201 # ac_fn_c_try_compile LINENO 2202 # -------------------------- 2203 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2204 ac_fn_c_try_compile () 2205 { 2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2207 rm -f conftest.$ac_objext 2208 if { { ac_try="$ac_compile" 2209 case "(($ac_try" in 2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2211 *) ac_try_echo=$ac_try;; 2212 esac 2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2214 $as_echo "$ac_try_echo"; } >&5 2215 (eval "$ac_compile") 2>conftest.err 2216 ac_status=$? 2217 if test -s conftest.err; then 2218 grep -v '^ *+' conftest.err >conftest.er1 2219 cat conftest.er1 >&5 2220 mv -f conftest.er1 conftest.err 2221 fi 2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2223 test $ac_status = 0; } && { 2224 test -z "$ac_c_werror_flag" || 2225 test ! -s conftest.err 2226 } && test -s conftest.$ac_objext; then : 2227 ac_retval=0 2228 else 2229 $as_echo "$as_me: failed program was:" >&5 2230 sed 's/^/| /' conftest.$ac_ext >&5 2231 2232 ac_retval=1 2233 fi 2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 as_fn_set_status $ac_retval 2236 2237 } # ac_fn_c_try_compile 2238 2239 # ac_fn_cxx_try_compile LINENO 2240 # ---------------------------- 2241 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2242 ac_fn_cxx_try_compile () 2243 { 2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2245 rm -f conftest.$ac_objext 2246 if { { ac_try="$ac_compile" 2247 case "(($ac_try" in 2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2249 *) ac_try_echo=$ac_try;; 2250 esac 2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2252 $as_echo "$ac_try_echo"; } >&5 2253 (eval "$ac_compile") 2>conftest.err 2254 ac_status=$? 2255 if test -s conftest.err; then 2256 grep -v '^ *+' conftest.err >conftest.er1 2257 cat conftest.er1 >&5 2258 mv -f conftest.er1 conftest.err 2259 fi 2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2261 test $ac_status = 0; } && { 2262 test -z "$ac_cxx_werror_flag" || 2263 test ! -s conftest.err 2264 } && test -s conftest.$ac_objext; then : 2265 ac_retval=0 2266 else 2267 $as_echo "$as_me: failed program was:" >&5 2268 sed 's/^/| /' conftest.$ac_ext >&5 2269 2270 ac_retval=1 2271 fi 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 as_fn_set_status $ac_retval 2274 2275 } # ac_fn_cxx_try_compile 2276 2277 # ac_fn_c_try_cpp LINENO 2278 # ---------------------- 2279 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2280 ac_fn_c_try_cpp () 2281 { 2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2283 if { { ac_try="$ac_cpp conftest.$ac_ext" 2284 case "(($ac_try" in 2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2286 *) ac_try_echo=$ac_try;; 2287 esac 2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2289 $as_echo "$ac_try_echo"; } >&5 2290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2291 ac_status=$? 2292 if test -s conftest.err; then 2293 grep -v '^ *+' conftest.err >conftest.er1 2294 cat conftest.er1 >&5 2295 mv -f conftest.er1 conftest.err 2296 fi 2297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2298 test $ac_status = 0; } > conftest.i && { 2299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2300 test ! -s conftest.err 2301 }; then : 2302 ac_retval=0 2303 else 2304 $as_echo "$as_me: failed program was:" >&5 2305 sed 's/^/| /' conftest.$ac_ext >&5 2306 2307 ac_retval=1 2308 fi 2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2310 as_fn_set_status $ac_retval 2311 2312 } # ac_fn_c_try_cpp 2313 2314 # ac_fn_cxx_try_cpp LINENO 2315 # ------------------------ 2316 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2317 ac_fn_cxx_try_cpp () 2318 { 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 if { { ac_try="$ac_cpp conftest.$ac_ext" 2321 case "(($ac_try" in 2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2323 *) ac_try_echo=$ac_try;; 2324 esac 2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2326 $as_echo "$ac_try_echo"; } >&5 2327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2328 ac_status=$? 2329 if test -s conftest.err; then 2330 grep -v '^ *+' conftest.err >conftest.er1 2331 cat conftest.er1 >&5 2332 mv -f conftest.er1 conftest.err 2333 fi 2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2335 test $ac_status = 0; } > conftest.i && { 2336 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2337 test ! -s conftest.err 2338 }; then : 2339 ac_retval=0 2340 else 2341 $as_echo "$as_me: failed program was:" >&5 2342 sed 's/^/| /' conftest.$ac_ext >&5 2343 2344 ac_retval=1 2345 fi 2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2347 as_fn_set_status $ac_retval 2348 2349 } # ac_fn_cxx_try_cpp 2350 2351 # ac_fn_objc_try_compile LINENO 2352 # ----------------------------- 2353 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2354 ac_fn_objc_try_compile () 2355 { 2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2357 rm -f conftest.$ac_objext 2358 if { { ac_try="$ac_compile" 2359 case "(($ac_try" in 2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2361 *) ac_try_echo=$ac_try;; 2362 esac 2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2364 $as_echo "$ac_try_echo"; } >&5 2365 (eval "$ac_compile") 2>conftest.err 2366 ac_status=$? 2367 if test -s conftest.err; then 2368 grep -v '^ *+' conftest.err >conftest.er1 2369 cat conftest.er1 >&5 2370 mv -f conftest.er1 conftest.err 2371 fi 2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2373 test $ac_status = 0; } && { 2374 test -z "$ac_objc_werror_flag" || 2375 test ! -s conftest.err 2376 } && test -s conftest.$ac_objext; then : 2377 ac_retval=0 2378 else 2379 $as_echo "$as_me: failed program was:" >&5 2380 sed 's/^/| /' conftest.$ac_ext >&5 2381 2382 ac_retval=1 2383 fi 2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2385 as_fn_set_status $ac_retval 2386 2387 } # ac_fn_objc_try_compile 2388 2389 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2390 # --------------------------------------------------------- 2391 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2392 # the include files in INCLUDES and setting the cache variable VAR 2393 # accordingly. 2394 ac_fn_cxx_check_header_mongrel () 2395 { 2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2397 if eval \${$3+:} false; then : 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2399 $as_echo_n "checking for $2... " >&6; } 2400 if eval \${$3+:} false; then : 2401 $as_echo_n "(cached) " >&6 2402 fi 2403 eval ac_res=\$$3 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2405 $as_echo "$ac_res" >&6; } 2406 else 2407 # Is the header compilable? 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2409 $as_echo_n "checking $2 usability... " >&6; } 2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2411 /* end confdefs.h. */ 2412 $4 2413 #include <$2> 2414 _ACEOF 2415 if ac_fn_cxx_try_compile "$LINENO"; then : 2416 ac_header_compiler=yes 2417 else 2418 ac_header_compiler=no 2419 fi 2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2422 $as_echo "$ac_header_compiler" >&6; } 2423 2424 # Is the header present? 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2426 $as_echo_n "checking $2 presence... " >&6; } 2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2428 /* end confdefs.h. */ 2429 #include <$2> 2430 _ACEOF 2431 if ac_fn_cxx_try_cpp "$LINENO"; then : 2432 ac_header_preproc=yes 2433 else 2434 ac_header_preproc=no 2435 fi 2436 rm -f conftest.err conftest.i conftest.$ac_ext 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2438 $as_echo "$ac_header_preproc" >&6; } 2439 2440 # So? What about this header? 2441 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2442 yes:no: ) 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2444 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2447 ;; 2448 no:yes:* ) 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2450 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2452 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2454 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2456 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2459 ( $as_echo "## ----------------------------------------- ## 2460 ## Report this to build-dev@openjdk.java.net ## 2461 ## ----------------------------------------- ##" 2462 ) | sed "s/^/$as_me: WARNING: /" >&2 2463 ;; 2464 esac 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2466 $as_echo_n "checking for $2... " >&6; } 2467 if eval \${$3+:} false; then : 2468 $as_echo_n "(cached) " >&6 2469 else 2470 eval "$3=\$ac_header_compiler" 2471 fi 2472 eval ac_res=\$$3 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2474 $as_echo "$ac_res" >&6; } 2475 fi 2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2477 2478 } # ac_fn_cxx_check_header_mongrel 2479 2480 # ac_fn_cxx_try_run LINENO 2481 # ------------------------ 2482 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2483 # that executables *can* be run. 2484 ac_fn_cxx_try_run () 2485 { 2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2487 if { { ac_try="$ac_link" 2488 case "(($ac_try" in 2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2490 *) ac_try_echo=$ac_try;; 2491 esac 2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2493 $as_echo "$ac_try_echo"; } >&5 2494 (eval "$ac_link") 2>&5 2495 ac_status=$? 2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2497 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2498 { { case "(($ac_try" in 2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2500 *) ac_try_echo=$ac_try;; 2501 esac 2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2503 $as_echo "$ac_try_echo"; } >&5 2504 (eval "$ac_try") 2>&5 2505 ac_status=$? 2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2507 test $ac_status = 0; }; }; then : 2508 ac_retval=0 2509 else 2510 $as_echo "$as_me: program exited with status $ac_status" >&5 2511 $as_echo "$as_me: failed program was:" >&5 2512 sed 's/^/| /' conftest.$ac_ext >&5 2513 2514 ac_retval=$ac_status 2515 fi 2516 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2518 as_fn_set_status $ac_retval 2519 2520 } # ac_fn_cxx_try_run 2521 2522 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2523 # --------------------------------------------------------- 2524 # Tests whether HEADER exists and can be compiled using the include files in 2525 # INCLUDES, setting the cache variable VAR accordingly. 2526 ac_fn_cxx_check_header_compile () 2527 { 2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2530 $as_echo_n "checking for $2... " >&6; } 2531 if eval \${$3+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533 else 2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2535 /* end confdefs.h. */ 2536 $4 2537 #include <$2> 2538 _ACEOF 2539 if ac_fn_cxx_try_compile "$LINENO"; then : 2540 eval "$3=yes" 2541 else 2542 eval "$3=no" 2543 fi 2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2545 fi 2546 eval ac_res=\$$3 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2548 $as_echo "$ac_res" >&6; } 2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2550 2551 } # ac_fn_cxx_check_header_compile 2552 2553 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2554 # ---------------------------------------------- 2555 # Tries to find the compile-time value of EXPR in a program that includes 2556 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2557 # computed 2558 ac_fn_cxx_compute_int () 2559 { 2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2561 if test "$cross_compiling" = yes; then 2562 # Depending upon the size, compute the lo and hi bounds. 2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2564 /* end confdefs.h. */ 2565 $4 2566 int 2567 main () 2568 { 2569 static int test_array [1 - 2 * !(($2) >= 0)]; 2570 test_array [0] = 0; 2571 return test_array [0]; 2572 2573 ; 2574 return 0; 2575 } 2576 _ACEOF 2577 if ac_fn_cxx_try_compile "$LINENO"; then : 2578 ac_lo=0 ac_mid=0 2579 while :; do 2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2581 /* end confdefs.h. */ 2582 $4 2583 int 2584 main () 2585 { 2586 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2587 test_array [0] = 0; 2588 return test_array [0]; 2589 2590 ; 2591 return 0; 2592 } 2593 _ACEOF 2594 if ac_fn_cxx_try_compile "$LINENO"; then : 2595 ac_hi=$ac_mid; break 2596 else 2597 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2598 if test $ac_lo -le $ac_mid; then 2599 ac_lo= ac_hi= 2600 break 2601 fi 2602 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2603 fi 2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2605 done 2606 else 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) < 0)]; 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=-1 ac_mid=-1 2623 while :; do 2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2625 /* end confdefs.h. */ 2626 $4 2627 int 2628 main () 2629 { 2630 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2631 test_array [0] = 0; 2632 return test_array [0]; 2633 2634 ; 2635 return 0; 2636 } 2637 _ACEOF 2638 if ac_fn_cxx_try_compile "$LINENO"; then : 2639 ac_lo=$ac_mid; break 2640 else 2641 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2642 if test $ac_mid -le $ac_hi; then 2643 ac_lo= ac_hi= 2644 break 2645 fi 2646 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2647 fi 2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2649 done 2650 else 2651 ac_lo= ac_hi= 2652 fi 2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2654 fi 2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2656 # Binary search between lo and hi bounds. 2657 while test "x$ac_lo" != "x$ac_hi"; do 2658 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660 /* end confdefs.h. */ 2661 $4 2662 int 2663 main () 2664 { 2665 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2666 test_array [0] = 0; 2667 return test_array [0]; 2668 2669 ; 2670 return 0; 2671 } 2672 _ACEOF 2673 if ac_fn_cxx_try_compile "$LINENO"; then : 2674 ac_hi=$ac_mid 2675 else 2676 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2677 fi 2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2679 done 2680 case $ac_lo in #(( 2681 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2682 '') ac_retval=1 ;; 2683 esac 2684 else 2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2686 /* end confdefs.h. */ 2687 $4 2688 static long int longval () { return $2; } 2689 static unsigned long int ulongval () { return $2; } 2690 #include <stdio.h> 2691 #include <stdlib.h> 2692 int 2693 main () 2694 { 2695 2696 FILE *f = fopen ("conftest.val", "w"); 2697 if (! f) 2698 return 1; 2699 if (($2) < 0) 2700 { 2701 long int i = longval (); 2702 if (i != ($2)) 2703 return 1; 2704 fprintf (f, "%ld", i); 2705 } 2706 else 2707 { 2708 unsigned long int i = ulongval (); 2709 if (i != ($2)) 2710 return 1; 2711 fprintf (f, "%lu", i); 2712 } 2713 /* Do not output a trailing newline, as this causes \r\n confusion 2714 on some platforms. */ 2715 return ferror (f) || fclose (f) != 0; 2716 2717 ; 2718 return 0; 2719 } 2720 _ACEOF 2721 if ac_fn_cxx_try_run "$LINENO"; then : 2722 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2723 else 2724 ac_retval=1 2725 fi 2726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2727 conftest.$ac_objext conftest.beam conftest.$ac_ext 2728 rm -f conftest.val 2729 2730 fi 2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2732 as_fn_set_status $ac_retval 2733 2734 } # ac_fn_cxx_compute_int 2735 2736 # ac_fn_cxx_try_link LINENO 2737 # ------------------------- 2738 # Try to link conftest.$ac_ext, and return whether this succeeded. 2739 ac_fn_cxx_try_link () 2740 { 2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2742 rm -f conftest.$ac_objext conftest$ac_exeext 2743 if { { ac_try="$ac_link" 2744 case "(($ac_try" in 2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2746 *) ac_try_echo=$ac_try;; 2747 esac 2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2749 $as_echo "$ac_try_echo"; } >&5 2750 (eval "$ac_link") 2>conftest.err 2751 ac_status=$? 2752 if test -s conftest.err; then 2753 grep -v '^ *+' conftest.err >conftest.er1 2754 cat conftest.er1 >&5 2755 mv -f conftest.er1 conftest.err 2756 fi 2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2758 test $ac_status = 0; } && { 2759 test -z "$ac_cxx_werror_flag" || 2760 test ! -s conftest.err 2761 } && test -s conftest$ac_exeext && { 2762 test "$cross_compiling" = yes || 2763 test -x conftest$ac_exeext 2764 }; then : 2765 ac_retval=0 2766 else 2767 $as_echo "$as_me: failed program was:" >&5 2768 sed 's/^/| /' conftest.$ac_ext >&5 2769 2770 ac_retval=1 2771 fi 2772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2774 # interfere with the next link command; also delete a directory that is 2775 # left behind by Apple's compiler. We do this before executing the actions. 2776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2778 as_fn_set_status $ac_retval 2779 2780 } # ac_fn_cxx_try_link 2781 2782 # ac_fn_cxx_check_func LINENO FUNC VAR 2783 # ------------------------------------ 2784 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2785 ac_fn_cxx_check_func () 2786 { 2787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2789 $as_echo_n "checking for $2... " >&6; } 2790 if eval \${$3+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792 else 2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2794 /* end confdefs.h. */ 2795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2796 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2797 #define $2 innocuous_$2 2798 2799 /* System header to define __stub macros and hopefully few prototypes, 2800 which can conflict with char $2 (); below. 2801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2802 <limits.h> exists even on freestanding compilers. */ 2803 2804 #ifdef __STDC__ 2805 # include <limits.h> 2806 #else 2807 # include <assert.h> 2808 #endif 2809 2810 #undef $2 2811 2812 /* Override any GCC internal prototype to avoid an error. 2813 Use char because int might match the return type of a GCC 2814 builtin and then its argument prototype would still apply. */ 2815 #ifdef __cplusplus 2816 extern "C" 2817 #endif 2818 char $2 (); 2819 /* The GNU C library defines this for functions which it implements 2820 to always fail with ENOSYS. Some functions are actually named 2821 something starting with __ and the normal name is an alias. */ 2822 #if defined __stub_$2 || defined __stub___$2 2823 choke me 2824 #endif 2825 2826 int 2827 main () 2828 { 2829 return $2 (); 2830 ; 2831 return 0; 2832 } 2833 _ACEOF 2834 if ac_fn_cxx_try_link "$LINENO"; then : 2835 eval "$3=yes" 2836 else 2837 eval "$3=no" 2838 fi 2839 rm -f core conftest.err conftest.$ac_objext \ 2840 conftest$ac_exeext conftest.$ac_ext 2841 fi 2842 eval ac_res=\$$3 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2844 $as_echo "$ac_res" >&6; } 2845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2846 2847 } # ac_fn_cxx_check_func 2848 2849 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2850 # ------------------------------------------------------- 2851 # Tests whether HEADER exists and can be compiled using the include files in 2852 # INCLUDES, setting the cache variable VAR accordingly. 2853 ac_fn_c_check_header_compile () 2854 { 2855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2857 $as_echo_n "checking for $2... " >&6; } 2858 if eval \${$3+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860 else 2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2862 /* end confdefs.h. */ 2863 $4 2864 #include <$2> 2865 _ACEOF 2866 if ac_fn_c_try_compile "$LINENO"; then : 2867 eval "$3=yes" 2868 else 2869 eval "$3=no" 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872 fi 2873 eval ac_res=\$$3 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2875 $as_echo "$ac_res" >&6; } 2876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2877 2878 } # ac_fn_c_check_header_compile 2879 cat >config.log <<_ACEOF 2880 This file contains any messages produced by compilers while 2881 running configure, to aid debugging if configure makes a mistake. 2882 2883 It was created by OpenJDK $as_me jdk8, which was 2884 generated by GNU Autoconf 2.69. Invocation command line was 2885 2886 $ $0 $@ 2887 2888 _ACEOF 2889 exec 5>>config.log 2890 { 2891 cat <<_ASUNAME 2892 ## --------- ## 2893 ## Platform. ## 2894 ## --------- ## 2895 2896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2897 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2898 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2899 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2900 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2901 2902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2904 2905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2912 2913 _ASUNAME 2914 2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916 for as_dir in $PATH 2917 do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 $as_echo "PATH: $as_dir" 2921 done 2922 IFS=$as_save_IFS 2923 2924 } >&5 2925 2926 cat >&5 <<_ACEOF 2927 2928 2929 ## ----------- ## 2930 ## Core tests. ## 2931 ## ----------- ## 2932 2933 _ACEOF 2934 2935 2936 # Keep a trace of the command line. 2937 # Strip out --no-create and --no-recursion so they do not pile up. 2938 # Strip out --silent because we don't want to record it for future runs. 2939 # Also quote any args containing shell meta-characters. 2940 # Make two passes to allow for proper duplicate-argument suppression. 2941 ac_configure_args= 2942 ac_configure_args0= 2943 ac_configure_args1= 2944 ac_must_keep_next=false 2945 for ac_pass in 1 2 2946 do 2947 for ac_arg 2948 do 2949 case $ac_arg in 2950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2952 | -silent | --silent | --silen | --sile | --sil) 2953 continue ;; 2954 *\'*) 2955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2956 esac 2957 case $ac_pass in 2958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2959 2) 2960 as_fn_append ac_configure_args1 " '$ac_arg'" 2961 if test $ac_must_keep_next = true; then 2962 ac_must_keep_next=false # Got value, back to normal. 2963 else 2964 case $ac_arg in 2965 *=* | --config-cache | -C | -disable-* | --disable-* \ 2966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2968 | -with-* | --with-* | -without-* | --without-* | --x) 2969 case "$ac_configure_args0 " in 2970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2971 esac 2972 ;; 2973 -* ) ac_must_keep_next=true ;; 2974 esac 2975 fi 2976 as_fn_append ac_configure_args " '$ac_arg'" 2977 ;; 2978 esac 2979 done 2980 done 2981 { ac_configure_args0=; unset ac_configure_args0;} 2982 { ac_configure_args1=; unset ac_configure_args1;} 2983 2984 # When interrupted or exit'd, cleanup temporary files, and complete 2985 # config.log. We remove comments because anyway the quotes in there 2986 # would cause problems or look ugly. 2987 # WARNING: Use '\'' to represent an apostrophe within the trap. 2988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2989 trap 'exit_status=$? 2990 # Save into config.log some information that might help in debugging. 2991 { 2992 echo 2993 2994 $as_echo "## ---------------- ## 2995 ## Cache variables. ## 2996 ## ---------------- ##" 2997 echo 2998 # The following way of writing the cache mishandles newlines in values, 2999 ( 3000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3001 eval ac_val=\$$ac_var 3002 case $ac_val in #( 3003 *${as_nl}*) 3004 case $ac_var in #( 3005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3007 esac 3008 case $ac_var in #( 3009 _ | IFS | as_nl) ;; #( 3010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3011 *) { eval $ac_var=; unset $ac_var;} ;; 3012 esac ;; 3013 esac 3014 done 3015 (set) 2>&1 | 3016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3017 *${as_nl}ac_space=\ *) 3018 sed -n \ 3019 "s/'\''/'\''\\\\'\'''\''/g; 3020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3021 ;; #( 3022 *) 3023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3024 ;; 3025 esac | 3026 sort 3027 ) 3028 echo 3029 3030 $as_echo "## ----------------- ## 3031 ## Output variables. ## 3032 ## ----------------- ##" 3033 echo 3034 for ac_var in $ac_subst_vars 3035 do 3036 eval ac_val=\$$ac_var 3037 case $ac_val in 3038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3039 esac 3040 $as_echo "$ac_var='\''$ac_val'\''" 3041 done | sort 3042 echo 3043 3044 if test -n "$ac_subst_files"; then 3045 $as_echo "## ------------------- ## 3046 ## File substitutions. ## 3047 ## ------------------- ##" 3048 echo 3049 for ac_var in $ac_subst_files 3050 do 3051 eval ac_val=\$$ac_var 3052 case $ac_val in 3053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3054 esac 3055 $as_echo "$ac_var='\''$ac_val'\''" 3056 done | sort 3057 echo 3058 fi 3059 3060 if test -s confdefs.h; then 3061 $as_echo "## ----------- ## 3062 ## confdefs.h. ## 3063 ## ----------- ##" 3064 echo 3065 cat confdefs.h 3066 echo 3067 fi 3068 test "$ac_signal" != 0 && 3069 $as_echo "$as_me: caught signal $ac_signal" 3070 $as_echo "$as_me: exit $exit_status" 3071 } >&5 3072 rm -f core *.core core.conftest.* && 3073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3074 exit $exit_status 3075 ' 0 3076 for ac_signal in 1 2 13 15; do 3077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3078 done 3079 ac_signal=0 3080 3081 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3082 rm -f -r conftest* confdefs.h 3083 3084 $as_echo "/* confdefs.h */" > confdefs.h 3085 3086 # Predefined preprocessor variables. 3087 3088 cat >>confdefs.h <<_ACEOF 3089 #define PACKAGE_NAME "$PACKAGE_NAME" 3090 _ACEOF 3091 3092 cat >>confdefs.h <<_ACEOF 3093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3094 _ACEOF 3095 3096 cat >>confdefs.h <<_ACEOF 3097 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3098 _ACEOF 3099 3100 cat >>confdefs.h <<_ACEOF 3101 #define PACKAGE_STRING "$PACKAGE_STRING" 3102 _ACEOF 3103 3104 cat >>confdefs.h <<_ACEOF 3105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3106 _ACEOF 3107 3108 cat >>confdefs.h <<_ACEOF 3109 #define PACKAGE_URL "$PACKAGE_URL" 3110 _ACEOF 3111 3112 3113 # Let the site file select an alternate cache file if it wants to. 3114 # Prefer an explicitly selected file to automatically selected ones. 3115 ac_site_file1=NONE 3116 ac_site_file2=NONE 3117 if test -n "$CONFIG_SITE"; then 3118 # We do not want a PATH search for config.site. 3119 case $CONFIG_SITE in #(( 3120 -*) ac_site_file1=./$CONFIG_SITE;; 3121 */*) ac_site_file1=$CONFIG_SITE;; 3122 *) ac_site_file1=./$CONFIG_SITE;; 3123 esac 3124 elif test "x$prefix" != xNONE; then 3125 ac_site_file1=$prefix/share/config.site 3126 ac_site_file2=$prefix/etc/config.site 3127 else 3128 ac_site_file1=$ac_default_prefix/share/config.site 3129 ac_site_file2=$ac_default_prefix/etc/config.site 3130 fi 3131 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3132 do 3133 test "x$ac_site_file" = xNONE && continue 3134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3136 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3137 sed 's/^/| /' "$ac_site_file" >&5 3138 . "$ac_site_file" \ 3139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3141 as_fn_error $? "failed to load site script $ac_site_file 3142 See \`config.log' for more details" "$LINENO" 5; } 3143 fi 3144 done 3145 3146 if test -r "$cache_file"; then 3147 # Some versions of bash will fail to source /dev/null (special files 3148 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3151 $as_echo "$as_me: loading cache $cache_file" >&6;} 3152 case $cache_file in 3153 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3154 *) . "./$cache_file";; 3155 esac 3156 fi 3157 else 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3159 $as_echo "$as_me: creating cache $cache_file" >&6;} 3160 >$cache_file 3161 fi 3162 3163 # Check that the precious variables saved in the cache have kept the same 3164 # value. 3165 ac_cache_corrupted=false 3166 for ac_var in $ac_precious_vars; do 3167 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3168 eval ac_new_set=\$ac_env_${ac_var}_set 3169 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3170 eval ac_new_val=\$ac_env_${ac_var}_value 3171 case $ac_old_set,$ac_new_set in 3172 set,) 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3175 ac_cache_corrupted=: ;; 3176 ,set) 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3179 ac_cache_corrupted=: ;; 3180 ,);; 3181 *) 3182 if test "x$ac_old_val" != "x$ac_new_val"; then 3183 # differences in whitespace do not lead to failure. 3184 ac_old_val_w=`echo x $ac_old_val` 3185 ac_new_val_w=`echo x $ac_new_val` 3186 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3189 ac_cache_corrupted=: 3190 else 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3193 eval $ac_var=\$ac_old_val 3194 fi 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3199 fi;; 3200 esac 3201 # Pass precious variables to config.status. 3202 if test "$ac_new_set" = set; then 3203 case $ac_new_val in 3204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3205 *) ac_arg=$ac_var=$ac_new_val ;; 3206 esac 3207 case " $ac_configure_args " in 3208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3209 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3210 esac 3211 fi 3212 done 3213 if $ac_cache_corrupted; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3219 fi 3220 ## -------------------- ## 3221 ## Main body of script. ## 3222 ## -------------------- ## 3223 3224 ac_ext=c 3225 ac_cpp='$CPP $CPPFLAGS' 3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3229 3230 3231 3232 ac_aux_dir= 3233 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3234 if test -f "$ac_dir/install-sh"; then 3235 ac_aux_dir=$ac_dir 3236 ac_install_sh="$ac_aux_dir/install-sh -c" 3237 break 3238 elif test -f "$ac_dir/install.sh"; then 3239 ac_aux_dir=$ac_dir 3240 ac_install_sh="$ac_aux_dir/install.sh -c" 3241 break 3242 elif test -f "$ac_dir/shtool"; then 3243 ac_aux_dir=$ac_dir 3244 ac_install_sh="$ac_aux_dir/shtool install -c" 3245 break 3246 fi 3247 done 3248 if test -z "$ac_aux_dir"; then 3249 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 3250 fi 3251 3252 # These three variables are undocumented and unsupported, 3253 # and are intended to be withdrawn in a future Autoconf release. 3254 # They can cause serious problems if a builder's source tree is in a directory 3255 # whose full name contains unusual characters. 3256 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3257 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3258 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3259 3260 3261 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3262 3263 # 3264 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3265 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3266 # 3267 # This code is free software; you can redistribute it and/or modify it 3268 # under the terms of the GNU General Public License version 2 only, as 3269 # published by the Free Software Foundation. Oracle designates this 3270 # particular file as subject to the "Classpath" exception as provided 3271 # by Oracle in the LICENSE file that accompanied this code. 3272 # 3273 # This code is distributed in the hope that it will be useful, but WITHOUT 3274 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3275 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3276 # version 2 for more details (a copy is included in the LICENSE file that 3277 # accompanied this code). 3278 # 3279 # You should have received a copy of the GNU General Public License version 3280 # 2 along with this work; if not, write to the Free Software Foundation, 3281 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3282 # 3283 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3284 # or visit www.oracle.com if you need additional information or have any 3285 # questions. 3286 # 3287 3288 # 3289 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3290 # 3291 # This program is free software; you can redistribute it and/or modify 3292 # it under the terms of the GNU General Public License as published by 3293 # the Free Software Foundation; either version 2 of the License, or 3294 # (at your option) any later version. 3295 # 3296 # This program is distributed in the hope that it will be useful, but 3297 # WITHOUT ANY WARRANTY; without even the implied warranty of 3298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3299 # General Public License for more details. 3300 # 3301 # You should have received a copy of the GNU General Public License 3302 # along with this program; if not, write to the Free Software 3303 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3304 # 3305 # As a special exception to the GNU General Public License, if you 3306 # distribute this file as part of a program that contains a 3307 # configuration script generated by Autoconf, you may include it under 3308 # the same distribution terms that you use for the rest of that program. 3309 3310 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3311 # ---------------------------------- 3312 # PKG_PROG_PKG_CONFIG 3313 3314 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3315 # 3316 # Check to see whether a particular set of modules exists. Similar 3317 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3318 # 3319 # 3320 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3321 # this or PKG_CHECK_MODULES is called, or make sure to call 3322 # PKG_CHECK_EXISTS manually 3323 # -------------------------------------------------------------- 3324 3325 3326 3327 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3328 # --------------------------------------------- 3329 # _PKG_CONFIG 3330 3331 # _PKG_SHORT_ERRORS_SUPPORTED 3332 # ----------------------------- 3333 # _PKG_SHORT_ERRORS_SUPPORTED 3334 3335 3336 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3337 # [ACTION-IF-NOT-FOUND]) 3338 # 3339 # 3340 # Note that if there is a possibility the first call to 3341 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3342 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3343 # 3344 # 3345 # -------------------------------------------------------------- 3346 # PKG_CHECK_MODULES 3347 3348 3349 # Include these first... 3350 # 3351 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3352 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3353 # 3354 # This code is free software; you can redistribute it and/or modify it 3355 # under the terms of the GNU General Public License version 2 only, as 3356 # published by the Free Software Foundation. Oracle designates this 3357 # particular file as subject to the "Classpath" exception as provided 3358 # by Oracle in the LICENSE file that accompanied this code. 3359 # 3360 # This code is distributed in the hope that it will be useful, but WITHOUT 3361 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3362 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3363 # version 2 for more details (a copy is included in the LICENSE file that 3364 # accompanied this code). 3365 # 3366 # You should have received a copy of the GNU General Public License version 3367 # 2 along with this work; if not, write to the Free Software Foundation, 3368 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3369 # 3370 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3371 # or visit www.oracle.com if you need additional information or have any 3372 # questions. 3373 # 3374 3375 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3376 # If so, then append $1 to $2 \ 3377 # Also set JVM_ARG_OK to true/false depending on outcome. 3378 3379 3380 # Appends a string to a path variable, only adding the : when needed. 3381 3382 3383 # Prepends a string to a path variable, only adding the : when needed. 3384 3385 3386 # This will make sure the given variable points to a full and proper 3387 # path. This means: 3388 # 1) There will be no spaces in the path. On posix platforms, 3389 # spaces in the path will result in an error. On Windows, 3390 # the path will be rewritten using short-style to be space-free. 3391 # 2) The path will be absolute, and it will be in unix-style (on 3392 # cygwin). 3393 # $1: The name of the variable to fix 3394 3395 3396 # This will make sure the given variable points to a executable 3397 # with a full and proper path. This means: 3398 # 1) There will be no spaces in the path. On posix platforms, 3399 # spaces in the path will result in an error. On Windows, 3400 # the path will be rewritten using short-style to be space-free. 3401 # 2) The path will be absolute, and it will be in unix-style (on 3402 # cygwin). 3403 # Any arguments given to the executable is preserved. 3404 # If the input variable does not have a directory specification, then 3405 # it need to be in the PATH. 3406 # $1: The name of the variable to fix 3407 3408 3409 3410 3411 # Register a --with argument but mark it as deprecated 3412 # $1: The name of the with argument to deprecate, not including --with- 3413 3414 3415 # Register a --enable argument but mark it as deprecated 3416 # $1: The name of the with argument to deprecate, not including --enable- 3417 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3418 3419 3420 3421 3422 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3423 # $1: variable to check 3424 3425 3426 # Check that there are no unprocessed overridden variables left. 3427 # If so, they are an incorrect argument and we will exit with an error. 3428 3429 3430 # Setup a tool for the given variable. If correctly specified by the user, 3431 # use that value, otherwise search for the tool using the supplied code snippet. 3432 # $1: variable to set 3433 # $2: code snippet to call to look for the tool 3434 3435 3436 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3437 # $1: variable to set 3438 # $2: executable name (or list of names) to look for 3439 3440 3441 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3442 # $1: variable to set 3443 # $2: executable name (or list of names) to look for 3444 3445 3446 # Like BASIC_PATH_PROGS but fails if no tool was found. 3447 # $1: variable to set 3448 # $2: executable name (or list of names) to look for 3449 3450 3451 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3452 # $1: variable to set 3453 # $2: autoconf macro to call to look for the special tool 3454 3455 3456 # Setup the most fundamental tools that relies on not much else to set up, 3457 # but is used by much of the early bootstrap code. 3458 3459 3460 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3461 3462 3463 # Evaluates platform specific overrides for devkit variables. 3464 # $1: Name of variable 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 #%%% Simple tools %%% 3475 3476 # Check if we have found a usable version of make 3477 # $1: the path to a potential make binary (or empty) 3478 # $2: the description on how we found this 3479 3480 3481 # Goes looking for a usable version of GNU make. 3482 3483 3484 3485 3486 3487 3488 # Check if build directory is on local disk. If not possible to determine, 3489 # we prefer to claim it's local. 3490 # Argument 1: directory to test 3491 # Argument 2: what to do if it is on local disk 3492 # Argument 3: what to do otherwise (remote disk or failure) 3493 3494 3495 # Check that source files have basic read permissions set. This might 3496 # not be the case in cygwin in certain conditions. 3497 3498 3499 3500 3501 # Code to run after AC_OUTPUT 3502 3503 3504 # 3505 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3507 # 3508 # This code is free software; you can redistribute it and/or modify it 3509 # under the terms of the GNU General Public License version 2 only, as 3510 # published by the Free Software Foundation. Oracle designates this 3511 # particular file as subject to the "Classpath" exception as provided 3512 # by Oracle in the LICENSE file that accompanied this code. 3513 # 3514 # This code is distributed in the hope that it will be useful, but WITHOUT 3515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3516 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3517 # version 2 for more details (a copy is included in the LICENSE file that 3518 # accompanied this code). 3519 # 3520 # You should have received a copy of the GNU General Public License version 3521 # 2 along with this work; if not, write to the Free Software Foundation, 3522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3523 # 3524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3525 # or visit www.oracle.com if you need additional information or have any 3526 # questions. 3527 # 3528 3529 3530 3531 3532 3533 # Helper function which possibly converts a path using DOS-style short mode. 3534 # If so, the updated path is stored in $new_path. 3535 # $1: The path to check 3536 3537 3538 # Helper function which possibly converts a path using DOS-style short mode. 3539 # If so, the updated path is stored in $new_path. 3540 # $1: The path to check 3541 3542 3543 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3544 # and could probably be heavily simplified. However, all changes in this 3545 # area tend to need lot of testing in different scenarios, and in lack of 3546 # proper unit testing, cleaning this up has not been deemed worth the effort 3547 # at the moment. 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3558 3559 3560 3561 3562 # 3563 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3564 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3565 # 3566 # This code is free software; you can redistribute it and/or modify it 3567 # under the terms of the GNU General Public License version 2 only, as 3568 # published by the Free Software Foundation. Oracle designates this 3569 # particular file as subject to the "Classpath" exception as provided 3570 # by Oracle in the LICENSE file that accompanied this code. 3571 # 3572 # This code is distributed in the hope that it will be useful, but WITHOUT 3573 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3574 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3575 # version 2 for more details (a copy is included in the LICENSE file that 3576 # accompanied this code). 3577 # 3578 # You should have received a copy of the GNU General Public License version 3579 # 2 along with this work; if not, write to the Free Software Foundation, 3580 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3581 # 3582 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3583 # or visit www.oracle.com if you need additional information or have any 3584 # questions. 3585 # 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 # ... then the rest 3598 # 3599 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3600 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3601 # 3602 # This code is free software; you can redistribute it and/or modify it 3603 # under the terms of the GNU General Public License version 2 only, as 3604 # published by the Free Software Foundation. Oracle designates this 3605 # particular file as subject to the "Classpath" exception as provided 3606 # by Oracle in the LICENSE file that accompanied this code. 3607 # 3608 # This code is distributed in the hope that it will be useful, but WITHOUT 3609 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3610 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3611 # version 2 for more details (a copy is included in the LICENSE file that 3612 # accompanied this code). 3613 # 3614 # You should have received a copy of the GNU General Public License version 3615 # 2 along with this work; if not, write to the Free Software Foundation, 3616 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3617 # 3618 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3619 # or visit www.oracle.com if you need additional information or have any 3620 # questions. 3621 # 3622 3623 # Execute the check given as argument, and verify the result 3624 # If the Boot JDK was previously found, do nothing 3625 # $1 A command line (typically autoconf macro) to execute 3626 3627 3628 # Test: Is bootjdk explicitely set by command line arguments? 3629 3630 3631 # Test: Is bootjdk available from builddeps? 3632 3633 3634 # Test: Is $JAVA_HOME set? 3635 3636 3637 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3638 3639 3640 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3641 3642 3643 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3644 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3645 # $1 = Path to directory containing jdk installations. 3646 # $2 = String to append to the found JDK directory to get the proper JDK home 3647 3648 3649 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3650 # environmental variable as base for where to look. 3651 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3652 3653 3654 # Test: Is there a JDK installed in default, well-known locations? 3655 3656 3657 # Check that a command-line tool in the Boot JDK is correct 3658 # $1 = name of variable to assign 3659 # $2 = name of binary 3660 3661 3662 ############################################################################### 3663 # 3664 # We need a Boot JDK to bootstrap the build. 3665 # 3666 3667 3668 3669 3670 3671 # 3672 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. 3673 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3674 # 3675 # This code is free software; you can redistribute it and/or modify it 3676 # under the terms of the GNU General Public License version 2 only, as 3677 # published by the Free Software Foundation. Oracle designates this 3678 # particular file as subject to the "Classpath" exception as provided 3679 # by Oracle in the LICENSE file that accompanied this code. 3680 # 3681 # This code is distributed in the hope that it will be useful, but WITHOUT 3682 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3683 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3684 # version 2 for more details (a copy is included in the LICENSE file that 3685 # accompanied this code). 3686 # 3687 # You should have received a copy of the GNU General Public License version 3688 # 2 along with this work; if not, write to the Free Software Foundation, 3689 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3690 # 3691 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3692 # or visit www.oracle.com if you need additional information or have any 3693 # questions. 3694 # 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 # 3716 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3717 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3718 # 3719 # This code is free software; you can redistribute it and/or modify it 3720 # under the terms of the GNU General Public License version 2 only, as 3721 # published by the Free Software Foundation. Oracle designates this 3722 # particular file as subject to the "Classpath" exception as provided 3723 # by Oracle in the LICENSE file that accompanied this code. 3724 # 3725 # This code is distributed in the hope that it will be useful, but WITHOUT 3726 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3727 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3728 # version 2 for more details (a copy is included in the LICENSE file that 3729 # accompanied this code). 3730 # 3731 # You should have received a copy of the GNU General Public License version 3732 # 2 along with this work; if not, write to the Free Software Foundation, 3733 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3734 # 3735 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3736 # or visit www.oracle.com if you need additional information or have any 3737 # questions. 3738 # 3739 3740 3741 3742 3743 3744 # Documentation on common flags used for solstudio in HIGHEST. 3745 # 3746 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3747 # done with care, there are some assumptions below that need to 3748 # be understood about the use of pointers, and IEEE behavior. 3749 # 3750 # -fns: Use non-standard floating point mode (not IEEE 754) 3751 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3752 # -fsingle: Use single precision floating point with 'float' 3753 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3754 # (Source with excessing pointer casting and data access with mixed 3755 # pointer types are not recommended) 3756 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3757 # (If you expect perfect errno behavior, do not use this) 3758 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3759 # -xrestrict: Pointer parameters to functions do not overlap 3760 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3761 # If you pass in multiple pointers to the same data, do not use this) 3762 # -xlibmil: Inline some library routines 3763 # (If you expect perfect errno behavior, do not use this) 3764 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3765 # (If you expect perfect errno behavior, do not use this) 3766 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3767 3768 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3769 # Bug? 3770 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3771 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3772 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3773 #fi 3774 3775 3776 3777 3778 3779 3780 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3781 # [RUN-IF-FALSE]) 3782 # ------------------------------------------------------------ 3783 # Check that the C compiler supports an argument 3784 3785 3786 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3787 # [RUN-IF-FALSE]) 3788 # ------------------------------------------------------------ 3789 # Check that the C++ compiler supports an argument 3790 3791 3792 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3793 # [RUN-IF-FALSE]) 3794 # ------------------------------------------------------------ 3795 # Check that the C and C++ compilers support an argument 3796 3797 3798 3799 3800 3801 3802 3803 # 3804 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3805 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3806 # 3807 # This code is free software; you can redistribute it and/or modify it 3808 # under the terms of the GNU General Public License version 2 only, as 3809 # published by the Free Software Foundation. Oracle designates this 3810 # particular file as subject to the "Classpath" exception as provided 3811 # by Oracle in the LICENSE file that accompanied this code. 3812 # 3813 # This code is distributed in the hope that it will be useful, but WITHOUT 3814 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3815 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3816 # version 2 for more details (a copy is included in the LICENSE file that 3817 # accompanied this code). 3818 # 3819 # You should have received a copy of the GNU General Public License version 3820 # 2 along with this work; if not, write to the Free Software Foundation, 3821 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3822 # 3823 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3824 # or visit www.oracle.com if you need additional information or have any 3825 # questions. 3826 # 3827 3828 3829 3830 3831 3832 cygwin_help() { 3833 case $1 in 3834 unzip) 3835 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3836 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3837 ;; 3838 zip) 3839 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3840 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3841 ;; 3842 make) 3843 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3844 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3845 ;; 3846 freetype) 3847 HELP_MSG=" 3848 The freetype library can now be build during the configure process. 3849 Download the freetype sources and unpack them into an arbitrary directory: 3850 3851 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3852 tar -xzf freetype-2.5.3.tar.gz 3853 3854 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3855 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3856 builds or into '<freetype_src>/lib32' for 32-bit builds. 3857 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3858 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3859 ;; 3860 esac 3861 } 3862 3863 msys_help() { 3864 PKGHANDLER_COMMAND="" 3865 } 3866 3867 apt_help() { 3868 case $1 in 3869 devkit) 3870 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3871 openjdk) 3872 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3873 alsa) 3874 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3875 cups) 3876 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3877 fontconfig) 3878 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 3879 freetype) 3880 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3881 pulse) 3882 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3883 x11) 3884 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3885 ccache) 3886 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3887 esac 3888 } 3889 3890 yum_help() { 3891 case $1 in 3892 devkit) 3893 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3894 openjdk) 3895 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3896 alsa) 3897 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3898 cups) 3899 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3900 fontconfig) 3901 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 3902 freetype) 3903 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3904 pulse) 3905 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3906 x11) 3907 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3908 ccache) 3909 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3910 esac 3911 } 3912 3913 port_help() { 3914 PKGHANDLER_COMMAND="" 3915 } 3916 3917 pkgutil_help() { 3918 PKGHANDLER_COMMAND="" 3919 } 3920 3921 pkgadd_help() { 3922 PKGHANDLER_COMMAND="" 3923 } 3924 3925 # This function will check if we're called from the "configure" wrapper while 3926 # printing --help. If so, we will print out additional information that can 3927 # only be extracted within the autoconf script, and then exit. This must be 3928 # called at the very beginning in configure.ac. 3929 3930 3931 3932 3933 3934 3935 # 3936 # Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. 3937 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3938 # 3939 # This code is free software; you can redistribute it and/or modify it 3940 # under the terms of the GNU General Public License version 2 only, as 3941 # published by the Free Software Foundation. Oracle designates this 3942 # particular file as subject to the "Classpath" exception as provided 3943 # by Oracle in the LICENSE file that accompanied this code. 3944 # 3945 # This code is distributed in the hope that it will be useful, but WITHOUT 3946 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3947 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3948 # version 2 for more details (a copy is included in the LICENSE file that 3949 # accompanied this code). 3950 # 3951 # You should have received a copy of the GNU General Public License version 3952 # 2 along with this work; if not, write to the Free Software Foundation, 3953 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3954 # 3955 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3956 # or visit www.oracle.com if you need additional information or have any 3957 # questions. 3958 # 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 ############################################################################### 3970 # 3971 # Should we build only OpenJDK even if closed sources are present? 3972 # 3973 3974 3975 3976 3977 ############################################################################### 3978 # 3979 # Setup version numbers 3980 # 3981 3982 3983 3984 3985 3986 3987 # Support for customization of the build process. Some build files 3988 # will include counterparts from this location, if they exist. This allows 3989 # for a degree of customization of the build targets and the rules/recipes 3990 # to create them 3991 3992 # Check whether --with-custom-make-dir was given. 3993 if test "${with_custom_make_dir+set}" = set; then : 3994 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3995 fi 3996 3997 3998 3999 # 4000 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4001 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4002 # 4003 # This code is free software; you can redistribute it and/or modify it 4004 # under the terms of the GNU General Public License version 2 only, as 4005 # published by the Free Software Foundation. Oracle designates this 4006 # particular file as subject to the "Classpath" exception as provided 4007 # by Oracle in the LICENSE file that accompanied this code. 4008 # 4009 # This code is distributed in the hope that it will be useful, but WITHOUT 4010 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4011 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4012 # version 2 for more details (a copy is included in the LICENSE file that 4013 # accompanied this code). 4014 # 4015 # You should have received a copy of the GNU General Public License version 4016 # 2 along with this work; if not, write to the Free Software Foundation, 4017 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4018 # 4019 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4020 # or visit www.oracle.com if you need additional information or have any 4021 # questions. 4022 # 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 ################################################################################ 4039 # Setup fontconfig 4040 ################################################################################ 4041 4042 4043 4044 4045 4046 4047 4048 4049 # 4050 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4051 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4052 # 4053 # This code is free software; you can redistribute it and/or modify it 4054 # under the terms of the GNU General Public License version 2 only, as 4055 # published by the Free Software Foundation. Oracle designates this 4056 # particular file as subject to the "Classpath" exception as provided 4057 # by Oracle in the LICENSE file that accompanied this code. 4058 # 4059 # This code is distributed in the hope that it will be useful, but WITHOUT 4060 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4061 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4062 # version 2 for more details (a copy is included in the LICENSE file that 4063 # accompanied this code). 4064 # 4065 # You should have received a copy of the GNU General Public License version 4066 # 2 along with this work; if not, write to the Free Software Foundation, 4067 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4068 # 4069 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4070 # or visit www.oracle.com if you need additional information or have any 4071 # questions. 4072 # 4073 4074 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4075 # Converts autoconf style CPU name to OpenJDK style, into 4076 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4077 4078 4079 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4080 # Converts autoconf style OS name to OpenJDK style, into 4081 # VAR_OS and VAR_OS_API. 4082 4083 4084 # Expects $host_os $host_cpu $build_os and $build_cpu 4085 # and $with_target_bits to have been setup! 4086 # 4087 # Translate the standard triplet(quadruplet) definition 4088 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4089 # OPENJDK_BUILD_OS, etc. 4090 4091 4092 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4093 # accordingly. Must be done after setting up build and target system, but before 4094 # doing anything else with these values. 4095 4096 4097 # Setup the legacy variables, for controlling the old makefiles. 4098 # 4099 4100 4101 4102 4103 #%%% Build and target systems %%% 4104 4105 4106 4107 4108 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4109 # Add -mX to various FLAGS variables. 4110 4111 4112 4113 4114 4115 4116 # 4117 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4118 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4119 # 4120 # This code is free software; you can redistribute it and/or modify it 4121 # under the terms of the GNU General Public License version 2 only, as 4122 # published by the Free Software Foundation. Oracle designates this 4123 # particular file as subject to the "Classpath" exception as provided 4124 # by Oracle in the LICENSE file that accompanied this code. 4125 # 4126 # This code is distributed in the hope that it will be useful, but WITHOUT 4127 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4128 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4129 # version 2 for more details (a copy is included in the LICENSE file that 4130 # accompanied this code). 4131 # 4132 # You should have received a copy of the GNU General Public License version 4133 # 2 along with this work; if not, write to the Free Software Foundation, 4134 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4135 # 4136 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4137 # or visit www.oracle.com if you need additional information or have any 4138 # questions. 4139 # 4140 4141 4142 4143 4144 4145 4146 4147 4148 # 4149 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4150 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4151 # 4152 # This code is free software; you can redistribute it and/or modify it 4153 # under the terms of the GNU General Public License version 2 only, as 4154 # published by the Free Software Foundation. Oracle designates this 4155 # particular file as subject to the "Classpath" exception as provided 4156 # by Oracle in the LICENSE file that accompanied this code. 4157 # 4158 # This code is distributed in the hope that it will be useful, but WITHOUT 4159 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4160 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4161 # version 2 for more details (a copy is included in the LICENSE file that 4162 # accompanied this code). 4163 # 4164 # You should have received a copy of the GNU General Public License version 4165 # 2 along with this work; if not, write to the Free Software Foundation, 4166 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4167 # 4168 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4169 # or visit www.oracle.com if you need additional information or have any 4170 # questions. 4171 # 4172 4173 ######################################################################## 4174 # This file is responsible for detecting, verifying and setting up the 4175 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4176 # proper paths to the binaries, but it will not setup any flags. 4177 # 4178 # The binaries used is determined by the toolchain type, which is the family of 4179 # compilers and related tools that are used. 4180 ######################################################################## 4181 4182 4183 # All valid toolchains, regardless of platform (used by help.m4) 4184 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4185 4186 # These toolchains are valid on different platforms 4187 VALID_TOOLCHAINS_linux="gcc clang" 4188 VALID_TOOLCHAINS_solaris="solstudio" 4189 VALID_TOOLCHAINS_macosx="gcc clang" 4190 VALID_TOOLCHAINS_aix="xlc" 4191 VALID_TOOLCHAINS_windows="microsoft" 4192 4193 # Toolchain descriptions 4194 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4195 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4196 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4197 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4198 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4199 4200 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4201 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4202 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4203 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4204 4205 4206 # Check if the configured compiler (C and C++) is of a specific version or 4207 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4208 # 4209 # Arguments: 4210 # $1: The version string to check against the found version 4211 # $2: block to run if the compiler is at least this version (>=) 4212 # $3: block to run if the compiler is older than this version (<) 4213 4214 4215 4216 # Setup a number of variables describing how native output files are 4217 # named on this platform/toolchain. 4218 4219 4220 # Determine which toolchain type to use, and make sure it is valid for this 4221 # platform. Setup various information about the selected toolchain. 4222 4223 4224 # Before we start detecting the toolchain executables, we might need some 4225 # special setup, e.g. additional paths etc. 4226 4227 4228 # Restore path, etc 4229 4230 4231 # Check if a compiler is of the toolchain type we expect, and save the version 4232 # information from it. If the compiler does not match the expected type, 4233 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4234 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4235 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4236 # 4237 # $1 = compiler to test (CC or CXX) 4238 # $2 = human readable name of compiler (C or C++) 4239 4240 4241 4242 # Try to locate the given C or C++ compiler in the path, or otherwise. 4243 # 4244 # $1 = compiler to test (CC or CXX) 4245 # $2 = human readable name of compiler (C or C++) 4246 # $3 = list of compiler names to search for 4247 4248 4249 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4250 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4251 # archiver (AR). Verify that the compilers are correct according to the 4252 # toolchain type. 4253 4254 4255 # Setup additional tools that is considered a part of the toolchain, but not the 4256 # core part. Many of these are highly platform-specific and do not exist, 4257 # and/or are not needed on all platforms. 4258 4259 4260 # Setup the build tools (i.e, the compiler and linker used to build programs 4261 # that should be run on the build platform, not the target platform, as a build 4262 # helper). Since the non-cross-compile case uses the normal, target compilers 4263 # for this, we can only do this after these have been setup. 4264 4265 4266 # Setup legacy variables that are still needed as alternative ways to refer to 4267 # parts of the toolchain. 4268 4269 4270 # Do some additional checks on the detected tools. 4271 4272 4273 # Setup the JTReg Regression Test Harness. 4274 4275 4276 4277 # 4278 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4279 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4280 # 4281 # This code is free software; you can redistribute it and/or modify it 4282 # under the terms of the GNU General Public License version 2 only, as 4283 # published by the Free Software Foundation. Oracle designates this 4284 # particular file as subject to the "Classpath" exception as provided 4285 # by Oracle in the LICENSE file that accompanied this code. 4286 # 4287 # This code is distributed in the hope that it will be useful, but WITHOUT 4288 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4289 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4290 # version 2 for more details (a copy is included in the LICENSE file that 4291 # accompanied this code). 4292 # 4293 # You should have received a copy of the GNU General Public License version 4294 # 2 along with this work; if not, write to the Free Software Foundation, 4295 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4296 # 4297 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4298 # or visit www.oracle.com if you need additional information or have any 4299 # questions. 4300 # 4301 4302 ################################################################################ 4303 # The order of these defines the priority by which we try to find them. 4304 VALID_VS_VERSIONS="2010 2012 2013 2015 2017" 4305 4306 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4307 VS_VERSION_INTERNAL_2010=100 4308 VS_MSVCR_2010=msvcr100.dll 4309 # We don't use msvcp on Visual Studio 2010 4310 #VS_MSVCP_2010=msvcp100.dll 4311 VS_ENVVAR_2010="VS100COMNTOOLS" 4312 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4313 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4314 VS_VS_PLATFORM_NAME_2010="v100" 4315 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4316 4317 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4318 VS_VERSION_INTERNAL_2012=110 4319 VS_MSVCR_2012=msvcr110.dll 4320 VS_MSVCP_2012=msvcp110.dll 4321 VS_ENVVAR_2012="VS110COMNTOOLS" 4322 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4323 VS_SDK_INSTALLDIR_2012= 4324 VS_VS_PLATFORM_NAME_2012="v110" 4325 VS_SDK_PLATFORM_NAME_2012= 4326 4327 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4328 VS_VERSION_INTERNAL_2013=120 4329 VS_MSVCR_2013=msvcr120.dll 4330 VS_MSVCP_2013=msvcp120.dll 4331 VS_ENVVAR_2013="VS120COMNTOOLS" 4332 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4333 VS_SDK_INSTALLDIR_2013= 4334 VS_VS_PLATFORM_NAME_2013="v120" 4335 VS_SDK_PLATFORM_NAME_2013= 4336 4337 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING" 4338 VS_VERSION_INTERNAL_2015=140 4339 VS_MSVCR_2015=vcruntime140.dll 4340 VS_MSVCP_2015=msvcp140.dll 4341 VS_ENVVAR_2015="VS140COMNTOOLS" 4342 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0" 4343 VS_SDK_INSTALLDIR_2015= 4344 VS_VS_PLATFORM_NAME_2015="v140" 4345 VS_SDK_PLATFORM_NAME_2015= 4346 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by 4347 # explicitly specifying Windows Kit 8.1 to be used. 4348 VS_ENV_ARGS_2015="8.1" 4349 4350 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING" 4351 VS_VERSION_INTERNAL_2017=141 4352 VS_MSVCR_2017=vcruntime140.dll 4353 VS_MSVCP_2017=msvcp140.dll 4354 VS_ENVVAR_2017="VS150COMNTOOLS" 4355 VS_USE_UCRT_2017="true" 4356 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" 4357 VS_EDITIONS_2017="Community Professional Enterprise" 4358 VS_SDK_INSTALLDIR_2017= 4359 VS_VS_PLATFORM_NAME_2017="v141" 4360 VS_SDK_PLATFORM_NAME_2017= 4361 4362 ################################################################################ 4363 4364 4365 4366 ################################################################################ 4367 4368 4369 4370 ################################################################################ 4371 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4372 # build environment and assigns it to VS_ENV_CMD 4373 4374 4375 ################################################################################ 4376 4377 4378 4379 ################################################################################ 4380 # Check if the VS env variables were setup prior to running configure. 4381 # If not, then find vcvarsall.bat and run it automatically, and integrate 4382 # the set env variables into the spec file. 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 # This line needs to be here, verbatim, after all includes and the dummy hook 4398 # definitions. It is replaced with custom functionality when building 4399 # custom sources. 4400 #CUSTOM_AUTOCONF_INCLUDE 4401 4402 # Do not change or remove the following line, it is needed for consistency checks: 4403 DATE_WHEN_GENERATED=1625670527 4404 4405 ############################################################################### 4406 # 4407 # Initialization / Boot-strapping 4408 # 4409 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4410 # thus it jumps back and forth, each time gaining something needed later on. 4411 # 4412 ############################################################################### 4413 4414 # If we are requested to print additional help, do that and then exit. 4415 # This must be the very first call. 4416 4417 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4418 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4419 $PRINTF "Which are valid to use depends on the build platform.\n" 4420 for toolchain in $VALID_TOOLCHAINS_all; do 4421 # Use indirect variable referencing 4422 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4423 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4424 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4425 done 4426 4427 # And now exit directly 4428 exit 0 4429 fi 4430 4431 4432 # Basic initialization that must happen first of all in the normal process. 4433 4434 # Save the original command line. This is passed to us by the wrapper configure script. 4435 4436 DATE_WHEN_CONFIGURED=`LANG=C date` 4437 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4439 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4441 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4442 4443 4444 # Start with tools that do not need have cross compilation support 4445 # and can be expected to be found in the default PATH. These tools are 4446 # used by configure. Nor are these tools expected to be found in the 4447 # devkit from the builddeps server either, since they are 4448 # needed to download the devkit. 4449 4450 # First are all the simple required tools. 4451 4452 4453 4454 # Publish this variable in the help. 4455 4456 4457 if test "x$BASENAME" = x; then 4458 # The variable is not set by user, try to locate tool using the code snippet 4459 for ac_prog in basename 4460 do 4461 # Extract the first word of "$ac_prog", so it can be a program name with args. 4462 set dummy $ac_prog; ac_word=$2 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4464 $as_echo_n "checking for $ac_word... " >&6; } 4465 if ${ac_cv_path_BASENAME+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467 else 4468 case $BASENAME in 4469 [\\/]* | ?:[\\/]*) 4470 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4471 ;; 4472 *) 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474 for as_dir in $PATH 4475 do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_exec_ext in '' $ac_executable_extensions; do 4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4480 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4482 break 2 4483 fi 4484 done 4485 done 4486 IFS=$as_save_IFS 4487 4488 ;; 4489 esac 4490 fi 4491 BASENAME=$ac_cv_path_BASENAME 4492 if test -n "$BASENAME"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4494 $as_echo "$BASENAME" >&6; } 4495 else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497 $as_echo "no" >&6; } 4498 fi 4499 4500 4501 test -n "$BASENAME" && break 4502 done 4503 4504 else 4505 # The variable is set, but is it from the command line or the environment? 4506 4507 # Try to remove the string !BASENAME! from our list. 4508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4510 # If it failed, the variable was not from the command line. Ignore it, 4511 # but warn the user (except for BASH, which is always set by the calling BASH). 4512 if test "xBASENAME" != xBASH; then 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4514 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4515 fi 4516 # Try to locate tool using the code snippet 4517 for ac_prog in basename 4518 do 4519 # Extract the first word of "$ac_prog", so it can be a program name with args. 4520 set dummy $ac_prog; ac_word=$2 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4522 $as_echo_n "checking for $ac_word... " >&6; } 4523 if ${ac_cv_path_BASENAME+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525 else 4526 case $BASENAME in 4527 [\\/]* | ?:[\\/]*) 4528 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4529 ;; 4530 *) 4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532 for as_dir in $PATH 4533 do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4538 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542 done 4543 done 4544 IFS=$as_save_IFS 4545 4546 ;; 4547 esac 4548 fi 4549 BASENAME=$ac_cv_path_BASENAME 4550 if test -n "$BASENAME"; then 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4552 $as_echo "$BASENAME" >&6; } 4553 else 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4555 $as_echo "no" >&6; } 4556 fi 4557 4558 4559 test -n "$BASENAME" && break 4560 done 4561 4562 else 4563 # If it succeeded, then it was overridden by the user. We will use it 4564 # for the tool. 4565 4566 # First remove it from the list of overridden variables, so we can test 4567 # for unknown variables in the end. 4568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4569 4570 # Check if the provided tool contains a complete path. 4571 tool_specified="$BASENAME" 4572 tool_basename="${tool_specified##*/}" 4573 if test "x$tool_basename" = "x$tool_specified"; then 4574 # A command without a complete path is provided, search $PATH. 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4576 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4577 # Extract the first word of "$tool_basename", so it can be a program name with args. 4578 set dummy $tool_basename; ac_word=$2 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4580 $as_echo_n "checking for $ac_word... " >&6; } 4581 if ${ac_cv_path_BASENAME+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583 else 4584 case $BASENAME in 4585 [\\/]* | ?:[\\/]*) 4586 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4587 ;; 4588 *) 4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4590 for as_dir in $PATH 4591 do 4592 IFS=$as_save_IFS 4593 test -z "$as_dir" && as_dir=. 4594 for ac_exec_ext in '' $ac_executable_extensions; do 4595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4596 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4598 break 2 4599 fi 4600 done 4601 done 4602 IFS=$as_save_IFS 4603 4604 ;; 4605 esac 4606 fi 4607 BASENAME=$ac_cv_path_BASENAME 4608 if test -n "$BASENAME"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4610 $as_echo "$BASENAME" >&6; } 4611 else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613 $as_echo "no" >&6; } 4614 fi 4615 4616 4617 if test "x$BASENAME" = x; then 4618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4619 fi 4620 else 4621 # Otherwise we believe it is a complete path. Use it as it is. 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4623 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4625 $as_echo_n "checking for BASENAME... " >&6; } 4626 if test ! -x "$tool_specified"; then 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4628 $as_echo "not found" >&6; } 4629 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4630 fi 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4632 $as_echo "$tool_specified" >&6; } 4633 fi 4634 fi 4635 fi 4636 4637 4638 4639 if test "x$BASENAME" = x; then 4640 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4641 fi 4642 4643 4644 4645 4646 4647 # Publish this variable in the help. 4648 4649 4650 if test "x$BASH" = x; then 4651 # The variable is not set by user, try to locate tool using the code snippet 4652 for ac_prog in bash 4653 do 4654 # Extract the first word of "$ac_prog", so it can be a program name with args. 4655 set dummy $ac_prog; ac_word=$2 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657 $as_echo_n "checking for $ac_word... " >&6; } 4658 if ${ac_cv_path_BASH+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660 else 4661 case $BASH in 4662 [\\/]* | ?:[\\/]*) 4663 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4664 ;; 4665 *) 4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667 for as_dir in $PATH 4668 do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4673 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677 done 4678 done 4679 IFS=$as_save_IFS 4680 4681 ;; 4682 esac 4683 fi 4684 BASH=$ac_cv_path_BASH 4685 if test -n "$BASH"; then 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4687 $as_echo "$BASH" >&6; } 4688 else 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4690 $as_echo "no" >&6; } 4691 fi 4692 4693 4694 test -n "$BASH" && break 4695 done 4696 4697 else 4698 # The variable is set, but is it from the command line or the environment? 4699 4700 # Try to remove the string !BASH! from our list. 4701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4703 # If it failed, the variable was not from the command line. Ignore it, 4704 # but warn the user (except for BASH, which is always set by the calling BASH). 4705 if test "xBASH" != xBASH; then 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4707 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4708 fi 4709 # Try to locate tool using the code snippet 4710 for ac_prog in bash 4711 do 4712 # Extract the first word of "$ac_prog", so it can be a program name with args. 4713 set dummy $ac_prog; ac_word=$2 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4715 $as_echo_n "checking for $ac_word... " >&6; } 4716 if ${ac_cv_path_BASH+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718 else 4719 case $BASH in 4720 [\\/]* | ?:[\\/]*) 4721 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4722 ;; 4723 *) 4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4725 for as_dir in $PATH 4726 do 4727 IFS=$as_save_IFS 4728 test -z "$as_dir" && as_dir=. 4729 for ac_exec_ext in '' $ac_executable_extensions; do 4730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4731 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4733 break 2 4734 fi 4735 done 4736 done 4737 IFS=$as_save_IFS 4738 4739 ;; 4740 esac 4741 fi 4742 BASH=$ac_cv_path_BASH 4743 if test -n "$BASH"; then 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4745 $as_echo "$BASH" >&6; } 4746 else 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4748 $as_echo "no" >&6; } 4749 fi 4750 4751 4752 test -n "$BASH" && break 4753 done 4754 4755 else 4756 # If it succeeded, then it was overridden by the user. We will use it 4757 # for the tool. 4758 4759 # First remove it from the list of overridden variables, so we can test 4760 # for unknown variables in the end. 4761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4762 4763 # Check if the provided tool contains a complete path. 4764 tool_specified="$BASH" 4765 tool_basename="${tool_specified##*/}" 4766 if test "x$tool_basename" = "x$tool_specified"; then 4767 # A command without a complete path is provided, search $PATH. 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4769 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4770 # Extract the first word of "$tool_basename", so it can be a program name with args. 4771 set dummy $tool_basename; ac_word=$2 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773 $as_echo_n "checking for $ac_word... " >&6; } 4774 if ${ac_cv_path_BASH+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776 else 4777 case $BASH in 4778 [\\/]* | ?:[\\/]*) 4779 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4780 ;; 4781 *) 4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783 for as_dir in $PATH 4784 do 4785 IFS=$as_save_IFS 4786 test -z "$as_dir" && as_dir=. 4787 for ac_exec_ext in '' $ac_executable_extensions; do 4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4789 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4791 break 2 4792 fi 4793 done 4794 done 4795 IFS=$as_save_IFS 4796 4797 ;; 4798 esac 4799 fi 4800 BASH=$ac_cv_path_BASH 4801 if test -n "$BASH"; then 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4803 $as_echo "$BASH" >&6; } 4804 else 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806 $as_echo "no" >&6; } 4807 fi 4808 4809 4810 if test "x$BASH" = x; then 4811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4812 fi 4813 else 4814 # Otherwise we believe it is a complete path. Use it as it is. 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4816 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4818 $as_echo_n "checking for BASH... " >&6; } 4819 if test ! -x "$tool_specified"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4821 $as_echo "not found" >&6; } 4822 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4823 fi 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4825 $as_echo "$tool_specified" >&6; } 4826 fi 4827 fi 4828 fi 4829 4830 4831 4832 if test "x$BASH" = x; then 4833 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4834 fi 4835 4836 4837 4838 4839 4840 # Publish this variable in the help. 4841 4842 4843 if test "x$CAT" = x; then 4844 # The variable is not set by user, try to locate tool using the code snippet 4845 for ac_prog in cat 4846 do 4847 # Extract the first word of "$ac_prog", so it can be a program name with args. 4848 set dummy $ac_prog; ac_word=$2 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4850 $as_echo_n "checking for $ac_word... " >&6; } 4851 if ${ac_cv_path_CAT+:} false; then : 4852 $as_echo_n "(cached) " >&6 4853 else 4854 case $CAT in 4855 [\\/]* | ?:[\\/]*) 4856 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4857 ;; 4858 *) 4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860 for as_dir in $PATH 4861 do 4862 IFS=$as_save_IFS 4863 test -z "$as_dir" && as_dir=. 4864 for ac_exec_ext in '' $ac_executable_extensions; do 4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4866 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4868 break 2 4869 fi 4870 done 4871 done 4872 IFS=$as_save_IFS 4873 4874 ;; 4875 esac 4876 fi 4877 CAT=$ac_cv_path_CAT 4878 if test -n "$CAT"; then 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4880 $as_echo "$CAT" >&6; } 4881 else 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4883 $as_echo "no" >&6; } 4884 fi 4885 4886 4887 test -n "$CAT" && break 4888 done 4889 4890 else 4891 # The variable is set, but is it from the command line or the environment? 4892 4893 # Try to remove the string !CAT! from our list. 4894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4896 # If it failed, the variable was not from the command line. Ignore it, 4897 # but warn the user (except for BASH, which is always set by the calling BASH). 4898 if test "xCAT" != xBASH; then 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4900 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4901 fi 4902 # Try to locate tool using the code snippet 4903 for ac_prog in cat 4904 do 4905 # Extract the first word of "$ac_prog", so it can be a program name with args. 4906 set dummy $ac_prog; ac_word=$2 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4908 $as_echo_n "checking for $ac_word... " >&6; } 4909 if ${ac_cv_path_CAT+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911 else 4912 case $CAT in 4913 [\\/]* | ?:[\\/]*) 4914 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4915 ;; 4916 *) 4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4918 for as_dir in $PATH 4919 do 4920 IFS=$as_save_IFS 4921 test -z "$as_dir" && as_dir=. 4922 for ac_exec_ext in '' $ac_executable_extensions; do 4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4924 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4926 break 2 4927 fi 4928 done 4929 done 4930 IFS=$as_save_IFS 4931 4932 ;; 4933 esac 4934 fi 4935 CAT=$ac_cv_path_CAT 4936 if test -n "$CAT"; then 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4938 $as_echo "$CAT" >&6; } 4939 else 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4941 $as_echo "no" >&6; } 4942 fi 4943 4944 4945 test -n "$CAT" && break 4946 done 4947 4948 else 4949 # If it succeeded, then it was overridden by the user. We will use it 4950 # for the tool. 4951 4952 # First remove it from the list of overridden variables, so we can test 4953 # for unknown variables in the end. 4954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4955 4956 # Check if the provided tool contains a complete path. 4957 tool_specified="$CAT" 4958 tool_basename="${tool_specified##*/}" 4959 if test "x$tool_basename" = "x$tool_specified"; then 4960 # A command without a complete path is provided, search $PATH. 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4962 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4963 # Extract the first word of "$tool_basename", so it can be a program name with args. 4964 set dummy $tool_basename; ac_word=$2 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4966 $as_echo_n "checking for $ac_word... " >&6; } 4967 if ${ac_cv_path_CAT+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969 else 4970 case $CAT in 4971 [\\/]* | ?:[\\/]*) 4972 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4973 ;; 4974 *) 4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4976 for as_dir in $PATH 4977 do 4978 IFS=$as_save_IFS 4979 test -z "$as_dir" && as_dir=. 4980 for ac_exec_ext in '' $ac_executable_extensions; do 4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4982 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4984 break 2 4985 fi 4986 done 4987 done 4988 IFS=$as_save_IFS 4989 4990 ;; 4991 esac 4992 fi 4993 CAT=$ac_cv_path_CAT 4994 if test -n "$CAT"; then 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4996 $as_echo "$CAT" >&6; } 4997 else 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4999 $as_echo "no" >&6; } 5000 fi 5001 5002 5003 if test "x$CAT" = x; then 5004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5005 fi 5006 else 5007 # Otherwise we believe it is a complete path. Use it as it is. 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5009 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5011 $as_echo_n "checking for CAT... " >&6; } 5012 if test ! -x "$tool_specified"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5014 $as_echo "not found" >&6; } 5015 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5016 fi 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5018 $as_echo "$tool_specified" >&6; } 5019 fi 5020 fi 5021 fi 5022 5023 5024 5025 if test "x$CAT" = x; then 5026 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5027 fi 5028 5029 5030 5031 5032 5033 # Publish this variable in the help. 5034 5035 5036 if test "x$CHMOD" = x; then 5037 # The variable is not set by user, try to locate tool using the code snippet 5038 for ac_prog in chmod 5039 do 5040 # Extract the first word of "$ac_prog", so it can be a program name with args. 5041 set dummy $ac_prog; ac_word=$2 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043 $as_echo_n "checking for $ac_word... " >&6; } 5044 if ${ac_cv_path_CHMOD+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046 else 5047 case $CHMOD in 5048 [\\/]* | ?:[\\/]*) 5049 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5050 ;; 5051 *) 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5053 for as_dir in $PATH 5054 do 5055 IFS=$as_save_IFS 5056 test -z "$as_dir" && as_dir=. 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5059 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5061 break 2 5062 fi 5063 done 5064 done 5065 IFS=$as_save_IFS 5066 5067 ;; 5068 esac 5069 fi 5070 CHMOD=$ac_cv_path_CHMOD 5071 if test -n "$CHMOD"; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5073 $as_echo "$CHMOD" >&6; } 5074 else 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5076 $as_echo "no" >&6; } 5077 fi 5078 5079 5080 test -n "$CHMOD" && break 5081 done 5082 5083 else 5084 # The variable is set, but is it from the command line or the environment? 5085 5086 # Try to remove the string !CHMOD! from our list. 5087 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5088 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5089 # If it failed, the variable was not from the command line. Ignore it, 5090 # but warn the user (except for BASH, which is always set by the calling BASH). 5091 if test "xCHMOD" != xBASH; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5093 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5094 fi 5095 # Try to locate tool using the code snippet 5096 for ac_prog in chmod 5097 do 5098 # Extract the first word of "$ac_prog", so it can be a program name with args. 5099 set dummy $ac_prog; ac_word=$2 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5101 $as_echo_n "checking for $ac_word... " >&6; } 5102 if ${ac_cv_path_CHMOD+:} false; then : 5103 $as_echo_n "(cached) " >&6 5104 else 5105 case $CHMOD in 5106 [\\/]* | ?:[\\/]*) 5107 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5108 ;; 5109 *) 5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5111 for as_dir in $PATH 5112 do 5113 IFS=$as_save_IFS 5114 test -z "$as_dir" && as_dir=. 5115 for ac_exec_ext in '' $ac_executable_extensions; do 5116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5117 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5119 break 2 5120 fi 5121 done 5122 done 5123 IFS=$as_save_IFS 5124 5125 ;; 5126 esac 5127 fi 5128 CHMOD=$ac_cv_path_CHMOD 5129 if test -n "$CHMOD"; then 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5131 $as_echo "$CHMOD" >&6; } 5132 else 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5134 $as_echo "no" >&6; } 5135 fi 5136 5137 5138 test -n "$CHMOD" && break 5139 done 5140 5141 else 5142 # If it succeeded, then it was overridden by the user. We will use it 5143 # for the tool. 5144 5145 # First remove it from the list of overridden variables, so we can test 5146 # for unknown variables in the end. 5147 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5148 5149 # Check if the provided tool contains a complete path. 5150 tool_specified="$CHMOD" 5151 tool_basename="${tool_specified##*/}" 5152 if test "x$tool_basename" = "x$tool_specified"; then 5153 # A command without a complete path is provided, search $PATH. 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5155 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5156 # Extract the first word of "$tool_basename", so it can be a program name with args. 5157 set dummy $tool_basename; ac_word=$2 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5159 $as_echo_n "checking for $ac_word... " >&6; } 5160 if ${ac_cv_path_CHMOD+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162 else 5163 case $CHMOD in 5164 [\\/]* | ?:[\\/]*) 5165 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5166 ;; 5167 *) 5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169 for as_dir in $PATH 5170 do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5175 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179 done 5180 done 5181 IFS=$as_save_IFS 5182 5183 ;; 5184 esac 5185 fi 5186 CHMOD=$ac_cv_path_CHMOD 5187 if test -n "$CHMOD"; then 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5189 $as_echo "$CHMOD" >&6; } 5190 else 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5192 $as_echo "no" >&6; } 5193 fi 5194 5195 5196 if test "x$CHMOD" = x; then 5197 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5198 fi 5199 else 5200 # Otherwise we believe it is a complete path. Use it as it is. 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5202 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5204 $as_echo_n "checking for CHMOD... " >&6; } 5205 if test ! -x "$tool_specified"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5207 $as_echo "not found" >&6; } 5208 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5209 fi 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5211 $as_echo "$tool_specified" >&6; } 5212 fi 5213 fi 5214 fi 5215 5216 5217 5218 if test "x$CHMOD" = x; then 5219 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5220 fi 5221 5222 5223 5224 5225 5226 # Publish this variable in the help. 5227 5228 5229 if test "x$CMP" = x; then 5230 # The variable is not set by user, try to locate tool using the code snippet 5231 for ac_prog in cmp 5232 do 5233 # Extract the first word of "$ac_prog", so it can be a program name with args. 5234 set dummy $ac_prog; ac_word=$2 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5236 $as_echo_n "checking for $ac_word... " >&6; } 5237 if ${ac_cv_path_CMP+:} false; then : 5238 $as_echo_n "(cached) " >&6 5239 else 5240 case $CMP in 5241 [\\/]* | ?:[\\/]*) 5242 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5243 ;; 5244 *) 5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5246 for as_dir in $PATH 5247 do 5248 IFS=$as_save_IFS 5249 test -z "$as_dir" && as_dir=. 5250 for ac_exec_ext in '' $ac_executable_extensions; do 5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5252 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5254 break 2 5255 fi 5256 done 5257 done 5258 IFS=$as_save_IFS 5259 5260 ;; 5261 esac 5262 fi 5263 CMP=$ac_cv_path_CMP 5264 if test -n "$CMP"; then 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5266 $as_echo "$CMP" >&6; } 5267 else 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5269 $as_echo "no" >&6; } 5270 fi 5271 5272 5273 test -n "$CMP" && break 5274 done 5275 5276 else 5277 # The variable is set, but is it from the command line or the environment? 5278 5279 # Try to remove the string !CMP! from our list. 5280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5282 # If it failed, the variable was not from the command line. Ignore it, 5283 # but warn the user (except for BASH, which is always set by the calling BASH). 5284 if test "xCMP" != xBASH; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5286 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5287 fi 5288 # Try to locate tool using the code snippet 5289 for ac_prog in cmp 5290 do 5291 # Extract the first word of "$ac_prog", so it can be a program name with args. 5292 set dummy $ac_prog; ac_word=$2 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5294 $as_echo_n "checking for $ac_word... " >&6; } 5295 if ${ac_cv_path_CMP+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297 else 5298 case $CMP in 5299 [\\/]* | ?:[\\/]*) 5300 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5301 ;; 5302 *) 5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304 for as_dir in $PATH 5305 do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5310 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314 done 5315 done 5316 IFS=$as_save_IFS 5317 5318 ;; 5319 esac 5320 fi 5321 CMP=$ac_cv_path_CMP 5322 if test -n "$CMP"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5324 $as_echo "$CMP" >&6; } 5325 else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5327 $as_echo "no" >&6; } 5328 fi 5329 5330 5331 test -n "$CMP" && break 5332 done 5333 5334 else 5335 # If it succeeded, then it was overridden by the user. We will use it 5336 # for the tool. 5337 5338 # First remove it from the list of overridden variables, so we can test 5339 # for unknown variables in the end. 5340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5341 5342 # Check if the provided tool contains a complete path. 5343 tool_specified="$CMP" 5344 tool_basename="${tool_specified##*/}" 5345 if test "x$tool_basename" = "x$tool_specified"; then 5346 # A command without a complete path is provided, search $PATH. 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5348 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5349 # Extract the first word of "$tool_basename", so it can be a program name with args. 5350 set dummy $tool_basename; ac_word=$2 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352 $as_echo_n "checking for $ac_word... " >&6; } 5353 if ${ac_cv_path_CMP+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355 else 5356 case $CMP in 5357 [\\/]* | ?:[\\/]*) 5358 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5359 ;; 5360 *) 5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5362 for as_dir in $PATH 5363 do 5364 IFS=$as_save_IFS 5365 test -z "$as_dir" && as_dir=. 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5368 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372 done 5373 done 5374 IFS=$as_save_IFS 5375 5376 ;; 5377 esac 5378 fi 5379 CMP=$ac_cv_path_CMP 5380 if test -n "$CMP"; then 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5382 $as_echo "$CMP" >&6; } 5383 else 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385 $as_echo "no" >&6; } 5386 fi 5387 5388 5389 if test "x$CMP" = x; then 5390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5391 fi 5392 else 5393 # Otherwise we believe it is a complete path. Use it as it is. 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5395 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5397 $as_echo_n "checking for CMP... " >&6; } 5398 if test ! -x "$tool_specified"; then 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5400 $as_echo "not found" >&6; } 5401 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5402 fi 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5404 $as_echo "$tool_specified" >&6; } 5405 fi 5406 fi 5407 fi 5408 5409 5410 5411 if test "x$CMP" = x; then 5412 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5413 fi 5414 5415 5416 5417 5418 5419 # Publish this variable in the help. 5420 5421 5422 if test "x$COMM" = x; then 5423 # The variable is not set by user, try to locate tool using the code snippet 5424 for ac_prog in comm 5425 do 5426 # Extract the first word of "$ac_prog", so it can be a program name with args. 5427 set dummy $ac_prog; ac_word=$2 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5429 $as_echo_n "checking for $ac_word... " >&6; } 5430 if ${ac_cv_path_COMM+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432 else 5433 case $COMM in 5434 [\\/]* | ?:[\\/]*) 5435 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5436 ;; 5437 *) 5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5439 for as_dir in $PATH 5440 do 5441 IFS=$as_save_IFS 5442 test -z "$as_dir" && as_dir=. 5443 for ac_exec_ext in '' $ac_executable_extensions; do 5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5445 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5447 break 2 5448 fi 5449 done 5450 done 5451 IFS=$as_save_IFS 5452 5453 ;; 5454 esac 5455 fi 5456 COMM=$ac_cv_path_COMM 5457 if test -n "$COMM"; then 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5459 $as_echo "$COMM" >&6; } 5460 else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5462 $as_echo "no" >&6; } 5463 fi 5464 5465 5466 test -n "$COMM" && break 5467 done 5468 5469 else 5470 # The variable is set, but is it from the command line or the environment? 5471 5472 # Try to remove the string !COMM! from our list. 5473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5475 # If it failed, the variable was not from the command line. Ignore it, 5476 # but warn the user (except for BASH, which is always set by the calling BASH). 5477 if test "xCOMM" != xBASH; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5479 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5480 fi 5481 # Try to locate tool using the code snippet 5482 for ac_prog in comm 5483 do 5484 # Extract the first word of "$ac_prog", so it can be a program name with args. 5485 set dummy $ac_prog; ac_word=$2 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5487 $as_echo_n "checking for $ac_word... " >&6; } 5488 if ${ac_cv_path_COMM+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490 else 5491 case $COMM in 5492 [\\/]* | ?:[\\/]*) 5493 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5494 ;; 5495 *) 5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5497 for as_dir in $PATH 5498 do 5499 IFS=$as_save_IFS 5500 test -z "$as_dir" && as_dir=. 5501 for ac_exec_ext in '' $ac_executable_extensions; do 5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5503 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5505 break 2 5506 fi 5507 done 5508 done 5509 IFS=$as_save_IFS 5510 5511 ;; 5512 esac 5513 fi 5514 COMM=$ac_cv_path_COMM 5515 if test -n "$COMM"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5517 $as_echo "$COMM" >&6; } 5518 else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520 $as_echo "no" >&6; } 5521 fi 5522 5523 5524 test -n "$COMM" && break 5525 done 5526 5527 else 5528 # If it succeeded, then it was overridden by the user. We will use it 5529 # for the tool. 5530 5531 # First remove it from the list of overridden variables, so we can test 5532 # for unknown variables in the end. 5533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5534 5535 # Check if the provided tool contains a complete path. 5536 tool_specified="$COMM" 5537 tool_basename="${tool_specified##*/}" 5538 if test "x$tool_basename" = "x$tool_specified"; then 5539 # A command without a complete path is provided, search $PATH. 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5541 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5542 # Extract the first word of "$tool_basename", so it can be a program name with args. 5543 set dummy $tool_basename; ac_word=$2 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545 $as_echo_n "checking for $ac_word... " >&6; } 5546 if ${ac_cv_path_COMM+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548 else 5549 case $COMM in 5550 [\\/]* | ?:[\\/]*) 5551 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5552 ;; 5553 *) 5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5555 for as_dir in $PATH 5556 do 5557 IFS=$as_save_IFS 5558 test -z "$as_dir" && as_dir=. 5559 for ac_exec_ext in '' $ac_executable_extensions; do 5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5561 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5563 break 2 5564 fi 5565 done 5566 done 5567 IFS=$as_save_IFS 5568 5569 ;; 5570 esac 5571 fi 5572 COMM=$ac_cv_path_COMM 5573 if test -n "$COMM"; then 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5575 $as_echo "$COMM" >&6; } 5576 else 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5578 $as_echo "no" >&6; } 5579 fi 5580 5581 5582 if test "x$COMM" = x; then 5583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5584 fi 5585 else 5586 # Otherwise we believe it is a complete path. Use it as it is. 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5588 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5590 $as_echo_n "checking for COMM... " >&6; } 5591 if test ! -x "$tool_specified"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5593 $as_echo "not found" >&6; } 5594 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5595 fi 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5597 $as_echo "$tool_specified" >&6; } 5598 fi 5599 fi 5600 fi 5601 5602 5603 5604 if test "x$COMM" = x; then 5605 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5606 fi 5607 5608 5609 5610 5611 5612 # Publish this variable in the help. 5613 5614 5615 if test "x$CP" = x; then 5616 # The variable is not set by user, try to locate tool using the code snippet 5617 for ac_prog in cp 5618 do 5619 # Extract the first word of "$ac_prog", so it can be a program name with args. 5620 set dummy $ac_prog; ac_word=$2 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5622 $as_echo_n "checking for $ac_word... " >&6; } 5623 if ${ac_cv_path_CP+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625 else 5626 case $CP in 5627 [\\/]* | ?:[\\/]*) 5628 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5629 ;; 5630 *) 5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632 for as_dir in $PATH 5633 do 5634 IFS=$as_save_IFS 5635 test -z "$as_dir" && as_dir=. 5636 for ac_exec_ext in '' $ac_executable_extensions; do 5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5638 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5640 break 2 5641 fi 5642 done 5643 done 5644 IFS=$as_save_IFS 5645 5646 ;; 5647 esac 5648 fi 5649 CP=$ac_cv_path_CP 5650 if test -n "$CP"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5652 $as_echo "$CP" >&6; } 5653 else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655 $as_echo "no" >&6; } 5656 fi 5657 5658 5659 test -n "$CP" && break 5660 done 5661 5662 else 5663 # The variable is set, but is it from the command line or the environment? 5664 5665 # Try to remove the string !CP! from our list. 5666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5668 # If it failed, the variable was not from the command line. Ignore it, 5669 # but warn the user (except for BASH, which is always set by the calling BASH). 5670 if test "xCP" != xBASH; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5672 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5673 fi 5674 # Try to locate tool using the code snippet 5675 for ac_prog in cp 5676 do 5677 # Extract the first word of "$ac_prog", so it can be a program name with args. 5678 set dummy $ac_prog; ac_word=$2 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680 $as_echo_n "checking for $ac_word... " >&6; } 5681 if ${ac_cv_path_CP+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683 else 5684 case $CP in 5685 [\\/]* | ?:[\\/]*) 5686 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5687 ;; 5688 *) 5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5690 for as_dir in $PATH 5691 do 5692 IFS=$as_save_IFS 5693 test -z "$as_dir" && as_dir=. 5694 for ac_exec_ext in '' $ac_executable_extensions; do 5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5696 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5698 break 2 5699 fi 5700 done 5701 done 5702 IFS=$as_save_IFS 5703 5704 ;; 5705 esac 5706 fi 5707 CP=$ac_cv_path_CP 5708 if test -n "$CP"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5710 $as_echo "$CP" >&6; } 5711 else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713 $as_echo "no" >&6; } 5714 fi 5715 5716 5717 test -n "$CP" && break 5718 done 5719 5720 else 5721 # If it succeeded, then it was overridden by the user. We will use it 5722 # for the tool. 5723 5724 # First remove it from the list of overridden variables, so we can test 5725 # for unknown variables in the end. 5726 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5727 5728 # Check if the provided tool contains a complete path. 5729 tool_specified="$CP" 5730 tool_basename="${tool_specified##*/}" 5731 if test "x$tool_basename" = "x$tool_specified"; then 5732 # A command without a complete path is provided, search $PATH. 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5734 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5735 # Extract the first word of "$tool_basename", so it can be a program name with args. 5736 set dummy $tool_basename; ac_word=$2 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5738 $as_echo_n "checking for $ac_word... " >&6; } 5739 if ${ac_cv_path_CP+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741 else 5742 case $CP in 5743 [\\/]* | ?:[\\/]*) 5744 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5745 ;; 5746 *) 5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5748 for as_dir in $PATH 5749 do 5750 IFS=$as_save_IFS 5751 test -z "$as_dir" && as_dir=. 5752 for ac_exec_ext in '' $ac_executable_extensions; do 5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5754 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5756 break 2 5757 fi 5758 done 5759 done 5760 IFS=$as_save_IFS 5761 5762 ;; 5763 esac 5764 fi 5765 CP=$ac_cv_path_CP 5766 if test -n "$CP"; then 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5768 $as_echo "$CP" >&6; } 5769 else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5771 $as_echo "no" >&6; } 5772 fi 5773 5774 5775 if test "x$CP" = x; then 5776 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5777 fi 5778 else 5779 # Otherwise we believe it is a complete path. Use it as it is. 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5781 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5783 $as_echo_n "checking for CP... " >&6; } 5784 if test ! -x "$tool_specified"; then 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5786 $as_echo "not found" >&6; } 5787 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5788 fi 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5790 $as_echo "$tool_specified" >&6; } 5791 fi 5792 fi 5793 fi 5794 5795 5796 5797 if test "x$CP" = x; then 5798 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5799 fi 5800 5801 5802 5803 5804 5805 # Publish this variable in the help. 5806 5807 5808 if test "x$CUT" = x; then 5809 # The variable is not set by user, try to locate tool using the code snippet 5810 for ac_prog in cut 5811 do 5812 # Extract the first word of "$ac_prog", so it can be a program name with args. 5813 set dummy $ac_prog; ac_word=$2 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5815 $as_echo_n "checking for $ac_word... " >&6; } 5816 if ${ac_cv_path_CUT+:} false; then : 5817 $as_echo_n "(cached) " >&6 5818 else 5819 case $CUT in 5820 [\\/]* | ?:[\\/]*) 5821 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5822 ;; 5823 *) 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825 for as_dir in $PATH 5826 do 5827 IFS=$as_save_IFS 5828 test -z "$as_dir" && as_dir=. 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5831 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835 done 5836 done 5837 IFS=$as_save_IFS 5838 5839 ;; 5840 esac 5841 fi 5842 CUT=$ac_cv_path_CUT 5843 if test -n "$CUT"; then 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5845 $as_echo "$CUT" >&6; } 5846 else 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5848 $as_echo "no" >&6; } 5849 fi 5850 5851 5852 test -n "$CUT" && break 5853 done 5854 5855 else 5856 # The variable is set, but is it from the command line or the environment? 5857 5858 # Try to remove the string !CUT! from our list. 5859 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5860 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5861 # If it failed, the variable was not from the command line. Ignore it, 5862 # but warn the user (except for BASH, which is always set by the calling BASH). 5863 if test "xCUT" != xBASH; then 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5865 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5866 fi 5867 # Try to locate tool using the code snippet 5868 for ac_prog in cut 5869 do 5870 # Extract the first word of "$ac_prog", so it can be a program name with args. 5871 set dummy $ac_prog; ac_word=$2 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5873 $as_echo_n "checking for $ac_word... " >&6; } 5874 if ${ac_cv_path_CUT+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876 else 5877 case $CUT in 5878 [\\/]* | ?:[\\/]*) 5879 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5880 ;; 5881 *) 5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883 for as_dir in $PATH 5884 do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5889 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893 done 5894 done 5895 IFS=$as_save_IFS 5896 5897 ;; 5898 esac 5899 fi 5900 CUT=$ac_cv_path_CUT 5901 if test -n "$CUT"; then 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5903 $as_echo "$CUT" >&6; } 5904 else 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5906 $as_echo "no" >&6; } 5907 fi 5908 5909 5910 test -n "$CUT" && break 5911 done 5912 5913 else 5914 # If it succeeded, then it was overridden by the user. We will use it 5915 # for the tool. 5916 5917 # First remove it from the list of overridden variables, so we can test 5918 # for unknown variables in the end. 5919 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5920 5921 # Check if the provided tool contains a complete path. 5922 tool_specified="$CUT" 5923 tool_basename="${tool_specified##*/}" 5924 if test "x$tool_basename" = "x$tool_specified"; then 5925 # A command without a complete path is provided, search $PATH. 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5927 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5928 # Extract the first word of "$tool_basename", so it can be a program name with args. 5929 set dummy $tool_basename; ac_word=$2 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5931 $as_echo_n "checking for $ac_word... " >&6; } 5932 if ${ac_cv_path_CUT+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934 else 5935 case $CUT in 5936 [\\/]* | ?:[\\/]*) 5937 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5938 ;; 5939 *) 5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941 for as_dir in $PATH 5942 do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5947 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5949 break 2 5950 fi 5951 done 5952 done 5953 IFS=$as_save_IFS 5954 5955 ;; 5956 esac 5957 fi 5958 CUT=$ac_cv_path_CUT 5959 if test -n "$CUT"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5961 $as_echo "$CUT" >&6; } 5962 else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964 $as_echo "no" >&6; } 5965 fi 5966 5967 5968 if test "x$CUT" = x; then 5969 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5970 fi 5971 else 5972 # Otherwise we believe it is a complete path. Use it as it is. 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5974 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5976 $as_echo_n "checking for CUT... " >&6; } 5977 if test ! -x "$tool_specified"; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5979 $as_echo "not found" >&6; } 5980 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5981 fi 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5983 $as_echo "$tool_specified" >&6; } 5984 fi 5985 fi 5986 fi 5987 5988 5989 5990 if test "x$CUT" = x; then 5991 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5992 fi 5993 5994 5995 5996 5997 5998 # Publish this variable in the help. 5999 6000 6001 if test "x$DATE" = x; then 6002 # The variable is not set by user, try to locate tool using the code snippet 6003 for ac_prog in date 6004 do 6005 # Extract the first word of "$ac_prog", so it can be a program name with args. 6006 set dummy $ac_prog; ac_word=$2 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6008 $as_echo_n "checking for $ac_word... " >&6; } 6009 if ${ac_cv_path_DATE+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011 else 6012 case $DATE in 6013 [\\/]* | ?:[\\/]*) 6014 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6015 ;; 6016 *) 6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018 for as_dir in $PATH 6019 do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028 done 6029 done 6030 IFS=$as_save_IFS 6031 6032 ;; 6033 esac 6034 fi 6035 DATE=$ac_cv_path_DATE 6036 if test -n "$DATE"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6038 $as_echo "$DATE" >&6; } 6039 else 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6041 $as_echo "no" >&6; } 6042 fi 6043 6044 6045 test -n "$DATE" && break 6046 done 6047 6048 else 6049 # The variable is set, but is it from the command line or the environment? 6050 6051 # Try to remove the string !DATE! from our list. 6052 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6053 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6054 # If it failed, the variable was not from the command line. Ignore it, 6055 # but warn the user (except for BASH, which is always set by the calling BASH). 6056 if test "xDATE" != xBASH; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6058 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6059 fi 6060 # Try to locate tool using the code snippet 6061 for ac_prog in date 6062 do 6063 # Extract the first word of "$ac_prog", so it can be a program name with args. 6064 set dummy $ac_prog; ac_word=$2 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066 $as_echo_n "checking for $ac_word... " >&6; } 6067 if ${ac_cv_path_DATE+:} false; then : 6068 $as_echo_n "(cached) " >&6 6069 else 6070 case $DATE in 6071 [\\/]* | ?:[\\/]*) 6072 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6073 ;; 6074 *) 6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076 for as_dir in $PATH 6077 do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086 done 6087 done 6088 IFS=$as_save_IFS 6089 6090 ;; 6091 esac 6092 fi 6093 DATE=$ac_cv_path_DATE 6094 if test -n "$DATE"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6096 $as_echo "$DATE" >&6; } 6097 else 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6099 $as_echo "no" >&6; } 6100 fi 6101 6102 6103 test -n "$DATE" && break 6104 done 6105 6106 else 6107 # If it succeeded, then it was overridden by the user. We will use it 6108 # for the tool. 6109 6110 # First remove it from the list of overridden variables, so we can test 6111 # for unknown variables in the end. 6112 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6113 6114 # Check if the provided tool contains a complete path. 6115 tool_specified="$DATE" 6116 tool_basename="${tool_specified##*/}" 6117 if test "x$tool_basename" = "x$tool_specified"; then 6118 # A command without a complete path is provided, search $PATH. 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6120 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6121 # Extract the first word of "$tool_basename", so it can be a program name with args. 6122 set dummy $tool_basename; ac_word=$2 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124 $as_echo_n "checking for $ac_word... " >&6; } 6125 if ${ac_cv_path_DATE+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127 else 6128 case $DATE in 6129 [\\/]* | ?:[\\/]*) 6130 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6131 ;; 6132 *) 6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134 for as_dir in $PATH 6135 do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6140 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144 done 6145 done 6146 IFS=$as_save_IFS 6147 6148 ;; 6149 esac 6150 fi 6151 DATE=$ac_cv_path_DATE 6152 if test -n "$DATE"; then 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6154 $as_echo "$DATE" >&6; } 6155 else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6157 $as_echo "no" >&6; } 6158 fi 6159 6160 6161 if test "x$DATE" = x; then 6162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6163 fi 6164 else 6165 # Otherwise we believe it is a complete path. Use it as it is. 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6167 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6169 $as_echo_n "checking for DATE... " >&6; } 6170 if test ! -x "$tool_specified"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6172 $as_echo "not found" >&6; } 6173 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6174 fi 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6176 $as_echo "$tool_specified" >&6; } 6177 fi 6178 fi 6179 fi 6180 6181 6182 6183 if test "x$DATE" = x; then 6184 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6185 fi 6186 6187 6188 6189 6190 6191 # Publish this variable in the help. 6192 6193 6194 if test "x$DIFF" = x; then 6195 # The variable is not set by user, try to locate tool using the code snippet 6196 for ac_prog in gdiff diff 6197 do 6198 # Extract the first word of "$ac_prog", so it can be a program name with args. 6199 set dummy $ac_prog; ac_word=$2 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201 $as_echo_n "checking for $ac_word... " >&6; } 6202 if ${ac_cv_path_DIFF+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204 else 6205 case $DIFF in 6206 [\\/]* | ?:[\\/]*) 6207 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6208 ;; 6209 *) 6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6211 for as_dir in $PATH 6212 do 6213 IFS=$as_save_IFS 6214 test -z "$as_dir" && as_dir=. 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6217 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221 done 6222 done 6223 IFS=$as_save_IFS 6224 6225 ;; 6226 esac 6227 fi 6228 DIFF=$ac_cv_path_DIFF 6229 if test -n "$DIFF"; then 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6231 $as_echo "$DIFF" >&6; } 6232 else 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6234 $as_echo "no" >&6; } 6235 fi 6236 6237 6238 test -n "$DIFF" && break 6239 done 6240 6241 else 6242 # The variable is set, but is it from the command line or the environment? 6243 6244 # Try to remove the string !DIFF! from our list. 6245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6247 # If it failed, the variable was not from the command line. Ignore it, 6248 # but warn the user (except for BASH, which is always set by the calling BASH). 6249 if test "xDIFF" != xBASH; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6251 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6252 fi 6253 # Try to locate tool using the code snippet 6254 for ac_prog in gdiff diff 6255 do 6256 # Extract the first word of "$ac_prog", so it can be a program name with args. 6257 set dummy $ac_prog; ac_word=$2 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6259 $as_echo_n "checking for $ac_word... " >&6; } 6260 if ${ac_cv_path_DIFF+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262 else 6263 case $DIFF in 6264 [\\/]* | ?:[\\/]*) 6265 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6266 ;; 6267 *) 6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6269 for as_dir in $PATH 6270 do 6271 IFS=$as_save_IFS 6272 test -z "$as_dir" && as_dir=. 6273 for ac_exec_ext in '' $ac_executable_extensions; do 6274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6275 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6277 break 2 6278 fi 6279 done 6280 done 6281 IFS=$as_save_IFS 6282 6283 ;; 6284 esac 6285 fi 6286 DIFF=$ac_cv_path_DIFF 6287 if test -n "$DIFF"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6289 $as_echo "$DIFF" >&6; } 6290 else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292 $as_echo "no" >&6; } 6293 fi 6294 6295 6296 test -n "$DIFF" && break 6297 done 6298 6299 else 6300 # If it succeeded, then it was overridden by the user. We will use it 6301 # for the tool. 6302 6303 # First remove it from the list of overridden variables, so we can test 6304 # for unknown variables in the end. 6305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6306 6307 # Check if the provided tool contains a complete path. 6308 tool_specified="$DIFF" 6309 tool_basename="${tool_specified##*/}" 6310 if test "x$tool_basename" = "x$tool_specified"; then 6311 # A command without a complete path is provided, search $PATH. 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6313 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6314 # Extract the first word of "$tool_basename", so it can be a program name with args. 6315 set dummy $tool_basename; ac_word=$2 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6317 $as_echo_n "checking for $ac_word... " >&6; } 6318 if ${ac_cv_path_DIFF+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320 else 6321 case $DIFF in 6322 [\\/]* | ?:[\\/]*) 6323 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6324 ;; 6325 *) 6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6327 for as_dir in $PATH 6328 do 6329 IFS=$as_save_IFS 6330 test -z "$as_dir" && as_dir=. 6331 for ac_exec_ext in '' $ac_executable_extensions; do 6332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6333 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6335 break 2 6336 fi 6337 done 6338 done 6339 IFS=$as_save_IFS 6340 6341 ;; 6342 esac 6343 fi 6344 DIFF=$ac_cv_path_DIFF 6345 if test -n "$DIFF"; then 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6347 $as_echo "$DIFF" >&6; } 6348 else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350 $as_echo "no" >&6; } 6351 fi 6352 6353 6354 if test "x$DIFF" = x; then 6355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6356 fi 6357 else 6358 # Otherwise we believe it is a complete path. Use it as it is. 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6360 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6362 $as_echo_n "checking for DIFF... " >&6; } 6363 if test ! -x "$tool_specified"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6365 $as_echo "not found" >&6; } 6366 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6367 fi 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6369 $as_echo "$tool_specified" >&6; } 6370 fi 6371 fi 6372 fi 6373 6374 6375 6376 if test "x$DIFF" = x; then 6377 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6378 fi 6379 6380 6381 6382 6383 6384 # Publish this variable in the help. 6385 6386 6387 if test "x$DIRNAME" = x; then 6388 # The variable is not set by user, try to locate tool using the code snippet 6389 for ac_prog in dirname 6390 do 6391 # Extract the first word of "$ac_prog", so it can be a program name with args. 6392 set dummy $ac_prog; ac_word=$2 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394 $as_echo_n "checking for $ac_word... " >&6; } 6395 if ${ac_cv_path_DIRNAME+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397 else 6398 case $DIRNAME in 6399 [\\/]* | ?:[\\/]*) 6400 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6401 ;; 6402 *) 6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404 for as_dir in $PATH 6405 do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6410 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414 done 6415 done 6416 IFS=$as_save_IFS 6417 6418 ;; 6419 esac 6420 fi 6421 DIRNAME=$ac_cv_path_DIRNAME 6422 if test -n "$DIRNAME"; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6424 $as_echo "$DIRNAME" >&6; } 6425 else 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427 $as_echo "no" >&6; } 6428 fi 6429 6430 6431 test -n "$DIRNAME" && break 6432 done 6433 6434 else 6435 # The variable is set, but is it from the command line or the environment? 6436 6437 # Try to remove the string !DIRNAME! from our list. 6438 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6439 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6440 # If it failed, the variable was not from the command line. Ignore it, 6441 # but warn the user (except for BASH, which is always set by the calling BASH). 6442 if test "xDIRNAME" != xBASH; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6444 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6445 fi 6446 # Try to locate tool using the code snippet 6447 for ac_prog in dirname 6448 do 6449 # Extract the first word of "$ac_prog", so it can be a program name with args. 6450 set dummy $ac_prog; ac_word=$2 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6452 $as_echo_n "checking for $ac_word... " >&6; } 6453 if ${ac_cv_path_DIRNAME+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455 else 6456 case $DIRNAME in 6457 [\\/]* | ?:[\\/]*) 6458 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6459 ;; 6460 *) 6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6462 for as_dir in $PATH 6463 do 6464 IFS=$as_save_IFS 6465 test -z "$as_dir" && as_dir=. 6466 for ac_exec_ext in '' $ac_executable_extensions; do 6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6468 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6470 break 2 6471 fi 6472 done 6473 done 6474 IFS=$as_save_IFS 6475 6476 ;; 6477 esac 6478 fi 6479 DIRNAME=$ac_cv_path_DIRNAME 6480 if test -n "$DIRNAME"; then 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6482 $as_echo "$DIRNAME" >&6; } 6483 else 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485 $as_echo "no" >&6; } 6486 fi 6487 6488 6489 test -n "$DIRNAME" && break 6490 done 6491 6492 else 6493 # If it succeeded, then it was overridden by the user. We will use it 6494 # for the tool. 6495 6496 # First remove it from the list of overridden variables, so we can test 6497 # for unknown variables in the end. 6498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6499 6500 # Check if the provided tool contains a complete path. 6501 tool_specified="$DIRNAME" 6502 tool_basename="${tool_specified##*/}" 6503 if test "x$tool_basename" = "x$tool_specified"; then 6504 # A command without a complete path is provided, search $PATH. 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6506 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6507 # Extract the first word of "$tool_basename", so it can be a program name with args. 6508 set dummy $tool_basename; ac_word=$2 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6510 $as_echo_n "checking for $ac_word... " >&6; } 6511 if ${ac_cv_path_DIRNAME+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513 else 6514 case $DIRNAME in 6515 [\\/]* | ?:[\\/]*) 6516 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6517 ;; 6518 *) 6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520 for as_dir in $PATH 6521 do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6526 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530 done 6531 done 6532 IFS=$as_save_IFS 6533 6534 ;; 6535 esac 6536 fi 6537 DIRNAME=$ac_cv_path_DIRNAME 6538 if test -n "$DIRNAME"; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6540 $as_echo "$DIRNAME" >&6; } 6541 else 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543 $as_echo "no" >&6; } 6544 fi 6545 6546 6547 if test "x$DIRNAME" = x; then 6548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6549 fi 6550 else 6551 # Otherwise we believe it is a complete path. Use it as it is. 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6553 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6555 $as_echo_n "checking for DIRNAME... " >&6; } 6556 if test ! -x "$tool_specified"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6558 $as_echo "not found" >&6; } 6559 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6560 fi 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6562 $as_echo "$tool_specified" >&6; } 6563 fi 6564 fi 6565 fi 6566 6567 6568 6569 if test "x$DIRNAME" = x; then 6570 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6571 fi 6572 6573 6574 6575 6576 6577 # Publish this variable in the help. 6578 6579 6580 if test "x$ECHO" = x; then 6581 # The variable is not set by user, try to locate tool using the code snippet 6582 for ac_prog in echo 6583 do 6584 # Extract the first word of "$ac_prog", so it can be a program name with args. 6585 set dummy $ac_prog; ac_word=$2 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6587 $as_echo_n "checking for $ac_word... " >&6; } 6588 if ${ac_cv_path_ECHO+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590 else 6591 case $ECHO in 6592 [\\/]* | ?:[\\/]*) 6593 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6594 ;; 6595 *) 6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597 for as_dir in $PATH 6598 do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6603 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607 done 6608 done 6609 IFS=$as_save_IFS 6610 6611 ;; 6612 esac 6613 fi 6614 ECHO=$ac_cv_path_ECHO 6615 if test -n "$ECHO"; then 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6617 $as_echo "$ECHO" >&6; } 6618 else 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6620 $as_echo "no" >&6; } 6621 fi 6622 6623 6624 test -n "$ECHO" && break 6625 done 6626 6627 else 6628 # The variable is set, but is it from the command line or the environment? 6629 6630 # Try to remove the string !ECHO! from our list. 6631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6633 # If it failed, the variable was not from the command line. Ignore it, 6634 # but warn the user (except for BASH, which is always set by the calling BASH). 6635 if test "xECHO" != xBASH; then 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6637 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6638 fi 6639 # Try to locate tool using the code snippet 6640 for ac_prog in echo 6641 do 6642 # Extract the first word of "$ac_prog", so it can be a program name with args. 6643 set dummy $ac_prog; ac_word=$2 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645 $as_echo_n "checking for $ac_word... " >&6; } 6646 if ${ac_cv_path_ECHO+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648 else 6649 case $ECHO in 6650 [\\/]* | ?:[\\/]*) 6651 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6652 ;; 6653 *) 6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6655 for as_dir in $PATH 6656 do 6657 IFS=$as_save_IFS 6658 test -z "$as_dir" && as_dir=. 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6661 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665 done 6666 done 6667 IFS=$as_save_IFS 6668 6669 ;; 6670 esac 6671 fi 6672 ECHO=$ac_cv_path_ECHO 6673 if test -n "$ECHO"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6675 $as_echo "$ECHO" >&6; } 6676 else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678 $as_echo "no" >&6; } 6679 fi 6680 6681 6682 test -n "$ECHO" && break 6683 done 6684 6685 else 6686 # If it succeeded, then it was overridden by the user. We will use it 6687 # for the tool. 6688 6689 # First remove it from the list of overridden variables, so we can test 6690 # for unknown variables in the end. 6691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6692 6693 # Check if the provided tool contains a complete path. 6694 tool_specified="$ECHO" 6695 tool_basename="${tool_specified##*/}" 6696 if test "x$tool_basename" = "x$tool_specified"; then 6697 # A command without a complete path is provided, search $PATH. 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6699 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6700 # Extract the first word of "$tool_basename", so it can be a program name with args. 6701 set dummy $tool_basename; ac_word=$2 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703 $as_echo_n "checking for $ac_word... " >&6; } 6704 if ${ac_cv_path_ECHO+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706 else 6707 case $ECHO in 6708 [\\/]* | ?:[\\/]*) 6709 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6710 ;; 6711 *) 6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713 for as_dir in $PATH 6714 do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6719 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723 done 6724 done 6725 IFS=$as_save_IFS 6726 6727 ;; 6728 esac 6729 fi 6730 ECHO=$ac_cv_path_ECHO 6731 if test -n "$ECHO"; then 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6733 $as_echo "$ECHO" >&6; } 6734 else 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6736 $as_echo "no" >&6; } 6737 fi 6738 6739 6740 if test "x$ECHO" = x; then 6741 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6742 fi 6743 else 6744 # Otherwise we believe it is a complete path. Use it as it is. 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6746 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6748 $as_echo_n "checking for ECHO... " >&6; } 6749 if test ! -x "$tool_specified"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6751 $as_echo "not found" >&6; } 6752 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6753 fi 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6755 $as_echo "$tool_specified" >&6; } 6756 fi 6757 fi 6758 fi 6759 6760 6761 6762 if test "x$ECHO" = x; then 6763 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6764 fi 6765 6766 6767 6768 6769 6770 # Publish this variable in the help. 6771 6772 6773 if test "x$EXPR" = x; then 6774 # The variable is not set by user, try to locate tool using the code snippet 6775 for ac_prog in expr 6776 do 6777 # Extract the first word of "$ac_prog", so it can be a program name with args. 6778 set dummy $ac_prog; ac_word=$2 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6780 $as_echo_n "checking for $ac_word... " >&6; } 6781 if ${ac_cv_path_EXPR+:} false; then : 6782 $as_echo_n "(cached) " >&6 6783 else 6784 case $EXPR in 6785 [\\/]* | ?:[\\/]*) 6786 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6787 ;; 6788 *) 6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790 for as_dir in $PATH 6791 do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6796 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800 done 6801 done 6802 IFS=$as_save_IFS 6803 6804 ;; 6805 esac 6806 fi 6807 EXPR=$ac_cv_path_EXPR 6808 if test -n "$EXPR"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6810 $as_echo "$EXPR" >&6; } 6811 else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813 $as_echo "no" >&6; } 6814 fi 6815 6816 6817 test -n "$EXPR" && break 6818 done 6819 6820 else 6821 # The variable is set, but is it from the command line or the environment? 6822 6823 # Try to remove the string !EXPR! from our list. 6824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6826 # If it failed, the variable was not from the command line. Ignore it, 6827 # but warn the user (except for BASH, which is always set by the calling BASH). 6828 if test "xEXPR" != xBASH; then 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6830 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6831 fi 6832 # Try to locate tool using the code snippet 6833 for ac_prog in expr 6834 do 6835 # Extract the first word of "$ac_prog", so it can be a program name with args. 6836 set dummy $ac_prog; ac_word=$2 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6838 $as_echo_n "checking for $ac_word... " >&6; } 6839 if ${ac_cv_path_EXPR+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841 else 6842 case $EXPR in 6843 [\\/]* | ?:[\\/]*) 6844 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6845 ;; 6846 *) 6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848 for as_dir in $PATH 6849 do 6850 IFS=$as_save_IFS 6851 test -z "$as_dir" && as_dir=. 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6854 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6856 break 2 6857 fi 6858 done 6859 done 6860 IFS=$as_save_IFS 6861 6862 ;; 6863 esac 6864 fi 6865 EXPR=$ac_cv_path_EXPR 6866 if test -n "$EXPR"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6868 $as_echo "$EXPR" >&6; } 6869 else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871 $as_echo "no" >&6; } 6872 fi 6873 6874 6875 test -n "$EXPR" && break 6876 done 6877 6878 else 6879 # If it succeeded, then it was overridden by the user. We will use it 6880 # for the tool. 6881 6882 # First remove it from the list of overridden variables, so we can test 6883 # for unknown variables in the end. 6884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6885 6886 # Check if the provided tool contains a complete path. 6887 tool_specified="$EXPR" 6888 tool_basename="${tool_specified##*/}" 6889 if test "x$tool_basename" = "x$tool_specified"; then 6890 # A command without a complete path is provided, search $PATH. 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6892 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6893 # Extract the first word of "$tool_basename", so it can be a program name with args. 6894 set dummy $tool_basename; ac_word=$2 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896 $as_echo_n "checking for $ac_word... " >&6; } 6897 if ${ac_cv_path_EXPR+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899 else 6900 case $EXPR in 6901 [\\/]* | ?:[\\/]*) 6902 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6903 ;; 6904 *) 6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906 for as_dir in $PATH 6907 do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_exec_ext in '' $ac_executable_extensions; do 6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6912 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6914 break 2 6915 fi 6916 done 6917 done 6918 IFS=$as_save_IFS 6919 6920 ;; 6921 esac 6922 fi 6923 EXPR=$ac_cv_path_EXPR 6924 if test -n "$EXPR"; then 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6926 $as_echo "$EXPR" >&6; } 6927 else 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6929 $as_echo "no" >&6; } 6930 fi 6931 6932 6933 if test "x$EXPR" = x; then 6934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6935 fi 6936 else 6937 # Otherwise we believe it is a complete path. Use it as it is. 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6939 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6941 $as_echo_n "checking for EXPR... " >&6; } 6942 if test ! -x "$tool_specified"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6944 $as_echo "not found" >&6; } 6945 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6946 fi 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6948 $as_echo "$tool_specified" >&6; } 6949 fi 6950 fi 6951 fi 6952 6953 6954 6955 if test "x$EXPR" = x; then 6956 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6957 fi 6958 6959 6960 6961 6962 6963 # Publish this variable in the help. 6964 6965 6966 if test "x$FILE" = x; then 6967 # The variable is not set by user, try to locate tool using the code snippet 6968 for ac_prog in file 6969 do 6970 # Extract the first word of "$ac_prog", so it can be a program name with args. 6971 set dummy $ac_prog; ac_word=$2 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6973 $as_echo_n "checking for $ac_word... " >&6; } 6974 if ${ac_cv_path_FILE+:} false; then : 6975 $as_echo_n "(cached) " >&6 6976 else 6977 case $FILE in 6978 [\\/]* | ?:[\\/]*) 6979 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6980 ;; 6981 *) 6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983 for as_dir in $PATH 6984 do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6989 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993 done 6994 done 6995 IFS=$as_save_IFS 6996 6997 ;; 6998 esac 6999 fi 7000 FILE=$ac_cv_path_FILE 7001 if test -n "$FILE"; then 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7003 $as_echo "$FILE" >&6; } 7004 else 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7006 $as_echo "no" >&6; } 7007 fi 7008 7009 7010 test -n "$FILE" && break 7011 done 7012 7013 else 7014 # The variable is set, but is it from the command line or the environment? 7015 7016 # Try to remove the string !FILE! from our list. 7017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7019 # If it failed, the variable was not from the command line. Ignore it, 7020 # but warn the user (except for BASH, which is always set by the calling BASH). 7021 if test "xFILE" != xBASH; then 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7023 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7024 fi 7025 # Try to locate tool using the code snippet 7026 for ac_prog in file 7027 do 7028 # Extract the first word of "$ac_prog", so it can be a program name with args. 7029 set dummy $ac_prog; ac_word=$2 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031 $as_echo_n "checking for $ac_word... " >&6; } 7032 if ${ac_cv_path_FILE+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034 else 7035 case $FILE in 7036 [\\/]* | ?:[\\/]*) 7037 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7038 ;; 7039 *) 7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7041 for as_dir in $PATH 7042 do 7043 IFS=$as_save_IFS 7044 test -z "$as_dir" && as_dir=. 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7047 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7049 break 2 7050 fi 7051 done 7052 done 7053 IFS=$as_save_IFS 7054 7055 ;; 7056 esac 7057 fi 7058 FILE=$ac_cv_path_FILE 7059 if test -n "$FILE"; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7061 $as_echo "$FILE" >&6; } 7062 else 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7064 $as_echo "no" >&6; } 7065 fi 7066 7067 7068 test -n "$FILE" && break 7069 done 7070 7071 else 7072 # If it succeeded, then it was overridden by the user. We will use it 7073 # for the tool. 7074 7075 # First remove it from the list of overridden variables, so we can test 7076 # for unknown variables in the end. 7077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7078 7079 # Check if the provided tool contains a complete path. 7080 tool_specified="$FILE" 7081 tool_basename="${tool_specified##*/}" 7082 if test "x$tool_basename" = "x$tool_specified"; then 7083 # A command without a complete path is provided, search $PATH. 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7085 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7086 # Extract the first word of "$tool_basename", so it can be a program name with args. 7087 set dummy $tool_basename; ac_word=$2 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7089 $as_echo_n "checking for $ac_word... " >&6; } 7090 if ${ac_cv_path_FILE+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092 else 7093 case $FILE in 7094 [\\/]* | ?:[\\/]*) 7095 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7096 ;; 7097 *) 7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7099 for as_dir in $PATH 7100 do 7101 IFS=$as_save_IFS 7102 test -z "$as_dir" && as_dir=. 7103 for ac_exec_ext in '' $ac_executable_extensions; do 7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7105 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7107 break 2 7108 fi 7109 done 7110 done 7111 IFS=$as_save_IFS 7112 7113 ;; 7114 esac 7115 fi 7116 FILE=$ac_cv_path_FILE 7117 if test -n "$FILE"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7119 $as_echo "$FILE" >&6; } 7120 else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7122 $as_echo "no" >&6; } 7123 fi 7124 7125 7126 if test "x$FILE" = x; then 7127 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7128 fi 7129 else 7130 # Otherwise we believe it is a complete path. Use it as it is. 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7132 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7134 $as_echo_n "checking for FILE... " >&6; } 7135 if test ! -x "$tool_specified"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7137 $as_echo "not found" >&6; } 7138 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7139 fi 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7141 $as_echo "$tool_specified" >&6; } 7142 fi 7143 fi 7144 fi 7145 7146 7147 7148 if test "x$FILE" = x; then 7149 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7150 fi 7151 7152 7153 7154 7155 7156 # Publish this variable in the help. 7157 7158 7159 if test "x$FIND" = x; then 7160 # The variable is not set by user, try to locate tool using the code snippet 7161 for ac_prog in find 7162 do 7163 # Extract the first word of "$ac_prog", so it can be a program name with args. 7164 set dummy $ac_prog; ac_word=$2 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7166 $as_echo_n "checking for $ac_word... " >&6; } 7167 if ${ac_cv_path_FIND+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169 else 7170 case $FIND in 7171 [\\/]* | ?:[\\/]*) 7172 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7173 ;; 7174 *) 7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7176 for as_dir in $PATH 7177 do 7178 IFS=$as_save_IFS 7179 test -z "$as_dir" && as_dir=. 7180 for ac_exec_ext in '' $ac_executable_extensions; do 7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7182 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7184 break 2 7185 fi 7186 done 7187 done 7188 IFS=$as_save_IFS 7189 7190 ;; 7191 esac 7192 fi 7193 FIND=$ac_cv_path_FIND 7194 if test -n "$FIND"; then 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7196 $as_echo "$FIND" >&6; } 7197 else 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7199 $as_echo "no" >&6; } 7200 fi 7201 7202 7203 test -n "$FIND" && break 7204 done 7205 7206 else 7207 # The variable is set, but is it from the command line or the environment? 7208 7209 # Try to remove the string !FIND! from our list. 7210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7212 # If it failed, the variable was not from the command line. Ignore it, 7213 # but warn the user (except for BASH, which is always set by the calling BASH). 7214 if test "xFIND" != xBASH; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7216 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7217 fi 7218 # Try to locate tool using the code snippet 7219 for ac_prog in find 7220 do 7221 # Extract the first word of "$ac_prog", so it can be a program name with args. 7222 set dummy $ac_prog; ac_word=$2 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224 $as_echo_n "checking for $ac_word... " >&6; } 7225 if ${ac_cv_path_FIND+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227 else 7228 case $FIND in 7229 [\\/]* | ?:[\\/]*) 7230 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7231 ;; 7232 *) 7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7234 for as_dir in $PATH 7235 do 7236 IFS=$as_save_IFS 7237 test -z "$as_dir" && as_dir=. 7238 for ac_exec_ext in '' $ac_executable_extensions; do 7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7240 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7242 break 2 7243 fi 7244 done 7245 done 7246 IFS=$as_save_IFS 7247 7248 ;; 7249 esac 7250 fi 7251 FIND=$ac_cv_path_FIND 7252 if test -n "$FIND"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7254 $as_echo "$FIND" >&6; } 7255 else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257 $as_echo "no" >&6; } 7258 fi 7259 7260 7261 test -n "$FIND" && break 7262 done 7263 7264 else 7265 # If it succeeded, then it was overridden by the user. We will use it 7266 # for the tool. 7267 7268 # First remove it from the list of overridden variables, so we can test 7269 # for unknown variables in the end. 7270 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7271 7272 # Check if the provided tool contains a complete path. 7273 tool_specified="$FIND" 7274 tool_basename="${tool_specified##*/}" 7275 if test "x$tool_basename" = "x$tool_specified"; then 7276 # A command without a complete path is provided, search $PATH. 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7278 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7279 # Extract the first word of "$tool_basename", so it can be a program name with args. 7280 set dummy $tool_basename; ac_word=$2 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7282 $as_echo_n "checking for $ac_word... " >&6; } 7283 if ${ac_cv_path_FIND+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285 else 7286 case $FIND in 7287 [\\/]* | ?:[\\/]*) 7288 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7289 ;; 7290 *) 7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292 for as_dir in $PATH 7293 do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7298 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302 done 7303 done 7304 IFS=$as_save_IFS 7305 7306 ;; 7307 esac 7308 fi 7309 FIND=$ac_cv_path_FIND 7310 if test -n "$FIND"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7312 $as_echo "$FIND" >&6; } 7313 else 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7315 $as_echo "no" >&6; } 7316 fi 7317 7318 7319 if test "x$FIND" = x; then 7320 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7321 fi 7322 else 7323 # Otherwise we believe it is a complete path. Use it as it is. 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7325 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7327 $as_echo_n "checking for FIND... " >&6; } 7328 if test ! -x "$tool_specified"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7330 $as_echo "not found" >&6; } 7331 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7332 fi 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7334 $as_echo "$tool_specified" >&6; } 7335 fi 7336 fi 7337 fi 7338 7339 7340 7341 if test "x$FIND" = x; then 7342 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7343 fi 7344 7345 7346 7347 7348 7349 # Publish this variable in the help. 7350 7351 7352 if test "x$HEAD" = x; then 7353 # The variable is not set by user, try to locate tool using the code snippet 7354 for ac_prog in head 7355 do 7356 # Extract the first word of "$ac_prog", so it can be a program name with args. 7357 set dummy $ac_prog; ac_word=$2 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359 $as_echo_n "checking for $ac_word... " >&6; } 7360 if ${ac_cv_path_HEAD+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362 else 7363 case $HEAD in 7364 [\\/]* | ?:[\\/]*) 7365 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7366 ;; 7367 *) 7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369 for as_dir in $PATH 7370 do 7371 IFS=$as_save_IFS 7372 test -z "$as_dir" && as_dir=. 7373 for ac_exec_ext in '' $ac_executable_extensions; do 7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7375 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7377 break 2 7378 fi 7379 done 7380 done 7381 IFS=$as_save_IFS 7382 7383 ;; 7384 esac 7385 fi 7386 HEAD=$ac_cv_path_HEAD 7387 if test -n "$HEAD"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7389 $as_echo "$HEAD" >&6; } 7390 else 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7392 $as_echo "no" >&6; } 7393 fi 7394 7395 7396 test -n "$HEAD" && break 7397 done 7398 7399 else 7400 # The variable is set, but is it from the command line or the environment? 7401 7402 # Try to remove the string !HEAD! from our list. 7403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7405 # If it failed, the variable was not from the command line. Ignore it, 7406 # but warn the user (except for BASH, which is always set by the calling BASH). 7407 if test "xHEAD" != xBASH; then 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7409 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7410 fi 7411 # Try to locate tool using the code snippet 7412 for ac_prog in head 7413 do 7414 # Extract the first word of "$ac_prog", so it can be a program name with args. 7415 set dummy $ac_prog; ac_word=$2 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7417 $as_echo_n "checking for $ac_word... " >&6; } 7418 if ${ac_cv_path_HEAD+:} false; then : 7419 $as_echo_n "(cached) " >&6 7420 else 7421 case $HEAD in 7422 [\\/]* | ?:[\\/]*) 7423 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7424 ;; 7425 *) 7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427 for as_dir in $PATH 7428 do 7429 IFS=$as_save_IFS 7430 test -z "$as_dir" && as_dir=. 7431 for ac_exec_ext in '' $ac_executable_extensions; do 7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7433 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7435 break 2 7436 fi 7437 done 7438 done 7439 IFS=$as_save_IFS 7440 7441 ;; 7442 esac 7443 fi 7444 HEAD=$ac_cv_path_HEAD 7445 if test -n "$HEAD"; then 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7447 $as_echo "$HEAD" >&6; } 7448 else 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7450 $as_echo "no" >&6; } 7451 fi 7452 7453 7454 test -n "$HEAD" && break 7455 done 7456 7457 else 7458 # If it succeeded, then it was overridden by the user. We will use it 7459 # for the tool. 7460 7461 # First remove it from the list of overridden variables, so we can test 7462 # for unknown variables in the end. 7463 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7464 7465 # Check if the provided tool contains a complete path. 7466 tool_specified="$HEAD" 7467 tool_basename="${tool_specified##*/}" 7468 if test "x$tool_basename" = "x$tool_specified"; then 7469 # A command without a complete path is provided, search $PATH. 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7471 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7472 # Extract the first word of "$tool_basename", so it can be a program name with args. 7473 set dummy $tool_basename; ac_word=$2 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7475 $as_echo_n "checking for $ac_word... " >&6; } 7476 if ${ac_cv_path_HEAD+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478 else 7479 case $HEAD in 7480 [\\/]* | ?:[\\/]*) 7481 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7482 ;; 7483 *) 7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7485 for as_dir in $PATH 7486 do 7487 IFS=$as_save_IFS 7488 test -z "$as_dir" && as_dir=. 7489 for ac_exec_ext in '' $ac_executable_extensions; do 7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7491 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7493 break 2 7494 fi 7495 done 7496 done 7497 IFS=$as_save_IFS 7498 7499 ;; 7500 esac 7501 fi 7502 HEAD=$ac_cv_path_HEAD 7503 if test -n "$HEAD"; then 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7505 $as_echo "$HEAD" >&6; } 7506 else 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7508 $as_echo "no" >&6; } 7509 fi 7510 7511 7512 if test "x$HEAD" = x; then 7513 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7514 fi 7515 else 7516 # Otherwise we believe it is a complete path. Use it as it is. 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7518 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7520 $as_echo_n "checking for HEAD... " >&6; } 7521 if test ! -x "$tool_specified"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7523 $as_echo "not found" >&6; } 7524 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7525 fi 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7527 $as_echo "$tool_specified" >&6; } 7528 fi 7529 fi 7530 fi 7531 7532 7533 7534 if test "x$HEAD" = x; then 7535 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7536 fi 7537 7538 7539 7540 7541 7542 # Publish this variable in the help. 7543 7544 7545 if test "x$LN" = x; then 7546 # The variable is not set by user, try to locate tool using the code snippet 7547 for ac_prog in ln 7548 do 7549 # Extract the first word of "$ac_prog", so it can be a program name with args. 7550 set dummy $ac_prog; ac_word=$2 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7552 $as_echo_n "checking for $ac_word... " >&6; } 7553 if ${ac_cv_path_LN+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555 else 7556 case $LN in 7557 [\\/]* | ?:[\\/]*) 7558 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7559 ;; 7560 *) 7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562 for as_dir in $PATH 7563 do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_exec_ext in '' $ac_executable_extensions; do 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7568 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7570 break 2 7571 fi 7572 done 7573 done 7574 IFS=$as_save_IFS 7575 7576 ;; 7577 esac 7578 fi 7579 LN=$ac_cv_path_LN 7580 if test -n "$LN"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7582 $as_echo "$LN" >&6; } 7583 else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585 $as_echo "no" >&6; } 7586 fi 7587 7588 7589 test -n "$LN" && break 7590 done 7591 7592 else 7593 # The variable is set, but is it from the command line or the environment? 7594 7595 # Try to remove the string !LN! from our list. 7596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7598 # If it failed, the variable was not from the command line. Ignore it, 7599 # but warn the user (except for BASH, which is always set by the calling BASH). 7600 if test "xLN" != xBASH; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7602 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7603 fi 7604 # Try to locate tool using the code snippet 7605 for ac_prog in ln 7606 do 7607 # Extract the first word of "$ac_prog", so it can be a program name with args. 7608 set dummy $ac_prog; ac_word=$2 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7610 $as_echo_n "checking for $ac_word... " >&6; } 7611 if ${ac_cv_path_LN+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613 else 7614 case $LN in 7615 [\\/]* | ?:[\\/]*) 7616 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7617 ;; 7618 *) 7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620 for as_dir in $PATH 7621 do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7626 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630 done 7631 done 7632 IFS=$as_save_IFS 7633 7634 ;; 7635 esac 7636 fi 7637 LN=$ac_cv_path_LN 7638 if test -n "$LN"; then 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7640 $as_echo "$LN" >&6; } 7641 else 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7643 $as_echo "no" >&6; } 7644 fi 7645 7646 7647 test -n "$LN" && break 7648 done 7649 7650 else 7651 # If it succeeded, then it was overridden by the user. We will use it 7652 # for the tool. 7653 7654 # First remove it from the list of overridden variables, so we can test 7655 # for unknown variables in the end. 7656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7657 7658 # Check if the provided tool contains a complete path. 7659 tool_specified="$LN" 7660 tool_basename="${tool_specified##*/}" 7661 if test "x$tool_basename" = "x$tool_specified"; then 7662 # A command without a complete path is provided, search $PATH. 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7664 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7665 # Extract the first word of "$tool_basename", so it can be a program name with args. 7666 set dummy $tool_basename; ac_word=$2 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668 $as_echo_n "checking for $ac_word... " >&6; } 7669 if ${ac_cv_path_LN+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671 else 7672 case $LN in 7673 [\\/]* | ?:[\\/]*) 7674 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7675 ;; 7676 *) 7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678 for as_dir in $PATH 7679 do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688 done 7689 done 7690 IFS=$as_save_IFS 7691 7692 ;; 7693 esac 7694 fi 7695 LN=$ac_cv_path_LN 7696 if test -n "$LN"; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7698 $as_echo "$LN" >&6; } 7699 else 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7701 $as_echo "no" >&6; } 7702 fi 7703 7704 7705 if test "x$LN" = x; then 7706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7707 fi 7708 else 7709 # Otherwise we believe it is a complete path. Use it as it is. 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7711 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7713 $as_echo_n "checking for LN... " >&6; } 7714 if test ! -x "$tool_specified"; then 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7716 $as_echo "not found" >&6; } 7717 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7718 fi 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7720 $as_echo "$tool_specified" >&6; } 7721 fi 7722 fi 7723 fi 7724 7725 7726 7727 if test "x$LN" = x; then 7728 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7729 fi 7730 7731 7732 7733 7734 7735 # Publish this variable in the help. 7736 7737 7738 if test "x$LS" = x; then 7739 # The variable is not set by user, try to locate tool using the code snippet 7740 for ac_prog in ls 7741 do 7742 # Extract the first word of "$ac_prog", so it can be a program name with args. 7743 set dummy $ac_prog; ac_word=$2 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7745 $as_echo_n "checking for $ac_word... " >&6; } 7746 if ${ac_cv_path_LS+:} false; then : 7747 $as_echo_n "(cached) " >&6 7748 else 7749 case $LS in 7750 [\\/]* | ?:[\\/]*) 7751 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7752 ;; 7753 *) 7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7755 for as_dir in $PATH 7756 do 7757 IFS=$as_save_IFS 7758 test -z "$as_dir" && as_dir=. 7759 for ac_exec_ext in '' $ac_executable_extensions; do 7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7761 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7763 break 2 7764 fi 7765 done 7766 done 7767 IFS=$as_save_IFS 7768 7769 ;; 7770 esac 7771 fi 7772 LS=$ac_cv_path_LS 7773 if test -n "$LS"; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7775 $as_echo "$LS" >&6; } 7776 else 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7778 $as_echo "no" >&6; } 7779 fi 7780 7781 7782 test -n "$LS" && break 7783 done 7784 7785 else 7786 # The variable is set, but is it from the command line or the environment? 7787 7788 # Try to remove the string !LS! from our list. 7789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7791 # If it failed, the variable was not from the command line. Ignore it, 7792 # but warn the user (except for BASH, which is always set by the calling BASH). 7793 if test "xLS" != xBASH; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7795 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7796 fi 7797 # Try to locate tool using the code snippet 7798 for ac_prog in ls 7799 do 7800 # Extract the first word of "$ac_prog", so it can be a program name with args. 7801 set dummy $ac_prog; ac_word=$2 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7803 $as_echo_n "checking for $ac_word... " >&6; } 7804 if ${ac_cv_path_LS+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806 else 7807 case $LS in 7808 [\\/]* | ?:[\\/]*) 7809 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7810 ;; 7811 *) 7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7813 for as_dir in $PATH 7814 do 7815 IFS=$as_save_IFS 7816 test -z "$as_dir" && as_dir=. 7817 for ac_exec_ext in '' $ac_executable_extensions; do 7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7819 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7821 break 2 7822 fi 7823 done 7824 done 7825 IFS=$as_save_IFS 7826 7827 ;; 7828 esac 7829 fi 7830 LS=$ac_cv_path_LS 7831 if test -n "$LS"; then 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7833 $as_echo "$LS" >&6; } 7834 else 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7836 $as_echo "no" >&6; } 7837 fi 7838 7839 7840 test -n "$LS" && break 7841 done 7842 7843 else 7844 # If it succeeded, then it was overridden by the user. We will use it 7845 # for the tool. 7846 7847 # First remove it from the list of overridden variables, so we can test 7848 # for unknown variables in the end. 7849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7850 7851 # Check if the provided tool contains a complete path. 7852 tool_specified="$LS" 7853 tool_basename="${tool_specified##*/}" 7854 if test "x$tool_basename" = "x$tool_specified"; then 7855 # A command without a complete path is provided, search $PATH. 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7857 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7858 # Extract the first word of "$tool_basename", so it can be a program name with args. 7859 set dummy $tool_basename; ac_word=$2 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7861 $as_echo_n "checking for $ac_word... " >&6; } 7862 if ${ac_cv_path_LS+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864 else 7865 case $LS in 7866 [\\/]* | ?:[\\/]*) 7867 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7868 ;; 7869 *) 7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7871 for as_dir in $PATH 7872 do 7873 IFS=$as_save_IFS 7874 test -z "$as_dir" && as_dir=. 7875 for ac_exec_ext in '' $ac_executable_extensions; do 7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7877 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7879 break 2 7880 fi 7881 done 7882 done 7883 IFS=$as_save_IFS 7884 7885 ;; 7886 esac 7887 fi 7888 LS=$ac_cv_path_LS 7889 if test -n "$LS"; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7891 $as_echo "$LS" >&6; } 7892 else 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7894 $as_echo "no" >&6; } 7895 fi 7896 7897 7898 if test "x$LS" = x; then 7899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7900 fi 7901 else 7902 # Otherwise we believe it is a complete path. Use it as it is. 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7904 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7906 $as_echo_n "checking for LS... " >&6; } 7907 if test ! -x "$tool_specified"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7909 $as_echo "not found" >&6; } 7910 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7911 fi 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7913 $as_echo "$tool_specified" >&6; } 7914 fi 7915 fi 7916 fi 7917 7918 7919 7920 if test "x$LS" = x; then 7921 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7922 fi 7923 7924 7925 7926 7927 7928 # Publish this variable in the help. 7929 7930 7931 if test "x$MKDIR" = x; then 7932 # The variable is not set by user, try to locate tool using the code snippet 7933 for ac_prog in mkdir 7934 do 7935 # Extract the first word of "$ac_prog", so it can be a program name with args. 7936 set dummy $ac_prog; ac_word=$2 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7938 $as_echo_n "checking for $ac_word... " >&6; } 7939 if ${ac_cv_path_MKDIR+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941 else 7942 case $MKDIR in 7943 [\\/]* | ?:[\\/]*) 7944 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7945 ;; 7946 *) 7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7948 for as_dir in $PATH 7949 do 7950 IFS=$as_save_IFS 7951 test -z "$as_dir" && as_dir=. 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958 done 7959 done 7960 IFS=$as_save_IFS 7961 7962 ;; 7963 esac 7964 fi 7965 MKDIR=$ac_cv_path_MKDIR 7966 if test -n "$MKDIR"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7968 $as_echo "$MKDIR" >&6; } 7969 else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971 $as_echo "no" >&6; } 7972 fi 7973 7974 7975 test -n "$MKDIR" && break 7976 done 7977 7978 else 7979 # The variable is set, but is it from the command line or the environment? 7980 7981 # Try to remove the string !MKDIR! from our list. 7982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7984 # If it failed, the variable was not from the command line. Ignore it, 7985 # but warn the user (except for BASH, which is always set by the calling BASH). 7986 if test "xMKDIR" != xBASH; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7988 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7989 fi 7990 # Try to locate tool using the code snippet 7991 for ac_prog in mkdir 7992 do 7993 # Extract the first word of "$ac_prog", so it can be a program name with args. 7994 set dummy $ac_prog; ac_word=$2 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996 $as_echo_n "checking for $ac_word... " >&6; } 7997 if ${ac_cv_path_MKDIR+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999 else 8000 case $MKDIR in 8001 [\\/]* | ?:[\\/]*) 8002 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8003 ;; 8004 *) 8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006 for as_dir in $PATH 8007 do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016 done 8017 done 8018 IFS=$as_save_IFS 8019 8020 ;; 8021 esac 8022 fi 8023 MKDIR=$ac_cv_path_MKDIR 8024 if test -n "$MKDIR"; then 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8026 $as_echo "$MKDIR" >&6; } 8027 else 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029 $as_echo "no" >&6; } 8030 fi 8031 8032 8033 test -n "$MKDIR" && break 8034 done 8035 8036 else 8037 # If it succeeded, then it was overridden by the user. We will use it 8038 # for the tool. 8039 8040 # First remove it from the list of overridden variables, so we can test 8041 # for unknown variables in the end. 8042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8043 8044 # Check if the provided tool contains a complete path. 8045 tool_specified="$MKDIR" 8046 tool_basename="${tool_specified##*/}" 8047 if test "x$tool_basename" = "x$tool_specified"; then 8048 # A command without a complete path is provided, search $PATH. 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8050 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8051 # Extract the first word of "$tool_basename", so it can be a program name with args. 8052 set dummy $tool_basename; ac_word=$2 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8054 $as_echo_n "checking for $ac_word... " >&6; } 8055 if ${ac_cv_path_MKDIR+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057 else 8058 case $MKDIR in 8059 [\\/]* | ?:[\\/]*) 8060 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8061 ;; 8062 *) 8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8064 for as_dir in $PATH 8065 do 8066 IFS=$as_save_IFS 8067 test -z "$as_dir" && as_dir=. 8068 for ac_exec_ext in '' $ac_executable_extensions; do 8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8070 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8072 break 2 8073 fi 8074 done 8075 done 8076 IFS=$as_save_IFS 8077 8078 ;; 8079 esac 8080 fi 8081 MKDIR=$ac_cv_path_MKDIR 8082 if test -n "$MKDIR"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8084 $as_echo "$MKDIR" >&6; } 8085 else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8087 $as_echo "no" >&6; } 8088 fi 8089 8090 8091 if test "x$MKDIR" = x; then 8092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8093 fi 8094 else 8095 # Otherwise we believe it is a complete path. Use it as it is. 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8097 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8099 $as_echo_n "checking for MKDIR... " >&6; } 8100 if test ! -x "$tool_specified"; then 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8102 $as_echo "not found" >&6; } 8103 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8104 fi 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8106 $as_echo "$tool_specified" >&6; } 8107 fi 8108 fi 8109 fi 8110 8111 8112 8113 if test "x$MKDIR" = x; then 8114 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8115 fi 8116 8117 8118 8119 8120 8121 # Publish this variable in the help. 8122 8123 8124 if test "x$MKTEMP" = x; then 8125 # The variable is not set by user, try to locate tool using the code snippet 8126 for ac_prog in mktemp 8127 do 8128 # Extract the first word of "$ac_prog", so it can be a program name with args. 8129 set dummy $ac_prog; ac_word=$2 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8131 $as_echo_n "checking for $ac_word... " >&6; } 8132 if ${ac_cv_path_MKTEMP+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134 else 8135 case $MKTEMP in 8136 [\\/]* | ?:[\\/]*) 8137 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8138 ;; 8139 *) 8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141 for as_dir in $PATH 8142 do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151 done 8152 done 8153 IFS=$as_save_IFS 8154 8155 ;; 8156 esac 8157 fi 8158 MKTEMP=$ac_cv_path_MKTEMP 8159 if test -n "$MKTEMP"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8161 $as_echo "$MKTEMP" >&6; } 8162 else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164 $as_echo "no" >&6; } 8165 fi 8166 8167 8168 test -n "$MKTEMP" && break 8169 done 8170 8171 else 8172 # The variable is set, but is it from the command line or the environment? 8173 8174 # Try to remove the string !MKTEMP! from our list. 8175 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8176 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8177 # If it failed, the variable was not from the command line. Ignore it, 8178 # but warn the user (except for BASH, which is always set by the calling BASH). 8179 if test "xMKTEMP" != xBASH; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8181 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8182 fi 8183 # Try to locate tool using the code snippet 8184 for ac_prog in mktemp 8185 do 8186 # Extract the first word of "$ac_prog", so it can be a program name with args. 8187 set dummy $ac_prog; ac_word=$2 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8189 $as_echo_n "checking for $ac_word... " >&6; } 8190 if ${ac_cv_path_MKTEMP+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192 else 8193 case $MKTEMP in 8194 [\\/]* | ?:[\\/]*) 8195 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8196 ;; 8197 *) 8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199 for as_dir in $PATH 8200 do 8201 IFS=$as_save_IFS 8202 test -z "$as_dir" && as_dir=. 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8205 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209 done 8210 done 8211 IFS=$as_save_IFS 8212 8213 ;; 8214 esac 8215 fi 8216 MKTEMP=$ac_cv_path_MKTEMP 8217 if test -n "$MKTEMP"; then 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8219 $as_echo "$MKTEMP" >&6; } 8220 else 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222 $as_echo "no" >&6; } 8223 fi 8224 8225 8226 test -n "$MKTEMP" && break 8227 done 8228 8229 else 8230 # If it succeeded, then it was overridden by the user. We will use it 8231 # for the tool. 8232 8233 # First remove it from the list of overridden variables, so we can test 8234 # for unknown variables in the end. 8235 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8236 8237 # Check if the provided tool contains a complete path. 8238 tool_specified="$MKTEMP" 8239 tool_basename="${tool_specified##*/}" 8240 if test "x$tool_basename" = "x$tool_specified"; then 8241 # A command without a complete path is provided, search $PATH. 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8243 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8244 # Extract the first word of "$tool_basename", so it can be a program name with args. 8245 set dummy $tool_basename; ac_word=$2 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8247 $as_echo_n "checking for $ac_word... " >&6; } 8248 if ${ac_cv_path_MKTEMP+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250 else 8251 case $MKTEMP in 8252 [\\/]* | ?:[\\/]*) 8253 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8254 ;; 8255 *) 8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257 for as_dir in $PATH 8258 do 8259 IFS=$as_save_IFS 8260 test -z "$as_dir" && as_dir=. 8261 for ac_exec_ext in '' $ac_executable_extensions; do 8262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8263 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8265 break 2 8266 fi 8267 done 8268 done 8269 IFS=$as_save_IFS 8270 8271 ;; 8272 esac 8273 fi 8274 MKTEMP=$ac_cv_path_MKTEMP 8275 if test -n "$MKTEMP"; then 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8277 $as_echo "$MKTEMP" >&6; } 8278 else 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8280 $as_echo "no" >&6; } 8281 fi 8282 8283 8284 if test "x$MKTEMP" = x; then 8285 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8286 fi 8287 else 8288 # Otherwise we believe it is a complete path. Use it as it is. 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8290 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8292 $as_echo_n "checking for MKTEMP... " >&6; } 8293 if test ! -x "$tool_specified"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8295 $as_echo "not found" >&6; } 8296 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8297 fi 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8299 $as_echo "$tool_specified" >&6; } 8300 fi 8301 fi 8302 fi 8303 8304 8305 8306 if test "x$MKTEMP" = x; then 8307 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8308 fi 8309 8310 8311 8312 8313 8314 # Publish this variable in the help. 8315 8316 8317 if test "x$MV" = x; then 8318 # The variable is not set by user, try to locate tool using the code snippet 8319 for ac_prog in mv 8320 do 8321 # Extract the first word of "$ac_prog", so it can be a program name with args. 8322 set dummy $ac_prog; ac_word=$2 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8324 $as_echo_n "checking for $ac_word... " >&6; } 8325 if ${ac_cv_path_MV+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327 else 8328 case $MV in 8329 [\\/]* | ?:[\\/]*) 8330 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8331 ;; 8332 *) 8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8334 for as_dir in $PATH 8335 do 8336 IFS=$as_save_IFS 8337 test -z "$as_dir" && as_dir=. 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8340 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344 done 8345 done 8346 IFS=$as_save_IFS 8347 8348 ;; 8349 esac 8350 fi 8351 MV=$ac_cv_path_MV 8352 if test -n "$MV"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8354 $as_echo "$MV" >&6; } 8355 else 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357 $as_echo "no" >&6; } 8358 fi 8359 8360 8361 test -n "$MV" && break 8362 done 8363 8364 else 8365 # The variable is set, but is it from the command line or the environment? 8366 8367 # Try to remove the string !MV! from our list. 8368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8370 # If it failed, the variable was not from the command line. Ignore it, 8371 # but warn the user (except for BASH, which is always set by the calling BASH). 8372 if test "xMV" != xBASH; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8374 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8375 fi 8376 # Try to locate tool using the code snippet 8377 for ac_prog in mv 8378 do 8379 # Extract the first word of "$ac_prog", so it can be a program name with args. 8380 set dummy $ac_prog; ac_word=$2 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8382 $as_echo_n "checking for $ac_word... " >&6; } 8383 if ${ac_cv_path_MV+:} false; then : 8384 $as_echo_n "(cached) " >&6 8385 else 8386 case $MV in 8387 [\\/]* | ?:[\\/]*) 8388 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8389 ;; 8390 *) 8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8392 for as_dir in $PATH 8393 do 8394 IFS=$as_save_IFS 8395 test -z "$as_dir" && as_dir=. 8396 for ac_exec_ext in '' $ac_executable_extensions; do 8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8398 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8400 break 2 8401 fi 8402 done 8403 done 8404 IFS=$as_save_IFS 8405 8406 ;; 8407 esac 8408 fi 8409 MV=$ac_cv_path_MV 8410 if test -n "$MV"; then 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8412 $as_echo "$MV" >&6; } 8413 else 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8415 $as_echo "no" >&6; } 8416 fi 8417 8418 8419 test -n "$MV" && break 8420 done 8421 8422 else 8423 # If it succeeded, then it was overridden by the user. We will use it 8424 # for the tool. 8425 8426 # First remove it from the list of overridden variables, so we can test 8427 # for unknown variables in the end. 8428 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8429 8430 # Check if the provided tool contains a complete path. 8431 tool_specified="$MV" 8432 tool_basename="${tool_specified##*/}" 8433 if test "x$tool_basename" = "x$tool_specified"; then 8434 # A command without a complete path is provided, search $PATH. 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8436 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8437 # Extract the first word of "$tool_basename", so it can be a program name with args. 8438 set dummy $tool_basename; ac_word=$2 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8440 $as_echo_n "checking for $ac_word... " >&6; } 8441 if ${ac_cv_path_MV+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443 else 8444 case $MV in 8445 [\\/]* | ?:[\\/]*) 8446 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8447 ;; 8448 *) 8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8450 for as_dir in $PATH 8451 do 8452 IFS=$as_save_IFS 8453 test -z "$as_dir" && as_dir=. 8454 for ac_exec_ext in '' $ac_executable_extensions; do 8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8456 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8458 break 2 8459 fi 8460 done 8461 done 8462 IFS=$as_save_IFS 8463 8464 ;; 8465 esac 8466 fi 8467 MV=$ac_cv_path_MV 8468 if test -n "$MV"; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8470 $as_echo "$MV" >&6; } 8471 else 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8473 $as_echo "no" >&6; } 8474 fi 8475 8476 8477 if test "x$MV" = x; then 8478 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8479 fi 8480 else 8481 # Otherwise we believe it is a complete path. Use it as it is. 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8483 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8485 $as_echo_n "checking for MV... " >&6; } 8486 if test ! -x "$tool_specified"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8488 $as_echo "not found" >&6; } 8489 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8490 fi 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8492 $as_echo "$tool_specified" >&6; } 8493 fi 8494 fi 8495 fi 8496 8497 8498 8499 if test "x$MV" = x; then 8500 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8501 fi 8502 8503 8504 8505 8506 8507 # Publish this variable in the help. 8508 8509 8510 if test "x$NAWK" = x; then 8511 # The variable is not set by user, try to locate tool using the code snippet 8512 for ac_prog in nawk gawk awk 8513 do 8514 # Extract the first word of "$ac_prog", so it can be a program name with args. 8515 set dummy $ac_prog; ac_word=$2 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8517 $as_echo_n "checking for $ac_word... " >&6; } 8518 if ${ac_cv_path_NAWK+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520 else 8521 case $NAWK in 8522 [\\/]* | ?:[\\/]*) 8523 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8524 ;; 8525 *) 8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8527 for as_dir in $PATH 8528 do 8529 IFS=$as_save_IFS 8530 test -z "$as_dir" && as_dir=. 8531 for ac_exec_ext in '' $ac_executable_extensions; do 8532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8533 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8535 break 2 8536 fi 8537 done 8538 done 8539 IFS=$as_save_IFS 8540 8541 ;; 8542 esac 8543 fi 8544 NAWK=$ac_cv_path_NAWK 8545 if test -n "$NAWK"; then 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8547 $as_echo "$NAWK" >&6; } 8548 else 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8550 $as_echo "no" >&6; } 8551 fi 8552 8553 8554 test -n "$NAWK" && break 8555 done 8556 8557 else 8558 # The variable is set, but is it from the command line or the environment? 8559 8560 # Try to remove the string !NAWK! from our list. 8561 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8562 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8563 # If it failed, the variable was not from the command line. Ignore it, 8564 # but warn the user (except for BASH, which is always set by the calling BASH). 8565 if test "xNAWK" != xBASH; then 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8567 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8568 fi 8569 # Try to locate tool using the code snippet 8570 for ac_prog in nawk gawk awk 8571 do 8572 # Extract the first word of "$ac_prog", so it can be a program name with args. 8573 set dummy $ac_prog; ac_word=$2 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8575 $as_echo_n "checking for $ac_word... " >&6; } 8576 if ${ac_cv_path_NAWK+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578 else 8579 case $NAWK in 8580 [\\/]* | ?:[\\/]*) 8581 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8582 ;; 8583 *) 8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8585 for as_dir in $PATH 8586 do 8587 IFS=$as_save_IFS 8588 test -z "$as_dir" && as_dir=. 8589 for ac_exec_ext in '' $ac_executable_extensions; do 8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8591 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8593 break 2 8594 fi 8595 done 8596 done 8597 IFS=$as_save_IFS 8598 8599 ;; 8600 esac 8601 fi 8602 NAWK=$ac_cv_path_NAWK 8603 if test -n "$NAWK"; then 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8605 $as_echo "$NAWK" >&6; } 8606 else 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8608 $as_echo "no" >&6; } 8609 fi 8610 8611 8612 test -n "$NAWK" && break 8613 done 8614 8615 else 8616 # If it succeeded, then it was overridden by the user. We will use it 8617 # for the tool. 8618 8619 # First remove it from the list of overridden variables, so we can test 8620 # for unknown variables in the end. 8621 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8622 8623 # Check if the provided tool contains a complete path. 8624 tool_specified="$NAWK" 8625 tool_basename="${tool_specified##*/}" 8626 if test "x$tool_basename" = "x$tool_specified"; then 8627 # A command without a complete path is provided, search $PATH. 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8629 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8630 # Extract the first word of "$tool_basename", so it can be a program name with args. 8631 set dummy $tool_basename; ac_word=$2 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633 $as_echo_n "checking for $ac_word... " >&6; } 8634 if ${ac_cv_path_NAWK+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636 else 8637 case $NAWK in 8638 [\\/]* | ?:[\\/]*) 8639 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8640 ;; 8641 *) 8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8643 for as_dir in $PATH 8644 do 8645 IFS=$as_save_IFS 8646 test -z "$as_dir" && as_dir=. 8647 for ac_exec_ext in '' $ac_executable_extensions; do 8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8649 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8651 break 2 8652 fi 8653 done 8654 done 8655 IFS=$as_save_IFS 8656 8657 ;; 8658 esac 8659 fi 8660 NAWK=$ac_cv_path_NAWK 8661 if test -n "$NAWK"; then 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8663 $as_echo "$NAWK" >&6; } 8664 else 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8666 $as_echo "no" >&6; } 8667 fi 8668 8669 8670 if test "x$NAWK" = x; then 8671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8672 fi 8673 else 8674 # Otherwise we believe it is a complete path. Use it as it is. 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8676 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8678 $as_echo_n "checking for NAWK... " >&6; } 8679 if test ! -x "$tool_specified"; then 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8681 $as_echo "not found" >&6; } 8682 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8683 fi 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8685 $as_echo "$tool_specified" >&6; } 8686 fi 8687 fi 8688 fi 8689 8690 8691 8692 if test "x$NAWK" = x; then 8693 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8694 fi 8695 8696 8697 8698 8699 8700 # Publish this variable in the help. 8701 8702 8703 if test "x$PRINTF" = x; then 8704 # The variable is not set by user, try to locate tool using the code snippet 8705 for ac_prog in printf 8706 do 8707 # Extract the first word of "$ac_prog", so it can be a program name with args. 8708 set dummy $ac_prog; ac_word=$2 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8710 $as_echo_n "checking for $ac_word... " >&6; } 8711 if ${ac_cv_path_PRINTF+:} false; then : 8712 $as_echo_n "(cached) " >&6 8713 else 8714 case $PRINTF in 8715 [\\/]* | ?:[\\/]*) 8716 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8717 ;; 8718 *) 8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8720 for as_dir in $PATH 8721 do 8722 IFS=$as_save_IFS 8723 test -z "$as_dir" && as_dir=. 8724 for ac_exec_ext in '' $ac_executable_extensions; do 8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8726 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8728 break 2 8729 fi 8730 done 8731 done 8732 IFS=$as_save_IFS 8733 8734 ;; 8735 esac 8736 fi 8737 PRINTF=$ac_cv_path_PRINTF 8738 if test -n "$PRINTF"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8740 $as_echo "$PRINTF" >&6; } 8741 else 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8743 $as_echo "no" >&6; } 8744 fi 8745 8746 8747 test -n "$PRINTF" && break 8748 done 8749 8750 else 8751 # The variable is set, but is it from the command line or the environment? 8752 8753 # Try to remove the string !PRINTF! from our list. 8754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8756 # If it failed, the variable was not from the command line. Ignore it, 8757 # but warn the user (except for BASH, which is always set by the calling BASH). 8758 if test "xPRINTF" != xBASH; then 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8760 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8761 fi 8762 # Try to locate tool using the code snippet 8763 for ac_prog in printf 8764 do 8765 # Extract the first word of "$ac_prog", so it can be a program name with args. 8766 set dummy $ac_prog; ac_word=$2 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8768 $as_echo_n "checking for $ac_word... " >&6; } 8769 if ${ac_cv_path_PRINTF+:} false; then : 8770 $as_echo_n "(cached) " >&6 8771 else 8772 case $PRINTF in 8773 [\\/]* | ?:[\\/]*) 8774 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8775 ;; 8776 *) 8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8778 for as_dir in $PATH 8779 do 8780 IFS=$as_save_IFS 8781 test -z "$as_dir" && as_dir=. 8782 for ac_exec_ext in '' $ac_executable_extensions; do 8783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8784 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8786 break 2 8787 fi 8788 done 8789 done 8790 IFS=$as_save_IFS 8791 8792 ;; 8793 esac 8794 fi 8795 PRINTF=$ac_cv_path_PRINTF 8796 if test -n "$PRINTF"; then 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8798 $as_echo "$PRINTF" >&6; } 8799 else 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8801 $as_echo "no" >&6; } 8802 fi 8803 8804 8805 test -n "$PRINTF" && break 8806 done 8807 8808 else 8809 # If it succeeded, then it was overridden by the user. We will use it 8810 # for the tool. 8811 8812 # First remove it from the list of overridden variables, so we can test 8813 # for unknown variables in the end. 8814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8815 8816 # Check if the provided tool contains a complete path. 8817 tool_specified="$PRINTF" 8818 tool_basename="${tool_specified##*/}" 8819 if test "x$tool_basename" = "x$tool_specified"; then 8820 # A command without a complete path is provided, search $PATH. 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8822 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8823 # Extract the first word of "$tool_basename", so it can be a program name with args. 8824 set dummy $tool_basename; ac_word=$2 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8826 $as_echo_n "checking for $ac_word... " >&6; } 8827 if ${ac_cv_path_PRINTF+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829 else 8830 case $PRINTF in 8831 [\\/]* | ?:[\\/]*) 8832 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8833 ;; 8834 *) 8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8836 for as_dir in $PATH 8837 do 8838 IFS=$as_save_IFS 8839 test -z "$as_dir" && as_dir=. 8840 for ac_exec_ext in '' $ac_executable_extensions; do 8841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8842 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8844 break 2 8845 fi 8846 done 8847 done 8848 IFS=$as_save_IFS 8849 8850 ;; 8851 esac 8852 fi 8853 PRINTF=$ac_cv_path_PRINTF 8854 if test -n "$PRINTF"; then 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8856 $as_echo "$PRINTF" >&6; } 8857 else 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8859 $as_echo "no" >&6; } 8860 fi 8861 8862 8863 if test "x$PRINTF" = x; then 8864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8865 fi 8866 else 8867 # Otherwise we believe it is a complete path. Use it as it is. 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8869 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8871 $as_echo_n "checking for PRINTF... " >&6; } 8872 if test ! -x "$tool_specified"; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8874 $as_echo "not found" >&6; } 8875 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8876 fi 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8878 $as_echo "$tool_specified" >&6; } 8879 fi 8880 fi 8881 fi 8882 8883 8884 8885 if test "x$PRINTF" = x; then 8886 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8887 fi 8888 8889 8890 8891 8892 8893 # Publish this variable in the help. 8894 8895 8896 if test "x$RM" = x; then 8897 # The variable is not set by user, try to locate tool using the code snippet 8898 for ac_prog in rm 8899 do 8900 # Extract the first word of "$ac_prog", so it can be a program name with args. 8901 set dummy $ac_prog; ac_word=$2 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8903 $as_echo_n "checking for $ac_word... " >&6; } 8904 if ${ac_cv_path_RM+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906 else 8907 case $RM in 8908 [\\/]* | ?:[\\/]*) 8909 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8910 ;; 8911 *) 8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8913 for as_dir in $PATH 8914 do 8915 IFS=$as_save_IFS 8916 test -z "$as_dir" && as_dir=. 8917 for ac_exec_ext in '' $ac_executable_extensions; do 8918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8919 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8921 break 2 8922 fi 8923 done 8924 done 8925 IFS=$as_save_IFS 8926 8927 ;; 8928 esac 8929 fi 8930 RM=$ac_cv_path_RM 8931 if test -n "$RM"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8933 $as_echo "$RM" >&6; } 8934 else 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8936 $as_echo "no" >&6; } 8937 fi 8938 8939 8940 test -n "$RM" && break 8941 done 8942 8943 else 8944 # The variable is set, but is it from the command line or the environment? 8945 8946 # Try to remove the string !RM! from our list. 8947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8949 # If it failed, the variable was not from the command line. Ignore it, 8950 # but warn the user (except for BASH, which is always set by the calling BASH). 8951 if test "xRM" != xBASH; then 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8953 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8954 fi 8955 # Try to locate tool using the code snippet 8956 for ac_prog in rm 8957 do 8958 # Extract the first word of "$ac_prog", so it can be a program name with args. 8959 set dummy $ac_prog; ac_word=$2 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8961 $as_echo_n "checking for $ac_word... " >&6; } 8962 if ${ac_cv_path_RM+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964 else 8965 case $RM in 8966 [\\/]* | ?:[\\/]*) 8967 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8968 ;; 8969 *) 8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8971 for as_dir in $PATH 8972 do 8973 IFS=$as_save_IFS 8974 test -z "$as_dir" && as_dir=. 8975 for ac_exec_ext in '' $ac_executable_extensions; do 8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8977 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8979 break 2 8980 fi 8981 done 8982 done 8983 IFS=$as_save_IFS 8984 8985 ;; 8986 esac 8987 fi 8988 RM=$ac_cv_path_RM 8989 if test -n "$RM"; then 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8991 $as_echo "$RM" >&6; } 8992 else 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8994 $as_echo "no" >&6; } 8995 fi 8996 8997 8998 test -n "$RM" && break 8999 done 9000 9001 else 9002 # If it succeeded, then it was overridden by the user. We will use it 9003 # for the tool. 9004 9005 # First remove it from the list of overridden variables, so we can test 9006 # for unknown variables in the end. 9007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9008 9009 # Check if the provided tool contains a complete path. 9010 tool_specified="$RM" 9011 tool_basename="${tool_specified##*/}" 9012 if test "x$tool_basename" = "x$tool_specified"; then 9013 # A command without a complete path is provided, search $PATH. 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9015 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9016 # Extract the first word of "$tool_basename", so it can be a program name with args. 9017 set dummy $tool_basename; ac_word=$2 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9019 $as_echo_n "checking for $ac_word... " >&6; } 9020 if ${ac_cv_path_RM+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022 else 9023 case $RM in 9024 [\\/]* | ?:[\\/]*) 9025 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9026 ;; 9027 *) 9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9029 for as_dir in $PATH 9030 do 9031 IFS=$as_save_IFS 9032 test -z "$as_dir" && as_dir=. 9033 for ac_exec_ext in '' $ac_executable_extensions; do 9034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9035 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9037 break 2 9038 fi 9039 done 9040 done 9041 IFS=$as_save_IFS 9042 9043 ;; 9044 esac 9045 fi 9046 RM=$ac_cv_path_RM 9047 if test -n "$RM"; then 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9049 $as_echo "$RM" >&6; } 9050 else 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9052 $as_echo "no" >&6; } 9053 fi 9054 9055 9056 if test "x$RM" = x; then 9057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9058 fi 9059 else 9060 # Otherwise we believe it is a complete path. Use it as it is. 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9062 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9064 $as_echo_n "checking for RM... " >&6; } 9065 if test ! -x "$tool_specified"; then 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9067 $as_echo "not found" >&6; } 9068 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9069 fi 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9071 $as_echo "$tool_specified" >&6; } 9072 fi 9073 fi 9074 fi 9075 9076 9077 9078 if test "x$RM" = x; then 9079 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9080 fi 9081 9082 9083 9084 9085 9086 # Publish this variable in the help. 9087 9088 9089 if test "x$SH" = x; then 9090 # The variable is not set by user, try to locate tool using the code snippet 9091 for ac_prog in sh 9092 do 9093 # Extract the first word of "$ac_prog", so it can be a program name with args. 9094 set dummy $ac_prog; ac_word=$2 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9096 $as_echo_n "checking for $ac_word... " >&6; } 9097 if ${ac_cv_path_SH+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099 else 9100 case $SH in 9101 [\\/]* | ?:[\\/]*) 9102 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9103 ;; 9104 *) 9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9106 for as_dir in $PATH 9107 do 9108 IFS=$as_save_IFS 9109 test -z "$as_dir" && as_dir=. 9110 for ac_exec_ext in '' $ac_executable_extensions; do 9111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9112 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9114 break 2 9115 fi 9116 done 9117 done 9118 IFS=$as_save_IFS 9119 9120 ;; 9121 esac 9122 fi 9123 SH=$ac_cv_path_SH 9124 if test -n "$SH"; then 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9126 $as_echo "$SH" >&6; } 9127 else 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9129 $as_echo "no" >&6; } 9130 fi 9131 9132 9133 test -n "$SH" && break 9134 done 9135 9136 else 9137 # The variable is set, but is it from the command line or the environment? 9138 9139 # Try to remove the string !SH! from our list. 9140 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9141 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9142 # If it failed, the variable was not from the command line. Ignore it, 9143 # but warn the user (except for BASH, which is always set by the calling BASH). 9144 if test "xSH" != xBASH; then 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9146 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9147 fi 9148 # Try to locate tool using the code snippet 9149 for ac_prog in sh 9150 do 9151 # Extract the first word of "$ac_prog", so it can be a program name with args. 9152 set dummy $ac_prog; ac_word=$2 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9154 $as_echo_n "checking for $ac_word... " >&6; } 9155 if ${ac_cv_path_SH+:} false; then : 9156 $as_echo_n "(cached) " >&6 9157 else 9158 case $SH in 9159 [\\/]* | ?:[\\/]*) 9160 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9161 ;; 9162 *) 9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9164 for as_dir in $PATH 9165 do 9166 IFS=$as_save_IFS 9167 test -z "$as_dir" && as_dir=. 9168 for ac_exec_ext in '' $ac_executable_extensions; do 9169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9170 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9172 break 2 9173 fi 9174 done 9175 done 9176 IFS=$as_save_IFS 9177 9178 ;; 9179 esac 9180 fi 9181 SH=$ac_cv_path_SH 9182 if test -n "$SH"; then 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9184 $as_echo "$SH" >&6; } 9185 else 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9187 $as_echo "no" >&6; } 9188 fi 9189 9190 9191 test -n "$SH" && break 9192 done 9193 9194 else 9195 # If it succeeded, then it was overridden by the user. We will use it 9196 # for the tool. 9197 9198 # First remove it from the list of overridden variables, so we can test 9199 # for unknown variables in the end. 9200 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9201 9202 # Check if the provided tool contains a complete path. 9203 tool_specified="$SH" 9204 tool_basename="${tool_specified##*/}" 9205 if test "x$tool_basename" = "x$tool_specified"; then 9206 # A command without a complete path is provided, search $PATH. 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9208 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9209 # Extract the first word of "$tool_basename", so it can be a program name with args. 9210 set dummy $tool_basename; ac_word=$2 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9212 $as_echo_n "checking for $ac_word... " >&6; } 9213 if ${ac_cv_path_SH+:} false; then : 9214 $as_echo_n "(cached) " >&6 9215 else 9216 case $SH in 9217 [\\/]* | ?:[\\/]*) 9218 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9219 ;; 9220 *) 9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9222 for as_dir in $PATH 9223 do 9224 IFS=$as_save_IFS 9225 test -z "$as_dir" && as_dir=. 9226 for ac_exec_ext in '' $ac_executable_extensions; do 9227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9228 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9230 break 2 9231 fi 9232 done 9233 done 9234 IFS=$as_save_IFS 9235 9236 ;; 9237 esac 9238 fi 9239 SH=$ac_cv_path_SH 9240 if test -n "$SH"; then 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9242 $as_echo "$SH" >&6; } 9243 else 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9245 $as_echo "no" >&6; } 9246 fi 9247 9248 9249 if test "x$SH" = x; then 9250 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9251 fi 9252 else 9253 # Otherwise we believe it is a complete path. Use it as it is. 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9255 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9257 $as_echo_n "checking for SH... " >&6; } 9258 if test ! -x "$tool_specified"; then 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9260 $as_echo "not found" >&6; } 9261 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9262 fi 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9264 $as_echo "$tool_specified" >&6; } 9265 fi 9266 fi 9267 fi 9268 9269 9270 9271 if test "x$SH" = x; then 9272 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9273 fi 9274 9275 9276 9277 9278 9279 # Publish this variable in the help. 9280 9281 9282 if test "x$SORT" = x; then 9283 # The variable is not set by user, try to locate tool using the code snippet 9284 for ac_prog in sort 9285 do 9286 # Extract the first word of "$ac_prog", so it can be a program name with args. 9287 set dummy $ac_prog; ac_word=$2 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9289 $as_echo_n "checking for $ac_word... " >&6; } 9290 if ${ac_cv_path_SORT+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292 else 9293 case $SORT in 9294 [\\/]* | ?:[\\/]*) 9295 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9296 ;; 9297 *) 9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9299 for as_dir in $PATH 9300 do 9301 IFS=$as_save_IFS 9302 test -z "$as_dir" && as_dir=. 9303 for ac_exec_ext in '' $ac_executable_extensions; do 9304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9305 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9307 break 2 9308 fi 9309 done 9310 done 9311 IFS=$as_save_IFS 9312 9313 ;; 9314 esac 9315 fi 9316 SORT=$ac_cv_path_SORT 9317 if test -n "$SORT"; then 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9319 $as_echo "$SORT" >&6; } 9320 else 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9322 $as_echo "no" >&6; } 9323 fi 9324 9325 9326 test -n "$SORT" && break 9327 done 9328 9329 else 9330 # The variable is set, but is it from the command line or the environment? 9331 9332 # Try to remove the string !SORT! from our list. 9333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9335 # If it failed, the variable was not from the command line. Ignore it, 9336 # but warn the user (except for BASH, which is always set by the calling BASH). 9337 if test "xSORT" != xBASH; then 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9339 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9340 fi 9341 # Try to locate tool using the code snippet 9342 for ac_prog in sort 9343 do 9344 # Extract the first word of "$ac_prog", so it can be a program name with args. 9345 set dummy $ac_prog; ac_word=$2 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9347 $as_echo_n "checking for $ac_word... " >&6; } 9348 if ${ac_cv_path_SORT+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350 else 9351 case $SORT in 9352 [\\/]* | ?:[\\/]*) 9353 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9354 ;; 9355 *) 9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9357 for as_dir in $PATH 9358 do 9359 IFS=$as_save_IFS 9360 test -z "$as_dir" && as_dir=. 9361 for ac_exec_ext in '' $ac_executable_extensions; do 9362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9363 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9365 break 2 9366 fi 9367 done 9368 done 9369 IFS=$as_save_IFS 9370 9371 ;; 9372 esac 9373 fi 9374 SORT=$ac_cv_path_SORT 9375 if test -n "$SORT"; then 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9377 $as_echo "$SORT" >&6; } 9378 else 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9380 $as_echo "no" >&6; } 9381 fi 9382 9383 9384 test -n "$SORT" && break 9385 done 9386 9387 else 9388 # If it succeeded, then it was overridden by the user. We will use it 9389 # for the tool. 9390 9391 # First remove it from the list of overridden variables, so we can test 9392 # for unknown variables in the end. 9393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9394 9395 # Check if the provided tool contains a complete path. 9396 tool_specified="$SORT" 9397 tool_basename="${tool_specified##*/}" 9398 if test "x$tool_basename" = "x$tool_specified"; then 9399 # A command without a complete path is provided, search $PATH. 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9401 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9402 # Extract the first word of "$tool_basename", so it can be a program name with args. 9403 set dummy $tool_basename; ac_word=$2 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9405 $as_echo_n "checking for $ac_word... " >&6; } 9406 if ${ac_cv_path_SORT+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408 else 9409 case $SORT in 9410 [\\/]* | ?:[\\/]*) 9411 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9412 ;; 9413 *) 9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9415 for as_dir in $PATH 9416 do 9417 IFS=$as_save_IFS 9418 test -z "$as_dir" && as_dir=. 9419 for ac_exec_ext in '' $ac_executable_extensions; do 9420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9421 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9423 break 2 9424 fi 9425 done 9426 done 9427 IFS=$as_save_IFS 9428 9429 ;; 9430 esac 9431 fi 9432 SORT=$ac_cv_path_SORT 9433 if test -n "$SORT"; then 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9435 $as_echo "$SORT" >&6; } 9436 else 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9438 $as_echo "no" >&6; } 9439 fi 9440 9441 9442 if test "x$SORT" = x; then 9443 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9444 fi 9445 else 9446 # Otherwise we believe it is a complete path. Use it as it is. 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9448 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9450 $as_echo_n "checking for SORT... " >&6; } 9451 if test ! -x "$tool_specified"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9453 $as_echo "not found" >&6; } 9454 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9455 fi 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9457 $as_echo "$tool_specified" >&6; } 9458 fi 9459 fi 9460 fi 9461 9462 9463 9464 if test "x$SORT" = x; then 9465 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9466 fi 9467 9468 9469 9470 9471 9472 # Publish this variable in the help. 9473 9474 9475 if test "x$TAIL" = x; then 9476 # The variable is not set by user, try to locate tool using the code snippet 9477 for ac_prog in tail 9478 do 9479 # Extract the first word of "$ac_prog", so it can be a program name with args. 9480 set dummy $ac_prog; ac_word=$2 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9482 $as_echo_n "checking for $ac_word... " >&6; } 9483 if ${ac_cv_path_TAIL+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485 else 9486 case $TAIL in 9487 [\\/]* | ?:[\\/]*) 9488 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9489 ;; 9490 *) 9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9492 for as_dir in $PATH 9493 do 9494 IFS=$as_save_IFS 9495 test -z "$as_dir" && as_dir=. 9496 for ac_exec_ext in '' $ac_executable_extensions; do 9497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9498 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9500 break 2 9501 fi 9502 done 9503 done 9504 IFS=$as_save_IFS 9505 9506 ;; 9507 esac 9508 fi 9509 TAIL=$ac_cv_path_TAIL 9510 if test -n "$TAIL"; then 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9512 $as_echo "$TAIL" >&6; } 9513 else 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9515 $as_echo "no" >&6; } 9516 fi 9517 9518 9519 test -n "$TAIL" && break 9520 done 9521 9522 else 9523 # The variable is set, but is it from the command line or the environment? 9524 9525 # Try to remove the string !TAIL! from our list. 9526 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9527 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9528 # If it failed, the variable was not from the command line. Ignore it, 9529 # but warn the user (except for BASH, which is always set by the calling BASH). 9530 if test "xTAIL" != xBASH; then 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9532 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9533 fi 9534 # Try to locate tool using the code snippet 9535 for ac_prog in tail 9536 do 9537 # Extract the first word of "$ac_prog", so it can be a program name with args. 9538 set dummy $ac_prog; ac_word=$2 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9540 $as_echo_n "checking for $ac_word... " >&6; } 9541 if ${ac_cv_path_TAIL+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543 else 9544 case $TAIL in 9545 [\\/]* | ?:[\\/]*) 9546 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9547 ;; 9548 *) 9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9550 for as_dir in $PATH 9551 do 9552 IFS=$as_save_IFS 9553 test -z "$as_dir" && as_dir=. 9554 for ac_exec_ext in '' $ac_executable_extensions; do 9555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9556 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9558 break 2 9559 fi 9560 done 9561 done 9562 IFS=$as_save_IFS 9563 9564 ;; 9565 esac 9566 fi 9567 TAIL=$ac_cv_path_TAIL 9568 if test -n "$TAIL"; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9570 $as_echo "$TAIL" >&6; } 9571 else 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9573 $as_echo "no" >&6; } 9574 fi 9575 9576 9577 test -n "$TAIL" && break 9578 done 9579 9580 else 9581 # If it succeeded, then it was overridden by the user. We will use it 9582 # for the tool. 9583 9584 # First remove it from the list of overridden variables, so we can test 9585 # for unknown variables in the end. 9586 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9587 9588 # Check if the provided tool contains a complete path. 9589 tool_specified="$TAIL" 9590 tool_basename="${tool_specified##*/}" 9591 if test "x$tool_basename" = "x$tool_specified"; then 9592 # A command without a complete path is provided, search $PATH. 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9594 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9595 # Extract the first word of "$tool_basename", so it can be a program name with args. 9596 set dummy $tool_basename; ac_word=$2 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9598 $as_echo_n "checking for $ac_word... " >&6; } 9599 if ${ac_cv_path_TAIL+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601 else 9602 case $TAIL in 9603 [\\/]* | ?:[\\/]*) 9604 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9605 ;; 9606 *) 9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9608 for as_dir in $PATH 9609 do 9610 IFS=$as_save_IFS 9611 test -z "$as_dir" && as_dir=. 9612 for ac_exec_ext in '' $ac_executable_extensions; do 9613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9614 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9616 break 2 9617 fi 9618 done 9619 done 9620 IFS=$as_save_IFS 9621 9622 ;; 9623 esac 9624 fi 9625 TAIL=$ac_cv_path_TAIL 9626 if test -n "$TAIL"; then 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9628 $as_echo "$TAIL" >&6; } 9629 else 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9631 $as_echo "no" >&6; } 9632 fi 9633 9634 9635 if test "x$TAIL" = x; then 9636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9637 fi 9638 else 9639 # Otherwise we believe it is a complete path. Use it as it is. 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9641 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9643 $as_echo_n "checking for TAIL... " >&6; } 9644 if test ! -x "$tool_specified"; then 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9646 $as_echo "not found" >&6; } 9647 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9648 fi 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9650 $as_echo "$tool_specified" >&6; } 9651 fi 9652 fi 9653 fi 9654 9655 9656 9657 if test "x$TAIL" = x; then 9658 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9659 fi 9660 9661 9662 9663 9664 9665 # Publish this variable in the help. 9666 9667 9668 if test "x$TAR" = x; then 9669 # The variable is not set by user, try to locate tool using the code snippet 9670 for ac_prog in tar 9671 do 9672 # Extract the first word of "$ac_prog", so it can be a program name with args. 9673 set dummy $ac_prog; ac_word=$2 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9675 $as_echo_n "checking for $ac_word... " >&6; } 9676 if ${ac_cv_path_TAR+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678 else 9679 case $TAR in 9680 [\\/]* | ?:[\\/]*) 9681 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9682 ;; 9683 *) 9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9685 for as_dir in $PATH 9686 do 9687 IFS=$as_save_IFS 9688 test -z "$as_dir" && as_dir=. 9689 for ac_exec_ext in '' $ac_executable_extensions; do 9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9691 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9693 break 2 9694 fi 9695 done 9696 done 9697 IFS=$as_save_IFS 9698 9699 ;; 9700 esac 9701 fi 9702 TAR=$ac_cv_path_TAR 9703 if test -n "$TAR"; then 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9705 $as_echo "$TAR" >&6; } 9706 else 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9708 $as_echo "no" >&6; } 9709 fi 9710 9711 9712 test -n "$TAR" && break 9713 done 9714 9715 else 9716 # The variable is set, but is it from the command line or the environment? 9717 9718 # Try to remove the string !TAR! from our list. 9719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9721 # If it failed, the variable was not from the command line. Ignore it, 9722 # but warn the user (except for BASH, which is always set by the calling BASH). 9723 if test "xTAR" != xBASH; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9725 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9726 fi 9727 # Try to locate tool using the code snippet 9728 for ac_prog in tar 9729 do 9730 # Extract the first word of "$ac_prog", so it can be a program name with args. 9731 set dummy $ac_prog; ac_word=$2 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9733 $as_echo_n "checking for $ac_word... " >&6; } 9734 if ${ac_cv_path_TAR+:} false; then : 9735 $as_echo_n "(cached) " >&6 9736 else 9737 case $TAR in 9738 [\\/]* | ?:[\\/]*) 9739 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9740 ;; 9741 *) 9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9743 for as_dir in $PATH 9744 do 9745 IFS=$as_save_IFS 9746 test -z "$as_dir" && as_dir=. 9747 for ac_exec_ext in '' $ac_executable_extensions; do 9748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9749 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9751 break 2 9752 fi 9753 done 9754 done 9755 IFS=$as_save_IFS 9756 9757 ;; 9758 esac 9759 fi 9760 TAR=$ac_cv_path_TAR 9761 if test -n "$TAR"; then 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9763 $as_echo "$TAR" >&6; } 9764 else 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9766 $as_echo "no" >&6; } 9767 fi 9768 9769 9770 test -n "$TAR" && break 9771 done 9772 9773 else 9774 # If it succeeded, then it was overridden by the user. We will use it 9775 # for the tool. 9776 9777 # First remove it from the list of overridden variables, so we can test 9778 # for unknown variables in the end. 9779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9780 9781 # Check if the provided tool contains a complete path. 9782 tool_specified="$TAR" 9783 tool_basename="${tool_specified##*/}" 9784 if test "x$tool_basename" = "x$tool_specified"; then 9785 # A command without a complete path is provided, search $PATH. 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9787 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9788 # Extract the first word of "$tool_basename", so it can be a program name with args. 9789 set dummy $tool_basename; ac_word=$2 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9791 $as_echo_n "checking for $ac_word... " >&6; } 9792 if ${ac_cv_path_TAR+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794 else 9795 case $TAR in 9796 [\\/]* | ?:[\\/]*) 9797 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9798 ;; 9799 *) 9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9801 for as_dir in $PATH 9802 do 9803 IFS=$as_save_IFS 9804 test -z "$as_dir" && as_dir=. 9805 for ac_exec_ext in '' $ac_executable_extensions; do 9806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9807 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9809 break 2 9810 fi 9811 done 9812 done 9813 IFS=$as_save_IFS 9814 9815 ;; 9816 esac 9817 fi 9818 TAR=$ac_cv_path_TAR 9819 if test -n "$TAR"; then 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9821 $as_echo "$TAR" >&6; } 9822 else 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9824 $as_echo "no" >&6; } 9825 fi 9826 9827 9828 if test "x$TAR" = x; then 9829 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9830 fi 9831 else 9832 # Otherwise we believe it is a complete path. Use it as it is. 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9834 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9836 $as_echo_n "checking for TAR... " >&6; } 9837 if test ! -x "$tool_specified"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9839 $as_echo "not found" >&6; } 9840 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9841 fi 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9843 $as_echo "$tool_specified" >&6; } 9844 fi 9845 fi 9846 fi 9847 9848 9849 9850 if test "x$TAR" = x; then 9851 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9852 fi 9853 9854 9855 9856 9857 9858 # Publish this variable in the help. 9859 9860 9861 if test "x$TEE" = x; then 9862 # The variable is not set by user, try to locate tool using the code snippet 9863 for ac_prog in tee 9864 do 9865 # Extract the first word of "$ac_prog", so it can be a program name with args. 9866 set dummy $ac_prog; ac_word=$2 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9868 $as_echo_n "checking for $ac_word... " >&6; } 9869 if ${ac_cv_path_TEE+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871 else 9872 case $TEE in 9873 [\\/]* | ?:[\\/]*) 9874 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9875 ;; 9876 *) 9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9878 for as_dir in $PATH 9879 do 9880 IFS=$as_save_IFS 9881 test -z "$as_dir" && as_dir=. 9882 for ac_exec_ext in '' $ac_executable_extensions; do 9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9884 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9886 break 2 9887 fi 9888 done 9889 done 9890 IFS=$as_save_IFS 9891 9892 ;; 9893 esac 9894 fi 9895 TEE=$ac_cv_path_TEE 9896 if test -n "$TEE"; then 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9898 $as_echo "$TEE" >&6; } 9899 else 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9901 $as_echo "no" >&6; } 9902 fi 9903 9904 9905 test -n "$TEE" && break 9906 done 9907 9908 else 9909 # The variable is set, but is it from the command line or the environment? 9910 9911 # Try to remove the string !TEE! from our list. 9912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9914 # If it failed, the variable was not from the command line. Ignore it, 9915 # but warn the user (except for BASH, which is always set by the calling BASH). 9916 if test "xTEE" != xBASH; then 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9918 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9919 fi 9920 # Try to locate tool using the code snippet 9921 for ac_prog in tee 9922 do 9923 # Extract the first word of "$ac_prog", so it can be a program name with args. 9924 set dummy $ac_prog; ac_word=$2 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9926 $as_echo_n "checking for $ac_word... " >&6; } 9927 if ${ac_cv_path_TEE+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929 else 9930 case $TEE in 9931 [\\/]* | ?:[\\/]*) 9932 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9933 ;; 9934 *) 9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9936 for as_dir in $PATH 9937 do 9938 IFS=$as_save_IFS 9939 test -z "$as_dir" && as_dir=. 9940 for ac_exec_ext in '' $ac_executable_extensions; do 9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9942 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9944 break 2 9945 fi 9946 done 9947 done 9948 IFS=$as_save_IFS 9949 9950 ;; 9951 esac 9952 fi 9953 TEE=$ac_cv_path_TEE 9954 if test -n "$TEE"; then 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9956 $as_echo "$TEE" >&6; } 9957 else 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9959 $as_echo "no" >&6; } 9960 fi 9961 9962 9963 test -n "$TEE" && break 9964 done 9965 9966 else 9967 # If it succeeded, then it was overridden by the user. We will use it 9968 # for the tool. 9969 9970 # First remove it from the list of overridden variables, so we can test 9971 # for unknown variables in the end. 9972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9973 9974 # Check if the provided tool contains a complete path. 9975 tool_specified="$TEE" 9976 tool_basename="${tool_specified##*/}" 9977 if test "x$tool_basename" = "x$tool_specified"; then 9978 # A command without a complete path is provided, search $PATH. 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9980 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9981 # Extract the first word of "$tool_basename", so it can be a program name with args. 9982 set dummy $tool_basename; ac_word=$2 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9984 $as_echo_n "checking for $ac_word... " >&6; } 9985 if ${ac_cv_path_TEE+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987 else 9988 case $TEE in 9989 [\\/]* | ?:[\\/]*) 9990 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9991 ;; 9992 *) 9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9994 for as_dir in $PATH 9995 do 9996 IFS=$as_save_IFS 9997 test -z "$as_dir" && as_dir=. 9998 for ac_exec_ext in '' $ac_executable_extensions; do 9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10000 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10002 break 2 10003 fi 10004 done 10005 done 10006 IFS=$as_save_IFS 10007 10008 ;; 10009 esac 10010 fi 10011 TEE=$ac_cv_path_TEE 10012 if test -n "$TEE"; then 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10014 $as_echo "$TEE" >&6; } 10015 else 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10017 $as_echo "no" >&6; } 10018 fi 10019 10020 10021 if test "x$TEE" = x; then 10022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10023 fi 10024 else 10025 # Otherwise we believe it is a complete path. Use it as it is. 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10027 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10029 $as_echo_n "checking for TEE... " >&6; } 10030 if test ! -x "$tool_specified"; then 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10032 $as_echo "not found" >&6; } 10033 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10034 fi 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10036 $as_echo "$tool_specified" >&6; } 10037 fi 10038 fi 10039 fi 10040 10041 10042 10043 if test "x$TEE" = x; then 10044 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10045 fi 10046 10047 10048 10049 10050 10051 # Publish this variable in the help. 10052 10053 10054 if test "x$TOUCH" = x; then 10055 # The variable is not set by user, try to locate tool using the code snippet 10056 for ac_prog in touch 10057 do 10058 # Extract the first word of "$ac_prog", so it can be a program name with args. 10059 set dummy $ac_prog; ac_word=$2 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10061 $as_echo_n "checking for $ac_word... " >&6; } 10062 if ${ac_cv_path_TOUCH+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064 else 10065 case $TOUCH in 10066 [\\/]* | ?:[\\/]*) 10067 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10068 ;; 10069 *) 10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10071 for as_dir in $PATH 10072 do 10073 IFS=$as_save_IFS 10074 test -z "$as_dir" && as_dir=. 10075 for ac_exec_ext in '' $ac_executable_extensions; do 10076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10077 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10079 break 2 10080 fi 10081 done 10082 done 10083 IFS=$as_save_IFS 10084 10085 ;; 10086 esac 10087 fi 10088 TOUCH=$ac_cv_path_TOUCH 10089 if test -n "$TOUCH"; then 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10091 $as_echo "$TOUCH" >&6; } 10092 else 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10094 $as_echo "no" >&6; } 10095 fi 10096 10097 10098 test -n "$TOUCH" && break 10099 done 10100 10101 else 10102 # The variable is set, but is it from the command line or the environment? 10103 10104 # Try to remove the string !TOUCH! from our list. 10105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10107 # If it failed, the variable was not from the command line. Ignore it, 10108 # but warn the user (except for BASH, which is always set by the calling BASH). 10109 if test "xTOUCH" != xBASH; then 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10111 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10112 fi 10113 # Try to locate tool using the code snippet 10114 for ac_prog in touch 10115 do 10116 # Extract the first word of "$ac_prog", so it can be a program name with args. 10117 set dummy $ac_prog; ac_word=$2 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10119 $as_echo_n "checking for $ac_word... " >&6; } 10120 if ${ac_cv_path_TOUCH+:} false; then : 10121 $as_echo_n "(cached) " >&6 10122 else 10123 case $TOUCH in 10124 [\\/]* | ?:[\\/]*) 10125 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10126 ;; 10127 *) 10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10129 for as_dir in $PATH 10130 do 10131 IFS=$as_save_IFS 10132 test -z "$as_dir" && as_dir=. 10133 for ac_exec_ext in '' $ac_executable_extensions; do 10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10135 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10137 break 2 10138 fi 10139 done 10140 done 10141 IFS=$as_save_IFS 10142 10143 ;; 10144 esac 10145 fi 10146 TOUCH=$ac_cv_path_TOUCH 10147 if test -n "$TOUCH"; then 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10149 $as_echo "$TOUCH" >&6; } 10150 else 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10152 $as_echo "no" >&6; } 10153 fi 10154 10155 10156 test -n "$TOUCH" && break 10157 done 10158 10159 else 10160 # If it succeeded, then it was overridden by the user. We will use it 10161 # for the tool. 10162 10163 # First remove it from the list of overridden variables, so we can test 10164 # for unknown variables in the end. 10165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10166 10167 # Check if the provided tool contains a complete path. 10168 tool_specified="$TOUCH" 10169 tool_basename="${tool_specified##*/}" 10170 if test "x$tool_basename" = "x$tool_specified"; then 10171 # A command without a complete path is provided, search $PATH. 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10173 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10174 # Extract the first word of "$tool_basename", so it can be a program name with args. 10175 set dummy $tool_basename; ac_word=$2 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10177 $as_echo_n "checking for $ac_word... " >&6; } 10178 if ${ac_cv_path_TOUCH+:} false; then : 10179 $as_echo_n "(cached) " >&6 10180 else 10181 case $TOUCH in 10182 [\\/]* | ?:[\\/]*) 10183 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10184 ;; 10185 *) 10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10187 for as_dir in $PATH 10188 do 10189 IFS=$as_save_IFS 10190 test -z "$as_dir" && as_dir=. 10191 for ac_exec_ext in '' $ac_executable_extensions; do 10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10193 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10195 break 2 10196 fi 10197 done 10198 done 10199 IFS=$as_save_IFS 10200 10201 ;; 10202 esac 10203 fi 10204 TOUCH=$ac_cv_path_TOUCH 10205 if test -n "$TOUCH"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10207 $as_echo "$TOUCH" >&6; } 10208 else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210 $as_echo "no" >&6; } 10211 fi 10212 10213 10214 if test "x$TOUCH" = x; then 10215 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10216 fi 10217 else 10218 # Otherwise we believe it is a complete path. Use it as it is. 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10220 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10222 $as_echo_n "checking for TOUCH... " >&6; } 10223 if test ! -x "$tool_specified"; then 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10225 $as_echo "not found" >&6; } 10226 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10227 fi 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10229 $as_echo "$tool_specified" >&6; } 10230 fi 10231 fi 10232 fi 10233 10234 10235 10236 if test "x$TOUCH" = x; then 10237 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10238 fi 10239 10240 10241 10242 10243 10244 # Publish this variable in the help. 10245 10246 10247 if test "x$TR" = x; then 10248 # The variable is not set by user, try to locate tool using the code snippet 10249 for ac_prog in tr 10250 do 10251 # Extract the first word of "$ac_prog", so it can be a program name with args. 10252 set dummy $ac_prog; ac_word=$2 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10254 $as_echo_n "checking for $ac_word... " >&6; } 10255 if ${ac_cv_path_TR+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257 else 10258 case $TR in 10259 [\\/]* | ?:[\\/]*) 10260 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10261 ;; 10262 *) 10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10264 for as_dir in $PATH 10265 do 10266 IFS=$as_save_IFS 10267 test -z "$as_dir" && as_dir=. 10268 for ac_exec_ext in '' $ac_executable_extensions; do 10269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10270 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10272 break 2 10273 fi 10274 done 10275 done 10276 IFS=$as_save_IFS 10277 10278 ;; 10279 esac 10280 fi 10281 TR=$ac_cv_path_TR 10282 if test -n "$TR"; then 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10284 $as_echo "$TR" >&6; } 10285 else 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10287 $as_echo "no" >&6; } 10288 fi 10289 10290 10291 test -n "$TR" && break 10292 done 10293 10294 else 10295 # The variable is set, but is it from the command line or the environment? 10296 10297 # Try to remove the string !TR! from our list. 10298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10300 # If it failed, the variable was not from the command line. Ignore it, 10301 # but warn the user (except for BASH, which is always set by the calling BASH). 10302 if test "xTR" != xBASH; then 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10304 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10305 fi 10306 # Try to locate tool using the code snippet 10307 for ac_prog in tr 10308 do 10309 # Extract the first word of "$ac_prog", so it can be a program name with args. 10310 set dummy $ac_prog; ac_word=$2 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10312 $as_echo_n "checking for $ac_word... " >&6; } 10313 if ${ac_cv_path_TR+:} false; then : 10314 $as_echo_n "(cached) " >&6 10315 else 10316 case $TR in 10317 [\\/]* | ?:[\\/]*) 10318 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10319 ;; 10320 *) 10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10322 for as_dir in $PATH 10323 do 10324 IFS=$as_save_IFS 10325 test -z "$as_dir" && as_dir=. 10326 for ac_exec_ext in '' $ac_executable_extensions; do 10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10328 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10330 break 2 10331 fi 10332 done 10333 done 10334 IFS=$as_save_IFS 10335 10336 ;; 10337 esac 10338 fi 10339 TR=$ac_cv_path_TR 10340 if test -n "$TR"; then 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10342 $as_echo "$TR" >&6; } 10343 else 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10345 $as_echo "no" >&6; } 10346 fi 10347 10348 10349 test -n "$TR" && break 10350 done 10351 10352 else 10353 # If it succeeded, then it was overridden by the user. We will use it 10354 # for the tool. 10355 10356 # First remove it from the list of overridden variables, so we can test 10357 # for unknown variables in the end. 10358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10359 10360 # Check if the provided tool contains a complete path. 10361 tool_specified="$TR" 10362 tool_basename="${tool_specified##*/}" 10363 if test "x$tool_basename" = "x$tool_specified"; then 10364 # A command without a complete path is provided, search $PATH. 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10366 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10367 # Extract the first word of "$tool_basename", so it can be a program name with args. 10368 set dummy $tool_basename; ac_word=$2 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10370 $as_echo_n "checking for $ac_word... " >&6; } 10371 if ${ac_cv_path_TR+:} false; then : 10372 $as_echo_n "(cached) " >&6 10373 else 10374 case $TR in 10375 [\\/]* | ?:[\\/]*) 10376 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10377 ;; 10378 *) 10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10380 for as_dir in $PATH 10381 do 10382 IFS=$as_save_IFS 10383 test -z "$as_dir" && as_dir=. 10384 for ac_exec_ext in '' $ac_executable_extensions; do 10385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10386 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10388 break 2 10389 fi 10390 done 10391 done 10392 IFS=$as_save_IFS 10393 10394 ;; 10395 esac 10396 fi 10397 TR=$ac_cv_path_TR 10398 if test -n "$TR"; then 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10400 $as_echo "$TR" >&6; } 10401 else 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10403 $as_echo "no" >&6; } 10404 fi 10405 10406 10407 if test "x$TR" = x; then 10408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10409 fi 10410 else 10411 # Otherwise we believe it is a complete path. Use it as it is. 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10413 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10415 $as_echo_n "checking for TR... " >&6; } 10416 if test ! -x "$tool_specified"; then 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10418 $as_echo "not found" >&6; } 10419 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10420 fi 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10422 $as_echo "$tool_specified" >&6; } 10423 fi 10424 fi 10425 fi 10426 10427 10428 10429 if test "x$TR" = x; then 10430 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10431 fi 10432 10433 10434 10435 10436 10437 # Publish this variable in the help. 10438 10439 10440 if test "x$UNAME" = x; then 10441 # The variable is not set by user, try to locate tool using the code snippet 10442 for ac_prog in uname 10443 do 10444 # Extract the first word of "$ac_prog", so it can be a program name with args. 10445 set dummy $ac_prog; ac_word=$2 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10447 $as_echo_n "checking for $ac_word... " >&6; } 10448 if ${ac_cv_path_UNAME+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450 else 10451 case $UNAME in 10452 [\\/]* | ?:[\\/]*) 10453 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10454 ;; 10455 *) 10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10457 for as_dir in $PATH 10458 do 10459 IFS=$as_save_IFS 10460 test -z "$as_dir" && as_dir=. 10461 for ac_exec_ext in '' $ac_executable_extensions; do 10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10463 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10465 break 2 10466 fi 10467 done 10468 done 10469 IFS=$as_save_IFS 10470 10471 ;; 10472 esac 10473 fi 10474 UNAME=$ac_cv_path_UNAME 10475 if test -n "$UNAME"; then 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10477 $as_echo "$UNAME" >&6; } 10478 else 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10480 $as_echo "no" >&6; } 10481 fi 10482 10483 10484 test -n "$UNAME" && break 10485 done 10486 10487 else 10488 # The variable is set, but is it from the command line or the environment? 10489 10490 # Try to remove the string !UNAME! from our list. 10491 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10492 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10493 # If it failed, the variable was not from the command line. Ignore it, 10494 # but warn the user (except for BASH, which is always set by the calling BASH). 10495 if test "xUNAME" != xBASH; then 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10497 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10498 fi 10499 # Try to locate tool using the code snippet 10500 for ac_prog in uname 10501 do 10502 # Extract the first word of "$ac_prog", so it can be a program name with args. 10503 set dummy $ac_prog; ac_word=$2 10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10505 $as_echo_n "checking for $ac_word... " >&6; } 10506 if ${ac_cv_path_UNAME+:} false; then : 10507 $as_echo_n "(cached) " >&6 10508 else 10509 case $UNAME in 10510 [\\/]* | ?:[\\/]*) 10511 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10512 ;; 10513 *) 10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10515 for as_dir in $PATH 10516 do 10517 IFS=$as_save_IFS 10518 test -z "$as_dir" && as_dir=. 10519 for ac_exec_ext in '' $ac_executable_extensions; do 10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10521 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10523 break 2 10524 fi 10525 done 10526 done 10527 IFS=$as_save_IFS 10528 10529 ;; 10530 esac 10531 fi 10532 UNAME=$ac_cv_path_UNAME 10533 if test -n "$UNAME"; then 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10535 $as_echo "$UNAME" >&6; } 10536 else 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10538 $as_echo "no" >&6; } 10539 fi 10540 10541 10542 test -n "$UNAME" && break 10543 done 10544 10545 else 10546 # If it succeeded, then it was overridden by the user. We will use it 10547 # for the tool. 10548 10549 # First remove it from the list of overridden variables, so we can test 10550 # for unknown variables in the end. 10551 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10552 10553 # Check if the provided tool contains a complete path. 10554 tool_specified="$UNAME" 10555 tool_basename="${tool_specified##*/}" 10556 if test "x$tool_basename" = "x$tool_specified"; then 10557 # A command without a complete path is provided, search $PATH. 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10559 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10560 # Extract the first word of "$tool_basename", so it can be a program name with args. 10561 set dummy $tool_basename; ac_word=$2 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10563 $as_echo_n "checking for $ac_word... " >&6; } 10564 if ${ac_cv_path_UNAME+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566 else 10567 case $UNAME in 10568 [\\/]* | ?:[\\/]*) 10569 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10570 ;; 10571 *) 10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10573 for as_dir in $PATH 10574 do 10575 IFS=$as_save_IFS 10576 test -z "$as_dir" && as_dir=. 10577 for ac_exec_ext in '' $ac_executable_extensions; do 10578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10579 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10581 break 2 10582 fi 10583 done 10584 done 10585 IFS=$as_save_IFS 10586 10587 ;; 10588 esac 10589 fi 10590 UNAME=$ac_cv_path_UNAME 10591 if test -n "$UNAME"; then 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10593 $as_echo "$UNAME" >&6; } 10594 else 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10596 $as_echo "no" >&6; } 10597 fi 10598 10599 10600 if test "x$UNAME" = x; then 10601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10602 fi 10603 else 10604 # Otherwise we believe it is a complete path. Use it as it is. 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10606 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10608 $as_echo_n "checking for UNAME... " >&6; } 10609 if test ! -x "$tool_specified"; then 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10611 $as_echo "not found" >&6; } 10612 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10613 fi 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10615 $as_echo "$tool_specified" >&6; } 10616 fi 10617 fi 10618 fi 10619 10620 10621 10622 if test "x$UNAME" = x; then 10623 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10624 fi 10625 10626 10627 10628 10629 10630 # Publish this variable in the help. 10631 10632 10633 if test "x$UNIQ" = x; then 10634 # The variable is not set by user, try to locate tool using the code snippet 10635 for ac_prog in uniq 10636 do 10637 # Extract the first word of "$ac_prog", so it can be a program name with args. 10638 set dummy $ac_prog; ac_word=$2 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10640 $as_echo_n "checking for $ac_word... " >&6; } 10641 if ${ac_cv_path_UNIQ+:} false; then : 10642 $as_echo_n "(cached) " >&6 10643 else 10644 case $UNIQ in 10645 [\\/]* | ?:[\\/]*) 10646 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10647 ;; 10648 *) 10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10650 for as_dir in $PATH 10651 do 10652 IFS=$as_save_IFS 10653 test -z "$as_dir" && as_dir=. 10654 for ac_exec_ext in '' $ac_executable_extensions; do 10655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10656 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10658 break 2 10659 fi 10660 done 10661 done 10662 IFS=$as_save_IFS 10663 10664 ;; 10665 esac 10666 fi 10667 UNIQ=$ac_cv_path_UNIQ 10668 if test -n "$UNIQ"; then 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10670 $as_echo "$UNIQ" >&6; } 10671 else 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10673 $as_echo "no" >&6; } 10674 fi 10675 10676 10677 test -n "$UNIQ" && break 10678 done 10679 10680 else 10681 # The variable is set, but is it from the command line or the environment? 10682 10683 # Try to remove the string !UNIQ! from our list. 10684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10686 # If it failed, the variable was not from the command line. Ignore it, 10687 # but warn the user (except for BASH, which is always set by the calling BASH). 10688 if test "xUNIQ" != xBASH; then 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10690 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10691 fi 10692 # Try to locate tool using the code snippet 10693 for ac_prog in uniq 10694 do 10695 # Extract the first word of "$ac_prog", so it can be a program name with args. 10696 set dummy $ac_prog; ac_word=$2 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10698 $as_echo_n "checking for $ac_word... " >&6; } 10699 if ${ac_cv_path_UNIQ+:} false; then : 10700 $as_echo_n "(cached) " >&6 10701 else 10702 case $UNIQ in 10703 [\\/]* | ?:[\\/]*) 10704 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10705 ;; 10706 *) 10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10708 for as_dir in $PATH 10709 do 10710 IFS=$as_save_IFS 10711 test -z "$as_dir" && as_dir=. 10712 for ac_exec_ext in '' $ac_executable_extensions; do 10713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10714 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10716 break 2 10717 fi 10718 done 10719 done 10720 IFS=$as_save_IFS 10721 10722 ;; 10723 esac 10724 fi 10725 UNIQ=$ac_cv_path_UNIQ 10726 if test -n "$UNIQ"; then 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10728 $as_echo "$UNIQ" >&6; } 10729 else 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10731 $as_echo "no" >&6; } 10732 fi 10733 10734 10735 test -n "$UNIQ" && break 10736 done 10737 10738 else 10739 # If it succeeded, then it was overridden by the user. We will use it 10740 # for the tool. 10741 10742 # First remove it from the list of overridden variables, so we can test 10743 # for unknown variables in the end. 10744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10745 10746 # Check if the provided tool contains a complete path. 10747 tool_specified="$UNIQ" 10748 tool_basename="${tool_specified##*/}" 10749 if test "x$tool_basename" = "x$tool_specified"; then 10750 # A command without a complete path is provided, search $PATH. 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10752 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10753 # Extract the first word of "$tool_basename", so it can be a program name with args. 10754 set dummy $tool_basename; ac_word=$2 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10756 $as_echo_n "checking for $ac_word... " >&6; } 10757 if ${ac_cv_path_UNIQ+:} false; then : 10758 $as_echo_n "(cached) " >&6 10759 else 10760 case $UNIQ in 10761 [\\/]* | ?:[\\/]*) 10762 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10763 ;; 10764 *) 10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10766 for as_dir in $PATH 10767 do 10768 IFS=$as_save_IFS 10769 test -z "$as_dir" && as_dir=. 10770 for ac_exec_ext in '' $ac_executable_extensions; do 10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10772 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10774 break 2 10775 fi 10776 done 10777 done 10778 IFS=$as_save_IFS 10779 10780 ;; 10781 esac 10782 fi 10783 UNIQ=$ac_cv_path_UNIQ 10784 if test -n "$UNIQ"; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10786 $as_echo "$UNIQ" >&6; } 10787 else 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10789 $as_echo "no" >&6; } 10790 fi 10791 10792 10793 if test "x$UNIQ" = x; then 10794 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10795 fi 10796 else 10797 # Otherwise we believe it is a complete path. Use it as it is. 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10799 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10801 $as_echo_n "checking for UNIQ... " >&6; } 10802 if test ! -x "$tool_specified"; then 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10804 $as_echo "not found" >&6; } 10805 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10806 fi 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10808 $as_echo "$tool_specified" >&6; } 10809 fi 10810 fi 10811 fi 10812 10813 10814 10815 if test "x$UNIQ" = x; then 10816 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10817 fi 10818 10819 10820 10821 10822 10823 # Publish this variable in the help. 10824 10825 10826 if test "x$WC" = x; then 10827 # The variable is not set by user, try to locate tool using the code snippet 10828 for ac_prog in wc 10829 do 10830 # Extract the first word of "$ac_prog", so it can be a program name with args. 10831 set dummy $ac_prog; ac_word=$2 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10833 $as_echo_n "checking for $ac_word... " >&6; } 10834 if ${ac_cv_path_WC+:} false; then : 10835 $as_echo_n "(cached) " >&6 10836 else 10837 case $WC in 10838 [\\/]* | ?:[\\/]*) 10839 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10840 ;; 10841 *) 10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10843 for as_dir in $PATH 10844 do 10845 IFS=$as_save_IFS 10846 test -z "$as_dir" && as_dir=. 10847 for ac_exec_ext in '' $ac_executable_extensions; do 10848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10849 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10851 break 2 10852 fi 10853 done 10854 done 10855 IFS=$as_save_IFS 10856 10857 ;; 10858 esac 10859 fi 10860 WC=$ac_cv_path_WC 10861 if test -n "$WC"; then 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10863 $as_echo "$WC" >&6; } 10864 else 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10866 $as_echo "no" >&6; } 10867 fi 10868 10869 10870 test -n "$WC" && break 10871 done 10872 10873 else 10874 # The variable is set, but is it from the command line or the environment? 10875 10876 # Try to remove the string !WC! from our list. 10877 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10878 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10879 # If it failed, the variable was not from the command line. Ignore it, 10880 # but warn the user (except for BASH, which is always set by the calling BASH). 10881 if test "xWC" != xBASH; then 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10883 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10884 fi 10885 # Try to locate tool using the code snippet 10886 for ac_prog in wc 10887 do 10888 # Extract the first word of "$ac_prog", so it can be a program name with args. 10889 set dummy $ac_prog; ac_word=$2 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10891 $as_echo_n "checking for $ac_word... " >&6; } 10892 if ${ac_cv_path_WC+:} false; then : 10893 $as_echo_n "(cached) " >&6 10894 else 10895 case $WC in 10896 [\\/]* | ?:[\\/]*) 10897 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10898 ;; 10899 *) 10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10901 for as_dir in $PATH 10902 do 10903 IFS=$as_save_IFS 10904 test -z "$as_dir" && as_dir=. 10905 for ac_exec_ext in '' $ac_executable_extensions; do 10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10907 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10909 break 2 10910 fi 10911 done 10912 done 10913 IFS=$as_save_IFS 10914 10915 ;; 10916 esac 10917 fi 10918 WC=$ac_cv_path_WC 10919 if test -n "$WC"; then 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10921 $as_echo "$WC" >&6; } 10922 else 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10924 $as_echo "no" >&6; } 10925 fi 10926 10927 10928 test -n "$WC" && break 10929 done 10930 10931 else 10932 # If it succeeded, then it was overridden by the user. We will use it 10933 # for the tool. 10934 10935 # First remove it from the list of overridden variables, so we can test 10936 # for unknown variables in the end. 10937 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10938 10939 # Check if the provided tool contains a complete path. 10940 tool_specified="$WC" 10941 tool_basename="${tool_specified##*/}" 10942 if test "x$tool_basename" = "x$tool_specified"; then 10943 # A command without a complete path is provided, search $PATH. 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10945 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10946 # Extract the first word of "$tool_basename", so it can be a program name with args. 10947 set dummy $tool_basename; ac_word=$2 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10949 $as_echo_n "checking for $ac_word... " >&6; } 10950 if ${ac_cv_path_WC+:} false; then : 10951 $as_echo_n "(cached) " >&6 10952 else 10953 case $WC in 10954 [\\/]* | ?:[\\/]*) 10955 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10956 ;; 10957 *) 10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10959 for as_dir in $PATH 10960 do 10961 IFS=$as_save_IFS 10962 test -z "$as_dir" && as_dir=. 10963 for ac_exec_ext in '' $ac_executable_extensions; do 10964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10965 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10967 break 2 10968 fi 10969 done 10970 done 10971 IFS=$as_save_IFS 10972 10973 ;; 10974 esac 10975 fi 10976 WC=$ac_cv_path_WC 10977 if test -n "$WC"; then 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10979 $as_echo "$WC" >&6; } 10980 else 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10982 $as_echo "no" >&6; } 10983 fi 10984 10985 10986 if test "x$WC" = x; then 10987 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10988 fi 10989 else 10990 # Otherwise we believe it is a complete path. Use it as it is. 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10992 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10994 $as_echo_n "checking for WC... " >&6; } 10995 if test ! -x "$tool_specified"; then 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10997 $as_echo "not found" >&6; } 10998 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10999 fi 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11001 $as_echo "$tool_specified" >&6; } 11002 fi 11003 fi 11004 fi 11005 11006 11007 11008 if test "x$WC" = x; then 11009 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11010 fi 11011 11012 11013 11014 11015 11016 # Publish this variable in the help. 11017 11018 11019 if test "x$WHICH" = x; then 11020 # The variable is not set by user, try to locate tool using the code snippet 11021 for ac_prog in which 11022 do 11023 # Extract the first word of "$ac_prog", so it can be a program name with args. 11024 set dummy $ac_prog; ac_word=$2 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11026 $as_echo_n "checking for $ac_word... " >&6; } 11027 if ${ac_cv_path_WHICH+:} false; then : 11028 $as_echo_n "(cached) " >&6 11029 else 11030 case $WHICH in 11031 [\\/]* | ?:[\\/]*) 11032 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11033 ;; 11034 *) 11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11036 for as_dir in $PATH 11037 do 11038 IFS=$as_save_IFS 11039 test -z "$as_dir" && as_dir=. 11040 for ac_exec_ext in '' $ac_executable_extensions; do 11041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11042 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11044 break 2 11045 fi 11046 done 11047 done 11048 IFS=$as_save_IFS 11049 11050 ;; 11051 esac 11052 fi 11053 WHICH=$ac_cv_path_WHICH 11054 if test -n "$WHICH"; then 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11056 $as_echo "$WHICH" >&6; } 11057 else 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11059 $as_echo "no" >&6; } 11060 fi 11061 11062 11063 test -n "$WHICH" && break 11064 done 11065 11066 else 11067 # The variable is set, but is it from the command line or the environment? 11068 11069 # Try to remove the string !WHICH! from our list. 11070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11072 # If it failed, the variable was not from the command line. Ignore it, 11073 # but warn the user (except for BASH, which is always set by the calling BASH). 11074 if test "xWHICH" != xBASH; then 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11076 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11077 fi 11078 # Try to locate tool using the code snippet 11079 for ac_prog in which 11080 do 11081 # Extract the first word of "$ac_prog", so it can be a program name with args. 11082 set dummy $ac_prog; ac_word=$2 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11084 $as_echo_n "checking for $ac_word... " >&6; } 11085 if ${ac_cv_path_WHICH+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087 else 11088 case $WHICH in 11089 [\\/]* | ?:[\\/]*) 11090 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11091 ;; 11092 *) 11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11094 for as_dir in $PATH 11095 do 11096 IFS=$as_save_IFS 11097 test -z "$as_dir" && as_dir=. 11098 for ac_exec_ext in '' $ac_executable_extensions; do 11099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11100 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11102 break 2 11103 fi 11104 done 11105 done 11106 IFS=$as_save_IFS 11107 11108 ;; 11109 esac 11110 fi 11111 WHICH=$ac_cv_path_WHICH 11112 if test -n "$WHICH"; then 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11114 $as_echo "$WHICH" >&6; } 11115 else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11117 $as_echo "no" >&6; } 11118 fi 11119 11120 11121 test -n "$WHICH" && break 11122 done 11123 11124 else 11125 # If it succeeded, then it was overridden by the user. We will use it 11126 # for the tool. 11127 11128 # First remove it from the list of overridden variables, so we can test 11129 # for unknown variables in the end. 11130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11131 11132 # Check if the provided tool contains a complete path. 11133 tool_specified="$WHICH" 11134 tool_basename="${tool_specified##*/}" 11135 if test "x$tool_basename" = "x$tool_specified"; then 11136 # A command without a complete path is provided, search $PATH. 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11138 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11139 # Extract the first word of "$tool_basename", so it can be a program name with args. 11140 set dummy $tool_basename; ac_word=$2 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11142 $as_echo_n "checking for $ac_word... " >&6; } 11143 if ${ac_cv_path_WHICH+:} false; then : 11144 $as_echo_n "(cached) " >&6 11145 else 11146 case $WHICH in 11147 [\\/]* | ?:[\\/]*) 11148 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11149 ;; 11150 *) 11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11152 for as_dir in $PATH 11153 do 11154 IFS=$as_save_IFS 11155 test -z "$as_dir" && as_dir=. 11156 for ac_exec_ext in '' $ac_executable_extensions; do 11157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11158 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11160 break 2 11161 fi 11162 done 11163 done 11164 IFS=$as_save_IFS 11165 11166 ;; 11167 esac 11168 fi 11169 WHICH=$ac_cv_path_WHICH 11170 if test -n "$WHICH"; then 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11172 $as_echo "$WHICH" >&6; } 11173 else 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11175 $as_echo "no" >&6; } 11176 fi 11177 11178 11179 if test "x$WHICH" = x; then 11180 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11181 fi 11182 else 11183 # Otherwise we believe it is a complete path. Use it as it is. 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11185 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11187 $as_echo_n "checking for WHICH... " >&6; } 11188 if test ! -x "$tool_specified"; then 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11190 $as_echo "not found" >&6; } 11191 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11192 fi 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11194 $as_echo "$tool_specified" >&6; } 11195 fi 11196 fi 11197 fi 11198 11199 11200 11201 if test "x$WHICH" = x; then 11202 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11203 fi 11204 11205 11206 11207 11208 11209 # Publish this variable in the help. 11210 11211 11212 if test "x$XARGS" = x; then 11213 # The variable is not set by user, try to locate tool using the code snippet 11214 for ac_prog in xargs 11215 do 11216 # Extract the first word of "$ac_prog", so it can be a program name with args. 11217 set dummy $ac_prog; ac_word=$2 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11219 $as_echo_n "checking for $ac_word... " >&6; } 11220 if ${ac_cv_path_XARGS+:} false; then : 11221 $as_echo_n "(cached) " >&6 11222 else 11223 case $XARGS in 11224 [\\/]* | ?:[\\/]*) 11225 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11226 ;; 11227 *) 11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11229 for as_dir in $PATH 11230 do 11231 IFS=$as_save_IFS 11232 test -z "$as_dir" && as_dir=. 11233 for ac_exec_ext in '' $ac_executable_extensions; do 11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11235 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11237 break 2 11238 fi 11239 done 11240 done 11241 IFS=$as_save_IFS 11242 11243 ;; 11244 esac 11245 fi 11246 XARGS=$ac_cv_path_XARGS 11247 if test -n "$XARGS"; then 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11249 $as_echo "$XARGS" >&6; } 11250 else 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11252 $as_echo "no" >&6; } 11253 fi 11254 11255 11256 test -n "$XARGS" && break 11257 done 11258 11259 else 11260 # The variable is set, but is it from the command line or the environment? 11261 11262 # Try to remove the string !XARGS! from our list. 11263 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11264 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11265 # If it failed, the variable was not from the command line. Ignore it, 11266 # but warn the user (except for BASH, which is always set by the calling BASH). 11267 if test "xXARGS" != xBASH; then 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11269 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11270 fi 11271 # Try to locate tool using the code snippet 11272 for ac_prog in xargs 11273 do 11274 # Extract the first word of "$ac_prog", so it can be a program name with args. 11275 set dummy $ac_prog; ac_word=$2 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11277 $as_echo_n "checking for $ac_word... " >&6; } 11278 if ${ac_cv_path_XARGS+:} false; then : 11279 $as_echo_n "(cached) " >&6 11280 else 11281 case $XARGS in 11282 [\\/]* | ?:[\\/]*) 11283 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11284 ;; 11285 *) 11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11287 for as_dir in $PATH 11288 do 11289 IFS=$as_save_IFS 11290 test -z "$as_dir" && as_dir=. 11291 for ac_exec_ext in '' $ac_executable_extensions; do 11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11293 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11295 break 2 11296 fi 11297 done 11298 done 11299 IFS=$as_save_IFS 11300 11301 ;; 11302 esac 11303 fi 11304 XARGS=$ac_cv_path_XARGS 11305 if test -n "$XARGS"; then 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11307 $as_echo "$XARGS" >&6; } 11308 else 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11310 $as_echo "no" >&6; } 11311 fi 11312 11313 11314 test -n "$XARGS" && break 11315 done 11316 11317 else 11318 # If it succeeded, then it was overridden by the user. We will use it 11319 # for the tool. 11320 11321 # First remove it from the list of overridden variables, so we can test 11322 # for unknown variables in the end. 11323 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11324 11325 # Check if the provided tool contains a complete path. 11326 tool_specified="$XARGS" 11327 tool_basename="${tool_specified##*/}" 11328 if test "x$tool_basename" = "x$tool_specified"; then 11329 # A command without a complete path is provided, search $PATH. 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11331 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11332 # Extract the first word of "$tool_basename", so it can be a program name with args. 11333 set dummy $tool_basename; ac_word=$2 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11335 $as_echo_n "checking for $ac_word... " >&6; } 11336 if ${ac_cv_path_XARGS+:} false; then : 11337 $as_echo_n "(cached) " >&6 11338 else 11339 case $XARGS in 11340 [\\/]* | ?:[\\/]*) 11341 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11342 ;; 11343 *) 11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11345 for as_dir in $PATH 11346 do 11347 IFS=$as_save_IFS 11348 test -z "$as_dir" && as_dir=. 11349 for ac_exec_ext in '' $ac_executable_extensions; do 11350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11351 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11353 break 2 11354 fi 11355 done 11356 done 11357 IFS=$as_save_IFS 11358 11359 ;; 11360 esac 11361 fi 11362 XARGS=$ac_cv_path_XARGS 11363 if test -n "$XARGS"; then 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11365 $as_echo "$XARGS" >&6; } 11366 else 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11368 $as_echo "no" >&6; } 11369 fi 11370 11371 11372 if test "x$XARGS" = x; then 11373 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11374 fi 11375 else 11376 # Otherwise we believe it is a complete path. Use it as it is. 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11378 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11380 $as_echo_n "checking for XARGS... " >&6; } 11381 if test ! -x "$tool_specified"; then 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11383 $as_echo "not found" >&6; } 11384 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11385 fi 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11387 $as_echo "$tool_specified" >&6; } 11388 fi 11389 fi 11390 fi 11391 11392 11393 11394 if test "x$XARGS" = x; then 11395 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11396 fi 11397 11398 11399 11400 # Then required tools that require some special treatment. 11401 11402 11403 # Publish this variable in the help. 11404 11405 11406 if test "x$AWK" = x; then 11407 # The variable is not set by user, try to locate tool using the code snippet 11408 for ac_prog in gawk mawk nawk awk 11409 do 11410 # Extract the first word of "$ac_prog", so it can be a program name with args. 11411 set dummy $ac_prog; ac_word=$2 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11413 $as_echo_n "checking for $ac_word... " >&6; } 11414 if ${ac_cv_prog_AWK+:} false; then : 11415 $as_echo_n "(cached) " >&6 11416 else 11417 if test -n "$AWK"; then 11418 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11419 else 11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11421 for as_dir in $PATH 11422 do 11423 IFS=$as_save_IFS 11424 test -z "$as_dir" && as_dir=. 11425 for ac_exec_ext in '' $ac_executable_extensions; do 11426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11427 ac_cv_prog_AWK="$ac_prog" 11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11429 break 2 11430 fi 11431 done 11432 done 11433 IFS=$as_save_IFS 11434 11435 fi 11436 fi 11437 AWK=$ac_cv_prog_AWK 11438 if test -n "$AWK"; then 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11440 $as_echo "$AWK" >&6; } 11441 else 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11443 $as_echo "no" >&6; } 11444 fi 11445 11446 11447 test -n "$AWK" && break 11448 done 11449 11450 else 11451 # The variable is set, but is it from the command line or the environment? 11452 11453 # Try to remove the string !AWK! from our list. 11454 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11455 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11456 # If it failed, the variable was not from the command line. Ignore it, 11457 # but warn the user (except for BASH, which is always set by the calling BASH). 11458 if test "xAWK" != xBASH; then 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11460 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11461 fi 11462 # Try to locate tool using the code snippet 11463 for ac_prog in gawk mawk nawk awk 11464 do 11465 # Extract the first word of "$ac_prog", so it can be a program name with args. 11466 set dummy $ac_prog; ac_word=$2 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11468 $as_echo_n "checking for $ac_word... " >&6; } 11469 if ${ac_cv_prog_AWK+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471 else 11472 if test -n "$AWK"; then 11473 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11474 else 11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11476 for as_dir in $PATH 11477 do 11478 IFS=$as_save_IFS 11479 test -z "$as_dir" && as_dir=. 11480 for ac_exec_ext in '' $ac_executable_extensions; do 11481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11482 ac_cv_prog_AWK="$ac_prog" 11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11484 break 2 11485 fi 11486 done 11487 done 11488 IFS=$as_save_IFS 11489 11490 fi 11491 fi 11492 AWK=$ac_cv_prog_AWK 11493 if test -n "$AWK"; then 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11495 $as_echo "$AWK" >&6; } 11496 else 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11498 $as_echo "no" >&6; } 11499 fi 11500 11501 11502 test -n "$AWK" && break 11503 done 11504 11505 else 11506 # If it succeeded, then it was overridden by the user. We will use it 11507 # for the tool. 11508 11509 # First remove it from the list of overridden variables, so we can test 11510 # for unknown variables in the end. 11511 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11512 11513 # Check if the provided tool contains a complete path. 11514 tool_specified="$AWK" 11515 tool_basename="${tool_specified##*/}" 11516 if test "x$tool_basename" = "x$tool_specified"; then 11517 # A command without a complete path is provided, search $PATH. 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11519 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11520 # Extract the first word of "$tool_basename", so it can be a program name with args. 11521 set dummy $tool_basename; ac_word=$2 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11523 $as_echo_n "checking for $ac_word... " >&6; } 11524 if ${ac_cv_path_AWK+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526 else 11527 case $AWK in 11528 [\\/]* | ?:[\\/]*) 11529 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11530 ;; 11531 *) 11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11533 for as_dir in $PATH 11534 do 11535 IFS=$as_save_IFS 11536 test -z "$as_dir" && as_dir=. 11537 for ac_exec_ext in '' $ac_executable_extensions; do 11538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11539 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11541 break 2 11542 fi 11543 done 11544 done 11545 IFS=$as_save_IFS 11546 11547 ;; 11548 esac 11549 fi 11550 AWK=$ac_cv_path_AWK 11551 if test -n "$AWK"; then 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11553 $as_echo "$AWK" >&6; } 11554 else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556 $as_echo "no" >&6; } 11557 fi 11558 11559 11560 if test "x$AWK" = x; then 11561 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11562 fi 11563 else 11564 # Otherwise we believe it is a complete path. Use it as it is. 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11566 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11568 $as_echo_n "checking for AWK... " >&6; } 11569 if test ! -x "$tool_specified"; then 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11571 $as_echo "not found" >&6; } 11572 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11573 fi 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11575 $as_echo "$tool_specified" >&6; } 11576 fi 11577 fi 11578 fi 11579 11580 11581 if test "x$AWK" = x; then 11582 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11583 fi 11584 11585 11586 11587 11588 # Publish this variable in the help. 11589 11590 11591 if test "x$GREP" = x; then 11592 # The variable is not set by user, try to locate tool using the code snippet 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11594 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11595 if ${ac_cv_path_GREP+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597 else 11598 if test -z "$GREP"; then 11599 ac_path_GREP_found=false 11600 # Loop through the user's path and test for each of PROGNAME-LIST 11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11603 do 11604 IFS=$as_save_IFS 11605 test -z "$as_dir" && as_dir=. 11606 for ac_prog in grep ggrep; do 11607 for ac_exec_ext in '' $ac_executable_extensions; do 11608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11609 as_fn_executable_p "$ac_path_GREP" || continue 11610 # Check for GNU ac_path_GREP and select it if it is found. 11611 # Check for GNU $ac_path_GREP 11612 case `"$ac_path_GREP" --version 2>&1` in 11613 *GNU*) 11614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11615 *) 11616 ac_count=0 11617 $as_echo_n 0123456789 >"conftest.in" 11618 while : 11619 do 11620 cat "conftest.in" "conftest.in" >"conftest.tmp" 11621 mv "conftest.tmp" "conftest.in" 11622 cp "conftest.in" "conftest.nl" 11623 $as_echo 'GREP' >> "conftest.nl" 11624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11626 as_fn_arith $ac_count + 1 && ac_count=$as_val 11627 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11628 # Best one so far, save it but keep looking for a better one 11629 ac_cv_path_GREP="$ac_path_GREP" 11630 ac_path_GREP_max=$ac_count 11631 fi 11632 # 10*(2^10) chars as input seems more than enough 11633 test $ac_count -gt 10 && break 11634 done 11635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11636 esac 11637 11638 $ac_path_GREP_found && break 3 11639 done 11640 done 11641 done 11642 IFS=$as_save_IFS 11643 if test -z "$ac_cv_path_GREP"; then 11644 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11645 fi 11646 else 11647 ac_cv_path_GREP=$GREP 11648 fi 11649 11650 fi 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11652 $as_echo "$ac_cv_path_GREP" >&6; } 11653 GREP="$ac_cv_path_GREP" 11654 11655 11656 else 11657 # The variable is set, but is it from the command line or the environment? 11658 11659 # Try to remove the string !GREP! from our list. 11660 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11661 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11662 # If it failed, the variable was not from the command line. Ignore it, 11663 # but warn the user (except for BASH, which is always set by the calling BASH). 11664 if test "xGREP" != xBASH; then 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11666 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11667 fi 11668 # Try to locate tool using the code snippet 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11670 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11671 if ${ac_cv_path_GREP+:} false; then : 11672 $as_echo_n "(cached) " >&6 11673 else 11674 if test -z "$GREP"; then 11675 ac_path_GREP_found=false 11676 # Loop through the user's path and test for each of PROGNAME-LIST 11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11679 do 11680 IFS=$as_save_IFS 11681 test -z "$as_dir" && as_dir=. 11682 for ac_prog in grep ggrep; do 11683 for ac_exec_ext in '' $ac_executable_extensions; do 11684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11685 as_fn_executable_p "$ac_path_GREP" || continue 11686 # Check for GNU ac_path_GREP and select it if it is found. 11687 # Check for GNU $ac_path_GREP 11688 case `"$ac_path_GREP" --version 2>&1` in 11689 *GNU*) 11690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11691 *) 11692 ac_count=0 11693 $as_echo_n 0123456789 >"conftest.in" 11694 while : 11695 do 11696 cat "conftest.in" "conftest.in" >"conftest.tmp" 11697 mv "conftest.tmp" "conftest.in" 11698 cp "conftest.in" "conftest.nl" 11699 $as_echo 'GREP' >> "conftest.nl" 11700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11702 as_fn_arith $ac_count + 1 && ac_count=$as_val 11703 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11704 # Best one so far, save it but keep looking for a better one 11705 ac_cv_path_GREP="$ac_path_GREP" 11706 ac_path_GREP_max=$ac_count 11707 fi 11708 # 10*(2^10) chars as input seems more than enough 11709 test $ac_count -gt 10 && break 11710 done 11711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11712 esac 11713 11714 $ac_path_GREP_found && break 3 11715 done 11716 done 11717 done 11718 IFS=$as_save_IFS 11719 if test -z "$ac_cv_path_GREP"; then 11720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11721 fi 11722 else 11723 ac_cv_path_GREP=$GREP 11724 fi 11725 11726 fi 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11728 $as_echo "$ac_cv_path_GREP" >&6; } 11729 GREP="$ac_cv_path_GREP" 11730 11731 11732 else 11733 # If it succeeded, then it was overridden by the user. We will use it 11734 # for the tool. 11735 11736 # First remove it from the list of overridden variables, so we can test 11737 # for unknown variables in the end. 11738 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11739 11740 # Check if the provided tool contains a complete path. 11741 tool_specified="$GREP" 11742 tool_basename="${tool_specified##*/}" 11743 if test "x$tool_basename" = "x$tool_specified"; then 11744 # A command without a complete path is provided, search $PATH. 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11746 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11747 # Extract the first word of "$tool_basename", so it can be a program name with args. 11748 set dummy $tool_basename; ac_word=$2 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11750 $as_echo_n "checking for $ac_word... " >&6; } 11751 if ${ac_cv_path_GREP+:} false; then : 11752 $as_echo_n "(cached) " >&6 11753 else 11754 case $GREP in 11755 [\\/]* | ?:[\\/]*) 11756 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11757 ;; 11758 *) 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760 for as_dir in $PATH 11761 do 11762 IFS=$as_save_IFS 11763 test -z "$as_dir" && as_dir=. 11764 for ac_exec_ext in '' $ac_executable_extensions; do 11765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11766 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11768 break 2 11769 fi 11770 done 11771 done 11772 IFS=$as_save_IFS 11773 11774 ;; 11775 esac 11776 fi 11777 GREP=$ac_cv_path_GREP 11778 if test -n "$GREP"; then 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11780 $as_echo "$GREP" >&6; } 11781 else 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11783 $as_echo "no" >&6; } 11784 fi 11785 11786 11787 if test "x$GREP" = x; then 11788 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11789 fi 11790 else 11791 # Otherwise we believe it is a complete path. Use it as it is. 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11793 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11795 $as_echo_n "checking for GREP... " >&6; } 11796 if test ! -x "$tool_specified"; then 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11798 $as_echo "not found" >&6; } 11799 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11800 fi 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11802 $as_echo "$tool_specified" >&6; } 11803 fi 11804 fi 11805 fi 11806 11807 11808 if test "x$GREP" = x; then 11809 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11810 fi 11811 11812 11813 11814 11815 # Publish this variable in the help. 11816 11817 11818 if test "x$EGREP" = x; then 11819 # The variable is not set by user, try to locate tool using the code snippet 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11821 $as_echo_n "checking for egrep... " >&6; } 11822 if ${ac_cv_path_EGREP+:} false; then : 11823 $as_echo_n "(cached) " >&6 11824 else 11825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11826 then ac_cv_path_EGREP="$GREP -E" 11827 else 11828 if test -z "$EGREP"; then 11829 ac_path_EGREP_found=false 11830 # Loop through the user's path and test for each of PROGNAME-LIST 11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11833 do 11834 IFS=$as_save_IFS 11835 test -z "$as_dir" && as_dir=. 11836 for ac_prog in egrep; do 11837 for ac_exec_ext in '' $ac_executable_extensions; do 11838 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11839 as_fn_executable_p "$ac_path_EGREP" || continue 11840 # Check for GNU ac_path_EGREP and select it if it is found. 11841 # Check for GNU $ac_path_EGREP 11842 case `"$ac_path_EGREP" --version 2>&1` in 11843 *GNU*) 11844 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11845 *) 11846 ac_count=0 11847 $as_echo_n 0123456789 >"conftest.in" 11848 while : 11849 do 11850 cat "conftest.in" "conftest.in" >"conftest.tmp" 11851 mv "conftest.tmp" "conftest.in" 11852 cp "conftest.in" "conftest.nl" 11853 $as_echo 'EGREP' >> "conftest.nl" 11854 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11856 as_fn_arith $ac_count + 1 && ac_count=$as_val 11857 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11858 # Best one so far, save it but keep looking for a better one 11859 ac_cv_path_EGREP="$ac_path_EGREP" 11860 ac_path_EGREP_max=$ac_count 11861 fi 11862 # 10*(2^10) chars as input seems more than enough 11863 test $ac_count -gt 10 && break 11864 done 11865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11866 esac 11867 11868 $ac_path_EGREP_found && break 3 11869 done 11870 done 11871 done 11872 IFS=$as_save_IFS 11873 if test -z "$ac_cv_path_EGREP"; then 11874 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11875 fi 11876 else 11877 ac_cv_path_EGREP=$EGREP 11878 fi 11879 11880 fi 11881 fi 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11883 $as_echo "$ac_cv_path_EGREP" >&6; } 11884 EGREP="$ac_cv_path_EGREP" 11885 11886 11887 else 11888 # The variable is set, but is it from the command line or the environment? 11889 11890 # Try to remove the string !EGREP! from our list. 11891 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11892 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11893 # If it failed, the variable was not from the command line. Ignore it, 11894 # but warn the user (except for BASH, which is always set by the calling BASH). 11895 if test "xEGREP" != xBASH; then 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11897 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11898 fi 11899 # Try to locate tool using the code snippet 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11901 $as_echo_n "checking for egrep... " >&6; } 11902 if ${ac_cv_path_EGREP+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904 else 11905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11906 then ac_cv_path_EGREP="$GREP -E" 11907 else 11908 if test -z "$EGREP"; then 11909 ac_path_EGREP_found=false 11910 # Loop through the user's path and test for each of PROGNAME-LIST 11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11913 do 11914 IFS=$as_save_IFS 11915 test -z "$as_dir" && as_dir=. 11916 for ac_prog in egrep; do 11917 for ac_exec_ext in '' $ac_executable_extensions; do 11918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11919 as_fn_executable_p "$ac_path_EGREP" || continue 11920 # Check for GNU ac_path_EGREP and select it if it is found. 11921 # Check for GNU $ac_path_EGREP 11922 case `"$ac_path_EGREP" --version 2>&1` in 11923 *GNU*) 11924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11925 *) 11926 ac_count=0 11927 $as_echo_n 0123456789 >"conftest.in" 11928 while : 11929 do 11930 cat "conftest.in" "conftest.in" >"conftest.tmp" 11931 mv "conftest.tmp" "conftest.in" 11932 cp "conftest.in" "conftest.nl" 11933 $as_echo 'EGREP' >> "conftest.nl" 11934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11936 as_fn_arith $ac_count + 1 && ac_count=$as_val 11937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11938 # Best one so far, save it but keep looking for a better one 11939 ac_cv_path_EGREP="$ac_path_EGREP" 11940 ac_path_EGREP_max=$ac_count 11941 fi 11942 # 10*(2^10) chars as input seems more than enough 11943 test $ac_count -gt 10 && break 11944 done 11945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11946 esac 11947 11948 $ac_path_EGREP_found && break 3 11949 done 11950 done 11951 done 11952 IFS=$as_save_IFS 11953 if test -z "$ac_cv_path_EGREP"; then 11954 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11955 fi 11956 else 11957 ac_cv_path_EGREP=$EGREP 11958 fi 11959 11960 fi 11961 fi 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11963 $as_echo "$ac_cv_path_EGREP" >&6; } 11964 EGREP="$ac_cv_path_EGREP" 11965 11966 11967 else 11968 # If it succeeded, then it was overridden by the user. We will use it 11969 # for the tool. 11970 11971 # First remove it from the list of overridden variables, so we can test 11972 # for unknown variables in the end. 11973 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11974 11975 # Check if the provided tool contains a complete path. 11976 tool_specified="$EGREP" 11977 tool_basename="${tool_specified##*/}" 11978 if test "x$tool_basename" = "x$tool_specified"; then 11979 # A command without a complete path is provided, search $PATH. 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11981 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11982 # Extract the first word of "$tool_basename", so it can be a program name with args. 11983 set dummy $tool_basename; ac_word=$2 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11985 $as_echo_n "checking for $ac_word... " >&6; } 11986 if ${ac_cv_path_EGREP+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988 else 11989 case $EGREP in 11990 [\\/]* | ?:[\\/]*) 11991 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11992 ;; 11993 *) 11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11995 for as_dir in $PATH 11996 do 11997 IFS=$as_save_IFS 11998 test -z "$as_dir" && as_dir=. 11999 for ac_exec_ext in '' $ac_executable_extensions; do 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12001 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12003 break 2 12004 fi 12005 done 12006 done 12007 IFS=$as_save_IFS 12008 12009 ;; 12010 esac 12011 fi 12012 EGREP=$ac_cv_path_EGREP 12013 if test -n "$EGREP"; then 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12015 $as_echo "$EGREP" >&6; } 12016 else 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12018 $as_echo "no" >&6; } 12019 fi 12020 12021 12022 if test "x$EGREP" = x; then 12023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12024 fi 12025 else 12026 # Otherwise we believe it is a complete path. Use it as it is. 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12028 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12030 $as_echo_n "checking for EGREP... " >&6; } 12031 if test ! -x "$tool_specified"; then 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12033 $as_echo "not found" >&6; } 12034 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12035 fi 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12037 $as_echo "$tool_specified" >&6; } 12038 fi 12039 fi 12040 fi 12041 12042 12043 if test "x$EGREP" = x; then 12044 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12045 fi 12046 12047 12048 12049 12050 # Publish this variable in the help. 12051 12052 12053 if test "x$FGREP" = x; then 12054 # The variable is not set by user, try to locate tool using the code snippet 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12056 $as_echo_n "checking for fgrep... " >&6; } 12057 if ${ac_cv_path_FGREP+:} false; then : 12058 $as_echo_n "(cached) " >&6 12059 else 12060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12061 then ac_cv_path_FGREP="$GREP -F" 12062 else 12063 if test -z "$FGREP"; then 12064 ac_path_FGREP_found=false 12065 # Loop through the user's path and test for each of PROGNAME-LIST 12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12068 do 12069 IFS=$as_save_IFS 12070 test -z "$as_dir" && as_dir=. 12071 for ac_prog in fgrep; do 12072 for ac_exec_ext in '' $ac_executable_extensions; do 12073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12074 as_fn_executable_p "$ac_path_FGREP" || continue 12075 # Check for GNU ac_path_FGREP and select it if it is found. 12076 # Check for GNU $ac_path_FGREP 12077 case `"$ac_path_FGREP" --version 2>&1` in 12078 *GNU*) 12079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12080 *) 12081 ac_count=0 12082 $as_echo_n 0123456789 >"conftest.in" 12083 while : 12084 do 12085 cat "conftest.in" "conftest.in" >"conftest.tmp" 12086 mv "conftest.tmp" "conftest.in" 12087 cp "conftest.in" "conftest.nl" 12088 $as_echo 'FGREP' >> "conftest.nl" 12089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12091 as_fn_arith $ac_count + 1 && ac_count=$as_val 12092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12093 # Best one so far, save it but keep looking for a better one 12094 ac_cv_path_FGREP="$ac_path_FGREP" 12095 ac_path_FGREP_max=$ac_count 12096 fi 12097 # 10*(2^10) chars as input seems more than enough 12098 test $ac_count -gt 10 && break 12099 done 12100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12101 esac 12102 12103 $ac_path_FGREP_found && break 3 12104 done 12105 done 12106 done 12107 IFS=$as_save_IFS 12108 if test -z "$ac_cv_path_FGREP"; then 12109 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12110 fi 12111 else 12112 ac_cv_path_FGREP=$FGREP 12113 fi 12114 12115 fi 12116 fi 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12118 $as_echo "$ac_cv_path_FGREP" >&6; } 12119 FGREP="$ac_cv_path_FGREP" 12120 12121 12122 else 12123 # The variable is set, but is it from the command line or the environment? 12124 12125 # Try to remove the string !FGREP! from our list. 12126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12128 # If it failed, the variable was not from the command line. Ignore it, 12129 # but warn the user (except for BASH, which is always set by the calling BASH). 12130 if test "xFGREP" != xBASH; then 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12132 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12133 fi 12134 # Try to locate tool using the code snippet 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12136 $as_echo_n "checking for fgrep... " >&6; } 12137 if ${ac_cv_path_FGREP+:} false; then : 12138 $as_echo_n "(cached) " >&6 12139 else 12140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12141 then ac_cv_path_FGREP="$GREP -F" 12142 else 12143 if test -z "$FGREP"; then 12144 ac_path_FGREP_found=false 12145 # Loop through the user's path and test for each of PROGNAME-LIST 12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12148 do 12149 IFS=$as_save_IFS 12150 test -z "$as_dir" && as_dir=. 12151 for ac_prog in fgrep; do 12152 for ac_exec_ext in '' $ac_executable_extensions; do 12153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12154 as_fn_executable_p "$ac_path_FGREP" || continue 12155 # Check for GNU ac_path_FGREP and select it if it is found. 12156 # Check for GNU $ac_path_FGREP 12157 case `"$ac_path_FGREP" --version 2>&1` in 12158 *GNU*) 12159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12160 *) 12161 ac_count=0 12162 $as_echo_n 0123456789 >"conftest.in" 12163 while : 12164 do 12165 cat "conftest.in" "conftest.in" >"conftest.tmp" 12166 mv "conftest.tmp" "conftest.in" 12167 cp "conftest.in" "conftest.nl" 12168 $as_echo 'FGREP' >> "conftest.nl" 12169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12171 as_fn_arith $ac_count + 1 && ac_count=$as_val 12172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12173 # Best one so far, save it but keep looking for a better one 12174 ac_cv_path_FGREP="$ac_path_FGREP" 12175 ac_path_FGREP_max=$ac_count 12176 fi 12177 # 10*(2^10) chars as input seems more than enough 12178 test $ac_count -gt 10 && break 12179 done 12180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12181 esac 12182 12183 $ac_path_FGREP_found && break 3 12184 done 12185 done 12186 done 12187 IFS=$as_save_IFS 12188 if test -z "$ac_cv_path_FGREP"; then 12189 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12190 fi 12191 else 12192 ac_cv_path_FGREP=$FGREP 12193 fi 12194 12195 fi 12196 fi 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12198 $as_echo "$ac_cv_path_FGREP" >&6; } 12199 FGREP="$ac_cv_path_FGREP" 12200 12201 12202 else 12203 # If it succeeded, then it was overridden by the user. We will use it 12204 # for the tool. 12205 12206 # First remove it from the list of overridden variables, so we can test 12207 # for unknown variables in the end. 12208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12209 12210 # Check if the provided tool contains a complete path. 12211 tool_specified="$FGREP" 12212 tool_basename="${tool_specified##*/}" 12213 if test "x$tool_basename" = "x$tool_specified"; then 12214 # A command without a complete path is provided, search $PATH. 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12216 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12217 # Extract the first word of "$tool_basename", so it can be a program name with args. 12218 set dummy $tool_basename; ac_word=$2 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12220 $as_echo_n "checking for $ac_word... " >&6; } 12221 if ${ac_cv_path_FGREP+:} false; then : 12222 $as_echo_n "(cached) " >&6 12223 else 12224 case $FGREP in 12225 [\\/]* | ?:[\\/]*) 12226 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12227 ;; 12228 *) 12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12230 for as_dir in $PATH 12231 do 12232 IFS=$as_save_IFS 12233 test -z "$as_dir" && as_dir=. 12234 for ac_exec_ext in '' $ac_executable_extensions; do 12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12236 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12238 break 2 12239 fi 12240 done 12241 done 12242 IFS=$as_save_IFS 12243 12244 ;; 12245 esac 12246 fi 12247 FGREP=$ac_cv_path_FGREP 12248 if test -n "$FGREP"; then 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12250 $as_echo "$FGREP" >&6; } 12251 else 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12253 $as_echo "no" >&6; } 12254 fi 12255 12256 12257 if test "x$FGREP" = x; then 12258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12259 fi 12260 else 12261 # Otherwise we believe it is a complete path. Use it as it is. 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12263 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12265 $as_echo_n "checking for FGREP... " >&6; } 12266 if test ! -x "$tool_specified"; then 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12268 $as_echo "not found" >&6; } 12269 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12270 fi 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12272 $as_echo "$tool_specified" >&6; } 12273 fi 12274 fi 12275 fi 12276 12277 12278 if test "x$FGREP" = x; then 12279 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12280 fi 12281 12282 12283 12284 12285 # Publish this variable in the help. 12286 12287 12288 if test "x$SED" = x; then 12289 # The variable is not set by user, try to locate tool using the code snippet 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12291 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12292 if ${ac_cv_path_SED+:} false; then : 12293 $as_echo_n "(cached) " >&6 12294 else 12295 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12296 for ac_i in 1 2 3 4 5 6 7; do 12297 ac_script="$ac_script$as_nl$ac_script" 12298 done 12299 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12300 { ac_script=; unset ac_script;} 12301 if test -z "$SED"; then 12302 ac_path_SED_found=false 12303 # Loop through the user's path and test for each of PROGNAME-LIST 12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12305 for as_dir in $PATH 12306 do 12307 IFS=$as_save_IFS 12308 test -z "$as_dir" && as_dir=. 12309 for ac_prog in sed gsed; do 12310 for ac_exec_ext in '' $ac_executable_extensions; do 12311 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12312 as_fn_executable_p "$ac_path_SED" || continue 12313 # Check for GNU ac_path_SED and select it if it is found. 12314 # Check for GNU $ac_path_SED 12315 case `"$ac_path_SED" --version 2>&1` in 12316 *GNU*) 12317 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12318 *) 12319 ac_count=0 12320 $as_echo_n 0123456789 >"conftest.in" 12321 while : 12322 do 12323 cat "conftest.in" "conftest.in" >"conftest.tmp" 12324 mv "conftest.tmp" "conftest.in" 12325 cp "conftest.in" "conftest.nl" 12326 $as_echo '' >> "conftest.nl" 12327 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12329 as_fn_arith $ac_count + 1 && ac_count=$as_val 12330 if test $ac_count -gt ${ac_path_SED_max-0}; then 12331 # Best one so far, save it but keep looking for a better one 12332 ac_cv_path_SED="$ac_path_SED" 12333 ac_path_SED_max=$ac_count 12334 fi 12335 # 10*(2^10) chars as input seems more than enough 12336 test $ac_count -gt 10 && break 12337 done 12338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12339 esac 12340 12341 $ac_path_SED_found && break 3 12342 done 12343 done 12344 done 12345 IFS=$as_save_IFS 12346 if test -z "$ac_cv_path_SED"; then 12347 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12348 fi 12349 else 12350 ac_cv_path_SED=$SED 12351 fi 12352 12353 fi 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12355 $as_echo "$ac_cv_path_SED" >&6; } 12356 SED="$ac_cv_path_SED" 12357 rm -f conftest.sed 12358 12359 else 12360 # The variable is set, but is it from the command line or the environment? 12361 12362 # Try to remove the string !SED! from our list. 12363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12365 # If it failed, the variable was not from the command line. Ignore it, 12366 # but warn the user (except for BASH, which is always set by the calling BASH). 12367 if test "xSED" != xBASH; then 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12369 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12370 fi 12371 # Try to locate tool using the code snippet 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12373 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12374 if ${ac_cv_path_SED+:} false; then : 12375 $as_echo_n "(cached) " >&6 12376 else 12377 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12378 for ac_i in 1 2 3 4 5 6 7; do 12379 ac_script="$ac_script$as_nl$ac_script" 12380 done 12381 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12382 { ac_script=; unset ac_script;} 12383 if test -z "$SED"; then 12384 ac_path_SED_found=false 12385 # Loop through the user's path and test for each of PROGNAME-LIST 12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12387 for as_dir in $PATH 12388 do 12389 IFS=$as_save_IFS 12390 test -z "$as_dir" && as_dir=. 12391 for ac_prog in sed gsed; do 12392 for ac_exec_ext in '' $ac_executable_extensions; do 12393 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12394 as_fn_executable_p "$ac_path_SED" || continue 12395 # Check for GNU ac_path_SED and select it if it is found. 12396 # Check for GNU $ac_path_SED 12397 case `"$ac_path_SED" --version 2>&1` in 12398 *GNU*) 12399 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12400 *) 12401 ac_count=0 12402 $as_echo_n 0123456789 >"conftest.in" 12403 while : 12404 do 12405 cat "conftest.in" "conftest.in" >"conftest.tmp" 12406 mv "conftest.tmp" "conftest.in" 12407 cp "conftest.in" "conftest.nl" 12408 $as_echo '' >> "conftest.nl" 12409 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12411 as_fn_arith $ac_count + 1 && ac_count=$as_val 12412 if test $ac_count -gt ${ac_path_SED_max-0}; then 12413 # Best one so far, save it but keep looking for a better one 12414 ac_cv_path_SED="$ac_path_SED" 12415 ac_path_SED_max=$ac_count 12416 fi 12417 # 10*(2^10) chars as input seems more than enough 12418 test $ac_count -gt 10 && break 12419 done 12420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12421 esac 12422 12423 $ac_path_SED_found && break 3 12424 done 12425 done 12426 done 12427 IFS=$as_save_IFS 12428 if test -z "$ac_cv_path_SED"; then 12429 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12430 fi 12431 else 12432 ac_cv_path_SED=$SED 12433 fi 12434 12435 fi 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12437 $as_echo "$ac_cv_path_SED" >&6; } 12438 SED="$ac_cv_path_SED" 12439 rm -f conftest.sed 12440 12441 else 12442 # If it succeeded, then it was overridden by the user. We will use it 12443 # for the tool. 12444 12445 # First remove it from the list of overridden variables, so we can test 12446 # for unknown variables in the end. 12447 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12448 12449 # Check if the provided tool contains a complete path. 12450 tool_specified="$SED" 12451 tool_basename="${tool_specified##*/}" 12452 if test "x$tool_basename" = "x$tool_specified"; then 12453 # A command without a complete path is provided, search $PATH. 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12455 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12456 # Extract the first word of "$tool_basename", so it can be a program name with args. 12457 set dummy $tool_basename; ac_word=$2 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12459 $as_echo_n "checking for $ac_word... " >&6; } 12460 if ${ac_cv_path_SED+:} false; then : 12461 $as_echo_n "(cached) " >&6 12462 else 12463 case $SED in 12464 [\\/]* | ?:[\\/]*) 12465 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12466 ;; 12467 *) 12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12469 for as_dir in $PATH 12470 do 12471 IFS=$as_save_IFS 12472 test -z "$as_dir" && as_dir=. 12473 for ac_exec_ext in '' $ac_executable_extensions; do 12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12475 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12477 break 2 12478 fi 12479 done 12480 done 12481 IFS=$as_save_IFS 12482 12483 ;; 12484 esac 12485 fi 12486 SED=$ac_cv_path_SED 12487 if test -n "$SED"; then 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12489 $as_echo "$SED" >&6; } 12490 else 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12492 $as_echo "no" >&6; } 12493 fi 12494 12495 12496 if test "x$SED" = x; then 12497 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12498 fi 12499 else 12500 # Otherwise we believe it is a complete path. Use it as it is. 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12502 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12504 $as_echo_n "checking for SED... " >&6; } 12505 if test ! -x "$tool_specified"; then 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12507 $as_echo "not found" >&6; } 12508 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12509 fi 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12511 $as_echo "$tool_specified" >&6; } 12512 fi 12513 fi 12514 fi 12515 12516 12517 if test "x$SED" = x; then 12518 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12519 fi 12520 12521 12522 12523 # Always force rm. 12524 RM="$RM -f" 12525 12526 # pwd behaves differently on various platforms and some don't support the -L flag. 12527 # Always use the bash builtin pwd to get uniform behavior. 12528 THEPWDCMD=pwd 12529 12530 # These are not required on all platforms 12531 12532 12533 # Publish this variable in the help. 12534 12535 12536 if test "x$CYGPATH" = x; then 12537 # The variable is not set by user, try to locate tool using the code snippet 12538 for ac_prog in cygpath 12539 do 12540 # Extract the first word of "$ac_prog", so it can be a program name with args. 12541 set dummy $ac_prog; ac_word=$2 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12543 $as_echo_n "checking for $ac_word... " >&6; } 12544 if ${ac_cv_path_CYGPATH+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546 else 12547 case $CYGPATH in 12548 [\\/]* | ?:[\\/]*) 12549 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12550 ;; 12551 *) 12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12553 for as_dir in $PATH 12554 do 12555 IFS=$as_save_IFS 12556 test -z "$as_dir" && as_dir=. 12557 for ac_exec_ext in '' $ac_executable_extensions; do 12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12559 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12561 break 2 12562 fi 12563 done 12564 done 12565 IFS=$as_save_IFS 12566 12567 ;; 12568 esac 12569 fi 12570 CYGPATH=$ac_cv_path_CYGPATH 12571 if test -n "$CYGPATH"; then 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12573 $as_echo "$CYGPATH" >&6; } 12574 else 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12576 $as_echo "no" >&6; } 12577 fi 12578 12579 12580 test -n "$CYGPATH" && break 12581 done 12582 12583 else 12584 # The variable is set, but is it from the command line or the environment? 12585 12586 # Try to remove the string !CYGPATH! from our list. 12587 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12588 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12589 # If it failed, the variable was not from the command line. Ignore it, 12590 # but warn the user (except for BASH, which is always set by the calling BASH). 12591 if test "xCYGPATH" != xBASH; then 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12593 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12594 fi 12595 # Try to locate tool using the code snippet 12596 for ac_prog in cygpath 12597 do 12598 # Extract the first word of "$ac_prog", so it can be a program name with args. 12599 set dummy $ac_prog; ac_word=$2 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12601 $as_echo_n "checking for $ac_word... " >&6; } 12602 if ${ac_cv_path_CYGPATH+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604 else 12605 case $CYGPATH in 12606 [\\/]* | ?:[\\/]*) 12607 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12608 ;; 12609 *) 12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12611 for as_dir in $PATH 12612 do 12613 IFS=$as_save_IFS 12614 test -z "$as_dir" && as_dir=. 12615 for ac_exec_ext in '' $ac_executable_extensions; do 12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12617 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12619 break 2 12620 fi 12621 done 12622 done 12623 IFS=$as_save_IFS 12624 12625 ;; 12626 esac 12627 fi 12628 CYGPATH=$ac_cv_path_CYGPATH 12629 if test -n "$CYGPATH"; then 12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12631 $as_echo "$CYGPATH" >&6; } 12632 else 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12634 $as_echo "no" >&6; } 12635 fi 12636 12637 12638 test -n "$CYGPATH" && break 12639 done 12640 12641 else 12642 # If it succeeded, then it was overridden by the user. We will use it 12643 # for the tool. 12644 12645 # First remove it from the list of overridden variables, so we can test 12646 # for unknown variables in the end. 12647 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12648 12649 # Check if the provided tool contains a complete path. 12650 tool_specified="$CYGPATH" 12651 tool_basename="${tool_specified##*/}" 12652 if test "x$tool_basename" = "x$tool_specified"; then 12653 # A command without a complete path is provided, search $PATH. 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12655 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12656 # Extract the first word of "$tool_basename", so it can be a program name with args. 12657 set dummy $tool_basename; ac_word=$2 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12659 $as_echo_n "checking for $ac_word... " >&6; } 12660 if ${ac_cv_path_CYGPATH+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662 else 12663 case $CYGPATH in 12664 [\\/]* | ?:[\\/]*) 12665 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12666 ;; 12667 *) 12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12669 for as_dir in $PATH 12670 do 12671 IFS=$as_save_IFS 12672 test -z "$as_dir" && as_dir=. 12673 for ac_exec_ext in '' $ac_executable_extensions; do 12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12675 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12677 break 2 12678 fi 12679 done 12680 done 12681 IFS=$as_save_IFS 12682 12683 ;; 12684 esac 12685 fi 12686 CYGPATH=$ac_cv_path_CYGPATH 12687 if test -n "$CYGPATH"; then 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12689 $as_echo "$CYGPATH" >&6; } 12690 else 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692 $as_echo "no" >&6; } 12693 fi 12694 12695 12696 if test "x$CYGPATH" = x; then 12697 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12698 fi 12699 else 12700 # Otherwise we believe it is a complete path. Use it as it is. 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12702 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12704 $as_echo_n "checking for CYGPATH... " >&6; } 12705 if test ! -x "$tool_specified"; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12707 $as_echo "not found" >&6; } 12708 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12709 fi 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12711 $as_echo "$tool_specified" >&6; } 12712 fi 12713 fi 12714 fi 12715 12716 12717 12718 12719 # Publish this variable in the help. 12720 12721 12722 if test "x$READLINK" = x; then 12723 # The variable is not set by user, try to locate tool using the code snippet 12724 for ac_prog in greadlink readlink 12725 do 12726 # Extract the first word of "$ac_prog", so it can be a program name with args. 12727 set dummy $ac_prog; ac_word=$2 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12729 $as_echo_n "checking for $ac_word... " >&6; } 12730 if ${ac_cv_path_READLINK+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732 else 12733 case $READLINK in 12734 [\\/]* | ?:[\\/]*) 12735 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12736 ;; 12737 *) 12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12739 for as_dir in $PATH 12740 do 12741 IFS=$as_save_IFS 12742 test -z "$as_dir" && as_dir=. 12743 for ac_exec_ext in '' $ac_executable_extensions; do 12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12745 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12747 break 2 12748 fi 12749 done 12750 done 12751 IFS=$as_save_IFS 12752 12753 ;; 12754 esac 12755 fi 12756 READLINK=$ac_cv_path_READLINK 12757 if test -n "$READLINK"; then 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12759 $as_echo "$READLINK" >&6; } 12760 else 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12762 $as_echo "no" >&6; } 12763 fi 12764 12765 12766 test -n "$READLINK" && break 12767 done 12768 12769 else 12770 # The variable is set, but is it from the command line or the environment? 12771 12772 # Try to remove the string !READLINK! from our list. 12773 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12774 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12775 # If it failed, the variable was not from the command line. Ignore it, 12776 # but warn the user (except for BASH, which is always set by the calling BASH). 12777 if test "xREADLINK" != xBASH; then 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12779 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12780 fi 12781 # Try to locate tool using the code snippet 12782 for ac_prog in greadlink readlink 12783 do 12784 # Extract the first word of "$ac_prog", so it can be a program name with args. 12785 set dummy $ac_prog; ac_word=$2 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12787 $as_echo_n "checking for $ac_word... " >&6; } 12788 if ${ac_cv_path_READLINK+:} false; then : 12789 $as_echo_n "(cached) " >&6 12790 else 12791 case $READLINK in 12792 [\\/]* | ?:[\\/]*) 12793 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12794 ;; 12795 *) 12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12797 for as_dir in $PATH 12798 do 12799 IFS=$as_save_IFS 12800 test -z "$as_dir" && as_dir=. 12801 for ac_exec_ext in '' $ac_executable_extensions; do 12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12803 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12805 break 2 12806 fi 12807 done 12808 done 12809 IFS=$as_save_IFS 12810 12811 ;; 12812 esac 12813 fi 12814 READLINK=$ac_cv_path_READLINK 12815 if test -n "$READLINK"; then 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12817 $as_echo "$READLINK" >&6; } 12818 else 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12820 $as_echo "no" >&6; } 12821 fi 12822 12823 12824 test -n "$READLINK" && break 12825 done 12826 12827 else 12828 # If it succeeded, then it was overridden by the user. We will use it 12829 # for the tool. 12830 12831 # First remove it from the list of overridden variables, so we can test 12832 # for unknown variables in the end. 12833 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12834 12835 # Check if the provided tool contains a complete path. 12836 tool_specified="$READLINK" 12837 tool_basename="${tool_specified##*/}" 12838 if test "x$tool_basename" = "x$tool_specified"; then 12839 # A command without a complete path is provided, search $PATH. 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12841 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12842 # Extract the first word of "$tool_basename", so it can be a program name with args. 12843 set dummy $tool_basename; ac_word=$2 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12845 $as_echo_n "checking for $ac_word... " >&6; } 12846 if ${ac_cv_path_READLINK+:} false; then : 12847 $as_echo_n "(cached) " >&6 12848 else 12849 case $READLINK in 12850 [\\/]* | ?:[\\/]*) 12851 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12852 ;; 12853 *) 12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12855 for as_dir in $PATH 12856 do 12857 IFS=$as_save_IFS 12858 test -z "$as_dir" && as_dir=. 12859 for ac_exec_ext in '' $ac_executable_extensions; do 12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12861 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12863 break 2 12864 fi 12865 done 12866 done 12867 IFS=$as_save_IFS 12868 12869 ;; 12870 esac 12871 fi 12872 READLINK=$ac_cv_path_READLINK 12873 if test -n "$READLINK"; then 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12875 $as_echo "$READLINK" >&6; } 12876 else 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12878 $as_echo "no" >&6; } 12879 fi 12880 12881 12882 if test "x$READLINK" = x; then 12883 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12884 fi 12885 else 12886 # Otherwise we believe it is a complete path. Use it as it is. 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12888 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12890 $as_echo_n "checking for READLINK... " >&6; } 12891 if test ! -x "$tool_specified"; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12893 $as_echo "not found" >&6; } 12894 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12895 fi 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12897 $as_echo "$tool_specified" >&6; } 12898 fi 12899 fi 12900 fi 12901 12902 12903 12904 12905 # Publish this variable in the help. 12906 12907 12908 if test "x$DF" = x; then 12909 # The variable is not set by user, try to locate tool using the code snippet 12910 for ac_prog in df 12911 do 12912 # Extract the first word of "$ac_prog", so it can be a program name with args. 12913 set dummy $ac_prog; ac_word=$2 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12915 $as_echo_n "checking for $ac_word... " >&6; } 12916 if ${ac_cv_path_DF+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918 else 12919 case $DF in 12920 [\\/]* | ?:[\\/]*) 12921 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12922 ;; 12923 *) 12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12925 for as_dir in $PATH 12926 do 12927 IFS=$as_save_IFS 12928 test -z "$as_dir" && as_dir=. 12929 for ac_exec_ext in '' $ac_executable_extensions; do 12930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12931 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12933 break 2 12934 fi 12935 done 12936 done 12937 IFS=$as_save_IFS 12938 12939 ;; 12940 esac 12941 fi 12942 DF=$ac_cv_path_DF 12943 if test -n "$DF"; then 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12945 $as_echo "$DF" >&6; } 12946 else 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12948 $as_echo "no" >&6; } 12949 fi 12950 12951 12952 test -n "$DF" && break 12953 done 12954 12955 else 12956 # The variable is set, but is it from the command line or the environment? 12957 12958 # Try to remove the string !DF! from our list. 12959 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12960 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12961 # If it failed, the variable was not from the command line. Ignore it, 12962 # but warn the user (except for BASH, which is always set by the calling BASH). 12963 if test "xDF" != xBASH; then 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12965 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12966 fi 12967 # Try to locate tool using the code snippet 12968 for ac_prog in df 12969 do 12970 # Extract the first word of "$ac_prog", so it can be a program name with args. 12971 set dummy $ac_prog; ac_word=$2 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12973 $as_echo_n "checking for $ac_word... " >&6; } 12974 if ${ac_cv_path_DF+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976 else 12977 case $DF in 12978 [\\/]* | ?:[\\/]*) 12979 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12980 ;; 12981 *) 12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12983 for as_dir in $PATH 12984 do 12985 IFS=$as_save_IFS 12986 test -z "$as_dir" && as_dir=. 12987 for ac_exec_ext in '' $ac_executable_extensions; do 12988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12989 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12991 break 2 12992 fi 12993 done 12994 done 12995 IFS=$as_save_IFS 12996 12997 ;; 12998 esac 12999 fi 13000 DF=$ac_cv_path_DF 13001 if test -n "$DF"; then 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13003 $as_echo "$DF" >&6; } 13004 else 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13006 $as_echo "no" >&6; } 13007 fi 13008 13009 13010 test -n "$DF" && break 13011 done 13012 13013 else 13014 # If it succeeded, then it was overridden by the user. We will use it 13015 # for the tool. 13016 13017 # First remove it from the list of overridden variables, so we can test 13018 # for unknown variables in the end. 13019 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13020 13021 # Check if the provided tool contains a complete path. 13022 tool_specified="$DF" 13023 tool_basename="${tool_specified##*/}" 13024 if test "x$tool_basename" = "x$tool_specified"; then 13025 # A command without a complete path is provided, search $PATH. 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13027 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13028 # Extract the first word of "$tool_basename", so it can be a program name with args. 13029 set dummy $tool_basename; ac_word=$2 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13031 $as_echo_n "checking for $ac_word... " >&6; } 13032 if ${ac_cv_path_DF+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034 else 13035 case $DF in 13036 [\\/]* | ?:[\\/]*) 13037 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13038 ;; 13039 *) 13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13041 for as_dir in $PATH 13042 do 13043 IFS=$as_save_IFS 13044 test -z "$as_dir" && as_dir=. 13045 for ac_exec_ext in '' $ac_executable_extensions; do 13046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13047 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13049 break 2 13050 fi 13051 done 13052 done 13053 IFS=$as_save_IFS 13054 13055 ;; 13056 esac 13057 fi 13058 DF=$ac_cv_path_DF 13059 if test -n "$DF"; then 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13061 $as_echo "$DF" >&6; } 13062 else 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13064 $as_echo "no" >&6; } 13065 fi 13066 13067 13068 if test "x$DF" = x; then 13069 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13070 fi 13071 else 13072 # Otherwise we believe it is a complete path. Use it as it is. 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13074 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13076 $as_echo_n "checking for DF... " >&6; } 13077 if test ! -x "$tool_specified"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13079 $as_echo "not found" >&6; } 13080 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13081 fi 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13083 $as_echo "$tool_specified" >&6; } 13084 fi 13085 fi 13086 fi 13087 13088 13089 13090 13091 # Publish this variable in the help. 13092 13093 13094 if test "x$SETFILE" = x; then 13095 # The variable is not set by user, try to locate tool using the code snippet 13096 for ac_prog in SetFile 13097 do 13098 # Extract the first word of "$ac_prog", so it can be a program name with args. 13099 set dummy $ac_prog; ac_word=$2 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13101 $as_echo_n "checking for $ac_word... " >&6; } 13102 if ${ac_cv_path_SETFILE+:} false; then : 13103 $as_echo_n "(cached) " >&6 13104 else 13105 case $SETFILE in 13106 [\\/]* | ?:[\\/]*) 13107 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13108 ;; 13109 *) 13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13111 for as_dir in $PATH 13112 do 13113 IFS=$as_save_IFS 13114 test -z "$as_dir" && as_dir=. 13115 for ac_exec_ext in '' $ac_executable_extensions; do 13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13117 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13119 break 2 13120 fi 13121 done 13122 done 13123 IFS=$as_save_IFS 13124 13125 ;; 13126 esac 13127 fi 13128 SETFILE=$ac_cv_path_SETFILE 13129 if test -n "$SETFILE"; then 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13131 $as_echo "$SETFILE" >&6; } 13132 else 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13134 $as_echo "no" >&6; } 13135 fi 13136 13137 13138 test -n "$SETFILE" && break 13139 done 13140 13141 else 13142 # The variable is set, but is it from the command line or the environment? 13143 13144 # Try to remove the string !SETFILE! from our list. 13145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13147 # If it failed, the variable was not from the command line. Ignore it, 13148 # but warn the user (except for BASH, which is always set by the calling BASH). 13149 if test "xSETFILE" != xBASH; then 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13151 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13152 fi 13153 # Try to locate tool using the code snippet 13154 for ac_prog in SetFile 13155 do 13156 # Extract the first word of "$ac_prog", so it can be a program name with args. 13157 set dummy $ac_prog; ac_word=$2 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13159 $as_echo_n "checking for $ac_word... " >&6; } 13160 if ${ac_cv_path_SETFILE+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162 else 13163 case $SETFILE in 13164 [\\/]* | ?:[\\/]*) 13165 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13166 ;; 13167 *) 13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13169 for as_dir in $PATH 13170 do 13171 IFS=$as_save_IFS 13172 test -z "$as_dir" && as_dir=. 13173 for ac_exec_ext in '' $ac_executable_extensions; do 13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13175 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13177 break 2 13178 fi 13179 done 13180 done 13181 IFS=$as_save_IFS 13182 13183 ;; 13184 esac 13185 fi 13186 SETFILE=$ac_cv_path_SETFILE 13187 if test -n "$SETFILE"; then 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13189 $as_echo "$SETFILE" >&6; } 13190 else 13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13192 $as_echo "no" >&6; } 13193 fi 13194 13195 13196 test -n "$SETFILE" && break 13197 done 13198 13199 else 13200 # If it succeeded, then it was overridden by the user. We will use it 13201 # for the tool. 13202 13203 # First remove it from the list of overridden variables, so we can test 13204 # for unknown variables in the end. 13205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13206 13207 # Check if the provided tool contains a complete path. 13208 tool_specified="$SETFILE" 13209 tool_basename="${tool_specified##*/}" 13210 if test "x$tool_basename" = "x$tool_specified"; then 13211 # A command without a complete path is provided, search $PATH. 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13213 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13214 # Extract the first word of "$tool_basename", so it can be a program name with args. 13215 set dummy $tool_basename; ac_word=$2 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13217 $as_echo_n "checking for $ac_word... " >&6; } 13218 if ${ac_cv_path_SETFILE+:} false; then : 13219 $as_echo_n "(cached) " >&6 13220 else 13221 case $SETFILE in 13222 [\\/]* | ?:[\\/]*) 13223 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13224 ;; 13225 *) 13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13227 for as_dir in $PATH 13228 do 13229 IFS=$as_save_IFS 13230 test -z "$as_dir" && as_dir=. 13231 for ac_exec_ext in '' $ac_executable_extensions; do 13232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13233 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13235 break 2 13236 fi 13237 done 13238 done 13239 IFS=$as_save_IFS 13240 13241 ;; 13242 esac 13243 fi 13244 SETFILE=$ac_cv_path_SETFILE 13245 if test -n "$SETFILE"; then 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13247 $as_echo "$SETFILE" >&6; } 13248 else 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13250 $as_echo "no" >&6; } 13251 fi 13252 13253 13254 if test "x$SETFILE" = x; then 13255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13256 fi 13257 else 13258 # Otherwise we believe it is a complete path. Use it as it is. 13259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13260 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13262 $as_echo_n "checking for SETFILE... " >&6; } 13263 if test ! -x "$tool_specified"; then 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13265 $as_echo "not found" >&6; } 13266 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13267 fi 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13269 $as_echo "$tool_specified" >&6; } 13270 fi 13271 fi 13272 fi 13273 13274 13275 13276 13277 # Publish this variable in the help. 13278 13279 13280 if test "x$CPIO" = x; then 13281 # The variable is not set by user, try to locate tool using the code snippet 13282 for ac_prog in cpio bsdcpio 13283 do 13284 # Extract the first word of "$ac_prog", so it can be a program name with args. 13285 set dummy $ac_prog; ac_word=$2 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13287 $as_echo_n "checking for $ac_word... " >&6; } 13288 if ${ac_cv_path_CPIO+:} false; then : 13289 $as_echo_n "(cached) " >&6 13290 else 13291 case $CPIO in 13292 [\\/]* | ?:[\\/]*) 13293 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13294 ;; 13295 *) 13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13297 for as_dir in $PATH 13298 do 13299 IFS=$as_save_IFS 13300 test -z "$as_dir" && as_dir=. 13301 for ac_exec_ext in '' $ac_executable_extensions; do 13302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13303 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13305 break 2 13306 fi 13307 done 13308 done 13309 IFS=$as_save_IFS 13310 13311 ;; 13312 esac 13313 fi 13314 CPIO=$ac_cv_path_CPIO 13315 if test -n "$CPIO"; then 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13317 $as_echo "$CPIO" >&6; } 13318 else 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320 $as_echo "no" >&6; } 13321 fi 13322 13323 13324 test -n "$CPIO" && break 13325 done 13326 13327 else 13328 # The variable is set, but is it from the command line or the environment? 13329 13330 # Try to remove the string !CPIO! from our list. 13331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13333 # If it failed, the variable was not from the command line. Ignore it, 13334 # but warn the user (except for BASH, which is always set by the calling BASH). 13335 if test "xCPIO" != xBASH; then 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13337 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13338 fi 13339 # Try to locate tool using the code snippet 13340 for ac_prog in cpio bsdcpio 13341 do 13342 # Extract the first word of "$ac_prog", so it can be a program name with args. 13343 set dummy $ac_prog; ac_word=$2 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13345 $as_echo_n "checking for $ac_word... " >&6; } 13346 if ${ac_cv_path_CPIO+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348 else 13349 case $CPIO in 13350 [\\/]* | ?:[\\/]*) 13351 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13352 ;; 13353 *) 13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13355 for as_dir in $PATH 13356 do 13357 IFS=$as_save_IFS 13358 test -z "$as_dir" && as_dir=. 13359 for ac_exec_ext in '' $ac_executable_extensions; do 13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13361 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13363 break 2 13364 fi 13365 done 13366 done 13367 IFS=$as_save_IFS 13368 13369 ;; 13370 esac 13371 fi 13372 CPIO=$ac_cv_path_CPIO 13373 if test -n "$CPIO"; then 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13375 $as_echo "$CPIO" >&6; } 13376 else 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13378 $as_echo "no" >&6; } 13379 fi 13380 13381 13382 test -n "$CPIO" && break 13383 done 13384 13385 else 13386 # If it succeeded, then it was overridden by the user. We will use it 13387 # for the tool. 13388 13389 # First remove it from the list of overridden variables, so we can test 13390 # for unknown variables in the end. 13391 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13392 13393 # Check if the provided tool contains a complete path. 13394 tool_specified="$CPIO" 13395 tool_basename="${tool_specified##*/}" 13396 if test "x$tool_basename" = "x$tool_specified"; then 13397 # A command without a complete path is provided, search $PATH. 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13399 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13400 # Extract the first word of "$tool_basename", so it can be a program name with args. 13401 set dummy $tool_basename; ac_word=$2 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13403 $as_echo_n "checking for $ac_word... " >&6; } 13404 if ${ac_cv_path_CPIO+:} false; then : 13405 $as_echo_n "(cached) " >&6 13406 else 13407 case $CPIO in 13408 [\\/]* | ?:[\\/]*) 13409 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13410 ;; 13411 *) 13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13413 for as_dir in $PATH 13414 do 13415 IFS=$as_save_IFS 13416 test -z "$as_dir" && as_dir=. 13417 for ac_exec_ext in '' $ac_executable_extensions; do 13418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13419 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13421 break 2 13422 fi 13423 done 13424 done 13425 IFS=$as_save_IFS 13426 13427 ;; 13428 esac 13429 fi 13430 CPIO=$ac_cv_path_CPIO 13431 if test -n "$CPIO"; then 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13433 $as_echo "$CPIO" >&6; } 13434 else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13436 $as_echo "no" >&6; } 13437 fi 13438 13439 13440 if test "x$CPIO" = x; then 13441 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13442 fi 13443 else 13444 # Otherwise we believe it is a complete path. Use it as it is. 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13446 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13448 $as_echo_n "checking for CPIO... " >&6; } 13449 if test ! -x "$tool_specified"; then 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13451 $as_echo "not found" >&6; } 13452 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13453 fi 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13455 $as_echo "$tool_specified" >&6; } 13456 fi 13457 fi 13458 fi 13459 13460 13461 13462 13463 # Now we can determine OpenJDK build and target platforms. This is required to 13464 # have early on. 13465 # Make sure we can run config.sub. 13466 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13467 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13468 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13470 $as_echo_n "checking build system type... " >&6; } 13471 if ${ac_cv_build+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473 else 13474 ac_build_alias=$build_alias 13475 test "x$ac_build_alias" = x && 13476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13477 test "x$ac_build_alias" = x && 13478 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13479 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13481 13482 fi 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13484 $as_echo "$ac_cv_build" >&6; } 13485 case $ac_cv_build in 13486 *-*-*) ;; 13487 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13488 esac 13489 build=$ac_cv_build 13490 ac_save_IFS=$IFS; IFS='-' 13491 set x $ac_cv_build 13492 shift 13493 build_cpu=$1 13494 build_vendor=$2 13495 shift; shift 13496 # Remember, the first character of IFS is used to create $*, 13497 # except with old shells: 13498 build_os=$* 13499 IFS=$ac_save_IFS 13500 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13501 13502 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13504 $as_echo_n "checking host system type... " >&6; } 13505 if ${ac_cv_host+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507 else 13508 if test "x$host_alias" = x; then 13509 ac_cv_host=$ac_cv_build 13510 else 13511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13513 fi 13514 13515 fi 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13517 $as_echo "$ac_cv_host" >&6; } 13518 case $ac_cv_host in 13519 *-*-*) ;; 13520 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13521 esac 13522 host=$ac_cv_host 13523 ac_save_IFS=$IFS; IFS='-' 13524 set x $ac_cv_host 13525 shift 13526 host_cpu=$1 13527 host_vendor=$2 13528 shift; shift 13529 # Remember, the first character of IFS is used to create $*, 13530 # except with old shells: 13531 host_os=$* 13532 IFS=$ac_save_IFS 13533 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13534 13535 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13537 $as_echo_n "checking target system type... " >&6; } 13538 if ${ac_cv_target+:} false; then : 13539 $as_echo_n "(cached) " >&6 13540 else 13541 if test "x$target_alias" = x; then 13542 ac_cv_target=$ac_cv_host 13543 else 13544 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13546 fi 13547 13548 fi 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13550 $as_echo "$ac_cv_target" >&6; } 13551 case $ac_cv_target in 13552 *-*-*) ;; 13553 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13554 esac 13555 target=$ac_cv_target 13556 ac_save_IFS=$IFS; IFS='-' 13557 set x $ac_cv_target 13558 shift 13559 target_cpu=$1 13560 target_vendor=$2 13561 shift; shift 13562 # Remember, the first character of IFS is used to create $*, 13563 # except with old shells: 13564 target_os=$* 13565 IFS=$ac_save_IFS 13566 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13567 13568 13569 # The aliases save the names the user supplied, while $host etc. 13570 # will get canonicalized. 13571 test -n "$target_alias" && 13572 test "$program_prefix$program_suffix$program_transform_name" = \ 13573 NONENONEs,x,x, && 13574 program_prefix=${target_alias}- 13575 13576 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13577 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13578 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13579 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13580 # to use the configure naming style. 13581 13582 13583 13584 13585 13586 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13587 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13588 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13589 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13590 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13591 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13592 13593 13594 13595 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13596 13597 case "$build_os" in 13598 *linux*) 13599 VAR_OS=linux 13600 VAR_OS_API=posix 13601 VAR_OS_ENV=linux 13602 ;; 13603 *solaris*) 13604 VAR_OS=solaris 13605 VAR_OS_API=posix 13606 VAR_OS_ENV=solaris 13607 ;; 13608 *darwin*) 13609 VAR_OS=macosx 13610 VAR_OS_API=posix 13611 VAR_OS_ENV=macosx 13612 ;; 13613 *bsd*) 13614 VAR_OS=bsd 13615 VAR_OS_API=posix 13616 VAR_OS_ENV=bsd 13617 ;; 13618 *cygwin*) 13619 VAR_OS=windows 13620 VAR_OS_API=winapi 13621 VAR_OS_ENV=windows.cygwin 13622 ;; 13623 *mingw*) 13624 VAR_OS=windows 13625 VAR_OS_API=winapi 13626 VAR_OS_ENV=windows.msys 13627 ;; 13628 *aix*) 13629 VAR_OS=aix 13630 VAR_OS_API=posix 13631 VAR_OS_ENV=aix 13632 ;; 13633 *) 13634 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13635 ;; 13636 esac 13637 13638 13639 # First argument is the cpu name from the trip/quad 13640 case "$build_cpu" in 13641 x86_64) 13642 VAR_CPU=x86_64 13643 VAR_CPU_ARCH=x86 13644 VAR_CPU_BITS=64 13645 VAR_CPU_ENDIAN=little 13646 ;; 13647 i?86) 13648 VAR_CPU=x86 13649 VAR_CPU_ARCH=x86 13650 VAR_CPU_BITS=32 13651 VAR_CPU_ENDIAN=little 13652 ;; 13653 arm*) 13654 VAR_CPU=arm 13655 VAR_CPU_ARCH=arm 13656 VAR_CPU_BITS=32 13657 VAR_CPU_ENDIAN=little 13658 ;; 13659 aarch64) 13660 VAR_CPU=aarch64 13661 VAR_CPU_ARCH=aarch64 13662 VAR_CPU_BITS=64 13663 VAR_CPU_ENDIAN=little 13664 ;; 13665 powerpc) 13666 VAR_CPU=ppc 13667 VAR_CPU_ARCH=ppc 13668 VAR_CPU_BITS=32 13669 VAR_CPU_ENDIAN=big 13670 ;; 13671 powerpc64) 13672 VAR_CPU=ppc64 13673 VAR_CPU_ARCH=ppc 13674 VAR_CPU_BITS=64 13675 VAR_CPU_ENDIAN=big 13676 ;; 13677 powerpc64le) 13678 VAR_CPU=ppc64le 13679 VAR_CPU_ARCH=ppc 13680 VAR_CPU_BITS=64 13681 VAR_CPU_ENDIAN=little 13682 ;; 13683 s390) 13684 VAR_CPU=s390 13685 VAR_CPU_ARCH=s390 13686 VAR_CPU_BITS=32 13687 VAR_CPU_ENDIAN=big 13688 ;; 13689 s390x) 13690 VAR_CPU=s390x 13691 VAR_CPU_ARCH=s390 13692 VAR_CPU_BITS=64 13693 VAR_CPU_ENDIAN=big 13694 ;; 13695 sparc) 13696 VAR_CPU=sparc 13697 VAR_CPU_ARCH=sparc 13698 VAR_CPU_BITS=32 13699 VAR_CPU_ENDIAN=big 13700 ;; 13701 sparcv9|sparc64) 13702 VAR_CPU=sparcv9 13703 VAR_CPU_ARCH=sparc 13704 VAR_CPU_BITS=64 13705 VAR_CPU_ENDIAN=big 13706 ;; 13707 *) 13708 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13709 ;; 13710 esac 13711 13712 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13713 OPENJDK_BUILD_OS="$VAR_OS" 13714 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13715 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13716 OPENJDK_BUILD_CPU="$VAR_CPU" 13717 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13718 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13719 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13720 13721 13722 13723 13724 13725 13726 13727 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13729 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13731 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13732 13733 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13734 13735 case "$host_os" in 13736 *linux*) 13737 VAR_OS=linux 13738 VAR_OS_API=posix 13739 VAR_OS_ENV=linux 13740 ;; 13741 *solaris*) 13742 VAR_OS=solaris 13743 VAR_OS_API=posix 13744 VAR_OS_ENV=solaris 13745 ;; 13746 *darwin*) 13747 VAR_OS=macosx 13748 VAR_OS_API=posix 13749 VAR_OS_ENV=macosx 13750 ;; 13751 *bsd*) 13752 VAR_OS=bsd 13753 VAR_OS_API=posix 13754 VAR_OS_ENV=bsd 13755 ;; 13756 *cygwin*) 13757 VAR_OS=windows 13758 VAR_OS_API=winapi 13759 VAR_OS_ENV=windows.cygwin 13760 ;; 13761 *mingw*) 13762 VAR_OS=windows 13763 VAR_OS_API=winapi 13764 VAR_OS_ENV=windows.msys 13765 ;; 13766 *aix*) 13767 VAR_OS=aix 13768 VAR_OS_API=posix 13769 VAR_OS_ENV=aix 13770 ;; 13771 *) 13772 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13773 ;; 13774 esac 13775 13776 13777 # First argument is the cpu name from the trip/quad 13778 case "$host_cpu" in 13779 x86_64) 13780 VAR_CPU=x86_64 13781 VAR_CPU_ARCH=x86 13782 VAR_CPU_BITS=64 13783 VAR_CPU_ENDIAN=little 13784 ;; 13785 i?86) 13786 VAR_CPU=x86 13787 VAR_CPU_ARCH=x86 13788 VAR_CPU_BITS=32 13789 VAR_CPU_ENDIAN=little 13790 ;; 13791 arm*) 13792 VAR_CPU=arm 13793 VAR_CPU_ARCH=arm 13794 VAR_CPU_BITS=32 13795 VAR_CPU_ENDIAN=little 13796 ;; 13797 aarch64) 13798 VAR_CPU=aarch64 13799 VAR_CPU_ARCH=aarch64 13800 VAR_CPU_BITS=64 13801 VAR_CPU_ENDIAN=little 13802 ;; 13803 powerpc) 13804 VAR_CPU=ppc 13805 VAR_CPU_ARCH=ppc 13806 VAR_CPU_BITS=32 13807 VAR_CPU_ENDIAN=big 13808 ;; 13809 powerpc64) 13810 VAR_CPU=ppc64 13811 VAR_CPU_ARCH=ppc 13812 VAR_CPU_BITS=64 13813 VAR_CPU_ENDIAN=big 13814 ;; 13815 powerpc64le) 13816 VAR_CPU=ppc64le 13817 VAR_CPU_ARCH=ppc 13818 VAR_CPU_BITS=64 13819 VAR_CPU_ENDIAN=little 13820 ;; 13821 s390) 13822 VAR_CPU=s390 13823 VAR_CPU_ARCH=s390 13824 VAR_CPU_BITS=32 13825 VAR_CPU_ENDIAN=big 13826 ;; 13827 s390x) 13828 VAR_CPU=s390x 13829 VAR_CPU_ARCH=s390 13830 VAR_CPU_BITS=64 13831 VAR_CPU_ENDIAN=big 13832 ;; 13833 sparc) 13834 VAR_CPU=sparc 13835 VAR_CPU_ARCH=sparc 13836 VAR_CPU_BITS=32 13837 VAR_CPU_ENDIAN=big 13838 ;; 13839 sparcv9|sparc64) 13840 VAR_CPU=sparcv9 13841 VAR_CPU_ARCH=sparc 13842 VAR_CPU_BITS=64 13843 VAR_CPU_ENDIAN=big 13844 ;; 13845 *) 13846 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13847 ;; 13848 esac 13849 13850 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13851 OPENJDK_TARGET_OS="$VAR_OS" 13852 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13853 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13854 OPENJDK_TARGET_CPU="$VAR_CPU" 13855 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13856 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13857 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13858 13859 13860 13861 13862 13863 13864 13865 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13867 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13869 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13870 13871 13872 13873 # Check whether --with-target-bits was given. 13874 if test "${with_target_bits+set}" = set; then : 13875 withval=$with_target_bits; 13876 fi 13877 13878 13879 # We have three types of compiles: 13880 # native == normal compilation, target system == build system 13881 # cross == traditional cross compilation, target system != build system; special toolchain needed 13882 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13883 # 13884 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13885 # We're doing a proper cross-compilation 13886 COMPILE_TYPE="cross" 13887 else 13888 COMPILE_TYPE="native" 13889 fi 13890 13891 if test "x$with_target_bits" != x; then 13892 if test "x$COMPILE_TYPE" = "xcross"; then 13893 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13894 fi 13895 13896 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13897 # A reduced build is requested 13898 COMPILE_TYPE="reduced" 13899 OPENJDK_TARGET_CPU_BITS=32 13900 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13901 OPENJDK_TARGET_CPU=x86 13902 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13903 OPENJDK_TARGET_CPU=sparc 13904 else 13905 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13906 fi 13907 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13908 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 13909 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13911 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13912 else 13913 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13914 fi 13915 fi 13916 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13919 $as_echo_n "checking compilation type... " >&6; } 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13921 $as_echo "$COMPILE_TYPE" >&6; } 13922 13923 13924 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13925 REQUIRED_OS_NAME=SunOS 13926 REQUIRED_OS_VERSION=5.10 13927 fi 13928 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13929 REQUIRED_OS_NAME=Linux 13930 REQUIRED_OS_VERSION=2.6 13931 fi 13932 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13933 REQUIRED_OS_NAME=Windows 13934 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13935 REQUIRED_OS_VERSION=5.2 13936 else 13937 REQUIRED_OS_VERSION=5.1 13938 fi 13939 fi 13940 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13941 REQUIRED_OS_NAME=Darwin 13942 REQUIRED_OS_VERSION=11.2 13943 fi 13944 13945 13946 13947 13948 13949 # Also store the legacy naming of the cpu. 13950 # Ie i586 and amd64 instead of x86 and x86_64 13951 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13952 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13953 OPENJDK_TARGET_CPU_LEGACY="i586" 13954 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13955 # On all platforms except MacOSX replace x86_64 with amd64. 13956 OPENJDK_TARGET_CPU_LEGACY="amd64" 13957 fi 13958 13959 13960 # And the second legacy naming of the cpu. 13961 # Ie i386 and amd64 instead of x86 and x86_64. 13962 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13963 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13964 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13965 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13966 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13967 fi 13968 13969 13970 # This is the name of the cpu (but using i386 and amd64 instead of 13971 # x86 and x86_64, respectively), preceeded by a /, to be used when 13972 # locating libraries. On macosx, it's empty, though. 13973 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13975 OPENJDK_TARGET_CPU_LIBDIR="" 13976 fi 13977 13978 13979 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13980 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13981 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13982 OPENJDK_TARGET_CPU_ISADIR="" 13983 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13984 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13985 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13986 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13987 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13988 fi 13989 fi 13990 13991 13992 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13993 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13994 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13995 # On linux only, we replace x86 with i386. 13996 OPENJDK_TARGET_CPU_OSARCH="i386" 13997 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13998 # On all platforms except macosx, we replace x86_64 with amd64. 13999 OPENJDK_TARGET_CPU_OSARCH="amd64" 14000 fi 14001 14002 14003 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14004 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14005 OPENJDK_TARGET_CPU_JLI="i386" 14006 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14007 # On all platforms except macosx, we replace x86_64 with amd64. 14008 OPENJDK_TARGET_CPU_JLI="amd64" 14009 fi 14010 # Now setup the -D flags for building libjli. 14011 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14012 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14013 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14014 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14015 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14016 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14017 fi 14018 elif test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$TOOLCHAIN_TYPE" = xclang ; then 14019 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -stdlib=libc++ -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 14020 fi 14021 14022 14023 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 14024 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 14025 OPENJDK_TARGET_OS_API_DIR="solaris" 14026 fi 14027 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 14028 OPENJDK_TARGET_OS_API_DIR="windows" 14029 fi 14030 14031 14032 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14033 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14034 else 14035 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 14036 fi 14037 14038 14039 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14040 A_LP64="LP64:=" 14041 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14042 # unpack200.exe 14043 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14044 ADD_LP64="-D_LP64=1" 14045 fi 14046 fi 14047 LP64=$A_LP64 14048 14049 14050 if test "x$COMPILE_TYPE" = "xcross"; then 14051 # FIXME: ... or should this include reduced builds..? 14052 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14053 else 14054 DEFINE_CROSS_COMPILE_ARCH="" 14055 fi 14056 14057 14058 # ZERO_ARCHDEF is used to enable architecture-specific code 14059 case "${OPENJDK_TARGET_CPU}" in 14060 ppc) ZERO_ARCHDEF=PPC32 ;; 14061 ppc64) ZERO_ARCHDEF=PPC64 ;; 14062 s390*) ZERO_ARCHDEF=S390 ;; 14063 sparc*) ZERO_ARCHDEF=SPARC ;; 14064 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14065 x86) ZERO_ARCHDEF=IA32 ;; 14066 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14067 esac 14068 14069 14070 14071 14072 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14073 14074 # Save the current directory this script was started from 14075 CURDIR="$PWD" 14076 14077 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14078 PATH_SEP=";" 14079 14080 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14081 if test $SRC_ROOT_LENGTH -gt 100; then 14082 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14083 fi 14084 14085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14087 $as_echo_n "checking cygwin release... " >&6; } 14088 CYGWIN_VERSION=`$UNAME -r` 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14090 $as_echo "$CYGWIN_VERSION" >&6; } 14091 WINDOWS_ENV_VENDOR='cygwin' 14092 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14093 14094 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14095 if test "x$CYGWIN_VERSION_OLD" != x; then 14096 { $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 14097 $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;} 14098 as_fn_error $? "Cannot continue" "$LINENO" 5 14099 fi 14100 if test "x$CYGPATH" = x; then 14101 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14102 fi 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14104 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14105 # The cmd output ends with Windows line endings (CR/LF) 14106 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 14107 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14108 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14110 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14111 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14112 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14113 if test "x$test_cygdrive_prefix" = x; then 14114 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14115 fi 14116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14118 $as_echo_n "checking msys release... " >&6; } 14119 MSYS_VERSION=`$UNAME -r` 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14121 $as_echo "$MSYS_VERSION" >&6; } 14122 14123 WINDOWS_ENV_VENDOR='msys' 14124 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14125 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14127 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14128 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14129 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14130 14131 windows_path="$MSYS_ROOT_PATH" 14132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14133 unix_path=`$CYGPATH -u "$windows_path"` 14134 MSYS_ROOT_PATH="$unix_path" 14135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14137 MSYS_ROOT_PATH="$unix_path" 14138 fi 14139 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14141 $as_echo "$MSYS_ROOT_PATH" >&6; } 14142 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14143 else 14144 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14145 fi 14146 14147 # Test if windows or unix (cygwin/msys) find is first in path. 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14149 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14150 FIND_BINARY_OUTPUT=`find --version 2>&1` 14151 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14153 $as_echo "unix style" >&6; } 14154 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14156 $as_echo "Windows" >&6; } 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14158 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14159 { $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 14160 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14161 as_fn_error $? "Cannot continue" "$LINENO" 5 14162 else 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14164 $as_echo "unknown" >&6; } 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14166 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14167 fi 14168 14169 else 14170 PATH_SEP=":" 14171 fi 14172 14173 14174 # We get the top-level directory from the supporting wrappers. 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14176 $as_echo_n "checking for top-level directory... " >&6; } 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14178 $as_echo "$TOPDIR" >&6; } 14179 14180 14181 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14182 14183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14184 14185 # Input might be given as Windows format, start by converting to 14186 # unix format. 14187 path="$CURDIR" 14188 new_path=`$CYGPATH -u "$path"` 14189 14190 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14191 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14192 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14193 # "foo.exe" is OK but "foo" is an error. 14194 # 14195 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14196 # It is also a way to make sure we got the proper file name for the real test later on. 14197 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14198 if test "x$test_shortpath" = x; then 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14200 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14201 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14202 fi 14203 14204 # Call helper function which possibly converts this using DOS-style short mode. 14205 # If so, the updated path is stored in $new_path. 14206 14207 input_path="$new_path" 14208 # Check if we need to convert this using DOS-style short mode. If the path 14209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14210 # take no chances and rewrite it. 14211 # Note: m4 eats our [], so we need to use [ and ] instead. 14212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14213 if test "x$has_forbidden_chars" != x; then 14214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14215 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14216 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14217 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14218 # Going to short mode and back again did indeed matter. Since short mode is 14219 # case insensitive, let's make it lowercase to improve readability. 14220 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14221 # Now convert it back to Unix-style (cygpath) 14222 input_path=`$CYGPATH -u "$shortmode_path"` 14223 new_path="$input_path" 14224 fi 14225 fi 14226 14227 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14228 if test "x$test_cygdrive_prefix" = x; then 14229 # As a simple fix, exclude /usr/bin since it's not a real path. 14230 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14231 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14232 # a path prefixed by /cygdrive for fixpath to work. 14233 new_path="$CYGWIN_ROOT_PATH$input_path" 14234 fi 14235 fi 14236 14237 14238 if test "x$path" != "x$new_path"; then 14239 CURDIR="$new_path" 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14241 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14242 fi 14243 14244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14245 14246 path="$CURDIR" 14247 has_colon=`$ECHO $path | $GREP ^.:` 14248 new_path="$path" 14249 if test "x$has_colon" = x; then 14250 # Not in mixed or Windows style, start by that. 14251 new_path=`cmd //c echo $path` 14252 fi 14253 14254 14255 input_path="$new_path" 14256 # Check if we need to convert this using DOS-style short mode. If the path 14257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14258 # take no chances and rewrite it. 14259 # Note: m4 eats our [], so we need to use [ and ] instead. 14260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14261 if test "x$has_forbidden_chars" != x; then 14262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14263 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14264 fi 14265 14266 14267 windows_path="$new_path" 14268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14269 unix_path=`$CYGPATH -u "$windows_path"` 14270 new_path="$unix_path" 14271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14273 new_path="$unix_path" 14274 fi 14275 14276 if test "x$path" != "x$new_path"; then 14277 CURDIR="$new_path" 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14279 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14280 fi 14281 14282 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14283 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14284 14285 else 14286 # We're on a posix platform. Hooray! :) 14287 path="$CURDIR" 14288 has_space=`$ECHO "$path" | $GREP " "` 14289 if test "x$has_space" != x; then 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14291 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14292 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14293 fi 14294 14295 # Use eval to expand a potential ~ 14296 eval path="$path" 14297 if test ! -f "$path" && test ! -d "$path"; then 14298 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14299 fi 14300 14301 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14302 fi 14303 14304 14305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14306 14307 # Input might be given as Windows format, start by converting to 14308 # unix format. 14309 path="$TOPDIR" 14310 new_path=`$CYGPATH -u "$path"` 14311 14312 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14313 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14314 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14315 # "foo.exe" is OK but "foo" is an error. 14316 # 14317 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14318 # It is also a way to make sure we got the proper file name for the real test later on. 14319 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14320 if test "x$test_shortpath" = x; then 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14322 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14323 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14324 fi 14325 14326 # Call helper function which possibly converts this using DOS-style short mode. 14327 # If so, the updated path is stored in $new_path. 14328 14329 input_path="$new_path" 14330 # Check if we need to convert this using DOS-style short mode. If the path 14331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14332 # take no chances and rewrite it. 14333 # Note: m4 eats our [], so we need to use [ and ] instead. 14334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14335 if test "x$has_forbidden_chars" != x; then 14336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14337 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14338 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14339 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14340 # Going to short mode and back again did indeed matter. Since short mode is 14341 # case insensitive, let's make it lowercase to improve readability. 14342 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14343 # Now convert it back to Unix-style (cygpath) 14344 input_path=`$CYGPATH -u "$shortmode_path"` 14345 new_path="$input_path" 14346 fi 14347 fi 14348 14349 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14350 if test "x$test_cygdrive_prefix" = x; then 14351 # As a simple fix, exclude /usr/bin since it's not a real path. 14352 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14353 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14354 # a path prefixed by /cygdrive for fixpath to work. 14355 new_path="$CYGWIN_ROOT_PATH$input_path" 14356 fi 14357 fi 14358 14359 14360 if test "x$path" != "x$new_path"; then 14361 TOPDIR="$new_path" 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14363 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14364 fi 14365 14366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14367 14368 path="$TOPDIR" 14369 has_colon=`$ECHO $path | $GREP ^.:` 14370 new_path="$path" 14371 if test "x$has_colon" = x; then 14372 # Not in mixed or Windows style, start by that. 14373 new_path=`cmd //c echo $path` 14374 fi 14375 14376 14377 input_path="$new_path" 14378 # Check if we need to convert this using DOS-style short mode. If the path 14379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14380 # take no chances and rewrite it. 14381 # Note: m4 eats our [], so we need to use [ and ] instead. 14382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14383 if test "x$has_forbidden_chars" != x; then 14384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14385 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14386 fi 14387 14388 14389 windows_path="$new_path" 14390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14391 unix_path=`$CYGPATH -u "$windows_path"` 14392 new_path="$unix_path" 14393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14395 new_path="$unix_path" 14396 fi 14397 14398 if test "x$path" != "x$new_path"; then 14399 TOPDIR="$new_path" 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14401 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14402 fi 14403 14404 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14405 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14406 14407 else 14408 # We're on a posix platform. Hooray! :) 14409 path="$TOPDIR" 14410 has_space=`$ECHO "$path" | $GREP " "` 14411 if test "x$has_space" != x; then 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14413 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14414 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14415 fi 14416 14417 # Use eval to expand a potential ~ 14418 eval path="$path" 14419 if test ! -f "$path" && test ! -d "$path"; then 14420 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14421 fi 14422 14423 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14424 fi 14425 14426 # SRC_ROOT is a traditional alias for TOPDIR. 14427 SRC_ROOT=$TOPDIR 14428 14429 # Locate the directory of this script. 14430 AUTOCONF_DIR=$TOPDIR/common/autoconf 14431 14432 14433 # Setup default logging of stdout and stderr to build.log in the output root. 14434 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14435 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14436 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14437 14438 14439 14440 14441 14442 # Check if it's a pure open build or if custom sources are to be used. 14443 14444 # Check whether --enable-openjdk-only was given. 14445 if test "${enable_openjdk_only+set}" = set; then : 14446 enableval=$enable_openjdk_only; 14447 else 14448 enable_openjdk_only="no" 14449 fi 14450 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14453 $as_echo_n "checking for presence of closed sources... " >&6; } 14454 if test -d "$SRC_ROOT/jdk/src/closed"; then 14455 CLOSED_SOURCE_PRESENT=yes 14456 else 14457 CLOSED_SOURCE_PRESENT=no 14458 fi 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14460 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14461 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14463 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14464 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14466 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14467 14468 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14469 OPENJDK=true 14470 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14472 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14473 fi 14474 else 14475 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14476 OPENJDK=true 14477 else 14478 OPENJDK=false 14479 fi 14480 fi 14481 14482 if test "x$OPENJDK" = "xtrue"; then 14483 SET_OPENJDK="OPENJDK=true" 14484 fi 14485 14486 14487 14488 14489 # These are needed to be able to create a configuration name (and thus the output directory) 14490 14491 ############################################################################### 14492 # 14493 # Check which variant of the JDK that we want to build. 14494 # Currently we have: 14495 # normal: standard edition 14496 # but the custom make system may add other variants 14497 # 14498 # Effectively the JDK variant gives a name to a specific set of 14499 # modules to compile into the JDK. In the future, these modules 14500 # might even be Jigsaw modules. 14501 # 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14503 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14504 14505 # Check whether --with-jdk-variant was given. 14506 if test "${with_jdk_variant+set}" = set; then : 14507 withval=$with_jdk_variant; 14508 fi 14509 14510 14511 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14512 JDK_VARIANT="normal" 14513 else 14514 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14515 fi 14516 14517 14518 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14520 $as_echo "$JDK_VARIANT" >&6; } 14521 14522 14523 ############################################################################### 14524 # 14525 # Check which interpreter of the JVM we want to build. 14526 # Currently we have: 14527 # template: Template interpreter (the default) 14528 # cpp : C++ interpreter 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14530 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14531 14532 # Check whether --with-jvm-interpreter was given. 14533 if test "${with_jvm_interpreter+set}" = set; then : 14534 withval=$with_jvm_interpreter; 14535 fi 14536 14537 14538 if test "x$with_jvm_interpreter" = x; then 14539 with_jvm_interpreter="template" 14540 fi 14541 14542 JVM_INTERPRETER="$with_jvm_interpreter" 14543 14544 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14545 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14546 fi 14547 14548 14549 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14551 $as_echo "$with_jvm_interpreter" >&6; } 14552 14553 14554 14555 ############################################################################### 14556 # 14557 # Check which variants of the JVM that we want to build. 14558 # Currently we have: 14559 # server: normal interpreter and a tiered C1/C2 compiler 14560 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14561 # minimal1: reduced form of client with optional VM services and features stripped out 14562 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14563 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14564 # zero: no machine code interpreter, no compiler 14565 # zeroshark: zero interpreter and shark/llvm compiler backend 14566 # core: interpreter only, no compiler (only works on some platforms) 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14568 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14569 14570 # Check whether --with-jvm-variants was given. 14571 if test "${with_jvm_variants+set}" = set; then : 14572 withval=$with_jvm_variants; 14573 fi 14574 14575 14576 if test "x$with_jvm_variants" = x; then 14577 with_jvm_variants="server" 14578 fi 14579 14580 JVM_VARIANTS=",$with_jvm_variants," 14581 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,//'` 14582 14583 if test "x$TEST_VARIANTS" != "x,"; then 14584 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14585 fi 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14587 $as_echo "$with_jvm_variants" >&6; } 14588 14589 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14590 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14591 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14592 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14593 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14594 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14595 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14596 14597 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14598 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14599 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14600 fi 14601 fi 14602 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14603 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14604 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14605 fi 14606 fi 14607 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14608 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14609 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14610 fi 14611 fi 14612 14613 # Replace the commas with AND for use in the build directory name. 14614 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14615 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/'` 14616 if test "x$COUNT_VARIANTS" != "x,1"; then 14617 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14618 else 14619 BUILDING_MULTIPLE_JVM_VARIANTS=no 14620 fi 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 INCLUDE_SA=true 14632 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14633 INCLUDE_SA=false 14634 fi 14635 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14636 INCLUDE_SA=false 14637 fi 14638 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then 14639 INCLUDE_SA=false 14640 fi 14641 14642 14643 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14644 MACOSX_UNIVERSAL="false" 14645 fi 14646 14647 14648 14649 14650 ############################################################################### 14651 # 14652 # Set the debug level 14653 # release: no debug information, all optimizations, no asserts. 14654 # fastdebug: debug information (-g), all optimizations, all asserts 14655 # slowdebug: debug information (-g), no optimizations, all asserts 14656 # 14657 DEBUG_LEVEL="release" 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14659 $as_echo_n "checking which debug level to use... " >&6; } 14660 # Check whether --enable-debug was given. 14661 if test "${enable_debug+set}" = set; then : 14662 enableval=$enable_debug; 14663 ENABLE_DEBUG="${enableval}" 14664 DEBUG_LEVEL="fastdebug" 14665 14666 else 14667 ENABLE_DEBUG="no" 14668 fi 14669 14670 14671 14672 # Check whether --with-debug-level was given. 14673 if test "${with_debug_level+set}" = set; then : 14674 withval=$with_debug_level; 14675 DEBUG_LEVEL="${withval}" 14676 if test "x$ENABLE_DEBUG" = xyes; then 14677 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14678 fi 14679 14680 fi 14681 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14683 $as_echo "$DEBUG_LEVEL" >&6; } 14684 14685 if test "x$DEBUG_LEVEL" != xrelease && \ 14686 test "x$DEBUG_LEVEL" != xfastdebug && \ 14687 test "x$DEBUG_LEVEL" != xslowdebug; then 14688 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14689 fi 14690 14691 14692 ############################################################################### 14693 # 14694 # Setup legacy vars/targets and new vars to deal with different debug levels. 14695 # 14696 14697 case $DEBUG_LEVEL in 14698 release ) 14699 VARIANT="OPT" 14700 FASTDEBUG="false" 14701 DEBUG_CLASSFILES="false" 14702 BUILD_VARIANT_RELEASE="" 14703 HOTSPOT_DEBUG_LEVEL="product" 14704 HOTSPOT_EXPORT="product" 14705 ;; 14706 fastdebug ) 14707 VARIANT="DBG" 14708 FASTDEBUG="true" 14709 DEBUG_CLASSFILES="true" 14710 BUILD_VARIANT_RELEASE="-fastdebug" 14711 HOTSPOT_DEBUG_LEVEL="fastdebug" 14712 HOTSPOT_EXPORT="fastdebug" 14713 ;; 14714 slowdebug ) 14715 VARIANT="DBG" 14716 FASTDEBUG="false" 14717 DEBUG_CLASSFILES="true" 14718 BUILD_VARIANT_RELEASE="-debug" 14719 HOTSPOT_DEBUG_LEVEL="jvmg" 14720 HOTSPOT_EXPORT="debug" 14721 ;; 14722 esac 14723 14724 ##### 14725 # Generate the legacy makefile targets for hotspot. 14726 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14727 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14728 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14729 # But until then ... 14730 HOTSPOT_TARGET="" 14731 14732 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14733 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14734 fi 14735 14736 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14737 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14738 fi 14739 14740 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14741 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14742 fi 14743 14744 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14745 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14746 fi 14747 14748 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14749 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14750 fi 14751 14752 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14753 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14754 fi 14755 14756 if test "x$JVM_VARIANT_CORE" = xtrue; then 14757 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14758 fi 14759 14760 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14761 14762 # On Macosx universal binaries are produced, but they only contain 14763 # 64 bit intel. This invalidates control of which jvms are built 14764 # from configure, but only server is valid anyway. Fix this 14765 # when hotspot makefiles are rewritten. 14766 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14767 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14768 fi 14769 14770 ##### 14771 14772 14773 14774 14775 14776 14777 14778 14779 # With basic setup done, call the custom early hook. 14780 14781 14782 # Check if we have devkits, extra paths or sysroot set. 14783 14784 14785 # Check whether --with-devkit was given. 14786 if test "${with_devkit+set}" = set; then : 14787 withval=$with_devkit; 14788 fi 14789 14790 14791 if test "x$with_devkit" = xyes; then 14792 as_fn_error $? "--with-devkit must have a value" "$LINENO" 5 14793 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then 14794 14795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14796 14797 # Input might be given as Windows format, start by converting to 14798 # unix format. 14799 path="$with_devkit" 14800 new_path=`$CYGPATH -u "$path"` 14801 14802 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14803 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14804 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14805 # "foo.exe" is OK but "foo" is an error. 14806 # 14807 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14808 # It is also a way to make sure we got the proper file name for the real test later on. 14809 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14810 if test "x$test_shortpath" = x; then 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14812 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14813 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14814 fi 14815 14816 # Call helper function which possibly converts this using DOS-style short mode. 14817 # If so, the updated path is stored in $new_path. 14818 14819 input_path="$new_path" 14820 # Check if we need to convert this using DOS-style short mode. If the path 14821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14822 # take no chances and rewrite it. 14823 # Note: m4 eats our [], so we need to use [ and ] instead. 14824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14825 if test "x$has_forbidden_chars" != x; then 14826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14827 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14828 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14829 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14830 # Going to short mode and back again did indeed matter. Since short mode is 14831 # case insensitive, let's make it lowercase to improve readability. 14832 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14833 # Now convert it back to Unix-style (cygpath) 14834 input_path=`$CYGPATH -u "$shortmode_path"` 14835 new_path="$input_path" 14836 fi 14837 fi 14838 14839 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14840 if test "x$test_cygdrive_prefix" = x; then 14841 # As a simple fix, exclude /usr/bin since it's not a real path. 14842 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14843 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14844 # a path prefixed by /cygdrive for fixpath to work. 14845 new_path="$CYGWIN_ROOT_PATH$input_path" 14846 fi 14847 fi 14848 14849 14850 if test "x$path" != "x$new_path"; then 14851 with_devkit="$new_path" 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14853 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14854 fi 14855 14856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14857 14858 path="$with_devkit" 14859 has_colon=`$ECHO $path | $GREP ^.:` 14860 new_path="$path" 14861 if test "x$has_colon" = x; then 14862 # Not in mixed or Windows style, start by that. 14863 new_path=`cmd //c echo $path` 14864 fi 14865 14866 14867 input_path="$new_path" 14868 # Check if we need to convert this using DOS-style short mode. If the path 14869 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14870 # take no chances and rewrite it. 14871 # Note: m4 eats our [], so we need to use [ and ] instead. 14872 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14873 if test "x$has_forbidden_chars" != x; then 14874 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14875 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14876 fi 14877 14878 14879 windows_path="$new_path" 14880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14881 unix_path=`$CYGPATH -u "$windows_path"` 14882 new_path="$unix_path" 14883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14885 new_path="$unix_path" 14886 fi 14887 14888 if test "x$path" != "x$new_path"; then 14889 with_devkit="$new_path" 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14891 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14892 fi 14893 14894 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14895 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14896 14897 else 14898 # We're on a posix platform. Hooray! :) 14899 path="$with_devkit" 14900 has_space=`$ECHO "$path" | $GREP " "` 14901 if test "x$has_space" != x; then 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14903 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14904 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14905 fi 14906 14907 # Use eval to expand a potential ~ 14908 eval path="$path" 14909 if test ! -f "$path" && test ! -d "$path"; then 14910 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14911 fi 14912 14913 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14914 fi 14915 14916 DEVKIT_ROOT="$with_devkit" 14917 # Check for a meta data info file in the root of the devkit 14918 if test -f "$DEVKIT_ROOT/devkit.info"; then 14919 . $DEVKIT_ROOT/devkit.info 14920 # This potentially sets the following: 14921 # A descriptive name of the devkit 14922 14923 if test "x$DEVKIT_NAME" = x; then 14924 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 14925 fi 14926 14927 # Corresponds to --with-extra-path 14928 14929 if test "x$DEVKIT_EXTRA_PATH" = x; then 14930 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 14931 fi 14932 14933 # Corresponds to --with-toolchain-path 14934 14935 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14936 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 14937 fi 14938 14939 # Corresponds to --with-sysroot 14940 14941 if test "x$DEVKIT_SYSROOT" = x; then 14942 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 14943 fi 14944 14945 14946 # Identifies the Visual Studio version in the devkit 14947 14948 if test "x$DEVKIT_VS_VERSION" = x; then 14949 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 14950 fi 14951 14952 # The Visual Studio include environment variable 14953 14954 if test "x$DEVKIT_VS_INCLUDE" = x; then 14955 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 14956 fi 14957 14958 # The Visual Studio lib environment variable 14959 14960 if test "x$DEVKIT_VS_LIB" = x; then 14961 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 14962 fi 14963 14964 # Corresponds to --with-msvcr-dll 14965 14966 if test "x$DEVKIT_MSVCR_DLL" = x; then 14967 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 14968 fi 14969 14970 # Corresponds to --with-msvcp-dll 14971 14972 if test "x$DEVKIT_MSVCP_DLL" = x; then 14973 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 14974 fi 14975 14976 # Corresponds to --with-ucrt-dll-dir 14977 14978 if test "x$DEVKIT_UCRT_DLL_DIR" = x; then 14979 eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}" 14980 fi 14981 14982 fi 14983 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14985 $as_echo_n "checking for devkit... " >&6; } 14986 if test "x$DEVKIT_NAME" != x; then 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14988 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14989 else 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14991 $as_echo "$DEVKIT_ROOT" >&6; } 14992 fi 14993 14994 14995 if test "x$DEVKIT_EXTRA_PATH" != x; then 14996 if test "x$EXTRA_PATH" = x; then 14997 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14998 else 14999 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 15000 fi 15001 fi 15002 15003 15004 # Fallback default of just /bin if DEVKIT_PATH is not defined 15005 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15006 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15007 fi 15008 15009 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15010 if test "x$TOOLCHAIN_PATH" = x; then 15011 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15012 else 15013 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15014 fi 15015 fi 15016 15017 15018 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15019 # places for backwards compatiblity. 15020 if test "x$DEVKIT_SYSROOT" != x; then 15021 SYSROOT="$DEVKIT_SYSROOT" 15022 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15023 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15024 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15025 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15026 fi 15027 15028 if test "x$DEVKIT_ROOT" != x; then 15029 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 15030 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15031 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 15032 fi 15033 15034 fi 15035 fi 15036 15037 # You can force the sysroot if the sysroot encoded into the compiler tools 15038 # is not correct. 15039 15040 # Check whether --with-sys-root was given. 15041 if test "${with_sys_root+set}" = set; then : 15042 withval=$with_sys_root; SYSROOT=$with_sys_root 15043 15044 fi 15045 15046 15047 15048 # Check whether --with-sysroot was given. 15049 if test "${with_sysroot+set}" = set; then : 15050 withval=$with_sysroot; SYSROOT=$with_sysroot 15051 15052 fi 15053 15054 15055 15056 # Check whether --with-tools-dir was given. 15057 if test "${with_tools_dir+set}" = set; then : 15058 withval=$with_tools_dir; 15059 if test "x$with_tools_dir" != x; then 15060 if test "x$TOOLCHAIN_PATH" = x; then 15061 TOOLCHAIN_PATH="$with_tools_dir" 15062 else 15063 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15064 fi 15065 fi 15066 15067 15068 fi 15069 15070 15071 15072 # Check whether --with-toolchain-path was given. 15073 if test "${with_toolchain_path+set}" = set; then : 15074 withval=$with_toolchain_path; 15075 if test "x$with_toolchain_path" != x; then 15076 if test "x$TOOLCHAIN_PATH" = x; then 15077 TOOLCHAIN_PATH="$with_toolchain_path" 15078 else 15079 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15080 fi 15081 fi 15082 15083 15084 fi 15085 15086 15087 15088 # Check whether --with-extra-path was given. 15089 if test "${with_extra_path+set}" = set; then : 15090 withval=$with_extra_path; 15091 if test "x$with_extra_path" != x; then 15092 if test "x$EXTRA_PATH" = x; then 15093 EXTRA_PATH="$with_extra_path" 15094 else 15095 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15096 fi 15097 fi 15098 15099 15100 fi 15101 15102 15103 # Prepend the extra path to the global path 15104 15105 if test "x$EXTRA_PATH" != x; then 15106 if test "x$PATH" = x; then 15107 PATH="$EXTRA_PATH" 15108 else 15109 PATH="$EXTRA_PATH:$PATH" 15110 fi 15111 fi 15112 15113 15114 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15115 # Add extra search paths on solaris for utilities like ar and as etc... 15116 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15117 fi 15118 15119 # Xcode version will be validated later 15120 15121 # Check whether --with-xcode-path was given. 15122 if test "${with_xcode_path+set}" = set; then : 15123 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 15124 15125 fi 15126 15127 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15129 $as_echo_n "checking for sysroot... " >&6; } 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15131 $as_echo "$SYSROOT" >&6; } 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15133 $as_echo_n "checking for toolchain path... " >&6; } 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15135 $as_echo "$TOOLCHAIN_PATH" >&6; } 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15137 $as_echo_n "checking for extra path... " >&6; } 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15139 $as_echo "$EXTRA_PATH" >&6; } 15140 15141 15142 # To properly create a configuration name, we need to have the OpenJDK target 15143 # and options (variants and debug level) parsed. 15144 15145 15146 15147 # Check whether --with-conf-name was given. 15148 if test "${with_conf_name+set}" = set; then : 15149 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15150 fi 15151 15152 15153 # Test from where we are running configure, in or outside of src root. 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15155 $as_echo_n "checking where to store configuration... " >&6; } 15156 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15157 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15158 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15159 # We are running configure from the src root. 15160 # Create a default ./build/target-variant-debuglevel output root. 15161 if test "x${CONF_NAME}" = x; then 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15163 $as_echo "in default location" >&6; } 15164 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15165 else 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15167 $as_echo "in build directory with custom name" >&6; } 15168 fi 15169 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15170 $MKDIR -p "$OUTPUT_ROOT" 15171 if test ! -d "$OUTPUT_ROOT"; then 15172 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15173 fi 15174 else 15175 # We are running configure from outside of the src dir. 15176 # Then use the current directory as output dir! 15177 # If configuration is situated in normal build directory, just use the build 15178 # directory name as configuration name, otherwise use the complete path. 15179 if test "x${CONF_NAME}" = x; then 15180 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15181 fi 15182 OUTPUT_ROOT="$CURDIR" 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15184 $as_echo "in current directory" >&6; } 15185 15186 # WARNING: This might be a bad thing to do. You need to be sure you want to 15187 # have a configuration in this directory. Do some sanity checks! 15188 15189 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15190 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15191 # other files 15192 files_present=`$LS $OUTPUT_ROOT` 15193 # Configure has already touched config.log and confdefs.h in the current dir when this check 15194 # is performed. 15195 filtered_files=`$ECHO "$files_present" \ 15196 | $SED -e 's/config.log//g' \ 15197 -e 's/configure.log//g' \ 15198 -e 's/confdefs.h//g' \ 15199 -e 's/ //g' \ 15200 | $TR -d '\n'` 15201 if test "x$filtered_files" != x; then 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15203 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15205 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15207 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15209 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15211 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15213 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15215 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15216 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15217 fi 15218 fi 15219 fi 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15221 $as_echo_n "checking what configuration name to use... " >&6; } 15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15223 $as_echo "$CONF_NAME" >&6; } 15224 15225 15226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15227 15228 # Input might be given as Windows format, start by converting to 15229 # unix format. 15230 path="$OUTPUT_ROOT" 15231 new_path=`$CYGPATH -u "$path"` 15232 15233 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15234 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15235 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15236 # "foo.exe" is OK but "foo" is an error. 15237 # 15238 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15239 # It is also a way to make sure we got the proper file name for the real test later on. 15240 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15241 if test "x$test_shortpath" = x; then 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15243 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15244 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15245 fi 15246 15247 # Call helper function which possibly converts this using DOS-style short mode. 15248 # If so, the updated path is stored in $new_path. 15249 15250 input_path="$new_path" 15251 # Check if we need to convert this using DOS-style short mode. If the path 15252 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15253 # take no chances and rewrite it. 15254 # Note: m4 eats our [], so we need to use [ and ] instead. 15255 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15256 if test "x$has_forbidden_chars" != x; then 15257 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15258 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15259 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15260 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15261 # Going to short mode and back again did indeed matter. Since short mode is 15262 # case insensitive, let's make it lowercase to improve readability. 15263 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15264 # Now convert it back to Unix-style (cygpath) 15265 input_path=`$CYGPATH -u "$shortmode_path"` 15266 new_path="$input_path" 15267 fi 15268 fi 15269 15270 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15271 if test "x$test_cygdrive_prefix" = x; then 15272 # As a simple fix, exclude /usr/bin since it's not a real path. 15273 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15274 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15275 # a path prefixed by /cygdrive for fixpath to work. 15276 new_path="$CYGWIN_ROOT_PATH$input_path" 15277 fi 15278 fi 15279 15280 15281 if test "x$path" != "x$new_path"; then 15282 OUTPUT_ROOT="$new_path" 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15284 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15285 fi 15286 15287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15288 15289 path="$OUTPUT_ROOT" 15290 has_colon=`$ECHO $path | $GREP ^.:` 15291 new_path="$path" 15292 if test "x$has_colon" = x; then 15293 # Not in mixed or Windows style, start by that. 15294 new_path=`cmd //c echo $path` 15295 fi 15296 15297 15298 input_path="$new_path" 15299 # Check if we need to convert this using DOS-style short mode. If the path 15300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15301 # take no chances and rewrite it. 15302 # Note: m4 eats our [], so we need to use [ and ] instead. 15303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15304 if test "x$has_forbidden_chars" != x; then 15305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15307 fi 15308 15309 15310 windows_path="$new_path" 15311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15312 unix_path=`$CYGPATH -u "$windows_path"` 15313 new_path="$unix_path" 15314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15316 new_path="$unix_path" 15317 fi 15318 15319 if test "x$path" != "x$new_path"; then 15320 OUTPUT_ROOT="$new_path" 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15322 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15323 fi 15324 15325 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15326 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15327 15328 else 15329 # We're on a posix platform. Hooray! :) 15330 path="$OUTPUT_ROOT" 15331 has_space=`$ECHO "$path" | $GREP " "` 15332 if test "x$has_space" != x; then 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15334 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15335 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15336 fi 15337 15338 # Use eval to expand a potential ~ 15339 eval path="$path" 15340 if test ! -f "$path" && test ! -d "$path"; then 15341 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15342 fi 15343 15344 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15345 fi 15346 15347 15348 SPEC=$OUTPUT_ROOT/spec.gmk 15349 15350 CONF_NAME=$CONF_NAME 15351 15352 OUTPUT_ROOT=$OUTPUT_ROOT 15353 15354 15355 # Most of the probed defines are put into config.h 15356 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15357 15358 # The spec.gmk file contains all variables for the make system. 15359 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15360 15361 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15362 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15363 15364 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15365 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15366 15367 # The compare.sh is used to compare the build output to other builds. 15368 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15369 15370 # Spec.sh is currently used by compare-objects.sh 15371 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15372 15373 # The generated Makefile knows where the spec.gmk is and where the source is. 15374 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15375 # which will look for generated configurations 15376 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15377 15378 15379 15380 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15381 15382 for ac_prog in apt-get yum port pkgutil pkgadd 15383 do 15384 # Extract the first word of "$ac_prog", so it can be a program name with args. 15385 set dummy $ac_prog; ac_word=$2 15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15387 $as_echo_n "checking for $ac_word... " >&6; } 15388 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15389 $as_echo_n "(cached) " >&6 15390 else 15391 if test -n "$PKGHANDLER"; then 15392 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15393 else 15394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15395 for as_dir in $PATH 15396 do 15397 IFS=$as_save_IFS 15398 test -z "$as_dir" && as_dir=. 15399 for ac_exec_ext in '' $ac_executable_extensions; do 15400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15401 ac_cv_prog_PKGHANDLER="$ac_prog" 15402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15403 break 2 15404 fi 15405 done 15406 done 15407 IFS=$as_save_IFS 15408 15409 fi 15410 fi 15411 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15412 if test -n "$PKGHANDLER"; then 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15414 $as_echo "$PKGHANDLER" >&6; } 15415 else 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15417 $as_echo "no" >&6; } 15418 fi 15419 15420 15421 test -n "$PKGHANDLER" && break 15422 done 15423 15424 15425 15426 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15427 15428 15429 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15430 if test "x$MAKE" != x; then 15431 # User has supplied a make, test it. 15432 if test ! -f "$MAKE"; then 15433 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15434 fi 15435 15436 MAKE_CANDIDATE=""$MAKE"" 15437 DESCRIPTION="user supplied MAKE=$MAKE" 15438 if test "x$MAKE_CANDIDATE" != x; then 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15440 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15441 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15442 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15443 if test "x$IS_GNU_MAKE" = x; then 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15445 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15446 else 15447 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15448 if test "x$IS_MODERN_MAKE" = x; then 15449 { $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 15450 $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;} 15451 else 15452 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15454 MAKE_EXPECTED_ENV='cygwin' 15455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15456 MAKE_EXPECTED_ENV='msys' 15457 else 15458 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15459 fi 15460 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15461 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15462 else 15463 # Not relevant for non-Windows 15464 IS_MAKE_CORRECT_ENV=true 15465 fi 15466 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15467 { $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 15468 $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;} 15469 else 15470 FOUND_MAKE=$MAKE_CANDIDATE 15471 15472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15473 15474 # First separate the path from the arguments. This will split at the first 15475 # space. 15476 complete="$FOUND_MAKE" 15477 path="${complete%% *}" 15478 tmp="$complete EOL" 15479 arguments="${tmp#* }" 15480 15481 # Input might be given as Windows format, start by converting to 15482 # unix format. 15483 new_path=`$CYGPATH -u "$path"` 15484 15485 # Now try to locate executable using which 15486 new_path=`$WHICH "$new_path" 2> /dev/null` 15487 # bat and cmd files are not always considered executable in cygwin causing which 15488 # to not find them 15489 if test "x$new_path" = x \ 15490 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15491 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15492 new_path=`$CYGPATH -u "$path"` 15493 fi 15494 if test "x$new_path" = x; then 15495 # Oops. Which didn't find the executable. 15496 # The splitting of arguments from the executable at a space might have been incorrect, 15497 # since paths with space are more likely in Windows. Give it another try with the whole 15498 # argument. 15499 path="$complete" 15500 arguments="EOL" 15501 new_path=`$CYGPATH -u "$path"` 15502 new_path=`$WHICH "$new_path" 2> /dev/null` 15503 # bat and cmd files are not always considered executable in cygwin causing which 15504 # to not find them 15505 if test "x$new_path" = x \ 15506 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15507 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15508 new_path=`$CYGPATH -u "$path"` 15509 fi 15510 if test "x$new_path" = x; then 15511 # It's still not found. Now this is an unrecoverable error. 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15513 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15514 has_space=`$ECHO "$complete" | $GREP " "` 15515 if test "x$has_space" != x; then 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15518 fi 15519 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15520 fi 15521 fi 15522 15523 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15524 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15525 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15526 # "foo.exe" is OK but "foo" is an error. 15527 # 15528 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15529 # It is also a way to make sure we got the proper file name for the real test later on. 15530 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15531 if test "x$test_shortpath" = x; then 15532 # Short path failed, file does not exist as specified. 15533 # Try adding .exe or .cmd 15534 if test -f "${new_path}.exe"; then 15535 input_to_shortpath="${new_path}.exe" 15536 elif test -f "${new_path}.cmd"; then 15537 input_to_shortpath="${new_path}.cmd" 15538 else 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15540 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15541 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15542 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15543 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15544 fi 15545 else 15546 input_to_shortpath="$new_path" 15547 fi 15548 15549 # Call helper function which possibly converts this using DOS-style short mode. 15550 # If so, the updated path is stored in $new_path. 15551 new_path="$input_to_shortpath" 15552 15553 input_path="$input_to_shortpath" 15554 # Check if we need to convert this using DOS-style short mode. If the path 15555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15556 # take no chances and rewrite it. 15557 # Note: m4 eats our [], so we need to use [ and ] instead. 15558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15559 if test "x$has_forbidden_chars" != x; then 15560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15564 # Going to short mode and back again did indeed matter. Since short mode is 15565 # case insensitive, let's make it lowercase to improve readability. 15566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15567 # Now convert it back to Unix-style (cygpath) 15568 input_path=`$CYGPATH -u "$shortmode_path"` 15569 new_path="$input_path" 15570 fi 15571 fi 15572 15573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15574 if test "x$test_cygdrive_prefix" = x; then 15575 # As a simple fix, exclude /usr/bin since it's not a real path. 15576 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15578 # a path prefixed by /cygdrive for fixpath to work. 15579 new_path="$CYGWIN_ROOT_PATH$input_path" 15580 fi 15581 fi 15582 15583 # remove trailing .exe if any 15584 new_path="${new_path/%.exe/}" 15585 15586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15587 15588 # First separate the path from the arguments. This will split at the first 15589 # space. 15590 complete="$FOUND_MAKE" 15591 path="${complete%% *}" 15592 tmp="$complete EOL" 15593 arguments="${tmp#* }" 15594 15595 # Input might be given as Windows format, start by converting to 15596 # unix format. 15597 new_path="$path" 15598 15599 windows_path="$new_path" 15600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15601 unix_path=`$CYGPATH -u "$windows_path"` 15602 new_path="$unix_path" 15603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15605 new_path="$unix_path" 15606 fi 15607 15608 15609 # Now try to locate executable using which 15610 new_path=`$WHICH "$new_path" 2> /dev/null` 15611 15612 if test "x$new_path" = x; then 15613 # Oops. Which didn't find the executable. 15614 # The splitting of arguments from the executable at a space might have been incorrect, 15615 # since paths with space are more likely in Windows. Give it another try with the whole 15616 # argument. 15617 path="$complete" 15618 arguments="EOL" 15619 new_path="$path" 15620 15621 windows_path="$new_path" 15622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15623 unix_path=`$CYGPATH -u "$windows_path"` 15624 new_path="$unix_path" 15625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15627 new_path="$unix_path" 15628 fi 15629 15630 15631 new_path=`$WHICH "$new_path" 2> /dev/null` 15632 # bat and cmd files are not always considered executable in MSYS causing which 15633 # to not find them 15634 if test "x$new_path" = x \ 15635 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15636 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15637 new_path="$path" 15638 15639 windows_path="$new_path" 15640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15641 unix_path=`$CYGPATH -u "$windows_path"` 15642 new_path="$unix_path" 15643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15645 new_path="$unix_path" 15646 fi 15647 15648 fi 15649 15650 if test "x$new_path" = x; then 15651 # It's still not found. Now this is an unrecoverable error. 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15653 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15654 has_space=`$ECHO "$complete" | $GREP " "` 15655 if test "x$has_space" != x; then 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15658 fi 15659 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15660 fi 15661 fi 15662 15663 # Now new_path has a complete unix path to the binary 15664 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15665 # Keep paths in /bin as-is, but remove trailing .exe if any 15666 new_path="${new_path/%.exe/}" 15667 # Do not save /bin paths to all_fixpath_prefixes! 15668 else 15669 # Not in mixed or Windows style, start by that. 15670 new_path=`cmd //c echo $new_path` 15671 15672 input_path="$new_path" 15673 # Check if we need to convert this using DOS-style short mode. If the path 15674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15675 # take no chances and rewrite it. 15676 # Note: m4 eats our [], so we need to use [ and ] instead. 15677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15678 if test "x$has_forbidden_chars" != x; then 15679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15680 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15681 fi 15682 15683 # Output is in $new_path 15684 15685 windows_path="$new_path" 15686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15687 unix_path=`$CYGPATH -u "$windows_path"` 15688 new_path="$unix_path" 15689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15691 new_path="$unix_path" 15692 fi 15693 15694 # remove trailing .exe if any 15695 new_path="${new_path/%.exe/}" 15696 15697 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15698 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15699 fi 15700 15701 else 15702 # We're on a posix platform. Hooray! :) 15703 # First separate the path from the arguments. This will split at the first 15704 # space. 15705 complete="$FOUND_MAKE" 15706 path="${complete%% *}" 15707 tmp="$complete EOL" 15708 arguments="${tmp#* }" 15709 15710 # Cannot rely on the command "which" here since it doesn't always work. 15711 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15712 if test -z "$is_absolute_path"; then 15713 # Path to executable is not absolute. Find it. 15714 IFS_save="$IFS" 15715 IFS=: 15716 for p in $PATH; do 15717 if test -f "$p/$path" && test -x "$p/$path"; then 15718 new_path="$p/$path" 15719 break 15720 fi 15721 done 15722 IFS="$IFS_save" 15723 else 15724 # This is an absolute path, we can use it without further modifications. 15725 new_path="$path" 15726 fi 15727 15728 if test "x$new_path" = x; then 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15730 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15731 has_space=`$ECHO "$complete" | $GREP " "` 15732 if test "x$has_space" != x; then 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15734 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15735 fi 15736 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15737 fi 15738 fi 15739 15740 # Now join together the path and the arguments once again 15741 if test "x$arguments" != xEOL; then 15742 new_complete="$new_path ${arguments% *}" 15743 else 15744 new_complete="$new_path" 15745 fi 15746 15747 if test "x$complete" != "x$new_complete"; then 15748 FOUND_MAKE="$new_complete" 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15750 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15751 fi 15752 15753 fi 15754 fi 15755 fi 15756 fi 15757 15758 if test "x$FOUND_MAKE" = x; then 15759 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15760 fi 15761 else 15762 # Try our hardest to locate a correct version of GNU make 15763 for ac_prog in gmake 15764 do 15765 # Extract the first word of "$ac_prog", so it can be a program name with args. 15766 set dummy $ac_prog; ac_word=$2 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15768 $as_echo_n "checking for $ac_word... " >&6; } 15769 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15770 $as_echo_n "(cached) " >&6 15771 else 15772 case $CHECK_GMAKE in 15773 [\\/]* | ?:[\\/]*) 15774 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15775 ;; 15776 *) 15777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15778 for as_dir in $PATH 15779 do 15780 IFS=$as_save_IFS 15781 test -z "$as_dir" && as_dir=. 15782 for ac_exec_ext in '' $ac_executable_extensions; do 15783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15784 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15786 break 2 15787 fi 15788 done 15789 done 15790 IFS=$as_save_IFS 15791 15792 ;; 15793 esac 15794 fi 15795 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15796 if test -n "$CHECK_GMAKE"; then 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15798 $as_echo "$CHECK_GMAKE" >&6; } 15799 else 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15801 $as_echo "no" >&6; } 15802 fi 15803 15804 15805 test -n "$CHECK_GMAKE" && break 15806 done 15807 15808 15809 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15810 DESCRIPTION="gmake in PATH" 15811 if test "x$MAKE_CANDIDATE" != x; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15813 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15814 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15815 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15816 if test "x$IS_GNU_MAKE" = x; then 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15818 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15819 else 15820 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15821 if test "x$IS_MODERN_MAKE" = x; then 15822 { $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 15823 $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;} 15824 else 15825 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15827 MAKE_EXPECTED_ENV='cygwin' 15828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15829 MAKE_EXPECTED_ENV='msys' 15830 else 15831 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15832 fi 15833 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15834 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15835 else 15836 # Not relevant for non-Windows 15837 IS_MAKE_CORRECT_ENV=true 15838 fi 15839 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15840 { $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 15841 $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;} 15842 else 15843 FOUND_MAKE=$MAKE_CANDIDATE 15844 15845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15846 15847 # First separate the path from the arguments. This will split at the first 15848 # space. 15849 complete="$FOUND_MAKE" 15850 path="${complete%% *}" 15851 tmp="$complete EOL" 15852 arguments="${tmp#* }" 15853 15854 # Input might be given as Windows format, start by converting to 15855 # unix format. 15856 new_path=`$CYGPATH -u "$path"` 15857 15858 # Now try to locate executable using which 15859 new_path=`$WHICH "$new_path" 2> /dev/null` 15860 # bat and cmd files are not always considered executable in cygwin causing which 15861 # to not find them 15862 if test "x$new_path" = x \ 15863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15865 new_path=`$CYGPATH -u "$path"` 15866 fi 15867 if test "x$new_path" = x; then 15868 # Oops. Which didn't find the executable. 15869 # The splitting of arguments from the executable at a space might have been incorrect, 15870 # since paths with space are more likely in Windows. Give it another try with the whole 15871 # argument. 15872 path="$complete" 15873 arguments="EOL" 15874 new_path=`$CYGPATH -u "$path"` 15875 new_path=`$WHICH "$new_path" 2> /dev/null` 15876 # bat and cmd files are not always considered executable in cygwin causing which 15877 # to not find them 15878 if test "x$new_path" = x \ 15879 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15880 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15881 new_path=`$CYGPATH -u "$path"` 15882 fi 15883 if test "x$new_path" = x; then 15884 # It's still not found. Now this is an unrecoverable error. 15885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15886 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15887 has_space=`$ECHO "$complete" | $GREP " "` 15888 if test "x$has_space" != x; then 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15890 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15891 fi 15892 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15893 fi 15894 fi 15895 15896 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15897 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15898 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15899 # "foo.exe" is OK but "foo" is an error. 15900 # 15901 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15902 # It is also a way to make sure we got the proper file name for the real test later on. 15903 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15904 if test "x$test_shortpath" = x; then 15905 # Short path failed, file does not exist as specified. 15906 # Try adding .exe or .cmd 15907 if test -f "${new_path}.exe"; then 15908 input_to_shortpath="${new_path}.exe" 15909 elif test -f "${new_path}.cmd"; then 15910 input_to_shortpath="${new_path}.cmd" 15911 else 15912 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15913 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15915 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15916 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15917 fi 15918 else 15919 input_to_shortpath="$new_path" 15920 fi 15921 15922 # Call helper function which possibly converts this using DOS-style short mode. 15923 # If so, the updated path is stored in $new_path. 15924 new_path="$input_to_shortpath" 15925 15926 input_path="$input_to_shortpath" 15927 # Check if we need to convert this using DOS-style short mode. If the path 15928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15929 # take no chances and rewrite it. 15930 # Note: m4 eats our [], so we need to use [ and ] instead. 15931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15932 if test "x$has_forbidden_chars" != x; then 15933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15934 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15935 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15936 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15937 # Going to short mode and back again did indeed matter. Since short mode is 15938 # case insensitive, let's make it lowercase to improve readability. 15939 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15940 # Now convert it back to Unix-style (cygpath) 15941 input_path=`$CYGPATH -u "$shortmode_path"` 15942 new_path="$input_path" 15943 fi 15944 fi 15945 15946 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15947 if test "x$test_cygdrive_prefix" = x; then 15948 # As a simple fix, exclude /usr/bin since it's not a real path. 15949 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15950 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15951 # a path prefixed by /cygdrive for fixpath to work. 15952 new_path="$CYGWIN_ROOT_PATH$input_path" 15953 fi 15954 fi 15955 15956 # remove trailing .exe if any 15957 new_path="${new_path/%.exe/}" 15958 15959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15960 15961 # First separate the path from the arguments. This will split at the first 15962 # space. 15963 complete="$FOUND_MAKE" 15964 path="${complete%% *}" 15965 tmp="$complete EOL" 15966 arguments="${tmp#* }" 15967 15968 # Input might be given as Windows format, start by converting to 15969 # unix format. 15970 new_path="$path" 15971 15972 windows_path="$new_path" 15973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15974 unix_path=`$CYGPATH -u "$windows_path"` 15975 new_path="$unix_path" 15976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15978 new_path="$unix_path" 15979 fi 15980 15981 15982 # Now try to locate executable using which 15983 new_path=`$WHICH "$new_path" 2> /dev/null` 15984 15985 if test "x$new_path" = x; then 15986 # Oops. Which didn't find the executable. 15987 # The splitting of arguments from the executable at a space might have been incorrect, 15988 # since paths with space are more likely in Windows. Give it another try with the whole 15989 # argument. 15990 path="$complete" 15991 arguments="EOL" 15992 new_path="$path" 15993 15994 windows_path="$new_path" 15995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15996 unix_path=`$CYGPATH -u "$windows_path"` 15997 new_path="$unix_path" 15998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15999 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16000 new_path="$unix_path" 16001 fi 16002 16003 16004 new_path=`$WHICH "$new_path" 2> /dev/null` 16005 # bat and cmd files are not always considered executable in MSYS causing which 16006 # to not find them 16007 if test "x$new_path" = x \ 16008 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16009 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16010 new_path="$path" 16011 16012 windows_path="$new_path" 16013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16014 unix_path=`$CYGPATH -u "$windows_path"` 16015 new_path="$unix_path" 16016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16018 new_path="$unix_path" 16019 fi 16020 16021 fi 16022 16023 if test "x$new_path" = x; then 16024 # It's still not found. Now this is an unrecoverable error. 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16026 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16027 has_space=`$ECHO "$complete" | $GREP " "` 16028 if test "x$has_space" != x; then 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16030 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16031 fi 16032 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16033 fi 16034 fi 16035 16036 # Now new_path has a complete unix path to the binary 16037 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16038 # Keep paths in /bin as-is, but remove trailing .exe if any 16039 new_path="${new_path/%.exe/}" 16040 # Do not save /bin paths to all_fixpath_prefixes! 16041 else 16042 # Not in mixed or Windows style, start by that. 16043 new_path=`cmd //c echo $new_path` 16044 16045 input_path="$new_path" 16046 # Check if we need to convert this using DOS-style short mode. If the path 16047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16048 # take no chances and rewrite it. 16049 # Note: m4 eats our [], so we need to use [ and ] instead. 16050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16051 if test "x$has_forbidden_chars" != x; then 16052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16053 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16054 fi 16055 16056 # Output is in $new_path 16057 16058 windows_path="$new_path" 16059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16060 unix_path=`$CYGPATH -u "$windows_path"` 16061 new_path="$unix_path" 16062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16064 new_path="$unix_path" 16065 fi 16066 16067 # remove trailing .exe if any 16068 new_path="${new_path/%.exe/}" 16069 16070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16072 fi 16073 16074 else 16075 # We're on a posix platform. Hooray! :) 16076 # First separate the path from the arguments. This will split at the first 16077 # space. 16078 complete="$FOUND_MAKE" 16079 path="${complete%% *}" 16080 tmp="$complete EOL" 16081 arguments="${tmp#* }" 16082 16083 # Cannot rely on the command "which" here since it doesn't always work. 16084 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16085 if test -z "$is_absolute_path"; then 16086 # Path to executable is not absolute. Find it. 16087 IFS_save="$IFS" 16088 IFS=: 16089 for p in $PATH; do 16090 if test -f "$p/$path" && test -x "$p/$path"; then 16091 new_path="$p/$path" 16092 break 16093 fi 16094 done 16095 IFS="$IFS_save" 16096 else 16097 # This is an absolute path, we can use it without further modifications. 16098 new_path="$path" 16099 fi 16100 16101 if test "x$new_path" = x; then 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16103 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16104 has_space=`$ECHO "$complete" | $GREP " "` 16105 if test "x$has_space" != x; then 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16107 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16108 fi 16109 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16110 fi 16111 fi 16112 16113 # Now join together the path and the arguments once again 16114 if test "x$arguments" != xEOL; then 16115 new_complete="$new_path ${arguments% *}" 16116 else 16117 new_complete="$new_path" 16118 fi 16119 16120 if test "x$complete" != "x$new_complete"; then 16121 FOUND_MAKE="$new_complete" 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16123 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16124 fi 16125 16126 fi 16127 fi 16128 fi 16129 fi 16130 16131 16132 if test "x$FOUND_MAKE" = x; then 16133 for ac_prog in make 16134 do 16135 # Extract the first word of "$ac_prog", so it can be a program name with args. 16136 set dummy $ac_prog; ac_word=$2 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16138 $as_echo_n "checking for $ac_word... " >&6; } 16139 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16140 $as_echo_n "(cached) " >&6 16141 else 16142 case $CHECK_MAKE in 16143 [\\/]* | ?:[\\/]*) 16144 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16145 ;; 16146 *) 16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16148 for as_dir in $PATH 16149 do 16150 IFS=$as_save_IFS 16151 test -z "$as_dir" && as_dir=. 16152 for ac_exec_ext in '' $ac_executable_extensions; do 16153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16154 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16156 break 2 16157 fi 16158 done 16159 done 16160 IFS=$as_save_IFS 16161 16162 ;; 16163 esac 16164 fi 16165 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16166 if test -n "$CHECK_MAKE"; then 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16168 $as_echo "$CHECK_MAKE" >&6; } 16169 else 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16171 $as_echo "no" >&6; } 16172 fi 16173 16174 16175 test -n "$CHECK_MAKE" && break 16176 done 16177 16178 16179 MAKE_CANDIDATE=""$CHECK_MAKE"" 16180 DESCRIPTION="make in PATH" 16181 if test "x$MAKE_CANDIDATE" != x; then 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16183 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16184 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16185 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16186 if test "x$IS_GNU_MAKE" = x; then 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16188 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16189 else 16190 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16191 if test "x$IS_MODERN_MAKE" = x; then 16192 { $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 16193 $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;} 16194 else 16195 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16197 MAKE_EXPECTED_ENV='cygwin' 16198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16199 MAKE_EXPECTED_ENV='msys' 16200 else 16201 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16202 fi 16203 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16204 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16205 else 16206 # Not relevant for non-Windows 16207 IS_MAKE_CORRECT_ENV=true 16208 fi 16209 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16210 { $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 16211 $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;} 16212 else 16213 FOUND_MAKE=$MAKE_CANDIDATE 16214 16215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16216 16217 # First separate the path from the arguments. This will split at the first 16218 # space. 16219 complete="$FOUND_MAKE" 16220 path="${complete%% *}" 16221 tmp="$complete EOL" 16222 arguments="${tmp#* }" 16223 16224 # Input might be given as Windows format, start by converting to 16225 # unix format. 16226 new_path=`$CYGPATH -u "$path"` 16227 16228 # Now try to locate executable using which 16229 new_path=`$WHICH "$new_path" 2> /dev/null` 16230 # bat and cmd files are not always considered executable in cygwin causing which 16231 # to not find them 16232 if test "x$new_path" = x \ 16233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16235 new_path=`$CYGPATH -u "$path"` 16236 fi 16237 if test "x$new_path" = x; then 16238 # Oops. Which didn't find the executable. 16239 # The splitting of arguments from the executable at a space might have been incorrect, 16240 # since paths with space are more likely in Windows. Give it another try with the whole 16241 # argument. 16242 path="$complete" 16243 arguments="EOL" 16244 new_path=`$CYGPATH -u "$path"` 16245 new_path=`$WHICH "$new_path" 2> /dev/null` 16246 # bat and cmd files are not always considered executable in cygwin causing which 16247 # to not find them 16248 if test "x$new_path" = x \ 16249 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16250 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16251 new_path=`$CYGPATH -u "$path"` 16252 fi 16253 if test "x$new_path" = x; then 16254 # It's still not found. Now this is an unrecoverable error. 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16257 has_space=`$ECHO "$complete" | $GREP " "` 16258 if test "x$has_space" != x; then 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16260 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16261 fi 16262 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16263 fi 16264 fi 16265 16266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16269 # "foo.exe" is OK but "foo" is an error. 16270 # 16271 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16272 # It is also a way to make sure we got the proper file name for the real test later on. 16273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16274 if test "x$test_shortpath" = x; then 16275 # Short path failed, file does not exist as specified. 16276 # Try adding .exe or .cmd 16277 if test -f "${new_path}.exe"; then 16278 input_to_shortpath="${new_path}.exe" 16279 elif test -f "${new_path}.cmd"; then 16280 input_to_shortpath="${new_path}.cmd" 16281 else 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16285 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16286 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16287 fi 16288 else 16289 input_to_shortpath="$new_path" 16290 fi 16291 16292 # Call helper function which possibly converts this using DOS-style short mode. 16293 # If so, the updated path is stored in $new_path. 16294 new_path="$input_to_shortpath" 16295 16296 input_path="$input_to_shortpath" 16297 # Check if we need to convert this using DOS-style short mode. If the path 16298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16299 # take no chances and rewrite it. 16300 # Note: m4 eats our [], so we need to use [ and ] instead. 16301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16302 if test "x$has_forbidden_chars" != x; then 16303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16307 # Going to short mode and back again did indeed matter. Since short mode is 16308 # case insensitive, let's make it lowercase to improve readability. 16309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16310 # Now convert it back to Unix-style (cygpath) 16311 input_path=`$CYGPATH -u "$shortmode_path"` 16312 new_path="$input_path" 16313 fi 16314 fi 16315 16316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16317 if test "x$test_cygdrive_prefix" = x; then 16318 # As a simple fix, exclude /usr/bin since it's not a real path. 16319 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16321 # a path prefixed by /cygdrive for fixpath to work. 16322 new_path="$CYGWIN_ROOT_PATH$input_path" 16323 fi 16324 fi 16325 16326 # remove trailing .exe if any 16327 new_path="${new_path/%.exe/}" 16328 16329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16330 16331 # First separate the path from the arguments. This will split at the first 16332 # space. 16333 complete="$FOUND_MAKE" 16334 path="${complete%% *}" 16335 tmp="$complete EOL" 16336 arguments="${tmp#* }" 16337 16338 # Input might be given as Windows format, start by converting to 16339 # unix format. 16340 new_path="$path" 16341 16342 windows_path="$new_path" 16343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16344 unix_path=`$CYGPATH -u "$windows_path"` 16345 new_path="$unix_path" 16346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16348 new_path="$unix_path" 16349 fi 16350 16351 16352 # Now try to locate executable using which 16353 new_path=`$WHICH "$new_path" 2> /dev/null` 16354 16355 if test "x$new_path" = x; then 16356 # Oops. Which didn't find the executable. 16357 # The splitting of arguments from the executable at a space might have been incorrect, 16358 # since paths with space are more likely in Windows. Give it another try with the whole 16359 # argument. 16360 path="$complete" 16361 arguments="EOL" 16362 new_path="$path" 16363 16364 windows_path="$new_path" 16365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16366 unix_path=`$CYGPATH -u "$windows_path"` 16367 new_path="$unix_path" 16368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16370 new_path="$unix_path" 16371 fi 16372 16373 16374 new_path=`$WHICH "$new_path" 2> /dev/null` 16375 # bat and cmd files are not always considered executable in MSYS causing which 16376 # to not find them 16377 if test "x$new_path" = x \ 16378 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16379 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16380 new_path="$path" 16381 16382 windows_path="$new_path" 16383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16384 unix_path=`$CYGPATH -u "$windows_path"` 16385 new_path="$unix_path" 16386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16388 new_path="$unix_path" 16389 fi 16390 16391 fi 16392 16393 if test "x$new_path" = x; then 16394 # It's still not found. Now this is an unrecoverable error. 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16396 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16397 has_space=`$ECHO "$complete" | $GREP " "` 16398 if test "x$has_space" != x; then 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16400 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16401 fi 16402 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16403 fi 16404 fi 16405 16406 # Now new_path has a complete unix path to the binary 16407 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16408 # Keep paths in /bin as-is, but remove trailing .exe if any 16409 new_path="${new_path/%.exe/}" 16410 # Do not save /bin paths to all_fixpath_prefixes! 16411 else 16412 # Not in mixed or Windows style, start by that. 16413 new_path=`cmd //c echo $new_path` 16414 16415 input_path="$new_path" 16416 # Check if we need to convert this using DOS-style short mode. If the path 16417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16418 # take no chances and rewrite it. 16419 # Note: m4 eats our [], so we need to use [ and ] instead. 16420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16421 if test "x$has_forbidden_chars" != x; then 16422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16424 fi 16425 16426 # Output is in $new_path 16427 16428 windows_path="$new_path" 16429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16430 unix_path=`$CYGPATH -u "$windows_path"` 16431 new_path="$unix_path" 16432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16434 new_path="$unix_path" 16435 fi 16436 16437 # remove trailing .exe if any 16438 new_path="${new_path/%.exe/}" 16439 16440 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16441 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16442 fi 16443 16444 else 16445 # We're on a posix platform. Hooray! :) 16446 # First separate the path from the arguments. This will split at the first 16447 # space. 16448 complete="$FOUND_MAKE" 16449 path="${complete%% *}" 16450 tmp="$complete EOL" 16451 arguments="${tmp#* }" 16452 16453 # Cannot rely on the command "which" here since it doesn't always work. 16454 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16455 if test -z "$is_absolute_path"; then 16456 # Path to executable is not absolute. Find it. 16457 IFS_save="$IFS" 16458 IFS=: 16459 for p in $PATH; do 16460 if test -f "$p/$path" && test -x "$p/$path"; then 16461 new_path="$p/$path" 16462 break 16463 fi 16464 done 16465 IFS="$IFS_save" 16466 else 16467 # This is an absolute path, we can use it without further modifications. 16468 new_path="$path" 16469 fi 16470 16471 if test "x$new_path" = x; then 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16473 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16474 has_space=`$ECHO "$complete" | $GREP " "` 16475 if test "x$has_space" != x; then 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16477 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16478 fi 16479 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16480 fi 16481 fi 16482 16483 # Now join together the path and the arguments once again 16484 if test "x$arguments" != xEOL; then 16485 new_complete="$new_path ${arguments% *}" 16486 else 16487 new_complete="$new_path" 16488 fi 16489 16490 if test "x$complete" != "x$new_complete"; then 16491 FOUND_MAKE="$new_complete" 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16493 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16494 fi 16495 16496 fi 16497 fi 16498 fi 16499 fi 16500 16501 fi 16502 16503 if test "x$FOUND_MAKE" = x; then 16504 if test "x$TOOLCHAIN_PATH" != x; then 16505 # We have a toolchain path, check that as well before giving up. 16506 OLD_PATH=$PATH 16507 PATH=$TOOLCHAIN_PATH:$PATH 16508 for ac_prog in gmake 16509 do 16510 # Extract the first word of "$ac_prog", so it can be a program name with args. 16511 set dummy $ac_prog; ac_word=$2 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16513 $as_echo_n "checking for $ac_word... " >&6; } 16514 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16515 $as_echo_n "(cached) " >&6 16516 else 16517 case $CHECK_TOOLSDIR_GMAKE in 16518 [\\/]* | ?:[\\/]*) 16519 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16520 ;; 16521 *) 16522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16523 for as_dir in $PATH 16524 do 16525 IFS=$as_save_IFS 16526 test -z "$as_dir" && as_dir=. 16527 for ac_exec_ext in '' $ac_executable_extensions; do 16528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16529 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16531 break 2 16532 fi 16533 done 16534 done 16535 IFS=$as_save_IFS 16536 16537 ;; 16538 esac 16539 fi 16540 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16541 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16543 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16544 else 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546 $as_echo "no" >&6; } 16547 fi 16548 16549 16550 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16551 done 16552 16553 16554 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16555 DESCRIPTION="gmake in tools-dir" 16556 if test "x$MAKE_CANDIDATE" != x; then 16557 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16558 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16559 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16560 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16561 if test "x$IS_GNU_MAKE" = x; then 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16563 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16564 else 16565 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16566 if test "x$IS_MODERN_MAKE" = x; then 16567 { $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 16568 $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;} 16569 else 16570 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16572 MAKE_EXPECTED_ENV='cygwin' 16573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16574 MAKE_EXPECTED_ENV='msys' 16575 else 16576 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16577 fi 16578 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16579 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16580 else 16581 # Not relevant for non-Windows 16582 IS_MAKE_CORRECT_ENV=true 16583 fi 16584 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16585 { $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 16586 $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;} 16587 else 16588 FOUND_MAKE=$MAKE_CANDIDATE 16589 16590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16591 16592 # First separate the path from the arguments. This will split at the first 16593 # space. 16594 complete="$FOUND_MAKE" 16595 path="${complete%% *}" 16596 tmp="$complete EOL" 16597 arguments="${tmp#* }" 16598 16599 # Input might be given as Windows format, start by converting to 16600 # unix format. 16601 new_path=`$CYGPATH -u "$path"` 16602 16603 # Now try to locate executable using which 16604 new_path=`$WHICH "$new_path" 2> /dev/null` 16605 # bat and cmd files are not always considered executable in cygwin causing which 16606 # to not find them 16607 if test "x$new_path" = x \ 16608 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16609 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16610 new_path=`$CYGPATH -u "$path"` 16611 fi 16612 if test "x$new_path" = x; then 16613 # Oops. Which didn't find the executable. 16614 # The splitting of arguments from the executable at a space might have been incorrect, 16615 # since paths with space are more likely in Windows. Give it another try with the whole 16616 # argument. 16617 path="$complete" 16618 arguments="EOL" 16619 new_path=`$CYGPATH -u "$path"` 16620 new_path=`$WHICH "$new_path" 2> /dev/null` 16621 # bat and cmd files are not always considered executable in cygwin causing which 16622 # to not find them 16623 if test "x$new_path" = x \ 16624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16626 new_path=`$CYGPATH -u "$path"` 16627 fi 16628 if test "x$new_path" = x; then 16629 # It's still not found. Now this is an unrecoverable error. 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16631 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16632 has_space=`$ECHO "$complete" | $GREP " "` 16633 if test "x$has_space" != x; then 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16635 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16636 fi 16637 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16638 fi 16639 fi 16640 16641 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16642 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16643 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16644 # "foo.exe" is OK but "foo" is an error. 16645 # 16646 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16647 # It is also a way to make sure we got the proper file name for the real test later on. 16648 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16649 if test "x$test_shortpath" = x; then 16650 # Short path failed, file does not exist as specified. 16651 # Try adding .exe or .cmd 16652 if test -f "${new_path}.exe"; then 16653 input_to_shortpath="${new_path}.exe" 16654 elif test -f "${new_path}.cmd"; then 16655 input_to_shortpath="${new_path}.cmd" 16656 else 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16658 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16660 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16661 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16662 fi 16663 else 16664 input_to_shortpath="$new_path" 16665 fi 16666 16667 # Call helper function which possibly converts this using DOS-style short mode. 16668 # If so, the updated path is stored in $new_path. 16669 new_path="$input_to_shortpath" 16670 16671 input_path="$input_to_shortpath" 16672 # Check if we need to convert this using DOS-style short mode. If the path 16673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16674 # take no chances and rewrite it. 16675 # Note: m4 eats our [], so we need to use [ and ] instead. 16676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16677 if test "x$has_forbidden_chars" != x; then 16678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16682 # Going to short mode and back again did indeed matter. Since short mode is 16683 # case insensitive, let's make it lowercase to improve readability. 16684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16685 # Now convert it back to Unix-style (cygpath) 16686 input_path=`$CYGPATH -u "$shortmode_path"` 16687 new_path="$input_path" 16688 fi 16689 fi 16690 16691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16692 if test "x$test_cygdrive_prefix" = x; then 16693 # As a simple fix, exclude /usr/bin since it's not a real path. 16694 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16696 # a path prefixed by /cygdrive for fixpath to work. 16697 new_path="$CYGWIN_ROOT_PATH$input_path" 16698 fi 16699 fi 16700 16701 # remove trailing .exe if any 16702 new_path="${new_path/%.exe/}" 16703 16704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16705 16706 # First separate the path from the arguments. This will split at the first 16707 # space. 16708 complete="$FOUND_MAKE" 16709 path="${complete%% *}" 16710 tmp="$complete EOL" 16711 arguments="${tmp#* }" 16712 16713 # Input might be given as Windows format, start by converting to 16714 # unix format. 16715 new_path="$path" 16716 16717 windows_path="$new_path" 16718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16719 unix_path=`$CYGPATH -u "$windows_path"` 16720 new_path="$unix_path" 16721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16723 new_path="$unix_path" 16724 fi 16725 16726 16727 # Now try to locate executable using which 16728 new_path=`$WHICH "$new_path" 2> /dev/null` 16729 16730 if test "x$new_path" = x; then 16731 # Oops. Which didn't find the executable. 16732 # The splitting of arguments from the executable at a space might have been incorrect, 16733 # since paths with space are more likely in Windows. Give it another try with the whole 16734 # argument. 16735 path="$complete" 16736 arguments="EOL" 16737 new_path="$path" 16738 16739 windows_path="$new_path" 16740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16741 unix_path=`$CYGPATH -u "$windows_path"` 16742 new_path="$unix_path" 16743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16745 new_path="$unix_path" 16746 fi 16747 16748 16749 new_path=`$WHICH "$new_path" 2> /dev/null` 16750 # bat and cmd files are not always considered executable in MSYS causing which 16751 # to not find them 16752 if test "x$new_path" = x \ 16753 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16754 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16755 new_path="$path" 16756 16757 windows_path="$new_path" 16758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16759 unix_path=`$CYGPATH -u "$windows_path"` 16760 new_path="$unix_path" 16761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16763 new_path="$unix_path" 16764 fi 16765 16766 fi 16767 16768 if test "x$new_path" = x; then 16769 # It's still not found. Now this is an unrecoverable error. 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16771 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16772 has_space=`$ECHO "$complete" | $GREP " "` 16773 if test "x$has_space" != x; then 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16775 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16776 fi 16777 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16778 fi 16779 fi 16780 16781 # Now new_path has a complete unix path to the binary 16782 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16783 # Keep paths in /bin as-is, but remove trailing .exe if any 16784 new_path="${new_path/%.exe/}" 16785 # Do not save /bin paths to all_fixpath_prefixes! 16786 else 16787 # Not in mixed or Windows style, start by that. 16788 new_path=`cmd //c echo $new_path` 16789 16790 input_path="$new_path" 16791 # Check if we need to convert this using DOS-style short mode. If the path 16792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16793 # take no chances and rewrite it. 16794 # Note: m4 eats our [], so we need to use [ and ] instead. 16795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16796 if test "x$has_forbidden_chars" != x; then 16797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16798 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16799 fi 16800 16801 # Output is in $new_path 16802 16803 windows_path="$new_path" 16804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16805 unix_path=`$CYGPATH -u "$windows_path"` 16806 new_path="$unix_path" 16807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16809 new_path="$unix_path" 16810 fi 16811 16812 # remove trailing .exe if any 16813 new_path="${new_path/%.exe/}" 16814 16815 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16816 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16817 fi 16818 16819 else 16820 # We're on a posix platform. Hooray! :) 16821 # First separate the path from the arguments. This will split at the first 16822 # space. 16823 complete="$FOUND_MAKE" 16824 path="${complete%% *}" 16825 tmp="$complete EOL" 16826 arguments="${tmp#* }" 16827 16828 # Cannot rely on the command "which" here since it doesn't always work. 16829 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16830 if test -z "$is_absolute_path"; then 16831 # Path to executable is not absolute. Find it. 16832 IFS_save="$IFS" 16833 IFS=: 16834 for p in $PATH; do 16835 if test -f "$p/$path" && test -x "$p/$path"; then 16836 new_path="$p/$path" 16837 break 16838 fi 16839 done 16840 IFS="$IFS_save" 16841 else 16842 # This is an absolute path, we can use it without further modifications. 16843 new_path="$path" 16844 fi 16845 16846 if test "x$new_path" = x; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16848 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16849 has_space=`$ECHO "$complete" | $GREP " "` 16850 if test "x$has_space" != x; then 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16852 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16853 fi 16854 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16855 fi 16856 fi 16857 16858 # Now join together the path and the arguments once again 16859 if test "x$arguments" != xEOL; then 16860 new_complete="$new_path ${arguments% *}" 16861 else 16862 new_complete="$new_path" 16863 fi 16864 16865 if test "x$complete" != "x$new_complete"; then 16866 FOUND_MAKE="$new_complete" 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16868 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16869 fi 16870 16871 fi 16872 fi 16873 fi 16874 fi 16875 16876 if test "x$FOUND_MAKE" = x; then 16877 for ac_prog in make 16878 do 16879 # Extract the first word of "$ac_prog", so it can be a program name with args. 16880 set dummy $ac_prog; ac_word=$2 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16882 $as_echo_n "checking for $ac_word... " >&6; } 16883 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16884 $as_echo_n "(cached) " >&6 16885 else 16886 case $CHECK_TOOLSDIR_MAKE in 16887 [\\/]* | ?:[\\/]*) 16888 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16889 ;; 16890 *) 16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16892 for as_dir in $PATH 16893 do 16894 IFS=$as_save_IFS 16895 test -z "$as_dir" && as_dir=. 16896 for ac_exec_ext in '' $ac_executable_extensions; do 16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16898 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16900 break 2 16901 fi 16902 done 16903 done 16904 IFS=$as_save_IFS 16905 16906 ;; 16907 esac 16908 fi 16909 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16910 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16912 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16913 else 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16915 $as_echo "no" >&6; } 16916 fi 16917 16918 16919 test -n "$CHECK_TOOLSDIR_MAKE" && break 16920 done 16921 16922 16923 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16924 DESCRIPTION="make in tools-dir" 16925 if test "x$MAKE_CANDIDATE" != x; then 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16927 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16928 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16929 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16930 if test "x$IS_GNU_MAKE" = x; then 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16932 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16933 else 16934 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16935 if test "x$IS_MODERN_MAKE" = x; then 16936 { $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 16937 $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;} 16938 else 16939 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16941 MAKE_EXPECTED_ENV='cygwin' 16942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16943 MAKE_EXPECTED_ENV='msys' 16944 else 16945 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16946 fi 16947 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16948 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16949 else 16950 # Not relevant for non-Windows 16951 IS_MAKE_CORRECT_ENV=true 16952 fi 16953 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16954 { $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 16955 $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;} 16956 else 16957 FOUND_MAKE=$MAKE_CANDIDATE 16958 16959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16960 16961 # First separate the path from the arguments. This will split at the first 16962 # space. 16963 complete="$FOUND_MAKE" 16964 path="${complete%% *}" 16965 tmp="$complete EOL" 16966 arguments="${tmp#* }" 16967 16968 # Input might be given as Windows format, start by converting to 16969 # unix format. 16970 new_path=`$CYGPATH -u "$path"` 16971 16972 # Now try to locate executable using which 16973 new_path=`$WHICH "$new_path" 2> /dev/null` 16974 # bat and cmd files are not always considered executable in cygwin causing which 16975 # to not find them 16976 if test "x$new_path" = x \ 16977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16979 new_path=`$CYGPATH -u "$path"` 16980 fi 16981 if test "x$new_path" = x; then 16982 # Oops. Which didn't find the executable. 16983 # The splitting of arguments from the executable at a space might have been incorrect, 16984 # since paths with space are more likely in Windows. Give it another try with the whole 16985 # argument. 16986 path="$complete" 16987 arguments="EOL" 16988 new_path=`$CYGPATH -u "$path"` 16989 new_path=`$WHICH "$new_path" 2> /dev/null` 16990 # bat and cmd files are not always considered executable in cygwin causing which 16991 # to not find them 16992 if test "x$new_path" = x \ 16993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16995 new_path=`$CYGPATH -u "$path"` 16996 fi 16997 if test "x$new_path" = x; then 16998 # It's still not found. Now this is an unrecoverable error. 16999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17000 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17001 has_space=`$ECHO "$complete" | $GREP " "` 17002 if test "x$has_space" != x; then 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17004 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17005 fi 17006 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17007 fi 17008 fi 17009 17010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17013 # "foo.exe" is OK but "foo" is an error. 17014 # 17015 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17016 # It is also a way to make sure we got the proper file name for the real test later on. 17017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17018 if test "x$test_shortpath" = x; then 17019 # Short path failed, file does not exist as specified. 17020 # Try adding .exe or .cmd 17021 if test -f "${new_path}.exe"; then 17022 input_to_shortpath="${new_path}.exe" 17023 elif test -f "${new_path}.cmd"; then 17024 input_to_shortpath="${new_path}.cmd" 17025 else 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17027 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17028 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17029 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17030 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17031 fi 17032 else 17033 input_to_shortpath="$new_path" 17034 fi 17035 17036 # Call helper function which possibly converts this using DOS-style short mode. 17037 # If so, the updated path is stored in $new_path. 17038 new_path="$input_to_shortpath" 17039 17040 input_path="$input_to_shortpath" 17041 # Check if we need to convert this using DOS-style short mode. If the path 17042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17043 # take no chances and rewrite it. 17044 # Note: m4 eats our [], so we need to use [ and ] instead. 17045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17046 if test "x$has_forbidden_chars" != x; then 17047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17051 # Going to short mode and back again did indeed matter. Since short mode is 17052 # case insensitive, let's make it lowercase to improve readability. 17053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17054 # Now convert it back to Unix-style (cygpath) 17055 input_path=`$CYGPATH -u "$shortmode_path"` 17056 new_path="$input_path" 17057 fi 17058 fi 17059 17060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17061 if test "x$test_cygdrive_prefix" = x; then 17062 # As a simple fix, exclude /usr/bin since it's not a real path. 17063 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17065 # a path prefixed by /cygdrive for fixpath to work. 17066 new_path="$CYGWIN_ROOT_PATH$input_path" 17067 fi 17068 fi 17069 17070 # remove trailing .exe if any 17071 new_path="${new_path/%.exe/}" 17072 17073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17074 17075 # First separate the path from the arguments. This will split at the first 17076 # space. 17077 complete="$FOUND_MAKE" 17078 path="${complete%% *}" 17079 tmp="$complete EOL" 17080 arguments="${tmp#* }" 17081 17082 # Input might be given as Windows format, start by converting to 17083 # unix format. 17084 new_path="$path" 17085 17086 windows_path="$new_path" 17087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17088 unix_path=`$CYGPATH -u "$windows_path"` 17089 new_path="$unix_path" 17090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17092 new_path="$unix_path" 17093 fi 17094 17095 17096 # Now try to locate executable using which 17097 new_path=`$WHICH "$new_path" 2> /dev/null` 17098 17099 if test "x$new_path" = x; then 17100 # Oops. Which didn't find the executable. 17101 # The splitting of arguments from the executable at a space might have been incorrect, 17102 # since paths with space are more likely in Windows. Give it another try with the whole 17103 # argument. 17104 path="$complete" 17105 arguments="EOL" 17106 new_path="$path" 17107 17108 windows_path="$new_path" 17109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17110 unix_path=`$CYGPATH -u "$windows_path"` 17111 new_path="$unix_path" 17112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17114 new_path="$unix_path" 17115 fi 17116 17117 17118 new_path=`$WHICH "$new_path" 2> /dev/null` 17119 # bat and cmd files are not always considered executable in MSYS causing which 17120 # to not find them 17121 if test "x$new_path" = x \ 17122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17124 new_path="$path" 17125 17126 windows_path="$new_path" 17127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17128 unix_path=`$CYGPATH -u "$windows_path"` 17129 new_path="$unix_path" 17130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17132 new_path="$unix_path" 17133 fi 17134 17135 fi 17136 17137 if test "x$new_path" = x; then 17138 # It's still not found. Now this is an unrecoverable error. 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17140 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17141 has_space=`$ECHO "$complete" | $GREP " "` 17142 if test "x$has_space" != x; then 17143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17145 fi 17146 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17147 fi 17148 fi 17149 17150 # Now new_path has a complete unix path to the binary 17151 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17152 # Keep paths in /bin as-is, but remove trailing .exe if any 17153 new_path="${new_path/%.exe/}" 17154 # Do not save /bin paths to all_fixpath_prefixes! 17155 else 17156 # Not in mixed or Windows style, start by that. 17157 new_path=`cmd //c echo $new_path` 17158 17159 input_path="$new_path" 17160 # Check if we need to convert this using DOS-style short mode. If the path 17161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17162 # take no chances and rewrite it. 17163 # Note: m4 eats our [], so we need to use [ and ] instead. 17164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17165 if test "x$has_forbidden_chars" != x; then 17166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17168 fi 17169 17170 # Output is in $new_path 17171 17172 windows_path="$new_path" 17173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17174 unix_path=`$CYGPATH -u "$windows_path"` 17175 new_path="$unix_path" 17176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17178 new_path="$unix_path" 17179 fi 17180 17181 # remove trailing .exe if any 17182 new_path="${new_path/%.exe/}" 17183 17184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17186 fi 17187 17188 else 17189 # We're on a posix platform. Hooray! :) 17190 # First separate the path from the arguments. This will split at the first 17191 # space. 17192 complete="$FOUND_MAKE" 17193 path="${complete%% *}" 17194 tmp="$complete EOL" 17195 arguments="${tmp#* }" 17196 17197 # Cannot rely on the command "which" here since it doesn't always work. 17198 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17199 if test -z "$is_absolute_path"; then 17200 # Path to executable is not absolute. Find it. 17201 IFS_save="$IFS" 17202 IFS=: 17203 for p in $PATH; do 17204 if test -f "$p/$path" && test -x "$p/$path"; then 17205 new_path="$p/$path" 17206 break 17207 fi 17208 done 17209 IFS="$IFS_save" 17210 else 17211 # This is an absolute path, we can use it without further modifications. 17212 new_path="$path" 17213 fi 17214 17215 if test "x$new_path" = x; then 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17217 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17218 has_space=`$ECHO "$complete" | $GREP " "` 17219 if test "x$has_space" != x; then 17220 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17221 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17222 fi 17223 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17224 fi 17225 fi 17226 17227 # Now join together the path and the arguments once again 17228 if test "x$arguments" != xEOL; then 17229 new_complete="$new_path ${arguments% *}" 17230 else 17231 new_complete="$new_path" 17232 fi 17233 17234 if test "x$complete" != "x$new_complete"; then 17235 FOUND_MAKE="$new_complete" 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17237 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17238 fi 17239 17240 fi 17241 fi 17242 fi 17243 fi 17244 17245 fi 17246 PATH=$OLD_PATH 17247 fi 17248 fi 17249 17250 if test "x$FOUND_MAKE" = x; then 17251 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 17252 fi 17253 fi 17254 17255 MAKE=$FOUND_MAKE 17256 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17258 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17259 17260 17261 17262 # Test if find supports -delete 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17264 $as_echo_n "checking if find supports -delete... " >&6; } 17265 FIND_DELETE="-delete" 17266 17267 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17268 17269 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17270 17271 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17272 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17273 # No, it does not. 17274 rm $DELETEDIR/TestIfFindSupportsDelete 17275 FIND_DELETE="-exec rm \{\} \+" 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17277 $as_echo "no" >&6; } 17278 else 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17280 $as_echo "yes" >&6; } 17281 fi 17282 rmdir $DELETEDIR 17283 17284 17285 17286 # These tools might not be installed by default, 17287 # need hint on how to install them. 17288 17289 17290 17291 # Publish this variable in the help. 17292 17293 17294 if test "x$UNZIP" = x; then 17295 # The variable is not set by user, try to locate tool using the code snippet 17296 for ac_prog in unzip 17297 do 17298 # Extract the first word of "$ac_prog", so it can be a program name with args. 17299 set dummy $ac_prog; ac_word=$2 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17301 $as_echo_n "checking for $ac_word... " >&6; } 17302 if ${ac_cv_path_UNZIP+:} false; then : 17303 $as_echo_n "(cached) " >&6 17304 else 17305 case $UNZIP in 17306 [\\/]* | ?:[\\/]*) 17307 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17308 ;; 17309 *) 17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17311 for as_dir in $PATH 17312 do 17313 IFS=$as_save_IFS 17314 test -z "$as_dir" && as_dir=. 17315 for ac_exec_ext in '' $ac_executable_extensions; do 17316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17317 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17319 break 2 17320 fi 17321 done 17322 done 17323 IFS=$as_save_IFS 17324 17325 ;; 17326 esac 17327 fi 17328 UNZIP=$ac_cv_path_UNZIP 17329 if test -n "$UNZIP"; then 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17331 $as_echo "$UNZIP" >&6; } 17332 else 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17334 $as_echo "no" >&6; } 17335 fi 17336 17337 17338 test -n "$UNZIP" && break 17339 done 17340 17341 else 17342 # The variable is set, but is it from the command line or the environment? 17343 17344 # Try to remove the string !UNZIP! from our list. 17345 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17346 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17347 # If it failed, the variable was not from the command line. Ignore it, 17348 # but warn the user (except for BASH, which is always set by the calling BASH). 17349 if test "xUNZIP" != xBASH; then 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17351 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17352 fi 17353 # Try to locate tool using the code snippet 17354 for ac_prog in unzip 17355 do 17356 # Extract the first word of "$ac_prog", so it can be a program name with args. 17357 set dummy $ac_prog; ac_word=$2 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17359 $as_echo_n "checking for $ac_word... " >&6; } 17360 if ${ac_cv_path_UNZIP+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362 else 17363 case $UNZIP in 17364 [\\/]* | ?:[\\/]*) 17365 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17366 ;; 17367 *) 17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17369 for as_dir in $PATH 17370 do 17371 IFS=$as_save_IFS 17372 test -z "$as_dir" && as_dir=. 17373 for ac_exec_ext in '' $ac_executable_extensions; do 17374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17375 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17377 break 2 17378 fi 17379 done 17380 done 17381 IFS=$as_save_IFS 17382 17383 ;; 17384 esac 17385 fi 17386 UNZIP=$ac_cv_path_UNZIP 17387 if test -n "$UNZIP"; then 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17389 $as_echo "$UNZIP" >&6; } 17390 else 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17392 $as_echo "no" >&6; } 17393 fi 17394 17395 17396 test -n "$UNZIP" && break 17397 done 17398 17399 else 17400 # If it succeeded, then it was overridden by the user. We will use it 17401 # for the tool. 17402 17403 # First remove it from the list of overridden variables, so we can test 17404 # for unknown variables in the end. 17405 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17406 17407 # Check if the provided tool contains a complete path. 17408 tool_specified="$UNZIP" 17409 tool_basename="${tool_specified##*/}" 17410 if test "x$tool_basename" = "x$tool_specified"; then 17411 # A command without a complete path is provided, search $PATH. 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17413 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17414 # Extract the first word of "$tool_basename", so it can be a program name with args. 17415 set dummy $tool_basename; ac_word=$2 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17417 $as_echo_n "checking for $ac_word... " >&6; } 17418 if ${ac_cv_path_UNZIP+:} false; then : 17419 $as_echo_n "(cached) " >&6 17420 else 17421 case $UNZIP in 17422 [\\/]* | ?:[\\/]*) 17423 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17424 ;; 17425 *) 17426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17427 for as_dir in $PATH 17428 do 17429 IFS=$as_save_IFS 17430 test -z "$as_dir" && as_dir=. 17431 for ac_exec_ext in '' $ac_executable_extensions; do 17432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17433 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17435 break 2 17436 fi 17437 done 17438 done 17439 IFS=$as_save_IFS 17440 17441 ;; 17442 esac 17443 fi 17444 UNZIP=$ac_cv_path_UNZIP 17445 if test -n "$UNZIP"; then 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17447 $as_echo "$UNZIP" >&6; } 17448 else 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17450 $as_echo "no" >&6; } 17451 fi 17452 17453 17454 if test "x$UNZIP" = x; then 17455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17456 fi 17457 else 17458 # Otherwise we believe it is a complete path. Use it as it is. 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17460 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17462 $as_echo_n "checking for UNZIP... " >&6; } 17463 if test ! -x "$tool_specified"; then 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17465 $as_echo "not found" >&6; } 17466 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17467 fi 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17469 $as_echo "$tool_specified" >&6; } 17470 fi 17471 fi 17472 fi 17473 17474 17475 17476 if test "x$UNZIP" = x; then 17477 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17478 fi 17479 17480 17481 17482 17483 17484 # Publish this variable in the help. 17485 17486 17487 if test "x$ZIP" = x; then 17488 # The variable is not set by user, try to locate tool using the code snippet 17489 for ac_prog in zip 17490 do 17491 # Extract the first word of "$ac_prog", so it can be a program name with args. 17492 set dummy $ac_prog; ac_word=$2 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17494 $as_echo_n "checking for $ac_word... " >&6; } 17495 if ${ac_cv_path_ZIP+:} false; then : 17496 $as_echo_n "(cached) " >&6 17497 else 17498 case $ZIP in 17499 [\\/]* | ?:[\\/]*) 17500 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17501 ;; 17502 *) 17503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17504 for as_dir in $PATH 17505 do 17506 IFS=$as_save_IFS 17507 test -z "$as_dir" && as_dir=. 17508 for ac_exec_ext in '' $ac_executable_extensions; do 17509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17510 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17512 break 2 17513 fi 17514 done 17515 done 17516 IFS=$as_save_IFS 17517 17518 ;; 17519 esac 17520 fi 17521 ZIP=$ac_cv_path_ZIP 17522 if test -n "$ZIP"; then 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17524 $as_echo "$ZIP" >&6; } 17525 else 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17527 $as_echo "no" >&6; } 17528 fi 17529 17530 17531 test -n "$ZIP" && break 17532 done 17533 17534 else 17535 # The variable is set, but is it from the command line or the environment? 17536 17537 # Try to remove the string !ZIP! from our list. 17538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17540 # If it failed, the variable was not from the command line. Ignore it, 17541 # but warn the user (except for BASH, which is always set by the calling BASH). 17542 if test "xZIP" != xBASH; then 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17544 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17545 fi 17546 # Try to locate tool using the code snippet 17547 for ac_prog in zip 17548 do 17549 # Extract the first word of "$ac_prog", so it can be a program name with args. 17550 set dummy $ac_prog; ac_word=$2 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17552 $as_echo_n "checking for $ac_word... " >&6; } 17553 if ${ac_cv_path_ZIP+:} false; then : 17554 $as_echo_n "(cached) " >&6 17555 else 17556 case $ZIP in 17557 [\\/]* | ?:[\\/]*) 17558 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17559 ;; 17560 *) 17561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17562 for as_dir in $PATH 17563 do 17564 IFS=$as_save_IFS 17565 test -z "$as_dir" && as_dir=. 17566 for ac_exec_ext in '' $ac_executable_extensions; do 17567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17568 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17570 break 2 17571 fi 17572 done 17573 done 17574 IFS=$as_save_IFS 17575 17576 ;; 17577 esac 17578 fi 17579 ZIP=$ac_cv_path_ZIP 17580 if test -n "$ZIP"; then 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17582 $as_echo "$ZIP" >&6; } 17583 else 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17585 $as_echo "no" >&6; } 17586 fi 17587 17588 17589 test -n "$ZIP" && break 17590 done 17591 17592 else 17593 # If it succeeded, then it was overridden by the user. We will use it 17594 # for the tool. 17595 17596 # First remove it from the list of overridden variables, so we can test 17597 # for unknown variables in the end. 17598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17599 17600 # Check if the provided tool contains a complete path. 17601 tool_specified="$ZIP" 17602 tool_basename="${tool_specified##*/}" 17603 if test "x$tool_basename" = "x$tool_specified"; then 17604 # A command without a complete path is provided, search $PATH. 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17606 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17607 # Extract the first word of "$tool_basename", so it can be a program name with args. 17608 set dummy $tool_basename; ac_word=$2 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17610 $as_echo_n "checking for $ac_word... " >&6; } 17611 if ${ac_cv_path_ZIP+:} false; then : 17612 $as_echo_n "(cached) " >&6 17613 else 17614 case $ZIP in 17615 [\\/]* | ?:[\\/]*) 17616 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17617 ;; 17618 *) 17619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17620 for as_dir in $PATH 17621 do 17622 IFS=$as_save_IFS 17623 test -z "$as_dir" && as_dir=. 17624 for ac_exec_ext in '' $ac_executable_extensions; do 17625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17626 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17628 break 2 17629 fi 17630 done 17631 done 17632 IFS=$as_save_IFS 17633 17634 ;; 17635 esac 17636 fi 17637 ZIP=$ac_cv_path_ZIP 17638 if test -n "$ZIP"; then 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17640 $as_echo "$ZIP" >&6; } 17641 else 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17643 $as_echo "no" >&6; } 17644 fi 17645 17646 17647 if test "x$ZIP" = x; then 17648 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17649 fi 17650 else 17651 # Otherwise we believe it is a complete path. Use it as it is. 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17653 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17655 $as_echo_n "checking for ZIP... " >&6; } 17656 if test ! -x "$tool_specified"; then 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17658 $as_echo "not found" >&6; } 17659 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17660 fi 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17662 $as_echo "$tool_specified" >&6; } 17663 fi 17664 fi 17665 fi 17666 17667 17668 17669 if test "x$ZIP" = x; then 17670 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17671 fi 17672 17673 17674 17675 # Non-required basic tools 17676 17677 17678 17679 # Publish this variable in the help. 17680 17681 17682 if test "x$LDD" = x; then 17683 # The variable is not set by user, try to locate tool using the code snippet 17684 for ac_prog in ldd 17685 do 17686 # Extract the first word of "$ac_prog", so it can be a program name with args. 17687 set dummy $ac_prog; ac_word=$2 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17689 $as_echo_n "checking for $ac_word... " >&6; } 17690 if ${ac_cv_path_LDD+:} false; then : 17691 $as_echo_n "(cached) " >&6 17692 else 17693 case $LDD in 17694 [\\/]* | ?:[\\/]*) 17695 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17696 ;; 17697 *) 17698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17699 for as_dir in $PATH 17700 do 17701 IFS=$as_save_IFS 17702 test -z "$as_dir" && as_dir=. 17703 for ac_exec_ext in '' $ac_executable_extensions; do 17704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17705 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17707 break 2 17708 fi 17709 done 17710 done 17711 IFS=$as_save_IFS 17712 17713 ;; 17714 esac 17715 fi 17716 LDD=$ac_cv_path_LDD 17717 if test -n "$LDD"; then 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17719 $as_echo "$LDD" >&6; } 17720 else 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17722 $as_echo "no" >&6; } 17723 fi 17724 17725 17726 test -n "$LDD" && break 17727 done 17728 17729 else 17730 # The variable is set, but is it from the command line or the environment? 17731 17732 # Try to remove the string !LDD! from our list. 17733 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17734 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17735 # If it failed, the variable was not from the command line. Ignore it, 17736 # but warn the user (except for BASH, which is always set by the calling BASH). 17737 if test "xLDD" != xBASH; then 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17739 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17740 fi 17741 # Try to locate tool using the code snippet 17742 for ac_prog in ldd 17743 do 17744 # Extract the first word of "$ac_prog", so it can be a program name with args. 17745 set dummy $ac_prog; ac_word=$2 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17747 $as_echo_n "checking for $ac_word... " >&6; } 17748 if ${ac_cv_path_LDD+:} false; then : 17749 $as_echo_n "(cached) " >&6 17750 else 17751 case $LDD in 17752 [\\/]* | ?:[\\/]*) 17753 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17754 ;; 17755 *) 17756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17757 for as_dir in $PATH 17758 do 17759 IFS=$as_save_IFS 17760 test -z "$as_dir" && as_dir=. 17761 for ac_exec_ext in '' $ac_executable_extensions; do 17762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17763 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17765 break 2 17766 fi 17767 done 17768 done 17769 IFS=$as_save_IFS 17770 17771 ;; 17772 esac 17773 fi 17774 LDD=$ac_cv_path_LDD 17775 if test -n "$LDD"; then 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17777 $as_echo "$LDD" >&6; } 17778 else 17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17780 $as_echo "no" >&6; } 17781 fi 17782 17783 17784 test -n "$LDD" && break 17785 done 17786 17787 else 17788 # If it succeeded, then it was overridden by the user. We will use it 17789 # for the tool. 17790 17791 # First remove it from the list of overridden variables, so we can test 17792 # for unknown variables in the end. 17793 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17794 17795 # Check if the provided tool contains a complete path. 17796 tool_specified="$LDD" 17797 tool_basename="${tool_specified##*/}" 17798 if test "x$tool_basename" = "x$tool_specified"; then 17799 # A command without a complete path is provided, search $PATH. 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17801 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17802 # Extract the first word of "$tool_basename", so it can be a program name with args. 17803 set dummy $tool_basename; ac_word=$2 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17805 $as_echo_n "checking for $ac_word... " >&6; } 17806 if ${ac_cv_path_LDD+:} false; then : 17807 $as_echo_n "(cached) " >&6 17808 else 17809 case $LDD in 17810 [\\/]* | ?:[\\/]*) 17811 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17812 ;; 17813 *) 17814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17815 for as_dir in $PATH 17816 do 17817 IFS=$as_save_IFS 17818 test -z "$as_dir" && as_dir=. 17819 for ac_exec_ext in '' $ac_executable_extensions; do 17820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17821 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17823 break 2 17824 fi 17825 done 17826 done 17827 IFS=$as_save_IFS 17828 17829 ;; 17830 esac 17831 fi 17832 LDD=$ac_cv_path_LDD 17833 if test -n "$LDD"; then 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17835 $as_echo "$LDD" >&6; } 17836 else 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17838 $as_echo "no" >&6; } 17839 fi 17840 17841 17842 if test "x$LDD" = x; then 17843 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17844 fi 17845 else 17846 # Otherwise we believe it is a complete path. Use it as it is. 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17848 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17850 $as_echo_n "checking for LDD... " >&6; } 17851 if test ! -x "$tool_specified"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17853 $as_echo "not found" >&6; } 17854 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17855 fi 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17857 $as_echo "$tool_specified" >&6; } 17858 fi 17859 fi 17860 fi 17861 17862 17863 if test "x$LDD" = "x"; then 17864 # List shared lib dependencies is used for 17865 # debug output and checking for forbidden dependencies. 17866 # We can build without it. 17867 LDD="true" 17868 fi 17869 17870 17871 # Publish this variable in the help. 17872 17873 17874 if test "x$READELF" = x; then 17875 # The variable is not set by user, try to locate tool using the code snippet 17876 for ac_prog in readelf greadelf 17877 do 17878 # Extract the first word of "$ac_prog", so it can be a program name with args. 17879 set dummy $ac_prog; ac_word=$2 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17881 $as_echo_n "checking for $ac_word... " >&6; } 17882 if ${ac_cv_path_READELF+:} false; then : 17883 $as_echo_n "(cached) " >&6 17884 else 17885 case $READELF in 17886 [\\/]* | ?:[\\/]*) 17887 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17888 ;; 17889 *) 17890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17891 for as_dir in $PATH 17892 do 17893 IFS=$as_save_IFS 17894 test -z "$as_dir" && as_dir=. 17895 for ac_exec_ext in '' $ac_executable_extensions; do 17896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17897 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17899 break 2 17900 fi 17901 done 17902 done 17903 IFS=$as_save_IFS 17904 17905 ;; 17906 esac 17907 fi 17908 READELF=$ac_cv_path_READELF 17909 if test -n "$READELF"; then 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17911 $as_echo "$READELF" >&6; } 17912 else 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17914 $as_echo "no" >&6; } 17915 fi 17916 17917 17918 test -n "$READELF" && break 17919 done 17920 17921 else 17922 # The variable is set, but is it from the command line or the environment? 17923 17924 # Try to remove the string !READELF! from our list. 17925 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17926 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17927 # If it failed, the variable was not from the command line. Ignore it, 17928 # but warn the user (except for BASH, which is always set by the calling BASH). 17929 if test "xREADELF" != xBASH; then 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17931 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17932 fi 17933 # Try to locate tool using the code snippet 17934 for ac_prog in readelf greadelf 17935 do 17936 # Extract the first word of "$ac_prog", so it can be a program name with args. 17937 set dummy $ac_prog; ac_word=$2 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17939 $as_echo_n "checking for $ac_word... " >&6; } 17940 if ${ac_cv_path_READELF+:} false; then : 17941 $as_echo_n "(cached) " >&6 17942 else 17943 case $READELF in 17944 [\\/]* | ?:[\\/]*) 17945 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17946 ;; 17947 *) 17948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17949 for as_dir in $PATH 17950 do 17951 IFS=$as_save_IFS 17952 test -z "$as_dir" && as_dir=. 17953 for ac_exec_ext in '' $ac_executable_extensions; do 17954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17955 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17957 break 2 17958 fi 17959 done 17960 done 17961 IFS=$as_save_IFS 17962 17963 ;; 17964 esac 17965 fi 17966 READELF=$ac_cv_path_READELF 17967 if test -n "$READELF"; then 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17969 $as_echo "$READELF" >&6; } 17970 else 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17972 $as_echo "no" >&6; } 17973 fi 17974 17975 17976 test -n "$READELF" && break 17977 done 17978 17979 else 17980 # If it succeeded, then it was overridden by the user. We will use it 17981 # for the tool. 17982 17983 # First remove it from the list of overridden variables, so we can test 17984 # for unknown variables in the end. 17985 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17986 17987 # Check if the provided tool contains a complete path. 17988 tool_specified="$READELF" 17989 tool_basename="${tool_specified##*/}" 17990 if test "x$tool_basename" = "x$tool_specified"; then 17991 # A command without a complete path is provided, search $PATH. 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17993 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17994 # Extract the first word of "$tool_basename", so it can be a program name with args. 17995 set dummy $tool_basename; ac_word=$2 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17997 $as_echo_n "checking for $ac_word... " >&6; } 17998 if ${ac_cv_path_READELF+:} false; then : 17999 $as_echo_n "(cached) " >&6 18000 else 18001 case $READELF in 18002 [\\/]* | ?:[\\/]*) 18003 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18004 ;; 18005 *) 18006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18007 for as_dir in $PATH 18008 do 18009 IFS=$as_save_IFS 18010 test -z "$as_dir" && as_dir=. 18011 for ac_exec_ext in '' $ac_executable_extensions; do 18012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18013 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18015 break 2 18016 fi 18017 done 18018 done 18019 IFS=$as_save_IFS 18020 18021 ;; 18022 esac 18023 fi 18024 READELF=$ac_cv_path_READELF 18025 if test -n "$READELF"; then 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18027 $as_echo "$READELF" >&6; } 18028 else 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18030 $as_echo "no" >&6; } 18031 fi 18032 18033 18034 if test "x$READELF" = x; then 18035 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18036 fi 18037 else 18038 # Otherwise we believe it is a complete path. Use it as it is. 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18040 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18042 $as_echo_n "checking for READELF... " >&6; } 18043 if test ! -x "$tool_specified"; then 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18045 $as_echo "not found" >&6; } 18046 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18047 fi 18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18049 $as_echo "$tool_specified" >&6; } 18050 fi 18051 fi 18052 fi 18053 18054 18055 18056 18057 # Publish this variable in the help. 18058 18059 18060 if test "x$HG" = x; then 18061 # The variable is not set by user, try to locate tool using the code snippet 18062 for ac_prog in hg 18063 do 18064 # Extract the first word of "$ac_prog", so it can be a program name with args. 18065 set dummy $ac_prog; ac_word=$2 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18067 $as_echo_n "checking for $ac_word... " >&6; } 18068 if ${ac_cv_path_HG+:} false; then : 18069 $as_echo_n "(cached) " >&6 18070 else 18071 case $HG in 18072 [\\/]* | ?:[\\/]*) 18073 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18074 ;; 18075 *) 18076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18077 for as_dir in $PATH 18078 do 18079 IFS=$as_save_IFS 18080 test -z "$as_dir" && as_dir=. 18081 for ac_exec_ext in '' $ac_executable_extensions; do 18082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18083 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18085 break 2 18086 fi 18087 done 18088 done 18089 IFS=$as_save_IFS 18090 18091 ;; 18092 esac 18093 fi 18094 HG=$ac_cv_path_HG 18095 if test -n "$HG"; then 18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18097 $as_echo "$HG" >&6; } 18098 else 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18100 $as_echo "no" >&6; } 18101 fi 18102 18103 18104 test -n "$HG" && break 18105 done 18106 18107 else 18108 # The variable is set, but is it from the command line or the environment? 18109 18110 # Try to remove the string !HG! from our list. 18111 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18112 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18113 # If it failed, the variable was not from the command line. Ignore it, 18114 # but warn the user (except for BASH, which is always set by the calling BASH). 18115 if test "xHG" != xBASH; then 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18117 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18118 fi 18119 # Try to locate tool using the code snippet 18120 for ac_prog in hg 18121 do 18122 # Extract the first word of "$ac_prog", so it can be a program name with args. 18123 set dummy $ac_prog; ac_word=$2 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18125 $as_echo_n "checking for $ac_word... " >&6; } 18126 if ${ac_cv_path_HG+:} false; then : 18127 $as_echo_n "(cached) " >&6 18128 else 18129 case $HG in 18130 [\\/]* | ?:[\\/]*) 18131 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18132 ;; 18133 *) 18134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18135 for as_dir in $PATH 18136 do 18137 IFS=$as_save_IFS 18138 test -z "$as_dir" && as_dir=. 18139 for ac_exec_ext in '' $ac_executable_extensions; do 18140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18141 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18143 break 2 18144 fi 18145 done 18146 done 18147 IFS=$as_save_IFS 18148 18149 ;; 18150 esac 18151 fi 18152 HG=$ac_cv_path_HG 18153 if test -n "$HG"; then 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18155 $as_echo "$HG" >&6; } 18156 else 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18158 $as_echo "no" >&6; } 18159 fi 18160 18161 18162 test -n "$HG" && break 18163 done 18164 18165 else 18166 # If it succeeded, then it was overridden by the user. We will use it 18167 # for the tool. 18168 18169 # First remove it from the list of overridden variables, so we can test 18170 # for unknown variables in the end. 18171 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18172 18173 # Check if the provided tool contains a complete path. 18174 tool_specified="$HG" 18175 tool_basename="${tool_specified##*/}" 18176 if test "x$tool_basename" = "x$tool_specified"; then 18177 # A command without a complete path is provided, search $PATH. 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18179 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18180 # Extract the first word of "$tool_basename", so it can be a program name with args. 18181 set dummy $tool_basename; ac_word=$2 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18183 $as_echo_n "checking for $ac_word... " >&6; } 18184 if ${ac_cv_path_HG+:} false; then : 18185 $as_echo_n "(cached) " >&6 18186 else 18187 case $HG in 18188 [\\/]* | ?:[\\/]*) 18189 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18190 ;; 18191 *) 18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18193 for as_dir in $PATH 18194 do 18195 IFS=$as_save_IFS 18196 test -z "$as_dir" && as_dir=. 18197 for ac_exec_ext in '' $ac_executable_extensions; do 18198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18199 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18201 break 2 18202 fi 18203 done 18204 done 18205 IFS=$as_save_IFS 18206 18207 ;; 18208 esac 18209 fi 18210 HG=$ac_cv_path_HG 18211 if test -n "$HG"; then 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18213 $as_echo "$HG" >&6; } 18214 else 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18216 $as_echo "no" >&6; } 18217 fi 18218 18219 18220 if test "x$HG" = x; then 18221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18222 fi 18223 else 18224 # Otherwise we believe it is a complete path. Use it as it is. 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18226 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18228 $as_echo_n "checking for HG... " >&6; } 18229 if test ! -x "$tool_specified"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18231 $as_echo "not found" >&6; } 18232 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18233 fi 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18235 $as_echo "$tool_specified" >&6; } 18236 fi 18237 fi 18238 fi 18239 18240 18241 18242 18243 # Publish this variable in the help. 18244 18245 18246 if test "x$STAT" = x; then 18247 # The variable is not set by user, try to locate tool using the code snippet 18248 for ac_prog in stat 18249 do 18250 # Extract the first word of "$ac_prog", so it can be a program name with args. 18251 set dummy $ac_prog; ac_word=$2 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18253 $as_echo_n "checking for $ac_word... " >&6; } 18254 if ${ac_cv_path_STAT+:} false; then : 18255 $as_echo_n "(cached) " >&6 18256 else 18257 case $STAT in 18258 [\\/]* | ?:[\\/]*) 18259 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18260 ;; 18261 *) 18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18263 for as_dir in $PATH 18264 do 18265 IFS=$as_save_IFS 18266 test -z "$as_dir" && as_dir=. 18267 for ac_exec_ext in '' $ac_executable_extensions; do 18268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18269 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18271 break 2 18272 fi 18273 done 18274 done 18275 IFS=$as_save_IFS 18276 18277 ;; 18278 esac 18279 fi 18280 STAT=$ac_cv_path_STAT 18281 if test -n "$STAT"; then 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18283 $as_echo "$STAT" >&6; } 18284 else 18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18286 $as_echo "no" >&6; } 18287 fi 18288 18289 18290 test -n "$STAT" && break 18291 done 18292 18293 else 18294 # The variable is set, but is it from the command line or the environment? 18295 18296 # Try to remove the string !STAT! from our list. 18297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18299 # If it failed, the variable was not from the command line. Ignore it, 18300 # but warn the user (except for BASH, which is always set by the calling BASH). 18301 if test "xSTAT" != xBASH; then 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18303 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18304 fi 18305 # Try to locate tool using the code snippet 18306 for ac_prog in stat 18307 do 18308 # Extract the first word of "$ac_prog", so it can be a program name with args. 18309 set dummy $ac_prog; ac_word=$2 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18311 $as_echo_n "checking for $ac_word... " >&6; } 18312 if ${ac_cv_path_STAT+:} false; then : 18313 $as_echo_n "(cached) " >&6 18314 else 18315 case $STAT in 18316 [\\/]* | ?:[\\/]*) 18317 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18318 ;; 18319 *) 18320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18321 for as_dir in $PATH 18322 do 18323 IFS=$as_save_IFS 18324 test -z "$as_dir" && as_dir=. 18325 for ac_exec_ext in '' $ac_executable_extensions; do 18326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18327 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18329 break 2 18330 fi 18331 done 18332 done 18333 IFS=$as_save_IFS 18334 18335 ;; 18336 esac 18337 fi 18338 STAT=$ac_cv_path_STAT 18339 if test -n "$STAT"; then 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18341 $as_echo "$STAT" >&6; } 18342 else 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18344 $as_echo "no" >&6; } 18345 fi 18346 18347 18348 test -n "$STAT" && break 18349 done 18350 18351 else 18352 # If it succeeded, then it was overridden by the user. We will use it 18353 # for the tool. 18354 18355 # First remove it from the list of overridden variables, so we can test 18356 # for unknown variables in the end. 18357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18358 18359 # Check if the provided tool contains a complete path. 18360 tool_specified="$STAT" 18361 tool_basename="${tool_specified##*/}" 18362 if test "x$tool_basename" = "x$tool_specified"; then 18363 # A command without a complete path is provided, search $PATH. 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18365 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18366 # Extract the first word of "$tool_basename", so it can be a program name with args. 18367 set dummy $tool_basename; ac_word=$2 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18369 $as_echo_n "checking for $ac_word... " >&6; } 18370 if ${ac_cv_path_STAT+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372 else 18373 case $STAT in 18374 [\\/]* | ?:[\\/]*) 18375 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18376 ;; 18377 *) 18378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18379 for as_dir in $PATH 18380 do 18381 IFS=$as_save_IFS 18382 test -z "$as_dir" && as_dir=. 18383 for ac_exec_ext in '' $ac_executable_extensions; do 18384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18385 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18387 break 2 18388 fi 18389 done 18390 done 18391 IFS=$as_save_IFS 18392 18393 ;; 18394 esac 18395 fi 18396 STAT=$ac_cv_path_STAT 18397 if test -n "$STAT"; then 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18399 $as_echo "$STAT" >&6; } 18400 else 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18402 $as_echo "no" >&6; } 18403 fi 18404 18405 18406 if test "x$STAT" = x; then 18407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18408 fi 18409 else 18410 # Otherwise we believe it is a complete path. Use it as it is. 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18412 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18414 $as_echo_n "checking for STAT... " >&6; } 18415 if test ! -x "$tool_specified"; then 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18417 $as_echo "not found" >&6; } 18418 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18419 fi 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18421 $as_echo "$tool_specified" >&6; } 18422 fi 18423 fi 18424 fi 18425 18426 18427 18428 18429 # Publish this variable in the help. 18430 18431 18432 if test "x$TIME" = x; then 18433 # The variable is not set by user, try to locate tool using the code snippet 18434 for ac_prog in time 18435 do 18436 # Extract the first word of "$ac_prog", so it can be a program name with args. 18437 set dummy $ac_prog; ac_word=$2 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18439 $as_echo_n "checking for $ac_word... " >&6; } 18440 if ${ac_cv_path_TIME+:} false; then : 18441 $as_echo_n "(cached) " >&6 18442 else 18443 case $TIME in 18444 [\\/]* | ?:[\\/]*) 18445 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18446 ;; 18447 *) 18448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18449 for as_dir in $PATH 18450 do 18451 IFS=$as_save_IFS 18452 test -z "$as_dir" && as_dir=. 18453 for ac_exec_ext in '' $ac_executable_extensions; do 18454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18455 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18457 break 2 18458 fi 18459 done 18460 done 18461 IFS=$as_save_IFS 18462 18463 ;; 18464 esac 18465 fi 18466 TIME=$ac_cv_path_TIME 18467 if test -n "$TIME"; then 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18469 $as_echo "$TIME" >&6; } 18470 else 18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18472 $as_echo "no" >&6; } 18473 fi 18474 18475 18476 test -n "$TIME" && break 18477 done 18478 18479 else 18480 # The variable is set, but is it from the command line or the environment? 18481 18482 # Try to remove the string !TIME! from our list. 18483 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18484 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18485 # If it failed, the variable was not from the command line. Ignore it, 18486 # but warn the user (except for BASH, which is always set by the calling BASH). 18487 if test "xTIME" != xBASH; then 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18489 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18490 fi 18491 # Try to locate tool using the code snippet 18492 for ac_prog in time 18493 do 18494 # Extract the first word of "$ac_prog", so it can be a program name with args. 18495 set dummy $ac_prog; ac_word=$2 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18497 $as_echo_n "checking for $ac_word... " >&6; } 18498 if ${ac_cv_path_TIME+:} false; then : 18499 $as_echo_n "(cached) " >&6 18500 else 18501 case $TIME in 18502 [\\/]* | ?:[\\/]*) 18503 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18504 ;; 18505 *) 18506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18507 for as_dir in $PATH 18508 do 18509 IFS=$as_save_IFS 18510 test -z "$as_dir" && as_dir=. 18511 for ac_exec_ext in '' $ac_executable_extensions; do 18512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18513 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18515 break 2 18516 fi 18517 done 18518 done 18519 IFS=$as_save_IFS 18520 18521 ;; 18522 esac 18523 fi 18524 TIME=$ac_cv_path_TIME 18525 if test -n "$TIME"; then 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18527 $as_echo "$TIME" >&6; } 18528 else 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18530 $as_echo "no" >&6; } 18531 fi 18532 18533 18534 test -n "$TIME" && break 18535 done 18536 18537 else 18538 # If it succeeded, then it was overridden by the user. We will use it 18539 # for the tool. 18540 18541 # First remove it from the list of overridden variables, so we can test 18542 # for unknown variables in the end. 18543 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18544 18545 # Check if the provided tool contains a complete path. 18546 tool_specified="$TIME" 18547 tool_basename="${tool_specified##*/}" 18548 if test "x$tool_basename" = "x$tool_specified"; then 18549 # A command without a complete path is provided, search $PATH. 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18551 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18552 # Extract the first word of "$tool_basename", so it can be a program name with args. 18553 set dummy $tool_basename; ac_word=$2 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18555 $as_echo_n "checking for $ac_word... " >&6; } 18556 if ${ac_cv_path_TIME+:} false; then : 18557 $as_echo_n "(cached) " >&6 18558 else 18559 case $TIME in 18560 [\\/]* | ?:[\\/]*) 18561 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18562 ;; 18563 *) 18564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18565 for as_dir in $PATH 18566 do 18567 IFS=$as_save_IFS 18568 test -z "$as_dir" && as_dir=. 18569 for ac_exec_ext in '' $ac_executable_extensions; do 18570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18571 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18573 break 2 18574 fi 18575 done 18576 done 18577 IFS=$as_save_IFS 18578 18579 ;; 18580 esac 18581 fi 18582 TIME=$ac_cv_path_TIME 18583 if test -n "$TIME"; then 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18585 $as_echo "$TIME" >&6; } 18586 else 18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18588 $as_echo "no" >&6; } 18589 fi 18590 18591 18592 if test "x$TIME" = x; then 18593 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18594 fi 18595 else 18596 # Otherwise we believe it is a complete path. Use it as it is. 18597 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18598 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18600 $as_echo_n "checking for TIME... " >&6; } 18601 if test ! -x "$tool_specified"; then 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18603 $as_echo "not found" >&6; } 18604 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18605 fi 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18607 $as_echo "$tool_specified" >&6; } 18608 fi 18609 fi 18610 fi 18611 18612 18613 # Check if it's GNU time 18614 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18615 if test "x$IS_GNU_TIME" != x; then 18616 IS_GNU_TIME=yes 18617 else 18618 IS_GNU_TIME=no 18619 fi 18620 18621 18622 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18623 18624 18625 18626 # Publish this variable in the help. 18627 18628 18629 if test "x$COMM" = x; then 18630 # The variable is not set by user, try to locate tool using the code snippet 18631 for ac_prog in comm 18632 do 18633 # Extract the first word of "$ac_prog", so it can be a program name with args. 18634 set dummy $ac_prog; ac_word=$2 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18636 $as_echo_n "checking for $ac_word... " >&6; } 18637 if ${ac_cv_path_COMM+:} false; then : 18638 $as_echo_n "(cached) " >&6 18639 else 18640 case $COMM in 18641 [\\/]* | ?:[\\/]*) 18642 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18643 ;; 18644 *) 18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18646 for as_dir in $PATH 18647 do 18648 IFS=$as_save_IFS 18649 test -z "$as_dir" && as_dir=. 18650 for ac_exec_ext in '' $ac_executable_extensions; do 18651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18652 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18654 break 2 18655 fi 18656 done 18657 done 18658 IFS=$as_save_IFS 18659 18660 ;; 18661 esac 18662 fi 18663 COMM=$ac_cv_path_COMM 18664 if test -n "$COMM"; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18666 $as_echo "$COMM" >&6; } 18667 else 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669 $as_echo "no" >&6; } 18670 fi 18671 18672 18673 test -n "$COMM" && break 18674 done 18675 18676 else 18677 # The variable is set, but is it from the command line or the environment? 18678 18679 # Try to remove the string !COMM! from our list. 18680 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18681 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18682 # If it failed, the variable was not from the command line. Ignore it, 18683 # but warn the user (except for BASH, which is always set by the calling BASH). 18684 if test "xCOMM" != xBASH; then 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18686 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18687 fi 18688 # Try to locate tool using the code snippet 18689 for ac_prog in comm 18690 do 18691 # Extract the first word of "$ac_prog", so it can be a program name with args. 18692 set dummy $ac_prog; ac_word=$2 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18694 $as_echo_n "checking for $ac_word... " >&6; } 18695 if ${ac_cv_path_COMM+:} false; then : 18696 $as_echo_n "(cached) " >&6 18697 else 18698 case $COMM in 18699 [\\/]* | ?:[\\/]*) 18700 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18701 ;; 18702 *) 18703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18704 for as_dir in $PATH 18705 do 18706 IFS=$as_save_IFS 18707 test -z "$as_dir" && as_dir=. 18708 for ac_exec_ext in '' $ac_executable_extensions; do 18709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18710 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18712 break 2 18713 fi 18714 done 18715 done 18716 IFS=$as_save_IFS 18717 18718 ;; 18719 esac 18720 fi 18721 COMM=$ac_cv_path_COMM 18722 if test -n "$COMM"; then 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18724 $as_echo "$COMM" >&6; } 18725 else 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18727 $as_echo "no" >&6; } 18728 fi 18729 18730 18731 test -n "$COMM" && break 18732 done 18733 18734 else 18735 # If it succeeded, then it was overridden by the user. We will use it 18736 # for the tool. 18737 18738 # First remove it from the list of overridden variables, so we can test 18739 # for unknown variables in the end. 18740 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18741 18742 # Check if the provided tool contains a complete path. 18743 tool_specified="$COMM" 18744 tool_basename="${tool_specified##*/}" 18745 if test "x$tool_basename" = "x$tool_specified"; then 18746 # A command without a complete path is provided, search $PATH. 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18748 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18749 # Extract the first word of "$tool_basename", so it can be a program name with args. 18750 set dummy $tool_basename; ac_word=$2 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18752 $as_echo_n "checking for $ac_word... " >&6; } 18753 if ${ac_cv_path_COMM+:} false; then : 18754 $as_echo_n "(cached) " >&6 18755 else 18756 case $COMM in 18757 [\\/]* | ?:[\\/]*) 18758 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18759 ;; 18760 *) 18761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18762 for as_dir in $PATH 18763 do 18764 IFS=$as_save_IFS 18765 test -z "$as_dir" && as_dir=. 18766 for ac_exec_ext in '' $ac_executable_extensions; do 18767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18768 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18770 break 2 18771 fi 18772 done 18773 done 18774 IFS=$as_save_IFS 18775 18776 ;; 18777 esac 18778 fi 18779 COMM=$ac_cv_path_COMM 18780 if test -n "$COMM"; then 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18782 $as_echo "$COMM" >&6; } 18783 else 18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18785 $as_echo "no" >&6; } 18786 fi 18787 18788 18789 if test "x$COMM" = x; then 18790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18791 fi 18792 else 18793 # Otherwise we believe it is a complete path. Use it as it is. 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18795 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18797 $as_echo_n "checking for COMM... " >&6; } 18798 if test ! -x "$tool_specified"; then 18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18800 $as_echo "not found" >&6; } 18801 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18802 fi 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18804 $as_echo "$tool_specified" >&6; } 18805 fi 18806 fi 18807 fi 18808 18809 18810 18811 if test "x$COMM" = x; then 18812 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18813 fi 18814 18815 18816 fi 18817 18818 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18819 18820 18821 18822 # Publish this variable in the help. 18823 18824 18825 if test "x$DSYMUTIL" = x; then 18826 # The variable is not set by user, try to locate tool using the code snippet 18827 for ac_prog in dsymutil 18828 do 18829 # Extract the first word of "$ac_prog", so it can be a program name with args. 18830 set dummy $ac_prog; ac_word=$2 18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18832 $as_echo_n "checking for $ac_word... " >&6; } 18833 if ${ac_cv_path_DSYMUTIL+:} false; then : 18834 $as_echo_n "(cached) " >&6 18835 else 18836 case $DSYMUTIL in 18837 [\\/]* | ?:[\\/]*) 18838 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18839 ;; 18840 *) 18841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18842 for as_dir in $PATH 18843 do 18844 IFS=$as_save_IFS 18845 test -z "$as_dir" && as_dir=. 18846 for ac_exec_ext in '' $ac_executable_extensions; do 18847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18848 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18850 break 2 18851 fi 18852 done 18853 done 18854 IFS=$as_save_IFS 18855 18856 ;; 18857 esac 18858 fi 18859 DSYMUTIL=$ac_cv_path_DSYMUTIL 18860 if test -n "$DSYMUTIL"; then 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18862 $as_echo "$DSYMUTIL" >&6; } 18863 else 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18865 $as_echo "no" >&6; } 18866 fi 18867 18868 18869 test -n "$DSYMUTIL" && break 18870 done 18871 18872 else 18873 # The variable is set, but is it from the command line or the environment? 18874 18875 # Try to remove the string !DSYMUTIL! from our list. 18876 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18877 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18878 # If it failed, the variable was not from the command line. Ignore it, 18879 # but warn the user (except for BASH, which is always set by the calling BASH). 18880 if test "xDSYMUTIL" != xBASH; then 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18882 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18883 fi 18884 # Try to locate tool using the code snippet 18885 for ac_prog in dsymutil 18886 do 18887 # Extract the first word of "$ac_prog", so it can be a program name with args. 18888 set dummy $ac_prog; ac_word=$2 18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18890 $as_echo_n "checking for $ac_word... " >&6; } 18891 if ${ac_cv_path_DSYMUTIL+:} false; then : 18892 $as_echo_n "(cached) " >&6 18893 else 18894 case $DSYMUTIL in 18895 [\\/]* | ?:[\\/]*) 18896 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18897 ;; 18898 *) 18899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18900 for as_dir in $PATH 18901 do 18902 IFS=$as_save_IFS 18903 test -z "$as_dir" && as_dir=. 18904 for ac_exec_ext in '' $ac_executable_extensions; do 18905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18906 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18908 break 2 18909 fi 18910 done 18911 done 18912 IFS=$as_save_IFS 18913 18914 ;; 18915 esac 18916 fi 18917 DSYMUTIL=$ac_cv_path_DSYMUTIL 18918 if test -n "$DSYMUTIL"; then 18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18920 $as_echo "$DSYMUTIL" >&6; } 18921 else 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18923 $as_echo "no" >&6; } 18924 fi 18925 18926 18927 test -n "$DSYMUTIL" && break 18928 done 18929 18930 else 18931 # If it succeeded, then it was overridden by the user. We will use it 18932 # for the tool. 18933 18934 # First remove it from the list of overridden variables, so we can test 18935 # for unknown variables in the end. 18936 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18937 18938 # Check if the provided tool contains a complete path. 18939 tool_specified="$DSYMUTIL" 18940 tool_basename="${tool_specified##*/}" 18941 if test "x$tool_basename" = "x$tool_specified"; then 18942 # A command without a complete path is provided, search $PATH. 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18944 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18945 # Extract the first word of "$tool_basename", so it can be a program name with args. 18946 set dummy $tool_basename; ac_word=$2 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18948 $as_echo_n "checking for $ac_word... " >&6; } 18949 if ${ac_cv_path_DSYMUTIL+:} false; then : 18950 $as_echo_n "(cached) " >&6 18951 else 18952 case $DSYMUTIL in 18953 [\\/]* | ?:[\\/]*) 18954 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18955 ;; 18956 *) 18957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18958 for as_dir in $PATH 18959 do 18960 IFS=$as_save_IFS 18961 test -z "$as_dir" && as_dir=. 18962 for ac_exec_ext in '' $ac_executable_extensions; do 18963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18964 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18966 break 2 18967 fi 18968 done 18969 done 18970 IFS=$as_save_IFS 18971 18972 ;; 18973 esac 18974 fi 18975 DSYMUTIL=$ac_cv_path_DSYMUTIL 18976 if test -n "$DSYMUTIL"; then 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18978 $as_echo "$DSYMUTIL" >&6; } 18979 else 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18981 $as_echo "no" >&6; } 18982 fi 18983 18984 18985 if test "x$DSYMUTIL" = x; then 18986 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18987 fi 18988 else 18989 # Otherwise we believe it is a complete path. Use it as it is. 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18991 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18993 $as_echo_n "checking for DSYMUTIL... " >&6; } 18994 if test ! -x "$tool_specified"; then 18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18996 $as_echo "not found" >&6; } 18997 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18998 fi 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19000 $as_echo "$tool_specified" >&6; } 19001 fi 19002 fi 19003 fi 19004 19005 19006 19007 if test "x$DSYMUTIL" = x; then 19008 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19009 fi 19010 19011 19012 19013 19014 19015 # Publish this variable in the help. 19016 19017 19018 if test "x$XATTR" = x; then 19019 # The variable is not set by user, try to locate tool using the code snippet 19020 for ac_prog in xattr 19021 do 19022 # Extract the first word of "$ac_prog", so it can be a program name with args. 19023 set dummy $ac_prog; ac_word=$2 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19025 $as_echo_n "checking for $ac_word... " >&6; } 19026 if ${ac_cv_path_XATTR+:} false; then : 19027 $as_echo_n "(cached) " >&6 19028 else 19029 case $XATTR in 19030 [\\/]* | ?:[\\/]*) 19031 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19032 ;; 19033 *) 19034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19035 for as_dir in $PATH 19036 do 19037 IFS=$as_save_IFS 19038 test -z "$as_dir" && as_dir=. 19039 for ac_exec_ext in '' $ac_executable_extensions; do 19040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19041 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19043 break 2 19044 fi 19045 done 19046 done 19047 IFS=$as_save_IFS 19048 19049 ;; 19050 esac 19051 fi 19052 XATTR=$ac_cv_path_XATTR 19053 if test -n "$XATTR"; then 19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19055 $as_echo "$XATTR" >&6; } 19056 else 19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19058 $as_echo "no" >&6; } 19059 fi 19060 19061 19062 test -n "$XATTR" && break 19063 done 19064 19065 else 19066 # The variable is set, but is it from the command line or the environment? 19067 19068 # Try to remove the string !XATTR! from our list. 19069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19071 # If it failed, the variable was not from the command line. Ignore it, 19072 # but warn the user (except for BASH, which is always set by the calling BASH). 19073 if test "xXATTR" != xBASH; then 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19075 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19076 fi 19077 # Try to locate tool using the code snippet 19078 for ac_prog in xattr 19079 do 19080 # Extract the first word of "$ac_prog", so it can be a program name with args. 19081 set dummy $ac_prog; ac_word=$2 19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19083 $as_echo_n "checking for $ac_word... " >&6; } 19084 if ${ac_cv_path_XATTR+:} false; then : 19085 $as_echo_n "(cached) " >&6 19086 else 19087 case $XATTR in 19088 [\\/]* | ?:[\\/]*) 19089 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19090 ;; 19091 *) 19092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19093 for as_dir in $PATH 19094 do 19095 IFS=$as_save_IFS 19096 test -z "$as_dir" && as_dir=. 19097 for ac_exec_ext in '' $ac_executable_extensions; do 19098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19099 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19101 break 2 19102 fi 19103 done 19104 done 19105 IFS=$as_save_IFS 19106 19107 ;; 19108 esac 19109 fi 19110 XATTR=$ac_cv_path_XATTR 19111 if test -n "$XATTR"; then 19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19113 $as_echo "$XATTR" >&6; } 19114 else 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19116 $as_echo "no" >&6; } 19117 fi 19118 19119 19120 test -n "$XATTR" && break 19121 done 19122 19123 else 19124 # If it succeeded, then it was overridden by the user. We will use it 19125 # for the tool. 19126 19127 # First remove it from the list of overridden variables, so we can test 19128 # for unknown variables in the end. 19129 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19130 19131 # Check if the provided tool contains a complete path. 19132 tool_specified="$XATTR" 19133 tool_basename="${tool_specified##*/}" 19134 if test "x$tool_basename" = "x$tool_specified"; then 19135 # A command without a complete path is provided, search $PATH. 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19137 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19138 # Extract the first word of "$tool_basename", so it can be a program name with args. 19139 set dummy $tool_basename; ac_word=$2 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19141 $as_echo_n "checking for $ac_word... " >&6; } 19142 if ${ac_cv_path_XATTR+:} false; then : 19143 $as_echo_n "(cached) " >&6 19144 else 19145 case $XATTR in 19146 [\\/]* | ?:[\\/]*) 19147 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19148 ;; 19149 *) 19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19151 for as_dir in $PATH 19152 do 19153 IFS=$as_save_IFS 19154 test -z "$as_dir" && as_dir=. 19155 for ac_exec_ext in '' $ac_executable_extensions; do 19156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19157 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19159 break 2 19160 fi 19161 done 19162 done 19163 IFS=$as_save_IFS 19164 19165 ;; 19166 esac 19167 fi 19168 XATTR=$ac_cv_path_XATTR 19169 if test -n "$XATTR"; then 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19171 $as_echo "$XATTR" >&6; } 19172 else 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19174 $as_echo "no" >&6; } 19175 fi 19176 19177 19178 if test "x$XATTR" = x; then 19179 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19180 fi 19181 else 19182 # Otherwise we believe it is a complete path. Use it as it is. 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19184 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19186 $as_echo_n "checking for XATTR... " >&6; } 19187 if test ! -x "$tool_specified"; then 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19189 $as_echo "not found" >&6; } 19190 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19191 fi 19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19193 $as_echo "$tool_specified" >&6; } 19194 fi 19195 fi 19196 fi 19197 19198 19199 19200 if test "x$XATTR" = x; then 19201 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19202 fi 19203 19204 19205 19206 19207 # Publish this variable in the help. 19208 19209 19210 if test "x$CODESIGN" = x; then 19211 # The variable is not set by user, try to locate tool using the code snippet 19212 for ac_prog in codesign 19213 do 19214 # Extract the first word of "$ac_prog", so it can be a program name with args. 19215 set dummy $ac_prog; ac_word=$2 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19217 $as_echo_n "checking for $ac_word... " >&6; } 19218 if ${ac_cv_path_CODESIGN+:} false; then : 19219 $as_echo_n "(cached) " >&6 19220 else 19221 case $CODESIGN in 19222 [\\/]* | ?:[\\/]*) 19223 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19224 ;; 19225 *) 19226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19227 for as_dir in $PATH 19228 do 19229 IFS=$as_save_IFS 19230 test -z "$as_dir" && as_dir=. 19231 for ac_exec_ext in '' $ac_executable_extensions; do 19232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19233 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19235 break 2 19236 fi 19237 done 19238 done 19239 IFS=$as_save_IFS 19240 19241 ;; 19242 esac 19243 fi 19244 CODESIGN=$ac_cv_path_CODESIGN 19245 if test -n "$CODESIGN"; then 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19247 $as_echo "$CODESIGN" >&6; } 19248 else 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19250 $as_echo "no" >&6; } 19251 fi 19252 19253 19254 test -n "$CODESIGN" && break 19255 done 19256 19257 else 19258 # The variable is set, but is it from the command line or the environment? 19259 19260 # Try to remove the string !CODESIGN! from our list. 19261 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19262 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19263 # If it failed, the variable was not from the command line. Ignore it, 19264 # but warn the user (except for BASH, which is always set by the calling BASH). 19265 if test "xCODESIGN" != xBASH; then 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19267 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19268 fi 19269 # Try to locate tool using the code snippet 19270 for ac_prog in codesign 19271 do 19272 # Extract the first word of "$ac_prog", so it can be a program name with args. 19273 set dummy $ac_prog; ac_word=$2 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19275 $as_echo_n "checking for $ac_word... " >&6; } 19276 if ${ac_cv_path_CODESIGN+:} false; then : 19277 $as_echo_n "(cached) " >&6 19278 else 19279 case $CODESIGN in 19280 [\\/]* | ?:[\\/]*) 19281 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19282 ;; 19283 *) 19284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19285 for as_dir in $PATH 19286 do 19287 IFS=$as_save_IFS 19288 test -z "$as_dir" && as_dir=. 19289 for ac_exec_ext in '' $ac_executable_extensions; do 19290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19291 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19293 break 2 19294 fi 19295 done 19296 done 19297 IFS=$as_save_IFS 19298 19299 ;; 19300 esac 19301 fi 19302 CODESIGN=$ac_cv_path_CODESIGN 19303 if test -n "$CODESIGN"; then 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19305 $as_echo "$CODESIGN" >&6; } 19306 else 19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19308 $as_echo "no" >&6; } 19309 fi 19310 19311 19312 test -n "$CODESIGN" && break 19313 done 19314 19315 else 19316 # If it succeeded, then it was overridden by the user. We will use it 19317 # for the tool. 19318 19319 # First remove it from the list of overridden variables, so we can test 19320 # for unknown variables in the end. 19321 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19322 19323 # Check if the provided tool contains a complete path. 19324 tool_specified="$CODESIGN" 19325 tool_basename="${tool_specified##*/}" 19326 if test "x$tool_basename" = "x$tool_specified"; then 19327 # A command without a complete path is provided, search $PATH. 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19329 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19330 # Extract the first word of "$tool_basename", so it can be a program name with args. 19331 set dummy $tool_basename; ac_word=$2 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19333 $as_echo_n "checking for $ac_word... " >&6; } 19334 if ${ac_cv_path_CODESIGN+:} false; then : 19335 $as_echo_n "(cached) " >&6 19336 else 19337 case $CODESIGN in 19338 [\\/]* | ?:[\\/]*) 19339 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19340 ;; 19341 *) 19342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19343 for as_dir in $PATH 19344 do 19345 IFS=$as_save_IFS 19346 test -z "$as_dir" && as_dir=. 19347 for ac_exec_ext in '' $ac_executable_extensions; do 19348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19349 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19351 break 2 19352 fi 19353 done 19354 done 19355 IFS=$as_save_IFS 19356 19357 ;; 19358 esac 19359 fi 19360 CODESIGN=$ac_cv_path_CODESIGN 19361 if test -n "$CODESIGN"; then 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19363 $as_echo "$CODESIGN" >&6; } 19364 else 19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19366 $as_echo "no" >&6; } 19367 fi 19368 19369 19370 if test "x$CODESIGN" = x; then 19371 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19372 fi 19373 else 19374 # Otherwise we believe it is a complete path. Use it as it is. 19375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19376 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19378 $as_echo_n "checking for CODESIGN... " >&6; } 19379 if test ! -x "$tool_specified"; then 19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19381 $as_echo "not found" >&6; } 19382 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19383 fi 19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19385 $as_echo "$tool_specified" >&6; } 19386 fi 19387 fi 19388 fi 19389 19390 19391 if test "x$CODESIGN" != "x"; then 19392 # Verify that the openjdk_codesign certificate is present 19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19394 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19395 rm -f codesign-testfile 19396 touch codesign-testfile 19397 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19398 rm -f codesign-testfile 19399 if test "x$CODESIGN" = x; then 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19401 $as_echo "no" >&6; } 19402 else 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19404 $as_echo "yes" >&6; } 19405 fi 19406 fi 19407 fi 19408 19409 19410 # Check if pkg-config is available. 19411 19412 19413 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19414 if test -n "$ac_tool_prefix"; then 19415 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19416 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19418 $as_echo_n "checking for $ac_word... " >&6; } 19419 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19420 $as_echo_n "(cached) " >&6 19421 else 19422 case $PKG_CONFIG in 19423 [\\/]* | ?:[\\/]*) 19424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19425 ;; 19426 *) 19427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19428 for as_dir in $PATH 19429 do 19430 IFS=$as_save_IFS 19431 test -z "$as_dir" && as_dir=. 19432 for ac_exec_ext in '' $ac_executable_extensions; do 19433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19436 break 2 19437 fi 19438 done 19439 done 19440 IFS=$as_save_IFS 19441 19442 ;; 19443 esac 19444 fi 19445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19446 if test -n "$PKG_CONFIG"; then 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19448 $as_echo "$PKG_CONFIG" >&6; } 19449 else 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19451 $as_echo "no" >&6; } 19452 fi 19453 19454 19455 fi 19456 if test -z "$ac_cv_path_PKG_CONFIG"; then 19457 ac_pt_PKG_CONFIG=$PKG_CONFIG 19458 # Extract the first word of "pkg-config", so it can be a program name with args. 19459 set dummy pkg-config; ac_word=$2 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19461 $as_echo_n "checking for $ac_word... " >&6; } 19462 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19463 $as_echo_n "(cached) " >&6 19464 else 19465 case $ac_pt_PKG_CONFIG in 19466 [\\/]* | ?:[\\/]*) 19467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19468 ;; 19469 *) 19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19471 for as_dir in $PATH 19472 do 19473 IFS=$as_save_IFS 19474 test -z "$as_dir" && as_dir=. 19475 for ac_exec_ext in '' $ac_executable_extensions; do 19476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19477 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19479 break 2 19480 fi 19481 done 19482 done 19483 IFS=$as_save_IFS 19484 19485 ;; 19486 esac 19487 fi 19488 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19489 if test -n "$ac_pt_PKG_CONFIG"; then 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19491 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19492 else 19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19494 $as_echo "no" >&6; } 19495 fi 19496 19497 if test "x$ac_pt_PKG_CONFIG" = x; then 19498 PKG_CONFIG="" 19499 else 19500 case $cross_compiling:$ac_tool_warned in 19501 yes:) 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19504 ac_tool_warned=yes ;; 19505 esac 19506 PKG_CONFIG=$ac_pt_PKG_CONFIG 19507 fi 19508 else 19509 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19510 fi 19511 19512 fi 19513 if test -n "$PKG_CONFIG"; then 19514 _pkg_min_version=0.9.0 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19516 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19517 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19519 $as_echo "yes" >&6; } 19520 else 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19522 $as_echo "no" >&6; } 19523 PKG_CONFIG="" 19524 fi 19525 19526 fi 19527 19528 # After basic tools have been setup, we can check build os specific details. 19529 19530 ############################################################################### 19531 19532 # Note that this is the build platform OS version! 19533 19534 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19535 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19536 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19537 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19538 19539 19540 19541 19542 19543 # Setup builddeps, for automatic downloading of tools we need. 19544 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19545 # boot-jdk setup, but we need to have basic tools setup first. 19546 19547 19548 # Check whether --with-builddeps-conf was given. 19549 if test "${with_builddeps_conf+set}" = set; then : 19550 withval=$with_builddeps_conf; 19551 fi 19552 19553 19554 19555 # Check whether --with-builddeps-server was given. 19556 if test "${with_builddeps_server+set}" = set; then : 19557 withval=$with_builddeps_server; 19558 fi 19559 19560 19561 19562 # Check whether --with-builddeps-dir was given. 19563 if test "${with_builddeps_dir+set}" = set; then : 19564 withval=$with_builddeps_dir; 19565 else 19566 with_builddeps_dir=/localhome/builddeps 19567 fi 19568 19569 19570 19571 # Check whether --with-builddeps-group was given. 19572 if test "${with_builddeps_group+set}" = set; then : 19573 withval=$with_builddeps_group; 19574 fi 19575 19576 19577 19578 19579 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19580 if test "x$with_builddeps_conf" != x; then 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19582 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19583 builddepsfile=$with_builddeps_conf 19584 if test -s $builddepsfile; then 19585 . $builddepsfile 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19587 $as_echo "loaded!" >&6; } 19588 else 19589 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19590 fi 19591 else 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19593 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19594 builddepsfile=`mktemp` 19595 touch $builddepsfile 19596 # Put all found confs into a single file. 19597 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19598 # Source the file to acquire the variables 19599 if test -s $builddepsfile; then 19600 . $builddepsfile 19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19602 $as_echo "found at least one!" >&6; } 19603 else 19604 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19605 fi 19606 fi 19607 # Create build and target names that use _ instead of "-" and ".". 19608 # This is necessary to use them in variable names. 19609 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19610 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19611 # Extract rewrite information for build and target 19612 eval rewritten_build=\${REWRITE_${build_var}} 19613 if test "x$rewritten_build" = x; then 19614 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19615 echo Build stays the same $rewritten_build 19616 else 19617 echo Rewriting build for builddeps into $rewritten_build 19618 fi 19619 eval rewritten_target=\${REWRITE_${target_var}} 19620 if test "x$rewritten_target" = x; then 19621 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19622 echo Target stays the same $rewritten_target 19623 else 19624 echo Rewriting target for builddeps into $rewritten_target 19625 fi 19626 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19627 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19628 fi 19629 for ac_prog in 7z unzip 19630 do 19631 # Extract the first word of "$ac_prog", so it can be a program name with args. 19632 set dummy $ac_prog; ac_word=$2 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19634 $as_echo_n "checking for $ac_word... " >&6; } 19635 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19636 $as_echo_n "(cached) " >&6 19637 else 19638 if test -n "$BDEPS_UNZIP"; then 19639 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19640 else 19641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19642 for as_dir in $PATH 19643 do 19644 IFS=$as_save_IFS 19645 test -z "$as_dir" && as_dir=. 19646 for ac_exec_ext in '' $ac_executable_extensions; do 19647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19648 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19650 break 2 19651 fi 19652 done 19653 done 19654 IFS=$as_save_IFS 19655 19656 fi 19657 fi 19658 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19659 if test -n "$BDEPS_UNZIP"; then 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19661 $as_echo "$BDEPS_UNZIP" >&6; } 19662 else 19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19664 $as_echo "no" >&6; } 19665 fi 19666 19667 19668 test -n "$BDEPS_UNZIP" && break 19669 done 19670 19671 if test "x$BDEPS_UNZIP" = x7z; then 19672 BDEPS_UNZIP="7z x" 19673 fi 19674 19675 for ac_prog in wget lftp ftp 19676 do 19677 # Extract the first word of "$ac_prog", so it can be a program name with args. 19678 set dummy $ac_prog; ac_word=$2 19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19680 $as_echo_n "checking for $ac_word... " >&6; } 19681 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19682 $as_echo_n "(cached) " >&6 19683 else 19684 if test -n "$BDEPS_FTP"; then 19685 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19686 else 19687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19688 for as_dir in $PATH 19689 do 19690 IFS=$as_save_IFS 19691 test -z "$as_dir" && as_dir=. 19692 for ac_exec_ext in '' $ac_executable_extensions; do 19693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19694 ac_cv_prog_BDEPS_FTP="$ac_prog" 19695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19696 break 2 19697 fi 19698 done 19699 done 19700 IFS=$as_save_IFS 19701 19702 fi 19703 fi 19704 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19705 if test -n "$BDEPS_FTP"; then 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19707 $as_echo "$BDEPS_FTP" >&6; } 19708 else 19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19710 $as_echo "no" >&6; } 19711 fi 19712 19713 19714 test -n "$BDEPS_FTP" && break 19715 done 19716 19717 19718 19719 ############################################################################### 19720 # 19721 # Determine OpenJDK variants, options and version numbers. 19722 # 19723 ############################################################################### 19724 19725 # We need build & target for this. 19726 19727 19728 ############################################################################### 19729 # 19730 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19731 # We always build headless support. 19732 # 19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19734 $as_echo_n "checking headful support... " >&6; } 19735 # Check whether --enable-headful was given. 19736 if test "${enable_headful+set}" = set; then : 19737 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19738 else 19739 SUPPORT_HEADFUL=yes 19740 fi 19741 19742 19743 SUPPORT_HEADLESS=yes 19744 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19745 19746 if test "x$SUPPORT_HEADFUL" = xyes; then 19747 # We are building both headful and headless. 19748 headful_msg="include support for both headful and headless" 19749 fi 19750 19751 if test "x$SUPPORT_HEADFUL" = xno; then 19752 # Thus we are building headless only. 19753 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19754 headful_msg="headless only" 19755 fi 19756 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19758 $as_echo "$headful_msg" >&6; } 19759 19760 19761 19762 19763 19764 # Control wether Hotspot runs Queens test after build. 19765 # Check whether --enable-hotspot-test-in-build was given. 19766 if test "${enable_hotspot_test_in_build+set}" = set; then : 19767 enableval=$enable_hotspot_test_in_build; 19768 else 19769 enable_hotspot_test_in_build=no 19770 fi 19771 19772 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19773 TEST_IN_BUILD=true 19774 else 19775 TEST_IN_BUILD=false 19776 fi 19777 19778 19779 ############################################################################### 19780 # 19781 # Choose cacerts source file 19782 # 19783 19784 # Check whether --with-cacerts-file was given. 19785 if test "${with_cacerts_file+set}" = set; then : 19786 withval=$with_cacerts_file; 19787 fi 19788 19789 if test "x$with_cacerts_file" != x; then 19790 CACERTS_FILE=$with_cacerts_file 19791 fi 19792 19793 19794 ############################################################################### 19795 # 19796 # Enable or disable unlimited crypto 19797 # 19798 # Check whether --enable-unlimited-crypto was given. 19799 if test "${enable_unlimited_crypto+set}" = set; then : 19800 enableval=$enable_unlimited_crypto; 19801 else 19802 enable_unlimited_crypto=no 19803 fi 19804 19805 if test "x$enable_unlimited_crypto" = "xyes"; then 19806 UNLIMITED_CRYPTO=true 19807 else 19808 UNLIMITED_CRYPTO=false 19809 fi 19810 19811 19812 ############################################################################### 19813 # 19814 # Enable or disable the elliptic curve crypto implementation 19815 # 19816 19817 19818 ############################################################################### 19819 # 19820 # Compress jars 19821 # 19822 COMPRESS_JARS=false 19823 19824 19825 19826 ############################################################################### 19827 # 19828 # Enable or disable JFR 19829 # 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build JFR" >&5 19831 $as_echo_n "checking whether to build JFR... " >&6; } 19832 # Check whether --enable-jfr was given. 19833 if test "${enable_jfr+set}" = set; then : 19834 enableval=$enable_jfr; 19835 else 19836 enable_jfr=auto 19837 fi 19838 19839 if test "x$enable_jfr" = "xno"; then 19840 ENABLE_JFR=false 19841 elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then 19842 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then 19843 if test "x$enable_jfr" = "xyes"; then 19844 as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5 19845 else 19846 ENABLE_JFR=false 19847 fi 19848 elif test "x$OPENJDK_TARGET_OS" = xaix; then 19849 if test "x$enable_jfr" = "xyes"; then 19850 as_fn_error $? "AIX does not support JFR" "$LINENO" 5 19851 else 19852 ENABLE_JFR=false 19853 fi 19854 else 19855 ENABLE_JFR=true 19856 fi 19857 else 19858 as_fn_error $? "--enable-jfr must be set to either yes or no" "$LINENO" 5 19859 fi 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5 19861 $as_echo "$ENABLE_JFR" >&6; } 19862 19863 19864 19865 # Source the version numbers 19866 . $AUTOCONF_DIR/version-numbers 19867 19868 # Get the settings from parameters 19869 19870 # Check whether --with-milestone was given. 19871 if test "${with_milestone+set}" = set; then : 19872 withval=$with_milestone; 19873 fi 19874 19875 if test "x$with_milestone" = xyes; then 19876 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19877 elif test "x$with_milestone" != x; then 19878 MILESTONE="$with_milestone" 19879 fi 19880 if test "x$MILESTONE" = x; then 19881 MILESTONE=internal 19882 fi 19883 19884 19885 # Check whether --with-update-version was given. 19886 if test "${with_update_version+set}" = set; then : 19887 withval=$with_update_version; 19888 fi 19889 19890 if test "x$with_update_version" = xyes; then 19891 as_fn_error $? "Update version must have a value" "$LINENO" 5 19892 elif test "x$with_update_version" != x; then 19893 JDK_UPDATE_VERSION="$with_update_version" 19894 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19895 # to a bug in expr (which reduces it to just X). To work around this, we 19896 # always add a 0 to one digit update versions. 19897 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19898 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19899 fi 19900 fi 19901 19902 19903 # Check whether --with-user-release-suffix was given. 19904 if test "${with_user_release_suffix+set}" = set; then : 19905 withval=$with_user_release_suffix; 19906 fi 19907 19908 if test "x$with_user_release_suffix" = xyes; then 19909 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19910 elif test "x$with_user_release_suffix" != x; then 19911 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19912 fi 19913 19914 19915 # Check whether --with-build-number was given. 19916 if test "${with_build_number+set}" = set; then : 19917 withval=$with_build_number; 19918 fi 19919 19920 if test "x$with_build_number" = xyes; then 19921 as_fn_error $? "Build number must have a value" "$LINENO" 5 19922 elif test "x$with_build_number" != x; then 19923 JDK_BUILD_NUMBER="$with_build_number" 19924 fi 19925 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19926 if test "x$JDK_BUILD_NUMBER" = x; then 19927 JDK_BUILD_NUMBER=b00 19928 if test "x$USER_RELEASE_SUFFIX" = x; then 19929 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19930 # Avoid [:alnum:] since it depends on the locale. 19931 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19932 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19933 fi 19934 fi 19935 19936 # Now set the JDK version, milestone, build number etc. 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 # The vendor name, if any 19952 19953 # Check whether --with-vendor-name was given. 19954 if test "${with_vendor_name+set}" = set; then : 19955 withval=$with_vendor_name; 19956 fi 19957 19958 if test "x$with_vendor_name" = xyes; then 19959 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 19960 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 19961 as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 19962 elif test "x$with_vendor_name" != x; then 19963 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty. 19964 # Otherwise we will use the value from "version-numbers" included above. 19965 COMPANY_NAME="$with_vendor_name" 19966 fi 19967 19968 19969 # The vendor URL, if any 19970 19971 # Check whether --with-vendor-url was given. 19972 if test "${with_vendor_url+set}" = set; then : 19973 withval=$with_vendor_url; 19974 fi 19975 19976 if test "x$with_vendor_url" = xyes; then 19977 as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5 19978 elif ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then 19979 as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5 19980 else 19981 VENDOR_URL="$with_vendor_url" 19982 fi 19983 19984 19985 # The vendor bug URL, if any 19986 19987 # Check whether --with-vendor-bug-url was given. 19988 if test "${with_vendor_bug_url+set}" = set; then : 19989 withval=$with_vendor_bug_url; 19990 fi 19991 19992 if test "x$with_vendor_bug_url" = xyes; then 19993 as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5 19994 elif ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then 19995 as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5 19996 else 19997 VENDOR_URL_BUG="$with_vendor_bug_url" 19998 fi 19999 20000 20001 # The vendor VM bug URL, if any 20002 20003 # Check whether --with-vendor-vm-bug-url was given. 20004 if test "${with_vendor_vm_bug_url+set}" = set; then : 20005 withval=$with_vendor_vm_bug_url; 20006 fi 20007 20008 if test "x$with_vendor_vm_bug_url" = xyes; then 20009 as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5 20010 elif ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then 20011 as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5 20012 else 20013 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url" 20014 fi 20015 20016 20017 20018 # Check whether --with-copyright-year was given. 20019 if test "${with_copyright_year+set}" = set; then : 20020 withval=$with_copyright_year; 20021 fi 20022 20023 if test "x$with_copyright_year" = xyes; then 20024 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20025 elif test "x$with_copyright_year" != x; then 20026 COPYRIGHT_YEAR="$with_copyright_year" 20027 else 20028 COPYRIGHT_YEAR=`date +'%Y'` 20029 fi 20030 20031 20032 if test "x$JDK_UPDATE_VERSION" != x; then 20033 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20034 else 20035 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20036 fi 20037 20038 20039 # The cooked update version used to encode trailing letters in the update 20040 # version into a trailing number. That is no longer needed, but need to 20041 # keep the format in 8u for compatibility. 20042 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 20043 20044 20045 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20046 20047 20048 20049 ############################################################################### 20050 # 20051 # Setup BootJDK, used to bootstrap the build. 20052 # 20053 ############################################################################### 20054 20055 20056 BOOT_JDK_FOUND=no 20057 20058 # Check whether --with-boot-jdk was given. 20059 if test "${with_boot_jdk+set}" = set; then : 20060 withval=$with_boot_jdk; 20061 fi 20062 20063 20064 # We look for the Boot JDK through various means, going from more certain to 20065 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20066 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20067 # must check if this is indeed valid; otherwise we'll continue looking. 20068 20069 # Test: Is bootjdk explicitely set by command line arguments? 20070 20071 if test "x$BOOT_JDK_FOUND" = xno; then 20072 # Now execute the test 20073 20074 if test "x$with_boot_jdk" != x; then 20075 BOOT_JDK=$with_boot_jdk 20076 BOOT_JDK_FOUND=maybe 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20078 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20079 fi 20080 20081 20082 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20083 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20084 # Do we have a bin/java? 20085 if test ! -x "$BOOT_JDK/bin/java"; then 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20088 BOOT_JDK_FOUND=no 20089 else 20090 # Do we have a bin/javac? 20091 if test ! -x "$BOOT_JDK/bin/javac"; then 20092 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20093 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20095 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20096 BOOT_JDK_FOUND=no 20097 else 20098 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20099 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20100 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20101 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20102 BOOT_JDK_FOUND=no 20103 else 20104 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20105 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20106 20107 # Extra M4 quote needed to protect [] in grep expression. 20108 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20109 if test "x$FOUND_VERSION_78" = x; then 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20111 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20112 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20113 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20114 BOOT_JDK_FOUND=no 20115 else 20116 # We're done! :-) 20117 BOOT_JDK_FOUND=yes 20118 20119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20120 20121 # Input might be given as Windows format, start by converting to 20122 # unix format. 20123 path="$BOOT_JDK" 20124 new_path=`$CYGPATH -u "$path"` 20125 20126 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20127 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20128 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20129 # "foo.exe" is OK but "foo" is an error. 20130 # 20131 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20132 # It is also a way to make sure we got the proper file name for the real test later on. 20133 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20134 if test "x$test_shortpath" = x; then 20135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20136 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20137 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20138 fi 20139 20140 # Call helper function which possibly converts this using DOS-style short mode. 20141 # If so, the updated path is stored in $new_path. 20142 20143 input_path="$new_path" 20144 # Check if we need to convert this using DOS-style short mode. If the path 20145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20146 # take no chances and rewrite it. 20147 # Note: m4 eats our [], so we need to use [ and ] instead. 20148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20149 if test "x$has_forbidden_chars" != x; then 20150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20154 # Going to short mode and back again did indeed matter. Since short mode is 20155 # case insensitive, let's make it lowercase to improve readability. 20156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20157 # Now convert it back to Unix-style (cygpath) 20158 input_path=`$CYGPATH -u "$shortmode_path"` 20159 new_path="$input_path" 20160 fi 20161 fi 20162 20163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20164 if test "x$test_cygdrive_prefix" = x; then 20165 # As a simple fix, exclude /usr/bin since it's not a real path. 20166 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20168 # a path prefixed by /cygdrive for fixpath to work. 20169 new_path="$CYGWIN_ROOT_PATH$input_path" 20170 fi 20171 fi 20172 20173 20174 if test "x$path" != "x$new_path"; then 20175 BOOT_JDK="$new_path" 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20177 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20178 fi 20179 20180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20181 20182 path="$BOOT_JDK" 20183 has_colon=`$ECHO $path | $GREP ^.:` 20184 new_path="$path" 20185 if test "x$has_colon" = x; then 20186 # Not in mixed or Windows style, start by that. 20187 new_path=`cmd //c echo $path` 20188 fi 20189 20190 20191 input_path="$new_path" 20192 # Check if we need to convert this using DOS-style short mode. If the path 20193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20194 # take no chances and rewrite it. 20195 # Note: m4 eats our [], so we need to use [ and ] instead. 20196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20197 if test "x$has_forbidden_chars" != x; then 20198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20200 fi 20201 20202 20203 windows_path="$new_path" 20204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20205 unix_path=`$CYGPATH -u "$windows_path"` 20206 new_path="$unix_path" 20207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20209 new_path="$unix_path" 20210 fi 20211 20212 if test "x$path" != "x$new_path"; then 20213 BOOT_JDK="$new_path" 20214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20215 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20216 fi 20217 20218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20220 20221 else 20222 # We're on a posix platform. Hooray! :) 20223 path="$BOOT_JDK" 20224 has_space=`$ECHO "$path" | $GREP " "` 20225 if test "x$has_space" != x; then 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20227 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20228 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20229 fi 20230 20231 # Use eval to expand a potential ~ 20232 eval path="$path" 20233 if test ! -f "$path" && test ! -d "$path"; then 20234 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20235 fi 20236 20237 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20238 fi 20239 20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20241 $as_echo_n "checking for Boot JDK... " >&6; } 20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20243 $as_echo "$BOOT_JDK" >&6; } 20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20245 $as_echo_n "checking Boot JDK version... " >&6; } 20246 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20248 $as_echo "$BOOT_JDK_VERSION" >&6; } 20249 fi # end check jdk version 20250 fi # end check rt.jar 20251 fi # end check javac 20252 fi # end check java 20253 fi # end check boot jdk found 20254 fi 20255 20256 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20257 # Having specified an argument which is incorrect will produce an instant failure; 20258 # we should not go on looking 20259 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20260 fi 20261 20262 # Test: Is bootjdk available from builddeps? 20263 20264 if test "x$BOOT_JDK_FOUND" = xno; then 20265 # Now execute the test 20266 20267 20268 20269 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20270 # Source the builddeps file again, to make sure it uses the latest variables! 20271 . $builddepsfile 20272 # Look for a target and build machine specific resource! 20273 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20274 if test "x$resource" = x; then 20275 # Ok, lets instead look for a target specific resource 20276 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20277 fi 20278 if test "x$resource" = x; then 20279 # Ok, lets instead look for a build specific resource 20280 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20281 fi 20282 if test "x$resource" = x; then 20283 # Ok, lets instead look for a generic resource 20284 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20285 resource=${builddep_bootjdk} 20286 fi 20287 if test "x$resource" != x; then 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20289 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20290 # If the resource in the builddeps.conf file is an existing directory, 20291 # for example /java/linux/cups 20292 if test -d ${resource}; then 20293 depdir=${resource} 20294 else 20295 20296 # bootjdk is for example mymodule 20297 # $resource is for example libs/general/libmymod_1_2_3.zip 20298 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20299 # $with_builddeps_dir is for example /localhome/builddeps 20300 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20301 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20302 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20303 filename=`basename $resource` 20304 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20305 filebase=${filename%%.*} 20306 extension=${filename#*.} 20307 installdir=$with_builddeps_dir/$filebase 20308 if test ! -f $installdir/$filename.unpacked; then 20309 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20310 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20311 if test ! -d $installdir; then 20312 mkdir -p $installdir 20313 fi 20314 if test ! -d $installdir; then 20315 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20316 fi 20317 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20318 touch $tmpfile 20319 if test ! -f $tmpfile; then 20320 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20321 fi 20322 20323 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20324 # $tmpfile is the local file name for the downloaded file. 20325 VALID_TOOL=no 20326 if test "x$BDEPS_FTP" = xwget; then 20327 VALID_TOOL=yes 20328 wget -O $tmpfile $with_builddeps_server/$resource 20329 fi 20330 if test "x$BDEPS_FTP" = xlftp; then 20331 VALID_TOOL=yes 20332 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20333 fi 20334 if test "x$BDEPS_FTP" = xftp; then 20335 VALID_TOOL=yes 20336 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20337 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20338 FTPUSERPWD=${FTPSERVER%%@*} 20339 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20340 FTPUSER=${userpwd%%:*} 20341 FTPPWD=${userpwd#*@} 20342 FTPSERVER=${FTPSERVER#*@} 20343 else 20344 FTPUSER=ftp 20345 FTPPWD=ftp 20346 fi 20347 # the "pass" command does not work on some 20348 # ftp clients (read ftp.exe) but if it works, 20349 # passive mode is better! 20350 ( \ 20351 echo "user $FTPUSER $FTPPWD" ; \ 20352 echo "pass" ; \ 20353 echo "bin" ; \ 20354 echo "get $FTPPATH $tmpfile" ; \ 20355 ) | ftp -in $FTPSERVER 20356 fi 20357 if test "x$VALID_TOOL" != xyes; then 20358 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20359 fi 20360 20361 mv $tmpfile $installdir/$filename 20362 if test ! -s $installdir/$filename; then 20363 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20364 fi 20365 case "$extension" in 20366 zip) echo "Unzipping $installdir/$filename..." 20367 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20368 ;; 20369 tar.gz) echo "Untaring $installdir/$filename..." 20370 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20371 ;; 20372 tgz) echo "Untaring $installdir/$filename..." 20373 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20374 ;; 20375 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20376 ;; 20377 esac 20378 fi 20379 if test -f $installdir/$filename.unpacked; then 20380 depdir=$installdir 20381 fi 20382 20383 fi 20384 # Source the builddeps file again, because in the previous command, the depdir 20385 # was updated to point at the current build dependency install directory. 20386 . $builddepsfile 20387 # Now extract variables from the builddeps.conf files. 20388 theroot=${builddep_bootjdk_ROOT} 20389 thecflags=${builddep_bootjdk_CFLAGS} 20390 thelibs=${builddep_bootjdk_LIBS} 20391 if test "x$depdir" = x; then 20392 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20393 fi 20394 BOOT_JDK=$depdir 20395 if test "x$theroot" != x; then 20396 BOOT_JDK="$theroot" 20397 fi 20398 if test "x$thecflags" != x; then 20399 BOOT_JDK_CFLAGS="$thecflags" 20400 fi 20401 if test "x$thelibs" != x; then 20402 BOOT_JDK_LIBS="$thelibs" 20403 fi 20404 BOOT_JDK_FOUND=maybe 20405 else BOOT_JDK_FOUND=no 20406 20407 fi 20408 else BOOT_JDK_FOUND=no 20409 20410 fi 20411 20412 20413 20414 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20415 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20416 # Do we have a bin/java? 20417 if test ! -x "$BOOT_JDK/bin/java"; then 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20420 BOOT_JDK_FOUND=no 20421 else 20422 # Do we have a bin/javac? 20423 if test ! -x "$BOOT_JDK/bin/javac"; then 20424 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20425 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20427 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20428 BOOT_JDK_FOUND=no 20429 else 20430 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20431 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20434 BOOT_JDK_FOUND=no 20435 else 20436 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20437 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20438 20439 # Extra M4 quote needed to protect [] in grep expression. 20440 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20441 if test "x$FOUND_VERSION_78" = x; then 20442 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20443 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20445 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20446 BOOT_JDK_FOUND=no 20447 else 20448 # We're done! :-) 20449 BOOT_JDK_FOUND=yes 20450 20451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20452 20453 # Input might be given as Windows format, start by converting to 20454 # unix format. 20455 path="$BOOT_JDK" 20456 new_path=`$CYGPATH -u "$path"` 20457 20458 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20459 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20460 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20461 # "foo.exe" is OK but "foo" is an error. 20462 # 20463 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20464 # It is also a way to make sure we got the proper file name for the real test later on. 20465 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20466 if test "x$test_shortpath" = x; then 20467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20469 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20470 fi 20471 20472 # Call helper function which possibly converts this using DOS-style short mode. 20473 # If so, the updated path is stored in $new_path. 20474 20475 input_path="$new_path" 20476 # Check if we need to convert this using DOS-style short mode. If the path 20477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20478 # take no chances and rewrite it. 20479 # Note: m4 eats our [], so we need to use [ and ] instead. 20480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20481 if test "x$has_forbidden_chars" != x; then 20482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20483 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20484 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20485 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20486 # Going to short mode and back again did indeed matter. Since short mode is 20487 # case insensitive, let's make it lowercase to improve readability. 20488 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20489 # Now convert it back to Unix-style (cygpath) 20490 input_path=`$CYGPATH -u "$shortmode_path"` 20491 new_path="$input_path" 20492 fi 20493 fi 20494 20495 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20496 if test "x$test_cygdrive_prefix" = x; then 20497 # As a simple fix, exclude /usr/bin since it's not a real path. 20498 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20499 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20500 # a path prefixed by /cygdrive for fixpath to work. 20501 new_path="$CYGWIN_ROOT_PATH$input_path" 20502 fi 20503 fi 20504 20505 20506 if test "x$path" != "x$new_path"; then 20507 BOOT_JDK="$new_path" 20508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20510 fi 20511 20512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20513 20514 path="$BOOT_JDK" 20515 has_colon=`$ECHO $path | $GREP ^.:` 20516 new_path="$path" 20517 if test "x$has_colon" = x; then 20518 # Not in mixed or Windows style, start by that. 20519 new_path=`cmd //c echo $path` 20520 fi 20521 20522 20523 input_path="$new_path" 20524 # Check if we need to convert this using DOS-style short mode. If the path 20525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20526 # take no chances and rewrite it. 20527 # Note: m4 eats our [], so we need to use [ and ] instead. 20528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20529 if test "x$has_forbidden_chars" != x; then 20530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20531 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20532 fi 20533 20534 20535 windows_path="$new_path" 20536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20537 unix_path=`$CYGPATH -u "$windows_path"` 20538 new_path="$unix_path" 20539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20541 new_path="$unix_path" 20542 fi 20543 20544 if test "x$path" != "x$new_path"; then 20545 BOOT_JDK="$new_path" 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20548 fi 20549 20550 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20551 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20552 20553 else 20554 # We're on a posix platform. Hooray! :) 20555 path="$BOOT_JDK" 20556 has_space=`$ECHO "$path" | $GREP " "` 20557 if test "x$has_space" != x; then 20558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20560 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20561 fi 20562 20563 # Use eval to expand a potential ~ 20564 eval path="$path" 20565 if test ! -f "$path" && test ! -d "$path"; then 20566 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20567 fi 20568 20569 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20570 fi 20571 20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20573 $as_echo_n "checking for Boot JDK... " >&6; } 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20575 $as_echo "$BOOT_JDK" >&6; } 20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20577 $as_echo_n "checking Boot JDK version... " >&6; } 20578 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20580 $as_echo "$BOOT_JDK_VERSION" >&6; } 20581 fi # end check jdk version 20582 fi # end check rt.jar 20583 fi # end check javac 20584 fi # end check java 20585 fi # end check boot jdk found 20586 fi 20587 20588 20589 # Test: Is $JAVA_HOME set? 20590 20591 if test "x$BOOT_JDK_FOUND" = xno; then 20592 # Now execute the test 20593 20594 if test "x$JAVA_HOME" != x; then 20595 JAVA_HOME_PROCESSED="$JAVA_HOME" 20596 20597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20598 20599 # Input might be given as Windows format, start by converting to 20600 # unix format. 20601 path="$JAVA_HOME_PROCESSED" 20602 new_path=`$CYGPATH -u "$path"` 20603 20604 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20605 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20606 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20607 # "foo.exe" is OK but "foo" is an error. 20608 # 20609 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20610 # It is also a way to make sure we got the proper file name for the real test later on. 20611 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20612 if test "x$test_shortpath" = x; then 20613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20614 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20615 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20616 fi 20617 20618 # Call helper function which possibly converts this using DOS-style short mode. 20619 # If so, the updated path is stored in $new_path. 20620 20621 input_path="$new_path" 20622 # Check if we need to convert this using DOS-style short mode. If the path 20623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20624 # take no chances and rewrite it. 20625 # Note: m4 eats our [], so we need to use [ and ] instead. 20626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20627 if test "x$has_forbidden_chars" != x; then 20628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20632 # Going to short mode and back again did indeed matter. Since short mode is 20633 # case insensitive, let's make it lowercase to improve readability. 20634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20635 # Now convert it back to Unix-style (cygpath) 20636 input_path=`$CYGPATH -u "$shortmode_path"` 20637 new_path="$input_path" 20638 fi 20639 fi 20640 20641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20642 if test "x$test_cygdrive_prefix" = x; then 20643 # As a simple fix, exclude /usr/bin since it's not a real path. 20644 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20646 # a path prefixed by /cygdrive for fixpath to work. 20647 new_path="$CYGWIN_ROOT_PATH$input_path" 20648 fi 20649 fi 20650 20651 20652 if test "x$path" != "x$new_path"; then 20653 JAVA_HOME_PROCESSED="$new_path" 20654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20655 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20656 fi 20657 20658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20659 20660 path="$JAVA_HOME_PROCESSED" 20661 has_colon=`$ECHO $path | $GREP ^.:` 20662 new_path="$path" 20663 if test "x$has_colon" = x; then 20664 # Not in mixed or Windows style, start by that. 20665 new_path=`cmd //c echo $path` 20666 fi 20667 20668 20669 input_path="$new_path" 20670 # Check if we need to convert this using DOS-style short mode. If the path 20671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20672 # take no chances and rewrite it. 20673 # Note: m4 eats our [], so we need to use [ and ] instead. 20674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20675 if test "x$has_forbidden_chars" != x; then 20676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20678 fi 20679 20680 20681 windows_path="$new_path" 20682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20683 unix_path=`$CYGPATH -u "$windows_path"` 20684 new_path="$unix_path" 20685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20687 new_path="$unix_path" 20688 fi 20689 20690 if test "x$path" != "x$new_path"; then 20691 JAVA_HOME_PROCESSED="$new_path" 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20693 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20694 fi 20695 20696 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20697 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20698 20699 else 20700 # We're on a posix platform. Hooray! :) 20701 path="$JAVA_HOME_PROCESSED" 20702 has_space=`$ECHO "$path" | $GREP " "` 20703 if test "x$has_space" != x; then 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20705 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20706 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20707 fi 20708 20709 # Use eval to expand a potential ~ 20710 eval path="$path" 20711 if test ! -f "$path" && test ! -d "$path"; then 20712 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20713 fi 20714 20715 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20716 fi 20717 20718 if test ! -d "$JAVA_HOME_PROCESSED"; then 20719 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20720 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20721 else 20722 # Aha, the user has set a JAVA_HOME 20723 # let us use that as the Boot JDK. 20724 BOOT_JDK="$JAVA_HOME_PROCESSED" 20725 BOOT_JDK_FOUND=maybe 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20727 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20728 fi 20729 fi 20730 20731 20732 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20733 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20734 # Do we have a bin/java? 20735 if test ! -x "$BOOT_JDK/bin/java"; then 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20738 BOOT_JDK_FOUND=no 20739 else 20740 # Do we have a bin/javac? 20741 if test ! -x "$BOOT_JDK/bin/javac"; then 20742 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20744 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20745 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20746 BOOT_JDK_FOUND=no 20747 else 20748 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20749 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20752 BOOT_JDK_FOUND=no 20753 else 20754 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20755 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20756 20757 # Extra M4 quote needed to protect [] in grep expression. 20758 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20759 if test "x$FOUND_VERSION_78" = x; then 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20761 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20762 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20763 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20764 BOOT_JDK_FOUND=no 20765 else 20766 # We're done! :-) 20767 BOOT_JDK_FOUND=yes 20768 20769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20770 20771 # Input might be given as Windows format, start by converting to 20772 # unix format. 20773 path="$BOOT_JDK" 20774 new_path=`$CYGPATH -u "$path"` 20775 20776 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20777 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20778 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20779 # "foo.exe" is OK but "foo" is an error. 20780 # 20781 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20782 # It is also a way to make sure we got the proper file name for the real test later on. 20783 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20784 if test "x$test_shortpath" = x; then 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20786 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20787 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20788 fi 20789 20790 # Call helper function which possibly converts this using DOS-style short mode. 20791 # If so, the updated path is stored in $new_path. 20792 20793 input_path="$new_path" 20794 # Check if we need to convert this using DOS-style short mode. If the path 20795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20796 # take no chances and rewrite it. 20797 # Note: m4 eats our [], so we need to use [ and ] instead. 20798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20799 if test "x$has_forbidden_chars" != x; then 20800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20804 # Going to short mode and back again did indeed matter. Since short mode is 20805 # case insensitive, let's make it lowercase to improve readability. 20806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20807 # Now convert it back to Unix-style (cygpath) 20808 input_path=`$CYGPATH -u "$shortmode_path"` 20809 new_path="$input_path" 20810 fi 20811 fi 20812 20813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20814 if test "x$test_cygdrive_prefix" = x; then 20815 # As a simple fix, exclude /usr/bin since it's not a real path. 20816 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20818 # a path prefixed by /cygdrive for fixpath to work. 20819 new_path="$CYGWIN_ROOT_PATH$input_path" 20820 fi 20821 fi 20822 20823 20824 if test "x$path" != "x$new_path"; then 20825 BOOT_JDK="$new_path" 20826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20827 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20828 fi 20829 20830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20831 20832 path="$BOOT_JDK" 20833 has_colon=`$ECHO $path | $GREP ^.:` 20834 new_path="$path" 20835 if test "x$has_colon" = x; then 20836 # Not in mixed or Windows style, start by that. 20837 new_path=`cmd //c echo $path` 20838 fi 20839 20840 20841 input_path="$new_path" 20842 # Check if we need to convert this using DOS-style short mode. If the path 20843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20844 # take no chances and rewrite it. 20845 # Note: m4 eats our [], so we need to use [ and ] instead. 20846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20847 if test "x$has_forbidden_chars" != x; then 20848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20849 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20850 fi 20851 20852 20853 windows_path="$new_path" 20854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20855 unix_path=`$CYGPATH -u "$windows_path"` 20856 new_path="$unix_path" 20857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20859 new_path="$unix_path" 20860 fi 20861 20862 if test "x$path" != "x$new_path"; then 20863 BOOT_JDK="$new_path" 20864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20866 fi 20867 20868 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20869 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20870 20871 else 20872 # We're on a posix platform. Hooray! :) 20873 path="$BOOT_JDK" 20874 has_space=`$ECHO "$path" | $GREP " "` 20875 if test "x$has_space" != x; then 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20877 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20878 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20879 fi 20880 20881 # Use eval to expand a potential ~ 20882 eval path="$path" 20883 if test ! -f "$path" && test ! -d "$path"; then 20884 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20885 fi 20886 20887 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20888 fi 20889 20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20891 $as_echo_n "checking for Boot JDK... " >&6; } 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20893 $as_echo "$BOOT_JDK" >&6; } 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20895 $as_echo_n "checking Boot JDK version... " >&6; } 20896 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20898 $as_echo "$BOOT_JDK_VERSION" >&6; } 20899 fi # end check jdk version 20900 fi # end check rt.jar 20901 fi # end check javac 20902 fi # end check java 20903 fi # end check boot jdk found 20904 fi 20905 20906 20907 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20908 20909 if test "x$BOOT_JDK_FOUND" = xno; then 20910 # Now execute the test 20911 20912 if test -x /usr/libexec/java_home; then 20913 BOOT_JDK=`/usr/libexec/java_home` 20914 BOOT_JDK_FOUND=maybe 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20916 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20917 fi 20918 20919 20920 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20921 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20922 # Do we have a bin/java? 20923 if test ! -x "$BOOT_JDK/bin/java"; then 20924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20926 BOOT_JDK_FOUND=no 20927 else 20928 # Do we have a bin/javac? 20929 if test ! -x "$BOOT_JDK/bin/javac"; then 20930 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20931 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20933 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20934 BOOT_JDK_FOUND=no 20935 else 20936 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20937 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20938 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20939 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20940 BOOT_JDK_FOUND=no 20941 else 20942 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20943 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20944 20945 # Extra M4 quote needed to protect [] in grep expression. 20946 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20947 if test "x$FOUND_VERSION_78" = x; then 20948 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20951 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20952 BOOT_JDK_FOUND=no 20953 else 20954 # We're done! :-) 20955 BOOT_JDK_FOUND=yes 20956 20957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20958 20959 # Input might be given as Windows format, start by converting to 20960 # unix format. 20961 path="$BOOT_JDK" 20962 new_path=`$CYGPATH -u "$path"` 20963 20964 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20965 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20966 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20967 # "foo.exe" is OK but "foo" is an error. 20968 # 20969 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20970 # It is also a way to make sure we got the proper file name for the real test later on. 20971 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20972 if test "x$test_shortpath" = x; then 20973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20974 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20975 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20976 fi 20977 20978 # Call helper function which possibly converts this using DOS-style short mode. 20979 # If so, the updated path is stored in $new_path. 20980 20981 input_path="$new_path" 20982 # Check if we need to convert this using DOS-style short mode. If the path 20983 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20984 # take no chances and rewrite it. 20985 # Note: m4 eats our [], so we need to use [ and ] instead. 20986 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20987 if test "x$has_forbidden_chars" != x; then 20988 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20989 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20990 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20991 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20992 # Going to short mode and back again did indeed matter. Since short mode is 20993 # case insensitive, let's make it lowercase to improve readability. 20994 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20995 # Now convert it back to Unix-style (cygpath) 20996 input_path=`$CYGPATH -u "$shortmode_path"` 20997 new_path="$input_path" 20998 fi 20999 fi 21000 21001 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21002 if test "x$test_cygdrive_prefix" = x; then 21003 # As a simple fix, exclude /usr/bin since it's not a real path. 21004 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21005 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21006 # a path prefixed by /cygdrive for fixpath to work. 21007 new_path="$CYGWIN_ROOT_PATH$input_path" 21008 fi 21009 fi 21010 21011 21012 if test "x$path" != "x$new_path"; then 21013 BOOT_JDK="$new_path" 21014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21015 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21016 fi 21017 21018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21019 21020 path="$BOOT_JDK" 21021 has_colon=`$ECHO $path | $GREP ^.:` 21022 new_path="$path" 21023 if test "x$has_colon" = x; then 21024 # Not in mixed or Windows style, start by that. 21025 new_path=`cmd //c echo $path` 21026 fi 21027 21028 21029 input_path="$new_path" 21030 # Check if we need to convert this using DOS-style short mode. If the path 21031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21032 # take no chances and rewrite it. 21033 # Note: m4 eats our [], so we need to use [ and ] instead. 21034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21035 if test "x$has_forbidden_chars" != x; then 21036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21038 fi 21039 21040 21041 windows_path="$new_path" 21042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21043 unix_path=`$CYGPATH -u "$windows_path"` 21044 new_path="$unix_path" 21045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21047 new_path="$unix_path" 21048 fi 21049 21050 if test "x$path" != "x$new_path"; then 21051 BOOT_JDK="$new_path" 21052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21053 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21054 fi 21055 21056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21058 21059 else 21060 # We're on a posix platform. Hooray! :) 21061 path="$BOOT_JDK" 21062 has_space=`$ECHO "$path" | $GREP " "` 21063 if test "x$has_space" != x; then 21064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21065 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21066 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21067 fi 21068 21069 # Use eval to expand a potential ~ 21070 eval path="$path" 21071 if test ! -f "$path" && test ! -d "$path"; then 21072 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21073 fi 21074 21075 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21076 fi 21077 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21079 $as_echo_n "checking for Boot JDK... " >&6; } 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21081 $as_echo "$BOOT_JDK" >&6; } 21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21083 $as_echo_n "checking Boot JDK version... " >&6; } 21084 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21086 $as_echo "$BOOT_JDK_VERSION" >&6; } 21087 fi # end check jdk version 21088 fi # end check rt.jar 21089 fi # end check javac 21090 fi # end check java 21091 fi # end check boot jdk found 21092 fi 21093 21094 21095 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21096 21097 if test "x$BOOT_JDK_FOUND" = xno; then 21098 # Now execute the test 21099 21100 # Extract the first word of "javac", so it can be a program name with args. 21101 set dummy javac; ac_word=$2 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21103 $as_echo_n "checking for $ac_word... " >&6; } 21104 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21105 $as_echo_n "(cached) " >&6 21106 else 21107 case $JAVAC_CHECK in 21108 [\\/]* | ?:[\\/]*) 21109 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21110 ;; 21111 *) 21112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21113 for as_dir in $PATH 21114 do 21115 IFS=$as_save_IFS 21116 test -z "$as_dir" && as_dir=. 21117 for ac_exec_ext in '' $ac_executable_extensions; do 21118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21119 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21121 break 2 21122 fi 21123 done 21124 done 21125 IFS=$as_save_IFS 21126 21127 ;; 21128 esac 21129 fi 21130 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21131 if test -n "$JAVAC_CHECK"; then 21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21133 $as_echo "$JAVAC_CHECK" >&6; } 21134 else 21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21136 $as_echo "no" >&6; } 21137 fi 21138 21139 21140 # Extract the first word of "java", so it can be a program name with args. 21141 set dummy java; ac_word=$2 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21143 $as_echo_n "checking for $ac_word... " >&6; } 21144 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21145 $as_echo_n "(cached) " >&6 21146 else 21147 case $JAVA_CHECK in 21148 [\\/]* | ?:[\\/]*) 21149 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21150 ;; 21151 *) 21152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21153 for as_dir in $PATH 21154 do 21155 IFS=$as_save_IFS 21156 test -z "$as_dir" && as_dir=. 21157 for ac_exec_ext in '' $ac_executable_extensions; do 21158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21159 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21161 break 2 21162 fi 21163 done 21164 done 21165 IFS=$as_save_IFS 21166 21167 ;; 21168 esac 21169 fi 21170 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21171 if test -n "$JAVA_CHECK"; then 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21173 $as_echo "$JAVA_CHECK" >&6; } 21174 else 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21176 $as_echo "no" >&6; } 21177 fi 21178 21179 21180 BINARY="$JAVAC_CHECK" 21181 if test "x$JAVAC_CHECK" = x; then 21182 BINARY="$JAVA_CHECK" 21183 fi 21184 if test "x$BINARY" != x; then 21185 # So there is a java(c) binary, it might be part of a JDK. 21186 # Lets find the JDK/JRE directory by following symbolic links. 21187 # Linux/GNU systems often have links from /usr/bin/java to 21188 # /etc/alternatives/java to the real JDK binary. 21189 21190 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21191 # Follow a chain of symbolic links. Use readlink 21192 # where it exists, else fall back to horribly 21193 # complicated shell code. 21194 if test "x$READLINK_TESTED" != yes; then 21195 # On MacOSX there is a readlink tool with a different 21196 # purpose than the GNU readlink tool. Check the found readlink. 21197 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21198 if test "x$ISGNU" = x; then 21199 # A readlink that we do not know how to use. 21200 # Are there other non-GNU readlinks out there? 21201 READLINK_TESTED=yes 21202 READLINK= 21203 fi 21204 fi 21205 21206 if test "x$READLINK" != x; then 21207 BINARY=`$READLINK -f $BINARY` 21208 else 21209 # Save the current directory for restoring afterwards 21210 STARTDIR=$PWD 21211 COUNTER=0 21212 sym_link_dir=`$DIRNAME $BINARY` 21213 sym_link_file=`$BASENAME $BINARY` 21214 cd $sym_link_dir 21215 # Use -P flag to resolve symlinks in directories. 21216 cd `$THEPWDCMD -P` 21217 sym_link_dir=`$THEPWDCMD -P` 21218 # Resolve file symlinks 21219 while test $COUNTER -lt 20; do 21220 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21221 if test "x$ISLINK" == x; then 21222 # This is not a symbolic link! We are done! 21223 break 21224 fi 21225 # Again resolve directory symlinks since the target of the just found 21226 # link could be in a different directory 21227 cd `$DIRNAME $ISLINK` 21228 sym_link_dir=`$THEPWDCMD -P` 21229 sym_link_file=`$BASENAME $ISLINK` 21230 let COUNTER=COUNTER+1 21231 done 21232 cd $STARTDIR 21233 BINARY=$sym_link_dir/$sym_link_file 21234 fi 21235 fi 21236 21237 BOOT_JDK=`dirname "$BINARY"` 21238 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21239 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21240 # Looks like we found ourselves an JDK 21241 BOOT_JDK_FOUND=maybe 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21243 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21244 fi 21245 fi 21246 21247 21248 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21249 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21250 # Do we have a bin/java? 21251 if test ! -x "$BOOT_JDK/bin/java"; then 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21254 BOOT_JDK_FOUND=no 21255 else 21256 # Do we have a bin/javac? 21257 if test ! -x "$BOOT_JDK/bin/javac"; then 21258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21260 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21261 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21262 BOOT_JDK_FOUND=no 21263 else 21264 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21265 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21266 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21267 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21268 BOOT_JDK_FOUND=no 21269 else 21270 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21271 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21272 21273 # Extra M4 quote needed to protect [] in grep expression. 21274 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21275 if test "x$FOUND_VERSION_78" = x; then 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21277 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21278 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21279 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21280 BOOT_JDK_FOUND=no 21281 else 21282 # We're done! :-) 21283 BOOT_JDK_FOUND=yes 21284 21285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21286 21287 # Input might be given as Windows format, start by converting to 21288 # unix format. 21289 path="$BOOT_JDK" 21290 new_path=`$CYGPATH -u "$path"` 21291 21292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21295 # "foo.exe" is OK but "foo" is an error. 21296 # 21297 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21298 # It is also a way to make sure we got the proper file name for the real test later on. 21299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21300 if test "x$test_shortpath" = x; then 21301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21302 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21303 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21304 fi 21305 21306 # Call helper function which possibly converts this using DOS-style short mode. 21307 # If so, the updated path is stored in $new_path. 21308 21309 input_path="$new_path" 21310 # Check if we need to convert this using DOS-style short mode. If the path 21311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21312 # take no chances and rewrite it. 21313 # Note: m4 eats our [], so we need to use [ and ] instead. 21314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21315 if test "x$has_forbidden_chars" != x; then 21316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21317 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21318 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21319 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21320 # Going to short mode and back again did indeed matter. Since short mode is 21321 # case insensitive, let's make it lowercase to improve readability. 21322 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21323 # Now convert it back to Unix-style (cygpath) 21324 input_path=`$CYGPATH -u "$shortmode_path"` 21325 new_path="$input_path" 21326 fi 21327 fi 21328 21329 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21330 if test "x$test_cygdrive_prefix" = x; then 21331 # As a simple fix, exclude /usr/bin since it's not a real path. 21332 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21333 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21334 # a path prefixed by /cygdrive for fixpath to work. 21335 new_path="$CYGWIN_ROOT_PATH$input_path" 21336 fi 21337 fi 21338 21339 21340 if test "x$path" != "x$new_path"; then 21341 BOOT_JDK="$new_path" 21342 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21343 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21344 fi 21345 21346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21347 21348 path="$BOOT_JDK" 21349 has_colon=`$ECHO $path | $GREP ^.:` 21350 new_path="$path" 21351 if test "x$has_colon" = x; then 21352 # Not in mixed or Windows style, start by that. 21353 new_path=`cmd //c echo $path` 21354 fi 21355 21356 21357 input_path="$new_path" 21358 # Check if we need to convert this using DOS-style short mode. If the path 21359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21360 # take no chances and rewrite it. 21361 # Note: m4 eats our [], so we need to use [ and ] instead. 21362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21363 if test "x$has_forbidden_chars" != x; then 21364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21365 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21366 fi 21367 21368 21369 windows_path="$new_path" 21370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21371 unix_path=`$CYGPATH -u "$windows_path"` 21372 new_path="$unix_path" 21373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21374 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21375 new_path="$unix_path" 21376 fi 21377 21378 if test "x$path" != "x$new_path"; then 21379 BOOT_JDK="$new_path" 21380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21381 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21382 fi 21383 21384 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21385 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21386 21387 else 21388 # We're on a posix platform. Hooray! :) 21389 path="$BOOT_JDK" 21390 has_space=`$ECHO "$path" | $GREP " "` 21391 if test "x$has_space" != x; then 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21393 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21394 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21395 fi 21396 21397 # Use eval to expand a potential ~ 21398 eval path="$path" 21399 if test ! -f "$path" && test ! -d "$path"; then 21400 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21401 fi 21402 21403 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21404 fi 21405 21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21407 $as_echo_n "checking for Boot JDK... " >&6; } 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21409 $as_echo "$BOOT_JDK" >&6; } 21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21411 $as_echo_n "checking Boot JDK version... " >&6; } 21412 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21414 $as_echo "$BOOT_JDK_VERSION" >&6; } 21415 fi # end check jdk version 21416 fi # end check rt.jar 21417 fi # end check javac 21418 fi # end check java 21419 fi # end check boot jdk found 21420 fi 21421 21422 21423 # Test: Is there a JDK installed in default, well-known locations? 21424 21425 if test "x$BOOT_JDK_FOUND" = xno; then 21426 # Now execute the test 21427 21428 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21429 21430 if test "x$BOOT_JDK_FOUND" = xno; then 21431 # Now execute the test 21432 21433 if test "x$ProgramW6432" != x; then 21434 VIRTUAL_DIR="$ProgramW6432/Java" 21435 21436 windows_path="$VIRTUAL_DIR" 21437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21438 unix_path=`$CYGPATH -u "$windows_path"` 21439 VIRTUAL_DIR="$unix_path" 21440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21442 VIRTUAL_DIR="$unix_path" 21443 fi 21444 21445 21446 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21447 BOOT_JDK_SUFFIX="" 21448 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21449 if test "x$ALL_JDKS_FOUND" != x; then 21450 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21451 21452 if test "x$BOOT_JDK_FOUND" = xno; then 21453 # Now execute the test 21454 21455 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21456 if test -d "$BOOT_JDK"; then 21457 BOOT_JDK_FOUND=maybe 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21459 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21460 fi 21461 21462 21463 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21464 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21465 # Do we have a bin/java? 21466 if test ! -x "$BOOT_JDK/bin/java"; then 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21469 BOOT_JDK_FOUND=no 21470 else 21471 # Do we have a bin/javac? 21472 if test ! -x "$BOOT_JDK/bin/javac"; then 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21474 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21476 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21477 BOOT_JDK_FOUND=no 21478 else 21479 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21480 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21483 BOOT_JDK_FOUND=no 21484 else 21485 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21486 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21487 21488 # Extra M4 quote needed to protect [] in grep expression. 21489 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21490 if test "x$FOUND_VERSION_78" = x; then 21491 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21494 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21495 BOOT_JDK_FOUND=no 21496 else 21497 # We're done! :-) 21498 BOOT_JDK_FOUND=yes 21499 21500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21501 21502 # Input might be given as Windows format, start by converting to 21503 # unix format. 21504 path="$BOOT_JDK" 21505 new_path=`$CYGPATH -u "$path"` 21506 21507 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21508 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21509 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21510 # "foo.exe" is OK but "foo" is an error. 21511 # 21512 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21513 # It is also a way to make sure we got the proper file name for the real test later on. 21514 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21515 if test "x$test_shortpath" = x; then 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21518 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21519 fi 21520 21521 # Call helper function which possibly converts this using DOS-style short mode. 21522 # If so, the updated path is stored in $new_path. 21523 21524 input_path="$new_path" 21525 # Check if we need to convert this using DOS-style short mode. If the path 21526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21527 # take no chances and rewrite it. 21528 # Note: m4 eats our [], so we need to use [ and ] instead. 21529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21530 if test "x$has_forbidden_chars" != x; then 21531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21535 # Going to short mode and back again did indeed matter. Since short mode is 21536 # case insensitive, let's make it lowercase to improve readability. 21537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21538 # Now convert it back to Unix-style (cygpath) 21539 input_path=`$CYGPATH -u "$shortmode_path"` 21540 new_path="$input_path" 21541 fi 21542 fi 21543 21544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21545 if test "x$test_cygdrive_prefix" = x; then 21546 # As a simple fix, exclude /usr/bin since it's not a real path. 21547 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21549 # a path prefixed by /cygdrive for fixpath to work. 21550 new_path="$CYGWIN_ROOT_PATH$input_path" 21551 fi 21552 fi 21553 21554 21555 if test "x$path" != "x$new_path"; then 21556 BOOT_JDK="$new_path" 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21558 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21559 fi 21560 21561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21562 21563 path="$BOOT_JDK" 21564 has_colon=`$ECHO $path | $GREP ^.:` 21565 new_path="$path" 21566 if test "x$has_colon" = x; then 21567 # Not in mixed or Windows style, start by that. 21568 new_path=`cmd //c echo $path` 21569 fi 21570 21571 21572 input_path="$new_path" 21573 # Check if we need to convert this using DOS-style short mode. If the path 21574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21575 # take no chances and rewrite it. 21576 # Note: m4 eats our [], so we need to use [ and ] instead. 21577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21578 if test "x$has_forbidden_chars" != x; then 21579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21580 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21581 fi 21582 21583 21584 windows_path="$new_path" 21585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21586 unix_path=`$CYGPATH -u "$windows_path"` 21587 new_path="$unix_path" 21588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21590 new_path="$unix_path" 21591 fi 21592 21593 if test "x$path" != "x$new_path"; then 21594 BOOT_JDK="$new_path" 21595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21597 fi 21598 21599 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21600 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21601 21602 else 21603 # We're on a posix platform. Hooray! :) 21604 path="$BOOT_JDK" 21605 has_space=`$ECHO "$path" | $GREP " "` 21606 if test "x$has_space" != x; then 21607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21609 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21610 fi 21611 21612 # Use eval to expand a potential ~ 21613 eval path="$path" 21614 if test ! -f "$path" && test ! -d "$path"; then 21615 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21616 fi 21617 21618 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21619 fi 21620 21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21622 $as_echo_n "checking for Boot JDK... " >&6; } 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21624 $as_echo "$BOOT_JDK" >&6; } 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21626 $as_echo_n "checking Boot JDK version... " >&6; } 21627 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21629 $as_echo "$BOOT_JDK_VERSION" >&6; } 21630 fi # end check jdk version 21631 fi # end check rt.jar 21632 fi # end check javac 21633 fi # end check java 21634 fi # end check boot jdk found 21635 fi 21636 21637 done 21638 fi 21639 21640 fi 21641 21642 21643 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21644 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21645 # Do we have a bin/java? 21646 if test ! -x "$BOOT_JDK/bin/java"; then 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21648 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21649 BOOT_JDK_FOUND=no 21650 else 21651 # Do we have a bin/javac? 21652 if test ! -x "$BOOT_JDK/bin/javac"; then 21653 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21654 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21656 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21657 BOOT_JDK_FOUND=no 21658 else 21659 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21660 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21663 BOOT_JDK_FOUND=no 21664 else 21665 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21666 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21667 21668 # Extra M4 quote needed to protect [] in grep expression. 21669 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21670 if test "x$FOUND_VERSION_78" = x; then 21671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21673 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21674 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21675 BOOT_JDK_FOUND=no 21676 else 21677 # We're done! :-) 21678 BOOT_JDK_FOUND=yes 21679 21680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21681 21682 # Input might be given as Windows format, start by converting to 21683 # unix format. 21684 path="$BOOT_JDK" 21685 new_path=`$CYGPATH -u "$path"` 21686 21687 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21688 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21689 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21690 # "foo.exe" is OK but "foo" is an error. 21691 # 21692 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21693 # It is also a way to make sure we got the proper file name for the real test later on. 21694 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21695 if test "x$test_shortpath" = x; then 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21697 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21698 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21699 fi 21700 21701 # Call helper function which possibly converts this using DOS-style short mode. 21702 # If so, the updated path is stored in $new_path. 21703 21704 input_path="$new_path" 21705 # Check if we need to convert this using DOS-style short mode. If the path 21706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21707 # take no chances and rewrite it. 21708 # Note: m4 eats our [], so we need to use [ and ] instead. 21709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21710 if test "x$has_forbidden_chars" != x; then 21711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21712 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21713 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21714 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21715 # Going to short mode and back again did indeed matter. Since short mode is 21716 # case insensitive, let's make it lowercase to improve readability. 21717 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21718 # Now convert it back to Unix-style (cygpath) 21719 input_path=`$CYGPATH -u "$shortmode_path"` 21720 new_path="$input_path" 21721 fi 21722 fi 21723 21724 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21725 if test "x$test_cygdrive_prefix" = x; then 21726 # As a simple fix, exclude /usr/bin since it's not a real path. 21727 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21728 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21729 # a path prefixed by /cygdrive for fixpath to work. 21730 new_path="$CYGWIN_ROOT_PATH$input_path" 21731 fi 21732 fi 21733 21734 21735 if test "x$path" != "x$new_path"; then 21736 BOOT_JDK="$new_path" 21737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21738 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21739 fi 21740 21741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21742 21743 path="$BOOT_JDK" 21744 has_colon=`$ECHO $path | $GREP ^.:` 21745 new_path="$path" 21746 if test "x$has_colon" = x; then 21747 # Not in mixed or Windows style, start by that. 21748 new_path=`cmd //c echo $path` 21749 fi 21750 21751 21752 input_path="$new_path" 21753 # Check if we need to convert this using DOS-style short mode. If the path 21754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21755 # take no chances and rewrite it. 21756 # Note: m4 eats our [], so we need to use [ and ] instead. 21757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21758 if test "x$has_forbidden_chars" != x; then 21759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21760 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21761 fi 21762 21763 21764 windows_path="$new_path" 21765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21766 unix_path=`$CYGPATH -u "$windows_path"` 21767 new_path="$unix_path" 21768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21769 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21770 new_path="$unix_path" 21771 fi 21772 21773 if test "x$path" != "x$new_path"; then 21774 BOOT_JDK="$new_path" 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21776 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21777 fi 21778 21779 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21780 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21781 21782 else 21783 # We're on a posix platform. Hooray! :) 21784 path="$BOOT_JDK" 21785 has_space=`$ECHO "$path" | $GREP " "` 21786 if test "x$has_space" != x; then 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21788 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21789 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21790 fi 21791 21792 # Use eval to expand a potential ~ 21793 eval path="$path" 21794 if test ! -f "$path" && test ! -d "$path"; then 21795 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21796 fi 21797 21798 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21799 fi 21800 21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21802 $as_echo_n "checking for Boot JDK... " >&6; } 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21804 $as_echo "$BOOT_JDK" >&6; } 21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21806 $as_echo_n "checking Boot JDK version... " >&6; } 21807 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21809 $as_echo "$BOOT_JDK_VERSION" >&6; } 21810 fi # end check jdk version 21811 fi # end check rt.jar 21812 fi # end check javac 21813 fi # end check java 21814 fi # end check boot jdk found 21815 fi 21816 21817 21818 if test "x$BOOT_JDK_FOUND" = xno; then 21819 # Now execute the test 21820 21821 if test "x$PROGRAMW6432" != x; then 21822 VIRTUAL_DIR="$PROGRAMW6432/Java" 21823 21824 windows_path="$VIRTUAL_DIR" 21825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21826 unix_path=`$CYGPATH -u "$windows_path"` 21827 VIRTUAL_DIR="$unix_path" 21828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21830 VIRTUAL_DIR="$unix_path" 21831 fi 21832 21833 21834 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21835 BOOT_JDK_SUFFIX="" 21836 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21837 if test "x$ALL_JDKS_FOUND" != x; then 21838 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21839 21840 if test "x$BOOT_JDK_FOUND" = xno; then 21841 # Now execute the test 21842 21843 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21844 if test -d "$BOOT_JDK"; then 21845 BOOT_JDK_FOUND=maybe 21846 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21847 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21848 fi 21849 21850 21851 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21852 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21853 # Do we have a bin/java? 21854 if test ! -x "$BOOT_JDK/bin/java"; then 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21857 BOOT_JDK_FOUND=no 21858 else 21859 # Do we have a bin/javac? 21860 if test ! -x "$BOOT_JDK/bin/javac"; then 21861 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21862 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21864 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21865 BOOT_JDK_FOUND=no 21866 else 21867 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21868 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21871 BOOT_JDK_FOUND=no 21872 else 21873 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21874 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21875 21876 # Extra M4 quote needed to protect [] in grep expression. 21877 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21878 if test "x$FOUND_VERSION_78" = x; then 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21882 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21883 BOOT_JDK_FOUND=no 21884 else 21885 # We're done! :-) 21886 BOOT_JDK_FOUND=yes 21887 21888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21889 21890 # Input might be given as Windows format, start by converting to 21891 # unix format. 21892 path="$BOOT_JDK" 21893 new_path=`$CYGPATH -u "$path"` 21894 21895 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21896 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21897 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21898 # "foo.exe" is OK but "foo" is an error. 21899 # 21900 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21901 # It is also a way to make sure we got the proper file name for the real test later on. 21902 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21903 if test "x$test_shortpath" = x; then 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21905 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21906 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21907 fi 21908 21909 # Call helper function which possibly converts this using DOS-style short mode. 21910 # If so, the updated path is stored in $new_path. 21911 21912 input_path="$new_path" 21913 # Check if we need to convert this using DOS-style short mode. If the path 21914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21915 # take no chances and rewrite it. 21916 # Note: m4 eats our [], so we need to use [ and ] instead. 21917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21918 if test "x$has_forbidden_chars" != x; then 21919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21920 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21921 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21922 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21923 # Going to short mode and back again did indeed matter. Since short mode is 21924 # case insensitive, let's make it lowercase to improve readability. 21925 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21926 # Now convert it back to Unix-style (cygpath) 21927 input_path=`$CYGPATH -u "$shortmode_path"` 21928 new_path="$input_path" 21929 fi 21930 fi 21931 21932 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21933 if test "x$test_cygdrive_prefix" = x; then 21934 # As a simple fix, exclude /usr/bin since it's not a real path. 21935 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21936 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21937 # a path prefixed by /cygdrive for fixpath to work. 21938 new_path="$CYGWIN_ROOT_PATH$input_path" 21939 fi 21940 fi 21941 21942 21943 if test "x$path" != "x$new_path"; then 21944 BOOT_JDK="$new_path" 21945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21947 fi 21948 21949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21950 21951 path="$BOOT_JDK" 21952 has_colon=`$ECHO $path | $GREP ^.:` 21953 new_path="$path" 21954 if test "x$has_colon" = x; then 21955 # Not in mixed or Windows style, start by that. 21956 new_path=`cmd //c echo $path` 21957 fi 21958 21959 21960 input_path="$new_path" 21961 # Check if we need to convert this using DOS-style short mode. If the path 21962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21963 # take no chances and rewrite it. 21964 # Note: m4 eats our [], so we need to use [ and ] instead. 21965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21966 if test "x$has_forbidden_chars" != x; then 21967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21968 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21969 fi 21970 21971 21972 windows_path="$new_path" 21973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21974 unix_path=`$CYGPATH -u "$windows_path"` 21975 new_path="$unix_path" 21976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21978 new_path="$unix_path" 21979 fi 21980 21981 if test "x$path" != "x$new_path"; then 21982 BOOT_JDK="$new_path" 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21984 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21985 fi 21986 21987 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21988 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21989 21990 else 21991 # We're on a posix platform. Hooray! :) 21992 path="$BOOT_JDK" 21993 has_space=`$ECHO "$path" | $GREP " "` 21994 if test "x$has_space" != x; then 21995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21997 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21998 fi 21999 22000 # Use eval to expand a potential ~ 22001 eval path="$path" 22002 if test ! -f "$path" && test ! -d "$path"; then 22003 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22004 fi 22005 22006 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22007 fi 22008 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22010 $as_echo_n "checking for Boot JDK... " >&6; } 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22012 $as_echo "$BOOT_JDK" >&6; } 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22014 $as_echo_n "checking Boot JDK version... " >&6; } 22015 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22017 $as_echo "$BOOT_JDK_VERSION" >&6; } 22018 fi # end check jdk version 22019 fi # end check rt.jar 22020 fi # end check javac 22021 fi # end check java 22022 fi # end check boot jdk found 22023 fi 22024 22025 done 22026 fi 22027 22028 fi 22029 22030 22031 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22032 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22033 # Do we have a bin/java? 22034 if test ! -x "$BOOT_JDK/bin/java"; then 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22036 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22037 BOOT_JDK_FOUND=no 22038 else 22039 # Do we have a bin/javac? 22040 if test ! -x "$BOOT_JDK/bin/javac"; then 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22042 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22044 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22045 BOOT_JDK_FOUND=no 22046 else 22047 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22048 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22051 BOOT_JDK_FOUND=no 22052 else 22053 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22054 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22055 22056 # Extra M4 quote needed to protect [] in grep expression. 22057 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22058 if test "x$FOUND_VERSION_78" = x; then 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22062 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22063 BOOT_JDK_FOUND=no 22064 else 22065 # We're done! :-) 22066 BOOT_JDK_FOUND=yes 22067 22068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22069 22070 # Input might be given as Windows format, start by converting to 22071 # unix format. 22072 path="$BOOT_JDK" 22073 new_path=`$CYGPATH -u "$path"` 22074 22075 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22076 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22077 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22078 # "foo.exe" is OK but "foo" is an error. 22079 # 22080 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22081 # It is also a way to make sure we got the proper file name for the real test later on. 22082 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22083 if test "x$test_shortpath" = x; then 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22086 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22087 fi 22088 22089 # Call helper function which possibly converts this using DOS-style short mode. 22090 # If so, the updated path is stored in $new_path. 22091 22092 input_path="$new_path" 22093 # Check if we need to convert this using DOS-style short mode. If the path 22094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22095 # take no chances and rewrite it. 22096 # Note: m4 eats our [], so we need to use [ and ] instead. 22097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22098 if test "x$has_forbidden_chars" != x; then 22099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22103 # Going to short mode and back again did indeed matter. Since short mode is 22104 # case insensitive, let's make it lowercase to improve readability. 22105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22106 # Now convert it back to Unix-style (cygpath) 22107 input_path=`$CYGPATH -u "$shortmode_path"` 22108 new_path="$input_path" 22109 fi 22110 fi 22111 22112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22113 if test "x$test_cygdrive_prefix" = x; then 22114 # As a simple fix, exclude /usr/bin since it's not a real path. 22115 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22117 # a path prefixed by /cygdrive for fixpath to work. 22118 new_path="$CYGWIN_ROOT_PATH$input_path" 22119 fi 22120 fi 22121 22122 22123 if test "x$path" != "x$new_path"; then 22124 BOOT_JDK="$new_path" 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22126 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22127 fi 22128 22129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22130 22131 path="$BOOT_JDK" 22132 has_colon=`$ECHO $path | $GREP ^.:` 22133 new_path="$path" 22134 if test "x$has_colon" = x; then 22135 # Not in mixed or Windows style, start by that. 22136 new_path=`cmd //c echo $path` 22137 fi 22138 22139 22140 input_path="$new_path" 22141 # Check if we need to convert this using DOS-style short mode. If the path 22142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22143 # take no chances and rewrite it. 22144 # Note: m4 eats our [], so we need to use [ and ] instead. 22145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22146 if test "x$has_forbidden_chars" != x; then 22147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22148 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22149 fi 22150 22151 22152 windows_path="$new_path" 22153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22154 unix_path=`$CYGPATH -u "$windows_path"` 22155 new_path="$unix_path" 22156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22158 new_path="$unix_path" 22159 fi 22160 22161 if test "x$path" != "x$new_path"; then 22162 BOOT_JDK="$new_path" 22163 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22164 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22165 fi 22166 22167 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22168 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22169 22170 else 22171 # We're on a posix platform. Hooray! :) 22172 path="$BOOT_JDK" 22173 has_space=`$ECHO "$path" | $GREP " "` 22174 if test "x$has_space" != x; then 22175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22176 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22177 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22178 fi 22179 22180 # Use eval to expand a potential ~ 22181 eval path="$path" 22182 if test ! -f "$path" && test ! -d "$path"; then 22183 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22184 fi 22185 22186 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22187 fi 22188 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22190 $as_echo_n "checking for Boot JDK... " >&6; } 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22192 $as_echo "$BOOT_JDK" >&6; } 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22194 $as_echo_n "checking Boot JDK version... " >&6; } 22195 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22197 $as_echo "$BOOT_JDK_VERSION" >&6; } 22198 fi # end check jdk version 22199 fi # end check rt.jar 22200 fi # end check javac 22201 fi # end check java 22202 fi # end check boot jdk found 22203 fi 22204 22205 22206 if test "x$BOOT_JDK_FOUND" = xno; then 22207 # Now execute the test 22208 22209 if test "x$PROGRAMFILES" != x; then 22210 VIRTUAL_DIR="$PROGRAMFILES/Java" 22211 22212 windows_path="$VIRTUAL_DIR" 22213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22214 unix_path=`$CYGPATH -u "$windows_path"` 22215 VIRTUAL_DIR="$unix_path" 22216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22218 VIRTUAL_DIR="$unix_path" 22219 fi 22220 22221 22222 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22223 BOOT_JDK_SUFFIX="" 22224 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22225 if test "x$ALL_JDKS_FOUND" != x; then 22226 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22227 22228 if test "x$BOOT_JDK_FOUND" = xno; then 22229 # Now execute the test 22230 22231 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22232 if test -d "$BOOT_JDK"; then 22233 BOOT_JDK_FOUND=maybe 22234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22235 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22236 fi 22237 22238 22239 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22240 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22241 # Do we have a bin/java? 22242 if test ! -x "$BOOT_JDK/bin/java"; then 22243 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22244 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22245 BOOT_JDK_FOUND=no 22246 else 22247 # Do we have a bin/javac? 22248 if test ! -x "$BOOT_JDK/bin/javac"; then 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22252 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22253 BOOT_JDK_FOUND=no 22254 else 22255 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22256 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22258 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22259 BOOT_JDK_FOUND=no 22260 else 22261 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22262 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22263 22264 # Extra M4 quote needed to protect [] in grep expression. 22265 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22266 if test "x$FOUND_VERSION_78" = x; then 22267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22269 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22270 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22271 BOOT_JDK_FOUND=no 22272 else 22273 # We're done! :-) 22274 BOOT_JDK_FOUND=yes 22275 22276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22277 22278 # Input might be given as Windows format, start by converting to 22279 # unix format. 22280 path="$BOOT_JDK" 22281 new_path=`$CYGPATH -u "$path"` 22282 22283 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22284 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22285 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22286 # "foo.exe" is OK but "foo" is an error. 22287 # 22288 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22289 # It is also a way to make sure we got the proper file name for the real test later on. 22290 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22291 if test "x$test_shortpath" = x; then 22292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22293 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22294 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22295 fi 22296 22297 # Call helper function which possibly converts this using DOS-style short mode. 22298 # If so, the updated path is stored in $new_path. 22299 22300 input_path="$new_path" 22301 # Check if we need to convert this using DOS-style short mode. If the path 22302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22303 # take no chances and rewrite it. 22304 # Note: m4 eats our [], so we need to use [ and ] instead. 22305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22306 if test "x$has_forbidden_chars" != x; then 22307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22308 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22309 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22310 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22311 # Going to short mode and back again did indeed matter. Since short mode is 22312 # case insensitive, let's make it lowercase to improve readability. 22313 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22314 # Now convert it back to Unix-style (cygpath) 22315 input_path=`$CYGPATH -u "$shortmode_path"` 22316 new_path="$input_path" 22317 fi 22318 fi 22319 22320 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22321 if test "x$test_cygdrive_prefix" = x; then 22322 # As a simple fix, exclude /usr/bin since it's not a real path. 22323 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22324 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22325 # a path prefixed by /cygdrive for fixpath to work. 22326 new_path="$CYGWIN_ROOT_PATH$input_path" 22327 fi 22328 fi 22329 22330 22331 if test "x$path" != "x$new_path"; then 22332 BOOT_JDK="$new_path" 22333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22334 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22335 fi 22336 22337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22338 22339 path="$BOOT_JDK" 22340 has_colon=`$ECHO $path | $GREP ^.:` 22341 new_path="$path" 22342 if test "x$has_colon" = x; then 22343 # Not in mixed or Windows style, start by that. 22344 new_path=`cmd //c echo $path` 22345 fi 22346 22347 22348 input_path="$new_path" 22349 # Check if we need to convert this using DOS-style short mode. If the path 22350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22351 # take no chances and rewrite it. 22352 # Note: m4 eats our [], so we need to use [ and ] instead. 22353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22354 if test "x$has_forbidden_chars" != x; then 22355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22356 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22357 fi 22358 22359 22360 windows_path="$new_path" 22361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22362 unix_path=`$CYGPATH -u "$windows_path"` 22363 new_path="$unix_path" 22364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22365 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22366 new_path="$unix_path" 22367 fi 22368 22369 if test "x$path" != "x$new_path"; then 22370 BOOT_JDK="$new_path" 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22372 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22373 fi 22374 22375 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22376 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22377 22378 else 22379 # We're on a posix platform. Hooray! :) 22380 path="$BOOT_JDK" 22381 has_space=`$ECHO "$path" | $GREP " "` 22382 if test "x$has_space" != x; then 22383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22384 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22385 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22386 fi 22387 22388 # Use eval to expand a potential ~ 22389 eval path="$path" 22390 if test ! -f "$path" && test ! -d "$path"; then 22391 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22392 fi 22393 22394 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22395 fi 22396 22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22398 $as_echo_n "checking for Boot JDK... " >&6; } 22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22400 $as_echo "$BOOT_JDK" >&6; } 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22402 $as_echo_n "checking Boot JDK version... " >&6; } 22403 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22405 $as_echo "$BOOT_JDK_VERSION" >&6; } 22406 fi # end check jdk version 22407 fi # end check rt.jar 22408 fi # end check javac 22409 fi # end check java 22410 fi # end check boot jdk found 22411 fi 22412 22413 done 22414 fi 22415 22416 fi 22417 22418 22419 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22420 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22421 # Do we have a bin/java? 22422 if test ! -x "$BOOT_JDK/bin/java"; then 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22425 BOOT_JDK_FOUND=no 22426 else 22427 # Do we have a bin/javac? 22428 if test ! -x "$BOOT_JDK/bin/javac"; then 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22432 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22433 BOOT_JDK_FOUND=no 22434 else 22435 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22436 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22437 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22439 BOOT_JDK_FOUND=no 22440 else 22441 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22442 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22443 22444 # Extra M4 quote needed to protect [] in grep expression. 22445 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22446 if test "x$FOUND_VERSION_78" = x; then 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22449 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22450 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22451 BOOT_JDK_FOUND=no 22452 else 22453 # We're done! :-) 22454 BOOT_JDK_FOUND=yes 22455 22456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22457 22458 # Input might be given as Windows format, start by converting to 22459 # unix format. 22460 path="$BOOT_JDK" 22461 new_path=`$CYGPATH -u "$path"` 22462 22463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22466 # "foo.exe" is OK but "foo" is an error. 22467 # 22468 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22469 # It is also a way to make sure we got the proper file name for the real test later on. 22470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22471 if test "x$test_shortpath" = x; then 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22474 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22475 fi 22476 22477 # Call helper function which possibly converts this using DOS-style short mode. 22478 # If so, the updated path is stored in $new_path. 22479 22480 input_path="$new_path" 22481 # Check if we need to convert this using DOS-style short mode. If the path 22482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22483 # take no chances and rewrite it. 22484 # Note: m4 eats our [], so we need to use [ and ] instead. 22485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22486 if test "x$has_forbidden_chars" != x; then 22487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22491 # Going to short mode and back again did indeed matter. Since short mode is 22492 # case insensitive, let's make it lowercase to improve readability. 22493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22494 # Now convert it back to Unix-style (cygpath) 22495 input_path=`$CYGPATH -u "$shortmode_path"` 22496 new_path="$input_path" 22497 fi 22498 fi 22499 22500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22501 if test "x$test_cygdrive_prefix" = x; then 22502 # As a simple fix, exclude /usr/bin since it's not a real path. 22503 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22505 # a path prefixed by /cygdrive for fixpath to work. 22506 new_path="$CYGWIN_ROOT_PATH$input_path" 22507 fi 22508 fi 22509 22510 22511 if test "x$path" != "x$new_path"; then 22512 BOOT_JDK="$new_path" 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22514 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22515 fi 22516 22517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22518 22519 path="$BOOT_JDK" 22520 has_colon=`$ECHO $path | $GREP ^.:` 22521 new_path="$path" 22522 if test "x$has_colon" = x; then 22523 # Not in mixed or Windows style, start by that. 22524 new_path=`cmd //c echo $path` 22525 fi 22526 22527 22528 input_path="$new_path" 22529 # Check if we need to convert this using DOS-style short mode. If the path 22530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22531 # take no chances and rewrite it. 22532 # Note: m4 eats our [], so we need to use [ and ] instead. 22533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22534 if test "x$has_forbidden_chars" != x; then 22535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22537 fi 22538 22539 22540 windows_path="$new_path" 22541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22542 unix_path=`$CYGPATH -u "$windows_path"` 22543 new_path="$unix_path" 22544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22546 new_path="$unix_path" 22547 fi 22548 22549 if test "x$path" != "x$new_path"; then 22550 BOOT_JDK="$new_path" 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22553 fi 22554 22555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22557 22558 else 22559 # We're on a posix platform. Hooray! :) 22560 path="$BOOT_JDK" 22561 has_space=`$ECHO "$path" | $GREP " "` 22562 if test "x$has_space" != x; then 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22565 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22566 fi 22567 22568 # Use eval to expand a potential ~ 22569 eval path="$path" 22570 if test ! -f "$path" && test ! -d "$path"; then 22571 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22572 fi 22573 22574 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22575 fi 22576 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22578 $as_echo_n "checking for Boot JDK... " >&6; } 22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22580 $as_echo "$BOOT_JDK" >&6; } 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22582 $as_echo_n "checking Boot JDK version... " >&6; } 22583 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22585 $as_echo "$BOOT_JDK_VERSION" >&6; } 22586 fi # end check jdk version 22587 fi # end check rt.jar 22588 fi # end check javac 22589 fi # end check java 22590 fi # end check boot jdk found 22591 fi 22592 22593 22594 if test "x$BOOT_JDK_FOUND" = xno; then 22595 # Now execute the test 22596 22597 if test "x$ProgramFiles" != x; then 22598 VIRTUAL_DIR="$ProgramFiles/Java" 22599 22600 windows_path="$VIRTUAL_DIR" 22601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22602 unix_path=`$CYGPATH -u "$windows_path"` 22603 VIRTUAL_DIR="$unix_path" 22604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22606 VIRTUAL_DIR="$unix_path" 22607 fi 22608 22609 22610 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22611 BOOT_JDK_SUFFIX="" 22612 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22613 if test "x$ALL_JDKS_FOUND" != x; then 22614 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22615 22616 if test "x$BOOT_JDK_FOUND" = xno; then 22617 # Now execute the test 22618 22619 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22620 if test -d "$BOOT_JDK"; then 22621 BOOT_JDK_FOUND=maybe 22622 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22623 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22624 fi 22625 22626 22627 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22628 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22629 # Do we have a bin/java? 22630 if test ! -x "$BOOT_JDK/bin/java"; then 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22633 BOOT_JDK_FOUND=no 22634 else 22635 # Do we have a bin/javac? 22636 if test ! -x "$BOOT_JDK/bin/javac"; then 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22638 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22640 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22641 BOOT_JDK_FOUND=no 22642 else 22643 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22644 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22647 BOOT_JDK_FOUND=no 22648 else 22649 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22650 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22651 22652 # Extra M4 quote needed to protect [] in grep expression. 22653 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22654 if test "x$FOUND_VERSION_78" = x; then 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22658 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22659 BOOT_JDK_FOUND=no 22660 else 22661 # We're done! :-) 22662 BOOT_JDK_FOUND=yes 22663 22664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22665 22666 # Input might be given as Windows format, start by converting to 22667 # unix format. 22668 path="$BOOT_JDK" 22669 new_path=`$CYGPATH -u "$path"` 22670 22671 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22672 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22673 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22674 # "foo.exe" is OK but "foo" is an error. 22675 # 22676 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22677 # It is also a way to make sure we got the proper file name for the real test later on. 22678 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22679 if test "x$test_shortpath" = x; then 22680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22681 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22682 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22683 fi 22684 22685 # Call helper function which possibly converts this using DOS-style short mode. 22686 # If so, the updated path is stored in $new_path. 22687 22688 input_path="$new_path" 22689 # Check if we need to convert this using DOS-style short mode. If the path 22690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22691 # take no chances and rewrite it. 22692 # Note: m4 eats our [], so we need to use [ and ] instead. 22693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22694 if test "x$has_forbidden_chars" != x; then 22695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22696 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22697 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22698 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22699 # Going to short mode and back again did indeed matter. Since short mode is 22700 # case insensitive, let's make it lowercase to improve readability. 22701 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22702 # Now convert it back to Unix-style (cygpath) 22703 input_path=`$CYGPATH -u "$shortmode_path"` 22704 new_path="$input_path" 22705 fi 22706 fi 22707 22708 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22709 if test "x$test_cygdrive_prefix" = x; then 22710 # As a simple fix, exclude /usr/bin since it's not a real path. 22711 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22712 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22713 # a path prefixed by /cygdrive for fixpath to work. 22714 new_path="$CYGWIN_ROOT_PATH$input_path" 22715 fi 22716 fi 22717 22718 22719 if test "x$path" != "x$new_path"; then 22720 BOOT_JDK="$new_path" 22721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22722 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22723 fi 22724 22725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22726 22727 path="$BOOT_JDK" 22728 has_colon=`$ECHO $path | $GREP ^.:` 22729 new_path="$path" 22730 if test "x$has_colon" = x; then 22731 # Not in mixed or Windows style, start by that. 22732 new_path=`cmd //c echo $path` 22733 fi 22734 22735 22736 input_path="$new_path" 22737 # Check if we need to convert this using DOS-style short mode. If the path 22738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22739 # take no chances and rewrite it. 22740 # Note: m4 eats our [], so we need to use [ and ] instead. 22741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22742 if test "x$has_forbidden_chars" != x; then 22743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22745 fi 22746 22747 22748 windows_path="$new_path" 22749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22750 unix_path=`$CYGPATH -u "$windows_path"` 22751 new_path="$unix_path" 22752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22754 new_path="$unix_path" 22755 fi 22756 22757 if test "x$path" != "x$new_path"; then 22758 BOOT_JDK="$new_path" 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22760 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22761 fi 22762 22763 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22764 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22765 22766 else 22767 # We're on a posix platform. Hooray! :) 22768 path="$BOOT_JDK" 22769 has_space=`$ECHO "$path" | $GREP " "` 22770 if test "x$has_space" != x; then 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22772 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22773 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22774 fi 22775 22776 # Use eval to expand a potential ~ 22777 eval path="$path" 22778 if test ! -f "$path" && test ! -d "$path"; then 22779 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22780 fi 22781 22782 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22783 fi 22784 22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22786 $as_echo_n "checking for Boot JDK... " >&6; } 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22788 $as_echo "$BOOT_JDK" >&6; } 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22790 $as_echo_n "checking Boot JDK version... " >&6; } 22791 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22793 $as_echo "$BOOT_JDK_VERSION" >&6; } 22794 fi # end check jdk version 22795 fi # end check rt.jar 22796 fi # end check javac 22797 fi # end check java 22798 fi # end check boot jdk found 22799 fi 22800 22801 done 22802 fi 22803 22804 fi 22805 22806 22807 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22808 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22809 # Do we have a bin/java? 22810 if test ! -x "$BOOT_JDK/bin/java"; then 22811 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22813 BOOT_JDK_FOUND=no 22814 else 22815 # Do we have a bin/javac? 22816 if test ! -x "$BOOT_JDK/bin/javac"; then 22817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22820 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22821 BOOT_JDK_FOUND=no 22822 else 22823 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22824 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22825 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22826 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22827 BOOT_JDK_FOUND=no 22828 else 22829 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22830 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22831 22832 # Extra M4 quote needed to protect [] in grep expression. 22833 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22834 if test "x$FOUND_VERSION_78" = x; then 22835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22837 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22838 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22839 BOOT_JDK_FOUND=no 22840 else 22841 # We're done! :-) 22842 BOOT_JDK_FOUND=yes 22843 22844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22845 22846 # Input might be given as Windows format, start by converting to 22847 # unix format. 22848 path="$BOOT_JDK" 22849 new_path=`$CYGPATH -u "$path"` 22850 22851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22854 # "foo.exe" is OK but "foo" is an error. 22855 # 22856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22857 # It is also a way to make sure we got the proper file name for the real test later on. 22858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22859 if test "x$test_shortpath" = x; then 22860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22862 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22863 fi 22864 22865 # Call helper function which possibly converts this using DOS-style short mode. 22866 # If so, the updated path is stored in $new_path. 22867 22868 input_path="$new_path" 22869 # Check if we need to convert this using DOS-style short mode. If the path 22870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22871 # take no chances and rewrite it. 22872 # Note: m4 eats our [], so we need to use [ and ] instead. 22873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22874 if test "x$has_forbidden_chars" != x; then 22875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22879 # Going to short mode and back again did indeed matter. Since short mode is 22880 # case insensitive, let's make it lowercase to improve readability. 22881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22882 # Now convert it back to Unix-style (cygpath) 22883 input_path=`$CYGPATH -u "$shortmode_path"` 22884 new_path="$input_path" 22885 fi 22886 fi 22887 22888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22889 if test "x$test_cygdrive_prefix" = x; then 22890 # As a simple fix, exclude /usr/bin since it's not a real path. 22891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22893 # a path prefixed by /cygdrive for fixpath to work. 22894 new_path="$CYGWIN_ROOT_PATH$input_path" 22895 fi 22896 fi 22897 22898 22899 if test "x$path" != "x$new_path"; then 22900 BOOT_JDK="$new_path" 22901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22903 fi 22904 22905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22906 22907 path="$BOOT_JDK" 22908 has_colon=`$ECHO $path | $GREP ^.:` 22909 new_path="$path" 22910 if test "x$has_colon" = x; then 22911 # Not in mixed or Windows style, start by that. 22912 new_path=`cmd //c echo $path` 22913 fi 22914 22915 22916 input_path="$new_path" 22917 # Check if we need to convert this using DOS-style short mode. If the path 22918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22919 # take no chances and rewrite it. 22920 # Note: m4 eats our [], so we need to use [ and ] instead. 22921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22922 if test "x$has_forbidden_chars" != x; then 22923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22925 fi 22926 22927 22928 windows_path="$new_path" 22929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22930 unix_path=`$CYGPATH -u "$windows_path"` 22931 new_path="$unix_path" 22932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22934 new_path="$unix_path" 22935 fi 22936 22937 if test "x$path" != "x$new_path"; then 22938 BOOT_JDK="$new_path" 22939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22940 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22941 fi 22942 22943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22945 22946 else 22947 # We're on a posix platform. Hooray! :) 22948 path="$BOOT_JDK" 22949 has_space=`$ECHO "$path" | $GREP " "` 22950 if test "x$has_space" != x; then 22951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22952 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22954 fi 22955 22956 # Use eval to expand a potential ~ 22957 eval path="$path" 22958 if test ! -f "$path" && test ! -d "$path"; then 22959 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22960 fi 22961 22962 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22963 fi 22964 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22966 $as_echo_n "checking for Boot JDK... " >&6; } 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22968 $as_echo "$BOOT_JDK" >&6; } 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22970 $as_echo_n "checking Boot JDK version... " >&6; } 22971 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22973 $as_echo "$BOOT_JDK_VERSION" >&6; } 22974 fi # end check jdk version 22975 fi # end check rt.jar 22976 fi # end check javac 22977 fi # end check java 22978 fi # end check boot jdk found 22979 fi 22980 22981 22982 if test "x$BOOT_JDK_FOUND" = xno; then 22983 # Now execute the test 22984 22985 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22986 BOOT_JDK_SUFFIX="" 22987 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22988 if test "x$ALL_JDKS_FOUND" != x; then 22989 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22990 22991 if test "x$BOOT_JDK_FOUND" = xno; then 22992 # Now execute the test 22993 22994 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22995 if test -d "$BOOT_JDK"; then 22996 BOOT_JDK_FOUND=maybe 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22998 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22999 fi 23000 23001 23002 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23003 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23004 # Do we have a bin/java? 23005 if test ! -x "$BOOT_JDK/bin/java"; then 23006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23008 BOOT_JDK_FOUND=no 23009 else 23010 # Do we have a bin/javac? 23011 if test ! -x "$BOOT_JDK/bin/javac"; then 23012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23014 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23015 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23016 BOOT_JDK_FOUND=no 23017 else 23018 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23019 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23020 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23021 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23022 BOOT_JDK_FOUND=no 23023 else 23024 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23026 23027 # Extra M4 quote needed to protect [] in grep expression. 23028 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23029 if test "x$FOUND_VERSION_78" = x; then 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23031 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23032 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23033 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23034 BOOT_JDK_FOUND=no 23035 else 23036 # We're done! :-) 23037 BOOT_JDK_FOUND=yes 23038 23039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23040 23041 # Input might be given as Windows format, start by converting to 23042 # unix format. 23043 path="$BOOT_JDK" 23044 new_path=`$CYGPATH -u "$path"` 23045 23046 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23047 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23048 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23049 # "foo.exe" is OK but "foo" is an error. 23050 # 23051 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23052 # It is also a way to make sure we got the proper file name for the real test later on. 23053 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23054 if test "x$test_shortpath" = x; then 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23057 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23058 fi 23059 23060 # Call helper function which possibly converts this using DOS-style short mode. 23061 # If so, the updated path is stored in $new_path. 23062 23063 input_path="$new_path" 23064 # Check if we need to convert this using DOS-style short mode. If the path 23065 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23066 # take no chances and rewrite it. 23067 # Note: m4 eats our [], so we need to use [ and ] instead. 23068 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23069 if test "x$has_forbidden_chars" != x; then 23070 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23071 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23072 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23073 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23074 # Going to short mode and back again did indeed matter. Since short mode is 23075 # case insensitive, let's make it lowercase to improve readability. 23076 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23077 # Now convert it back to Unix-style (cygpath) 23078 input_path=`$CYGPATH -u "$shortmode_path"` 23079 new_path="$input_path" 23080 fi 23081 fi 23082 23083 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23084 if test "x$test_cygdrive_prefix" = x; then 23085 # As a simple fix, exclude /usr/bin since it's not a real path. 23086 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23087 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23088 # a path prefixed by /cygdrive for fixpath to work. 23089 new_path="$CYGWIN_ROOT_PATH$input_path" 23090 fi 23091 fi 23092 23093 23094 if test "x$path" != "x$new_path"; then 23095 BOOT_JDK="$new_path" 23096 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23097 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23098 fi 23099 23100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23101 23102 path="$BOOT_JDK" 23103 has_colon=`$ECHO $path | $GREP ^.:` 23104 new_path="$path" 23105 if test "x$has_colon" = x; then 23106 # Not in mixed or Windows style, start by that. 23107 new_path=`cmd //c echo $path` 23108 fi 23109 23110 23111 input_path="$new_path" 23112 # Check if we need to convert this using DOS-style short mode. If the path 23113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23114 # take no chances and rewrite it. 23115 # Note: m4 eats our [], so we need to use [ and ] instead. 23116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23117 if test "x$has_forbidden_chars" != x; then 23118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23119 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23120 fi 23121 23122 23123 windows_path="$new_path" 23124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23125 unix_path=`$CYGPATH -u "$windows_path"` 23126 new_path="$unix_path" 23127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23129 new_path="$unix_path" 23130 fi 23131 23132 if test "x$path" != "x$new_path"; then 23133 BOOT_JDK="$new_path" 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23135 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23136 fi 23137 23138 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23139 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23140 23141 else 23142 # We're on a posix platform. Hooray! :) 23143 path="$BOOT_JDK" 23144 has_space=`$ECHO "$path" | $GREP " "` 23145 if test "x$has_space" != x; then 23146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23148 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23149 fi 23150 23151 # Use eval to expand a potential ~ 23152 eval path="$path" 23153 if test ! -f "$path" && test ! -d "$path"; then 23154 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23155 fi 23156 23157 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23158 fi 23159 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23161 $as_echo_n "checking for Boot JDK... " >&6; } 23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23163 $as_echo "$BOOT_JDK" >&6; } 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23165 $as_echo_n "checking Boot JDK version... " >&6; } 23166 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23168 $as_echo "$BOOT_JDK_VERSION" >&6; } 23169 fi # end check jdk version 23170 fi # end check rt.jar 23171 fi # end check javac 23172 fi # end check java 23173 fi # end check boot jdk found 23174 fi 23175 23176 done 23177 fi 23178 23179 23180 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23181 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23182 # Do we have a bin/java? 23183 if test ! -x "$BOOT_JDK/bin/java"; then 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23185 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23186 BOOT_JDK_FOUND=no 23187 else 23188 # Do we have a bin/javac? 23189 if test ! -x "$BOOT_JDK/bin/javac"; then 23190 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23193 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23194 BOOT_JDK_FOUND=no 23195 else 23196 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23197 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23200 BOOT_JDK_FOUND=no 23201 else 23202 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23203 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23204 23205 # Extra M4 quote needed to protect [] in grep expression. 23206 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23207 if test "x$FOUND_VERSION_78" = x; then 23208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23210 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23211 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23212 BOOT_JDK_FOUND=no 23213 else 23214 # We're done! :-) 23215 BOOT_JDK_FOUND=yes 23216 23217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23218 23219 # Input might be given as Windows format, start by converting to 23220 # unix format. 23221 path="$BOOT_JDK" 23222 new_path=`$CYGPATH -u "$path"` 23223 23224 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23225 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23226 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23227 # "foo.exe" is OK but "foo" is an error. 23228 # 23229 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23230 # It is also a way to make sure we got the proper file name for the real test later on. 23231 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23232 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23236 fi 23237 23238 # Call helper function which possibly converts this using DOS-style short mode. 23239 # If so, the updated path is stored in $new_path. 23240 23241 input_path="$new_path" 23242 # Check if we need to convert this using DOS-style short mode. If the path 23243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23244 # take no chances and rewrite it. 23245 # Note: m4 eats our [], so we need to use [ and ] instead. 23246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23247 if test "x$has_forbidden_chars" != x; then 23248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23249 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23250 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23251 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23252 # Going to short mode and back again did indeed matter. Since short mode is 23253 # case insensitive, let's make it lowercase to improve readability. 23254 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23255 # Now convert it back to Unix-style (cygpath) 23256 input_path=`$CYGPATH -u "$shortmode_path"` 23257 new_path="$input_path" 23258 fi 23259 fi 23260 23261 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23262 if test "x$test_cygdrive_prefix" = x; then 23263 # As a simple fix, exclude /usr/bin since it's not a real path. 23264 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23265 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23266 # a path prefixed by /cygdrive for fixpath to work. 23267 new_path="$CYGWIN_ROOT_PATH$input_path" 23268 fi 23269 fi 23270 23271 23272 if test "x$path" != "x$new_path"; then 23273 BOOT_JDK="$new_path" 23274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23275 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23276 fi 23277 23278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23279 23280 path="$BOOT_JDK" 23281 has_colon=`$ECHO $path | $GREP ^.:` 23282 new_path="$path" 23283 if test "x$has_colon" = x; then 23284 # Not in mixed or Windows style, start by that. 23285 new_path=`cmd //c echo $path` 23286 fi 23287 23288 23289 input_path="$new_path" 23290 # Check if we need to convert this using DOS-style short mode. If the path 23291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23292 # take no chances and rewrite it. 23293 # Note: m4 eats our [], so we need to use [ and ] instead. 23294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23295 if test "x$has_forbidden_chars" != x; then 23296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23298 fi 23299 23300 23301 windows_path="$new_path" 23302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23303 unix_path=`$CYGPATH -u "$windows_path"` 23304 new_path="$unix_path" 23305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23307 new_path="$unix_path" 23308 fi 23309 23310 if test "x$path" != "x$new_path"; then 23311 BOOT_JDK="$new_path" 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23313 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23314 fi 23315 23316 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23317 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23318 23319 else 23320 # We're on a posix platform. Hooray! :) 23321 path="$BOOT_JDK" 23322 has_space=`$ECHO "$path" | $GREP " "` 23323 if test "x$has_space" != x; then 23324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23325 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23326 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23327 fi 23328 23329 # Use eval to expand a potential ~ 23330 eval path="$path" 23331 if test ! -f "$path" && test ! -d "$path"; then 23332 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23333 fi 23334 23335 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23336 fi 23337 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23339 $as_echo_n "checking for Boot JDK... " >&6; } 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23341 $as_echo "$BOOT_JDK" >&6; } 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23343 $as_echo_n "checking Boot JDK version... " >&6; } 23344 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23346 $as_echo "$BOOT_JDK_VERSION" >&6; } 23347 fi # end check jdk version 23348 fi # end check rt.jar 23349 fi # end check javac 23350 fi # end check java 23351 fi # end check boot jdk found 23352 fi 23353 23354 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23355 23356 if test "x$BOOT_JDK_FOUND" = xno; then 23357 # Now execute the test 23358 23359 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23360 BOOT_JDK_SUFFIX="/Contents/Home" 23361 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23362 if test "x$ALL_JDKS_FOUND" != x; then 23363 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23364 23365 if test "x$BOOT_JDK_FOUND" = xno; then 23366 # Now execute the test 23367 23368 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23369 if test -d "$BOOT_JDK"; then 23370 BOOT_JDK_FOUND=maybe 23371 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23372 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23373 fi 23374 23375 23376 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23377 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23378 # Do we have a bin/java? 23379 if test ! -x "$BOOT_JDK/bin/java"; then 23380 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23381 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23382 BOOT_JDK_FOUND=no 23383 else 23384 # Do we have a bin/javac? 23385 if test ! -x "$BOOT_JDK/bin/javac"; then 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23389 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23390 BOOT_JDK_FOUND=no 23391 else 23392 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23393 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23396 BOOT_JDK_FOUND=no 23397 else 23398 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23399 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23400 23401 # Extra M4 quote needed to protect [] in grep expression. 23402 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23403 if test "x$FOUND_VERSION_78" = x; then 23404 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23405 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23406 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23407 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23408 BOOT_JDK_FOUND=no 23409 else 23410 # We're done! :-) 23411 BOOT_JDK_FOUND=yes 23412 23413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23414 23415 # Input might be given as Windows format, start by converting to 23416 # unix format. 23417 path="$BOOT_JDK" 23418 new_path=`$CYGPATH -u "$path"` 23419 23420 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23421 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23422 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23423 # "foo.exe" is OK but "foo" is an error. 23424 # 23425 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23426 # It is also a way to make sure we got the proper file name for the real test later on. 23427 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23428 if test "x$test_shortpath" = x; then 23429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23430 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23431 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23432 fi 23433 23434 # Call helper function which possibly converts this using DOS-style short mode. 23435 # If so, the updated path is stored in $new_path. 23436 23437 input_path="$new_path" 23438 # Check if we need to convert this using DOS-style short mode. If the path 23439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23440 # take no chances and rewrite it. 23441 # Note: m4 eats our [], so we need to use [ and ] instead. 23442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23443 if test "x$has_forbidden_chars" != x; then 23444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23448 # Going to short mode and back again did indeed matter. Since short mode is 23449 # case insensitive, let's make it lowercase to improve readability. 23450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23451 # Now convert it back to Unix-style (cygpath) 23452 input_path=`$CYGPATH -u "$shortmode_path"` 23453 new_path="$input_path" 23454 fi 23455 fi 23456 23457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23458 if test "x$test_cygdrive_prefix" = x; then 23459 # As a simple fix, exclude /usr/bin since it's not a real path. 23460 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23462 # a path prefixed by /cygdrive for fixpath to work. 23463 new_path="$CYGWIN_ROOT_PATH$input_path" 23464 fi 23465 fi 23466 23467 23468 if test "x$path" != "x$new_path"; then 23469 BOOT_JDK="$new_path" 23470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23471 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23472 fi 23473 23474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23475 23476 path="$BOOT_JDK" 23477 has_colon=`$ECHO $path | $GREP ^.:` 23478 new_path="$path" 23479 if test "x$has_colon" = x; then 23480 # Not in mixed or Windows style, start by that. 23481 new_path=`cmd //c echo $path` 23482 fi 23483 23484 23485 input_path="$new_path" 23486 # Check if we need to convert this using DOS-style short mode. If the path 23487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23488 # take no chances and rewrite it. 23489 # Note: m4 eats our [], so we need to use [ and ] instead. 23490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23491 if test "x$has_forbidden_chars" != x; then 23492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23494 fi 23495 23496 23497 windows_path="$new_path" 23498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23499 unix_path=`$CYGPATH -u "$windows_path"` 23500 new_path="$unix_path" 23501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23503 new_path="$unix_path" 23504 fi 23505 23506 if test "x$path" != "x$new_path"; then 23507 BOOT_JDK="$new_path" 23508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23510 fi 23511 23512 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23513 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23514 23515 else 23516 # We're on a posix platform. Hooray! :) 23517 path="$BOOT_JDK" 23518 has_space=`$ECHO "$path" | $GREP " "` 23519 if test "x$has_space" != x; then 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23521 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23522 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23523 fi 23524 23525 # Use eval to expand a potential ~ 23526 eval path="$path" 23527 if test ! -f "$path" && test ! -d "$path"; then 23528 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23529 fi 23530 23531 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23532 fi 23533 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23535 $as_echo_n "checking for Boot JDK... " >&6; } 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23537 $as_echo "$BOOT_JDK" >&6; } 23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23539 $as_echo_n "checking Boot JDK version... " >&6; } 23540 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23542 $as_echo "$BOOT_JDK_VERSION" >&6; } 23543 fi # end check jdk version 23544 fi # end check rt.jar 23545 fi # end check javac 23546 fi # end check java 23547 fi # end check boot jdk found 23548 fi 23549 23550 done 23551 fi 23552 23553 23554 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23555 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23556 # Do we have a bin/java? 23557 if test ! -x "$BOOT_JDK/bin/java"; then 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23559 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23560 BOOT_JDK_FOUND=no 23561 else 23562 # Do we have a bin/javac? 23563 if test ! -x "$BOOT_JDK/bin/javac"; then 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23567 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23568 BOOT_JDK_FOUND=no 23569 else 23570 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23571 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23574 BOOT_JDK_FOUND=no 23575 else 23576 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23577 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23578 23579 # Extra M4 quote needed to protect [] in grep expression. 23580 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23581 if test "x$FOUND_VERSION_78" = x; then 23582 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23583 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23584 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23585 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23586 BOOT_JDK_FOUND=no 23587 else 23588 # We're done! :-) 23589 BOOT_JDK_FOUND=yes 23590 23591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23592 23593 # Input might be given as Windows format, start by converting to 23594 # unix format. 23595 path="$BOOT_JDK" 23596 new_path=`$CYGPATH -u "$path"` 23597 23598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23601 # "foo.exe" is OK but "foo" is an error. 23602 # 23603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23604 # It is also a way to make sure we got the proper file name for the real test later on. 23605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23606 if test "x$test_shortpath" = x; then 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23609 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23610 fi 23611 23612 # Call helper function which possibly converts this using DOS-style short mode. 23613 # If so, the updated path is stored in $new_path. 23614 23615 input_path="$new_path" 23616 # Check if we need to convert this using DOS-style short mode. If the path 23617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23618 # take no chances and rewrite it. 23619 # Note: m4 eats our [], so we need to use [ and ] instead. 23620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23621 if test "x$has_forbidden_chars" != x; then 23622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23626 # Going to short mode and back again did indeed matter. Since short mode is 23627 # case insensitive, let's make it lowercase to improve readability. 23628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23629 # Now convert it back to Unix-style (cygpath) 23630 input_path=`$CYGPATH -u "$shortmode_path"` 23631 new_path="$input_path" 23632 fi 23633 fi 23634 23635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23636 if test "x$test_cygdrive_prefix" = x; then 23637 # As a simple fix, exclude /usr/bin since it's not a real path. 23638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23640 # a path prefixed by /cygdrive for fixpath to work. 23641 new_path="$CYGWIN_ROOT_PATH$input_path" 23642 fi 23643 fi 23644 23645 23646 if test "x$path" != "x$new_path"; then 23647 BOOT_JDK="$new_path" 23648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23650 fi 23651 23652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23653 23654 path="$BOOT_JDK" 23655 has_colon=`$ECHO $path | $GREP ^.:` 23656 new_path="$path" 23657 if test "x$has_colon" = x; then 23658 # Not in mixed or Windows style, start by that. 23659 new_path=`cmd //c echo $path` 23660 fi 23661 23662 23663 input_path="$new_path" 23664 # Check if we need to convert this using DOS-style short mode. If the path 23665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23666 # take no chances and rewrite it. 23667 # Note: m4 eats our [], so we need to use [ and ] instead. 23668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23669 if test "x$has_forbidden_chars" != x; then 23670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23672 fi 23673 23674 23675 windows_path="$new_path" 23676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23677 unix_path=`$CYGPATH -u "$windows_path"` 23678 new_path="$unix_path" 23679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23681 new_path="$unix_path" 23682 fi 23683 23684 if test "x$path" != "x$new_path"; then 23685 BOOT_JDK="$new_path" 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23687 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23688 fi 23689 23690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23692 23693 else 23694 # We're on a posix platform. Hooray! :) 23695 path="$BOOT_JDK" 23696 has_space=`$ECHO "$path" | $GREP " "` 23697 if test "x$has_space" != x; then 23698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23701 fi 23702 23703 # Use eval to expand a potential ~ 23704 eval path="$path" 23705 if test ! -f "$path" && test ! -d "$path"; then 23706 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23707 fi 23708 23709 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23710 fi 23711 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23713 $as_echo_n "checking for Boot JDK... " >&6; } 23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23715 $as_echo "$BOOT_JDK" >&6; } 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23717 $as_echo_n "checking Boot JDK version... " >&6; } 23718 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23720 $as_echo "$BOOT_JDK_VERSION" >&6; } 23721 fi # end check jdk version 23722 fi # end check rt.jar 23723 fi # end check javac 23724 fi # end check java 23725 fi # end check boot jdk found 23726 fi 23727 23728 23729 if test "x$BOOT_JDK_FOUND" = xno; then 23730 # Now execute the test 23731 23732 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23733 BOOT_JDK_SUFFIX="/Contents/Home" 23734 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23735 if test "x$ALL_JDKS_FOUND" != x; then 23736 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23737 23738 if test "x$BOOT_JDK_FOUND" = xno; then 23739 # Now execute the test 23740 23741 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23742 if test -d "$BOOT_JDK"; then 23743 BOOT_JDK_FOUND=maybe 23744 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23745 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23746 fi 23747 23748 23749 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23750 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23751 # Do we have a bin/java? 23752 if test ! -x "$BOOT_JDK/bin/java"; then 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23754 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23755 BOOT_JDK_FOUND=no 23756 else 23757 # Do we have a bin/javac? 23758 if test ! -x "$BOOT_JDK/bin/javac"; then 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23761 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23762 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23763 BOOT_JDK_FOUND=no 23764 else 23765 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23766 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23767 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23768 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23769 BOOT_JDK_FOUND=no 23770 else 23771 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23772 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23773 23774 # Extra M4 quote needed to protect [] in grep expression. 23775 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23776 if test "x$FOUND_VERSION_78" = x; then 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23778 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23780 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23781 BOOT_JDK_FOUND=no 23782 else 23783 # We're done! :-) 23784 BOOT_JDK_FOUND=yes 23785 23786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23787 23788 # Input might be given as Windows format, start by converting to 23789 # unix format. 23790 path="$BOOT_JDK" 23791 new_path=`$CYGPATH -u "$path"` 23792 23793 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23794 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23795 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23796 # "foo.exe" is OK but "foo" is an error. 23797 # 23798 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23799 # It is also a way to make sure we got the proper file name for the real test later on. 23800 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23801 if test "x$test_shortpath" = x; then 23802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23803 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23804 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23805 fi 23806 23807 # Call helper function which possibly converts this using DOS-style short mode. 23808 # If so, the updated path is stored in $new_path. 23809 23810 input_path="$new_path" 23811 # Check if we need to convert this using DOS-style short mode. If the path 23812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23813 # take no chances and rewrite it. 23814 # Note: m4 eats our [], so we need to use [ and ] instead. 23815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23816 if test "x$has_forbidden_chars" != x; then 23817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23818 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23819 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23820 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23821 # Going to short mode and back again did indeed matter. Since short mode is 23822 # case insensitive, let's make it lowercase to improve readability. 23823 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23824 # Now convert it back to Unix-style (cygpath) 23825 input_path=`$CYGPATH -u "$shortmode_path"` 23826 new_path="$input_path" 23827 fi 23828 fi 23829 23830 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23831 if test "x$test_cygdrive_prefix" = x; then 23832 # As a simple fix, exclude /usr/bin since it's not a real path. 23833 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23834 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23835 # a path prefixed by /cygdrive for fixpath to work. 23836 new_path="$CYGWIN_ROOT_PATH$input_path" 23837 fi 23838 fi 23839 23840 23841 if test "x$path" != "x$new_path"; then 23842 BOOT_JDK="$new_path" 23843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23844 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23845 fi 23846 23847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23848 23849 path="$BOOT_JDK" 23850 has_colon=`$ECHO $path | $GREP ^.:` 23851 new_path="$path" 23852 if test "x$has_colon" = x; then 23853 # Not in mixed or Windows style, start by that. 23854 new_path=`cmd //c echo $path` 23855 fi 23856 23857 23858 input_path="$new_path" 23859 # Check if we need to convert this using DOS-style short mode. If the path 23860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23861 # take no chances and rewrite it. 23862 # Note: m4 eats our [], so we need to use [ and ] instead. 23863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23864 if test "x$has_forbidden_chars" != x; then 23865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23866 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23867 fi 23868 23869 23870 windows_path="$new_path" 23871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23872 unix_path=`$CYGPATH -u "$windows_path"` 23873 new_path="$unix_path" 23874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23876 new_path="$unix_path" 23877 fi 23878 23879 if test "x$path" != "x$new_path"; then 23880 BOOT_JDK="$new_path" 23881 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23882 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23883 fi 23884 23885 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23886 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23887 23888 else 23889 # We're on a posix platform. Hooray! :) 23890 path="$BOOT_JDK" 23891 has_space=`$ECHO "$path" | $GREP " "` 23892 if test "x$has_space" != x; then 23893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23894 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23895 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23896 fi 23897 23898 # Use eval to expand a potential ~ 23899 eval path="$path" 23900 if test ! -f "$path" && test ! -d "$path"; then 23901 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23902 fi 23903 23904 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23905 fi 23906 23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23908 $as_echo_n "checking for Boot JDK... " >&6; } 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23910 $as_echo "$BOOT_JDK" >&6; } 23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23912 $as_echo_n "checking Boot JDK version... " >&6; } 23913 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23915 $as_echo "$BOOT_JDK_VERSION" >&6; } 23916 fi # end check jdk version 23917 fi # end check rt.jar 23918 fi # end check javac 23919 fi # end check java 23920 fi # end check boot jdk found 23921 fi 23922 23923 done 23924 fi 23925 23926 23927 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23928 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23929 # Do we have a bin/java? 23930 if test ! -x "$BOOT_JDK/bin/java"; then 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23933 BOOT_JDK_FOUND=no 23934 else 23935 # Do we have a bin/javac? 23936 if test ! -x "$BOOT_JDK/bin/javac"; then 23937 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23938 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23940 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23941 BOOT_JDK_FOUND=no 23942 else 23943 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23944 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23947 BOOT_JDK_FOUND=no 23948 else 23949 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23950 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23951 23952 # Extra M4 quote needed to protect [] in grep expression. 23953 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23954 if test "x$FOUND_VERSION_78" = x; then 23955 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23956 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23957 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23958 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23959 BOOT_JDK_FOUND=no 23960 else 23961 # We're done! :-) 23962 BOOT_JDK_FOUND=yes 23963 23964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23965 23966 # Input might be given as Windows format, start by converting to 23967 # unix format. 23968 path="$BOOT_JDK" 23969 new_path=`$CYGPATH -u "$path"` 23970 23971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23974 # "foo.exe" is OK but "foo" is an error. 23975 # 23976 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23977 # It is also a way to make sure we got the proper file name for the real test later on. 23978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23979 if test "x$test_shortpath" = x; then 23980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23981 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23982 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23983 fi 23984 23985 # Call helper function which possibly converts this using DOS-style short mode. 23986 # If so, the updated path is stored in $new_path. 23987 23988 input_path="$new_path" 23989 # Check if we need to convert this using DOS-style short mode. If the path 23990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23991 # take no chances and rewrite it. 23992 # Note: m4 eats our [], so we need to use [ and ] instead. 23993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23994 if test "x$has_forbidden_chars" != x; then 23995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23999 # Going to short mode and back again did indeed matter. Since short mode is 24000 # case insensitive, let's make it lowercase to improve readability. 24001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24002 # Now convert it back to Unix-style (cygpath) 24003 input_path=`$CYGPATH -u "$shortmode_path"` 24004 new_path="$input_path" 24005 fi 24006 fi 24007 24008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24009 if test "x$test_cygdrive_prefix" = x; then 24010 # As a simple fix, exclude /usr/bin since it's not a real path. 24011 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24013 # a path prefixed by /cygdrive for fixpath to work. 24014 new_path="$CYGWIN_ROOT_PATH$input_path" 24015 fi 24016 fi 24017 24018 24019 if test "x$path" != "x$new_path"; then 24020 BOOT_JDK="$new_path" 24021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24022 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24023 fi 24024 24025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24026 24027 path="$BOOT_JDK" 24028 has_colon=`$ECHO $path | $GREP ^.:` 24029 new_path="$path" 24030 if test "x$has_colon" = x; then 24031 # Not in mixed or Windows style, start by that. 24032 new_path=`cmd //c echo $path` 24033 fi 24034 24035 24036 input_path="$new_path" 24037 # Check if we need to convert this using DOS-style short mode. If the path 24038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24039 # take no chances and rewrite it. 24040 # Note: m4 eats our [], so we need to use [ and ] instead. 24041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24042 if test "x$has_forbidden_chars" != x; then 24043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24045 fi 24046 24047 24048 windows_path="$new_path" 24049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24050 unix_path=`$CYGPATH -u "$windows_path"` 24051 new_path="$unix_path" 24052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24054 new_path="$unix_path" 24055 fi 24056 24057 if test "x$path" != "x$new_path"; then 24058 BOOT_JDK="$new_path" 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24060 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24061 fi 24062 24063 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24064 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24065 24066 else 24067 # We're on a posix platform. Hooray! :) 24068 path="$BOOT_JDK" 24069 has_space=`$ECHO "$path" | $GREP " "` 24070 if test "x$has_space" != x; then 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24072 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24073 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24074 fi 24075 24076 # Use eval to expand a potential ~ 24077 eval path="$path" 24078 if test ! -f "$path" && test ! -d "$path"; then 24079 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24080 fi 24081 24082 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24083 fi 24084 24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24086 $as_echo_n "checking for Boot JDK... " >&6; } 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24088 $as_echo "$BOOT_JDK" >&6; } 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24090 $as_echo_n "checking Boot JDK version... " >&6; } 24091 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24093 $as_echo "$BOOT_JDK_VERSION" >&6; } 24094 fi # end check jdk version 24095 fi # end check rt.jar 24096 fi # end check javac 24097 fi # end check java 24098 fi # end check boot jdk found 24099 fi 24100 24101 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24102 24103 if test "x$BOOT_JDK_FOUND" = xno; then 24104 # Now execute the test 24105 24106 BOOT_JDK_PREFIX="/usr/lib/jvm" 24107 BOOT_JDK_SUFFIX="" 24108 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24109 if test "x$ALL_JDKS_FOUND" != x; then 24110 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24111 24112 if test "x$BOOT_JDK_FOUND" = xno; then 24113 # Now execute the test 24114 24115 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24116 if test -d "$BOOT_JDK"; then 24117 BOOT_JDK_FOUND=maybe 24118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24119 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24120 fi 24121 24122 24123 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24124 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24125 # Do we have a bin/java? 24126 if test ! -x "$BOOT_JDK/bin/java"; then 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24129 BOOT_JDK_FOUND=no 24130 else 24131 # Do we have a bin/javac? 24132 if test ! -x "$BOOT_JDK/bin/javac"; then 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24136 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24137 BOOT_JDK_FOUND=no 24138 else 24139 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24140 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24143 BOOT_JDK_FOUND=no 24144 else 24145 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24146 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24147 24148 # Extra M4 quote needed to protect [] in grep expression. 24149 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24150 if test "x$FOUND_VERSION_78" = x; then 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24154 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24155 BOOT_JDK_FOUND=no 24156 else 24157 # We're done! :-) 24158 BOOT_JDK_FOUND=yes 24159 24160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24161 24162 # Input might be given as Windows format, start by converting to 24163 # unix format. 24164 path="$BOOT_JDK" 24165 new_path=`$CYGPATH -u "$path"` 24166 24167 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24168 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24169 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24170 # "foo.exe" is OK but "foo" is an error. 24171 # 24172 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24173 # It is also a way to make sure we got the proper file name for the real test later on. 24174 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24175 if test "x$test_shortpath" = x; then 24176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24178 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24179 fi 24180 24181 # Call helper function which possibly converts this using DOS-style short mode. 24182 # If so, the updated path is stored in $new_path. 24183 24184 input_path="$new_path" 24185 # Check if we need to convert this using DOS-style short mode. If the path 24186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24187 # take no chances and rewrite it. 24188 # Note: m4 eats our [], so we need to use [ and ] instead. 24189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24190 if test "x$has_forbidden_chars" != x; then 24191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24195 # Going to short mode and back again did indeed matter. Since short mode is 24196 # case insensitive, let's make it lowercase to improve readability. 24197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24198 # Now convert it back to Unix-style (cygpath) 24199 input_path=`$CYGPATH -u "$shortmode_path"` 24200 new_path="$input_path" 24201 fi 24202 fi 24203 24204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24205 if test "x$test_cygdrive_prefix" = x; then 24206 # As a simple fix, exclude /usr/bin since it's not a real path. 24207 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24209 # a path prefixed by /cygdrive for fixpath to work. 24210 new_path="$CYGWIN_ROOT_PATH$input_path" 24211 fi 24212 fi 24213 24214 24215 if test "x$path" != "x$new_path"; then 24216 BOOT_JDK="$new_path" 24217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24219 fi 24220 24221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24222 24223 path="$BOOT_JDK" 24224 has_colon=`$ECHO $path | $GREP ^.:` 24225 new_path="$path" 24226 if test "x$has_colon" = x; then 24227 # Not in mixed or Windows style, start by that. 24228 new_path=`cmd //c echo $path` 24229 fi 24230 24231 24232 input_path="$new_path" 24233 # Check if we need to convert this using DOS-style short mode. If the path 24234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24235 # take no chances and rewrite it. 24236 # Note: m4 eats our [], so we need to use [ and ] instead. 24237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24238 if test "x$has_forbidden_chars" != x; then 24239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24241 fi 24242 24243 24244 windows_path="$new_path" 24245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24246 unix_path=`$CYGPATH -u "$windows_path"` 24247 new_path="$unix_path" 24248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24250 new_path="$unix_path" 24251 fi 24252 24253 if test "x$path" != "x$new_path"; then 24254 BOOT_JDK="$new_path" 24255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24257 fi 24258 24259 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24260 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24261 24262 else 24263 # We're on a posix platform. Hooray! :) 24264 path="$BOOT_JDK" 24265 has_space=`$ECHO "$path" | $GREP " "` 24266 if test "x$has_space" != x; then 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24269 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24270 fi 24271 24272 # Use eval to expand a potential ~ 24273 eval path="$path" 24274 if test ! -f "$path" && test ! -d "$path"; then 24275 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24276 fi 24277 24278 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24279 fi 24280 24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24282 $as_echo_n "checking for Boot JDK... " >&6; } 24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24284 $as_echo "$BOOT_JDK" >&6; } 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24286 $as_echo_n "checking Boot JDK version... " >&6; } 24287 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24289 $as_echo "$BOOT_JDK_VERSION" >&6; } 24290 fi # end check jdk version 24291 fi # end check rt.jar 24292 fi # end check javac 24293 fi # end check java 24294 fi # end check boot jdk found 24295 fi 24296 24297 done 24298 fi 24299 24300 24301 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24302 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24303 # Do we have a bin/java? 24304 if test ! -x "$BOOT_JDK/bin/java"; then 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24307 BOOT_JDK_FOUND=no 24308 else 24309 # Do we have a bin/javac? 24310 if test ! -x "$BOOT_JDK/bin/javac"; then 24311 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24312 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24314 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24315 BOOT_JDK_FOUND=no 24316 else 24317 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24318 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24319 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24320 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24321 BOOT_JDK_FOUND=no 24322 else 24323 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24324 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24325 24326 # Extra M4 quote needed to protect [] in grep expression. 24327 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24328 if test "x$FOUND_VERSION_78" = x; then 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24330 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24332 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24333 BOOT_JDK_FOUND=no 24334 else 24335 # We're done! :-) 24336 BOOT_JDK_FOUND=yes 24337 24338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24339 24340 # Input might be given as Windows format, start by converting to 24341 # unix format. 24342 path="$BOOT_JDK" 24343 new_path=`$CYGPATH -u "$path"` 24344 24345 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24346 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24347 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24348 # "foo.exe" is OK but "foo" is an error. 24349 # 24350 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24351 # It is also a way to make sure we got the proper file name for the real test later on. 24352 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24353 if test "x$test_shortpath" = x; then 24354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24355 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24356 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24357 fi 24358 24359 # Call helper function which possibly converts this using DOS-style short mode. 24360 # If so, the updated path is stored in $new_path. 24361 24362 input_path="$new_path" 24363 # Check if we need to convert this using DOS-style short mode. If the path 24364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24365 # take no chances and rewrite it. 24366 # Note: m4 eats our [], so we need to use [ and ] instead. 24367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24368 if test "x$has_forbidden_chars" != x; then 24369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24373 # Going to short mode and back again did indeed matter. Since short mode is 24374 # case insensitive, let's make it lowercase to improve readability. 24375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24376 # Now convert it back to Unix-style (cygpath) 24377 input_path=`$CYGPATH -u "$shortmode_path"` 24378 new_path="$input_path" 24379 fi 24380 fi 24381 24382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24383 if test "x$test_cygdrive_prefix" = x; then 24384 # As a simple fix, exclude /usr/bin since it's not a real path. 24385 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24387 # a path prefixed by /cygdrive for fixpath to work. 24388 new_path="$CYGWIN_ROOT_PATH$input_path" 24389 fi 24390 fi 24391 24392 24393 if test "x$path" != "x$new_path"; then 24394 BOOT_JDK="$new_path" 24395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24397 fi 24398 24399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24400 24401 path="$BOOT_JDK" 24402 has_colon=`$ECHO $path | $GREP ^.:` 24403 new_path="$path" 24404 if test "x$has_colon" = x; then 24405 # Not in mixed or Windows style, start by that. 24406 new_path=`cmd //c echo $path` 24407 fi 24408 24409 24410 input_path="$new_path" 24411 # Check if we need to convert this using DOS-style short mode. If the path 24412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24413 # take no chances and rewrite it. 24414 # Note: m4 eats our [], so we need to use [ and ] instead. 24415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24416 if test "x$has_forbidden_chars" != x; then 24417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24418 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24419 fi 24420 24421 24422 windows_path="$new_path" 24423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24424 unix_path=`$CYGPATH -u "$windows_path"` 24425 new_path="$unix_path" 24426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24428 new_path="$unix_path" 24429 fi 24430 24431 if test "x$path" != "x$new_path"; then 24432 BOOT_JDK="$new_path" 24433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24434 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24435 fi 24436 24437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24439 24440 else 24441 # We're on a posix platform. Hooray! :) 24442 path="$BOOT_JDK" 24443 has_space=`$ECHO "$path" | $GREP " "` 24444 if test "x$has_space" != x; then 24445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24446 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24447 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24448 fi 24449 24450 # Use eval to expand a potential ~ 24451 eval path="$path" 24452 if test ! -f "$path" && test ! -d "$path"; then 24453 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24454 fi 24455 24456 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24457 fi 24458 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24460 $as_echo_n "checking for Boot JDK... " >&6; } 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24462 $as_echo "$BOOT_JDK" >&6; } 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24464 $as_echo_n "checking Boot JDK version... " >&6; } 24465 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24467 $as_echo "$BOOT_JDK_VERSION" >&6; } 24468 fi # end check jdk version 24469 fi # end check rt.jar 24470 fi # end check javac 24471 fi # end check java 24472 fi # end check boot jdk found 24473 fi 24474 24475 fi 24476 24477 24478 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24479 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24480 # Do we have a bin/java? 24481 if test ! -x "$BOOT_JDK/bin/java"; then 24482 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24483 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24484 BOOT_JDK_FOUND=no 24485 else 24486 # Do we have a bin/javac? 24487 if test ! -x "$BOOT_JDK/bin/javac"; then 24488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24490 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24491 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24492 BOOT_JDK_FOUND=no 24493 else 24494 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24495 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24498 BOOT_JDK_FOUND=no 24499 else 24500 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24501 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24502 24503 # Extra M4 quote needed to protect [] in grep expression. 24504 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24505 if test "x$FOUND_VERSION_78" = x; then 24506 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24507 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24508 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24509 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24510 BOOT_JDK_FOUND=no 24511 else 24512 # We're done! :-) 24513 BOOT_JDK_FOUND=yes 24514 24515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24516 24517 # Input might be given as Windows format, start by converting to 24518 # unix format. 24519 path="$BOOT_JDK" 24520 new_path=`$CYGPATH -u "$path"` 24521 24522 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24523 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24524 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24525 # "foo.exe" is OK but "foo" is an error. 24526 # 24527 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24528 # It is also a way to make sure we got the proper file name for the real test later on. 24529 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24530 if test "x$test_shortpath" = x; then 24531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24532 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24533 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24534 fi 24535 24536 # Call helper function which possibly converts this using DOS-style short mode. 24537 # If so, the updated path is stored in $new_path. 24538 24539 input_path="$new_path" 24540 # Check if we need to convert this using DOS-style short mode. If the path 24541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24542 # take no chances and rewrite it. 24543 # Note: m4 eats our [], so we need to use [ and ] instead. 24544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24545 if test "x$has_forbidden_chars" != x; then 24546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24547 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24548 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24549 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24550 # Going to short mode and back again did indeed matter. Since short mode is 24551 # case insensitive, let's make it lowercase to improve readability. 24552 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24553 # Now convert it back to Unix-style (cygpath) 24554 input_path=`$CYGPATH -u "$shortmode_path"` 24555 new_path="$input_path" 24556 fi 24557 fi 24558 24559 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24560 if test "x$test_cygdrive_prefix" = x; then 24561 # As a simple fix, exclude /usr/bin since it's not a real path. 24562 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24563 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24564 # a path prefixed by /cygdrive for fixpath to work. 24565 new_path="$CYGWIN_ROOT_PATH$input_path" 24566 fi 24567 fi 24568 24569 24570 if test "x$path" != "x$new_path"; then 24571 BOOT_JDK="$new_path" 24572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24573 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24574 fi 24575 24576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24577 24578 path="$BOOT_JDK" 24579 has_colon=`$ECHO $path | $GREP ^.:` 24580 new_path="$path" 24581 if test "x$has_colon" = x; then 24582 # Not in mixed or Windows style, start by that. 24583 new_path=`cmd //c echo $path` 24584 fi 24585 24586 24587 input_path="$new_path" 24588 # Check if we need to convert this using DOS-style short mode. If the path 24589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24590 # take no chances and rewrite it. 24591 # Note: m4 eats our [], so we need to use [ and ] instead. 24592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24593 if test "x$has_forbidden_chars" != x; then 24594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24595 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24596 fi 24597 24598 24599 windows_path="$new_path" 24600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24601 unix_path=`$CYGPATH -u "$windows_path"` 24602 new_path="$unix_path" 24603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24605 new_path="$unix_path" 24606 fi 24607 24608 if test "x$path" != "x$new_path"; then 24609 BOOT_JDK="$new_path" 24610 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24611 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24612 fi 24613 24614 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24615 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24616 24617 else 24618 # We're on a posix platform. Hooray! :) 24619 path="$BOOT_JDK" 24620 has_space=`$ECHO "$path" | $GREP " "` 24621 if test "x$has_space" != x; then 24622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24623 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24624 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24625 fi 24626 24627 # Use eval to expand a potential ~ 24628 eval path="$path" 24629 if test ! -f "$path" && test ! -d "$path"; then 24630 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24631 fi 24632 24633 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24634 fi 24635 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24637 $as_echo_n "checking for Boot JDK... " >&6; } 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24639 $as_echo "$BOOT_JDK" >&6; } 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24641 $as_echo_n "checking Boot JDK version... " >&6; } 24642 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24644 $as_echo "$BOOT_JDK_VERSION" >&6; } 24645 fi # end check jdk version 24646 fi # end check rt.jar 24647 fi # end check javac 24648 fi # end check java 24649 fi # end check boot jdk found 24650 fi 24651 24652 24653 # If we haven't found anything yet, we've truly lost. Give up. 24654 if test "x$BOOT_JDK_FOUND" = xno; then 24655 24656 # Print a helpful message on how to acquire the necessary build dependency. 24657 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24658 MISSING_DEPENDENCY=openjdk 24659 24660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24661 cygwin_help $MISSING_DEPENDENCY 24662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24663 msys_help $MISSING_DEPENDENCY 24664 else 24665 PKGHANDLER_COMMAND= 24666 24667 case $PKGHANDLER in 24668 apt-get) 24669 apt_help $MISSING_DEPENDENCY ;; 24670 yum) 24671 yum_help $MISSING_DEPENDENCY ;; 24672 port) 24673 port_help $MISSING_DEPENDENCY ;; 24674 pkgutil) 24675 pkgutil_help $MISSING_DEPENDENCY ;; 24676 pkgadd) 24677 pkgadd_help $MISSING_DEPENDENCY ;; 24678 esac 24679 24680 if test "x$PKGHANDLER_COMMAND" != x; then 24681 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24682 fi 24683 fi 24684 24685 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24686 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24687 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24688 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24689 as_fn_error $? "Cannot continue" "$LINENO" 5 24690 fi 24691 24692 # Setup proper paths for what we found 24693 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24694 if test ! -f "$BOOT_RTJAR"; then 24695 # On MacOSX it is called classes.jar 24696 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24697 if test -f "$BOOT_RTJAR"; then 24698 # Remove the .. 24699 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24700 fi 24701 fi 24702 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24703 BOOT_JDK="$BOOT_JDK" 24704 24705 24706 24707 24708 # Setup tools from the Boot JDK. 24709 24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24711 $as_echo_n "checking for java in Boot JDK... " >&6; } 24712 JAVA=$BOOT_JDK/bin/java 24713 if test ! -x $JAVA; then 24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24715 $as_echo "not found" >&6; } 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24717 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24718 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24719 fi 24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24721 $as_echo "ok" >&6; } 24722 24723 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24725 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24726 JAVAC=$BOOT_JDK/bin/javac 24727 if test ! -x $JAVAC; then 24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24729 $as_echo "not found" >&6; } 24730 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24731 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24732 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24733 fi 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24735 $as_echo "ok" >&6; } 24736 24737 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24739 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24740 JAVAH=$BOOT_JDK/bin/javah 24741 if test ! -x $JAVAH; then 24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24743 $as_echo "not found" >&6; } 24744 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24745 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24746 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24747 fi 24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24749 $as_echo "ok" >&6; } 24750 24751 24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24753 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24754 JAVAP=$BOOT_JDK/bin/javap 24755 if test ! -x $JAVAP; then 24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24757 $as_echo "not found" >&6; } 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24759 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24760 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24761 fi 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24763 $as_echo "ok" >&6; } 24764 24765 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24767 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24768 JAR=$BOOT_JDK/bin/jar 24769 if test ! -x $JAR; then 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24771 $as_echo "not found" >&6; } 24772 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24773 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24774 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24775 fi 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24777 $as_echo "ok" >&6; } 24778 24779 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24781 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24782 RMIC=$BOOT_JDK/bin/rmic 24783 if test ! -x $RMIC; then 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24785 $as_echo "not found" >&6; } 24786 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24787 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24788 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24789 fi 24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24791 $as_echo "ok" >&6; } 24792 24793 24794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24795 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24796 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24797 if test ! -x $NATIVE2ASCII; then 24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24799 $as_echo "not found" >&6; } 24800 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24801 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24802 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24803 fi 24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24805 $as_echo "ok" >&6; } 24806 24807 24808 # Finally, set some other options... 24809 24810 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24811 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24812 24813 24814 24815 # Check if the boot jdk is 32 or 64 bit 24816 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24817 BOOT_JDK_BITS="64" 24818 else 24819 BOOT_JDK_BITS="32" 24820 fi 24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24822 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24824 $as_echo "$BOOT_JDK_BITS" >&6; } 24825 24826 24827 24828 ############################################################################## 24829 # 24830 # Specify options for anything that is run with the Boot JDK. 24831 # 24832 24833 # Check whether --with-boot-jdk-jvmargs was given. 24834 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24835 withval=$with_boot_jdk_jvmargs; 24836 fi 24837 24838 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24840 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24841 24842 # Disable special log output when a debug build is used as Boot JDK... 24843 24844 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >