1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 INCLUDE_GRAAL
 666 ELF_LIBS
 667 ELF_CFLAGS
 668 STLPORT_LIB
 669 LIBZIP_CAN_USE_MMAP
 670 LIBDL
 671 LIBM
 672 USE_EXTERNAL_LCMS
 673 LCMS_LIBS
 674 LCMS_CFLAGS
 675 USE_EXTERNAL_LIBZ
 676 USE_EXTERNAL_LIBPNG
 677 PNG_LIBS
 678 PNG_CFLAGS
 679 USE_EXTERNAL_LIBGIF
 680 USE_EXTERNAL_LIBJPEG
 681 LLVM_LIBS
 682 LLVM_LDFLAGS
 683 LLVM_CFLAGS
 684 LLVM_CONFIG
 685 LIBFFI_LIB_FILE
 686 ENABLE_LIBFFI_BUNDLING
 687 LIBFFI_LIBS
 688 LIBFFI_CFLAGS
 689 ALSA_LIBS
 690 ALSA_CFLAGS
 691 FREETYPE_BUNDLE_LIB_PATH
 692 FREETYPE_LIBS
 693 FREETYPE_CFLAGS
 694 CUPS_CFLAGS
 695 X_EXTRA_LIBS
 696 X_LIBS
 697 X_PRE_LIBS
 698 X_CFLAGS
 699 XMKMF
 700 MSVCP_DLL
 701 MSVCR_DLL
 702 LIBCXX
 703 FIXPATH_DETACH_FLAG
 704 FIXPATH
 705 BUILD_GTEST
 706 ENABLE_AOT
 707 INCLUDE_DTRACE
 708 GCOV_ENABLED
 709 ZIP_EXTERNAL_DEBUG_SYMBOLS
 710 COPY_DEBUG_SYMBOLS
 711 COMPILE_WITH_DEBUG_SYMBOLS
 712 CFLAGS_WARNINGS_ARE_ERRORS
 713 BUILD_CC_DISABLE_WARNING_PREFIX
 714 DISABLE_WARNING_PREFIX
 715 HOTSPOT_SET_WARNINGS_AS_ERRORS
 716 WARNINGS_AS_ERRORS
 717 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 718 ZERO_ARCHFLAG
 719 LDFLAGS_TESTEXE
 720 LDFLAGS_TESTLIB
 721 CXXFLAGS_TESTEXE
 722 CXXFLAGS_TESTLIB
 723 CFLAGS_TESTEXE
 724 CFLAGS_TESTLIB
 725 OPENJDK_BUILD_JVM_LIBS
 726 OPENJDK_BUILD_JVM_ASFLAGS
 727 OPENJDK_BUILD_JVM_LDFLAGS
 728 OPENJDK_BUILD_JVM_CFLAGS
 729 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 730 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 731 OPENJDK_BUILD_JDKEXE_LIBS
 732 OPENJDK_BUILD_JDKLIB_LIBS
 733 OPENJDK_BUILD_LDFLAGS_JDKEXE
 734 OPENJDK_BUILD_LDFLAGS_JDKLIB
 735 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 736 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 737 OPENJDK_BUILD_CFLAGS_JDKEXE
 738 OPENJDK_BUILD_CFLAGS_JDKLIB
 739 OPENJDK_BUILD_CXXSTD_CXXFLAG
 740 JVM_LIBS
 741 JVM_ASFLAGS
 742 JVM_LDFLAGS
 743 JVM_CFLAGS
 744 LDFLAGS_HASH_STYLE
 745 LDFLAGS_CXX_JDK
 746 JDKEXE_LIBS
 747 JDKLIB_LIBS
 748 LDFLAGS_JDKEXE
 749 LDFLAGS_JDKLIB
 750 CXXFLAGS_JDKEXE
 751 CXXFLAGS_JDKLIB
 752 CFLAGS_JDKEXE
 753 CFLAGS_JDKLIB
 754 MACOSX_VERSION_MIN
 755 CXXSTD_CXXFLAG
 756 JDK_ARCH_ABI_PROP_NAME
 757 CXX_O_FLAG_SIZE
 758 CXX_O_FLAG_NONE
 759 CXX_O_FLAG_DEBUG
 760 CXX_O_FLAG_NORM
 761 CXX_O_FLAG_HI
 762 CXX_O_FLAG_HIGHEST
 763 CXX_O_FLAG_HIGHEST_JVM
 764 C_O_FLAG_SIZE
 765 C_O_FLAG_NONE
 766 C_O_FLAG_DEBUG
 767 C_O_FLAG_NORM
 768 C_O_FLAG_HI
 769 C_O_FLAG_HIGHEST
 770 C_O_FLAG_HIGHEST_JVM
 771 JVM_CFLAGS_SYMBOLS
 772 CXXFLAGS_DEBUG_SYMBOLS
 773 CFLAGS_DEBUG_SYMBOLS
 774 CXX_FLAG_DEPS
 775 C_FLAG_DEPS
 776 SHARED_LIBRARY_FLAGS
 777 SET_SHARED_LIBRARY_MAPFILE
 778 SET_SHARED_LIBRARY_NAME
 779 SET_SHARED_LIBRARY_ORIGIN
 780 SET_EXECUTABLE_ORIGIN
 781 CXX_FLAG_REORDER
 782 C_FLAG_REORDER
 783 JVM_RCFLAGS
 784 RC_FLAGS
 785 AR_OUT_OPTION
 786 LD_OUT_OPTION
 787 EXE_OUT_OPTION
 788 CC_OUT_OPTION
 789 STRIPFLAGS
 790 ARFLAGS
 791 COMPILER_BINDCMD_FILE_FLAG
 792 COMPILER_COMMAND_FILE_FLAG
 793 COMPILER_TARGET_BITS_FLAG
 794 JT_HOME
 795 JTREGEXE
 796 HOTSPOT_TOOLCHAIN_TYPE
 797 USING_BROKEN_SUSE_LD
 798 PACKAGE_PATH
 799 BUILD_AS
 800 BUILD_LDCXX
 801 BUILD_LD
 802 BUILD_STRIP
 803 BUILD_OBJCOPY
 804 BUILD_AR
 805 BUILD_NM
 806 BUILD_CXX
 807 BUILD_CC
 808 BUILD_SYSROOT_LDFLAGS
 809 BUILD_SYSROOT_CFLAGS
 810 ac_ct_OBJDUMP
 811 OBJDUMP
 812 ac_ct_OBJCOPY
 813 OBJCOPY
 814 ac_ct_NM
 815 ac_ct_STRIP
 816 GNM
 817 NM
 818 STRIP
 819 MSBUILD
 820 DUMPBIN
 821 RC
 822 MT
 823 LIPO
 824 ac_ct_AR
 825 AR
 826 AS
 827 LDCXX
 828 LD
 829 CXXCPP
 830 CPP
 831 CXX_VERSION_NUMBER
 832 CC_VERSION_NUMBER
 833 ac_ct_CXX
 834 CXXFLAGS
 835 CXX
 836 TOOLCHAIN_PATH_CXX
 837 POTENTIAL_CXX
 838 OBJEXT
 839 EXEEXT
 840 ac_ct_CC
 841 CPPFLAGS
 842 LDFLAGS
 843 CFLAGS
 844 CC
 845 TOOLCHAIN_PATH_CC
 846 POTENTIAL_CC
 847 TOOLCHAIN_VERSION
 848 VS_LIB
 849 VS_INCLUDE
 850 VS_PATH
 851 CYGWIN_LINK
 852 SYSROOT_LDFLAGS
 853 SYSROOT_CFLAGS
 854 EXTRA_LDFLAGS
 855 EXTRA_CXXFLAGS
 856 EXTRA_CFLAGS
 857 EXE_SUFFIX
 858 OBJ_SUFFIX
 859 STATIC_LIBRARY
 860 SHARED_LIBRARY
 861 STATIC_LIBRARY_SUFFIX
 862 SHARED_LIBRARY_SUFFIX
 863 LIBRARY_PREFIX
 864 TOOLCHAIN_TYPE
 865 STATIC_BUILD
 866 IMPORT_MODULES_MAKE
 867 IMPORT_MODULES_SRC
 868 IMPORT_MODULES_MAN
 869 IMPORT_MODULES_LEGAL
 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 BUILD_OUTPUT
 875 JDK_TOPDIR
 876 NASHORN_TOPDIR
 877 HOTSPOT_TOPDIR
 878 JAXWS_TOPDIR
 879 JAXP_TOPDIR
 880 CORBA_TOPDIR
 881 LANGTOOLS_TOPDIR
 882 EXTERNAL_BUILDJDK
 883 BUILD_JDK
 884 CREATE_BUILDJDK
 885 JLINK
 886 JMOD
 887 BOOT_JDK_BITS
 888 JAVAC_FLAGS
 889 BOOT_JDK_MODULAR
 890 BOOT_JDK_SOURCETARGET
 891 JARSIGNER
 892 JAR
 893 JAVAH
 894 JAVAC
 895 JAVA
 896 BOOT_JDK
 897 JAVA_CHECK
 898 JAVAC_CHECK
 899 VERSION_IS_GA
 900 VERSION_SHORT
 901 VERSION_STRING
 902 VERSION_NUMBER_FOUR_POSITIONS
 903 VERSION_NUMBER
 904 VERSION_OPT
 905 VERSION_BUILD
 906 VERSION_PRE
 907 VERSION_PATCH
 908 VERSION_SECURITY
 909 VERSION_MINOR
 910 VERSION_MAJOR
 911 MACOSX_BUNDLE_ID_BASE
 912 MACOSX_BUNDLE_NAME_BASE
 913 HOTSPOT_VM_DISTRO
 914 COMPANY_NAME
 915 JDK_RC_PLATFORM_NAME
 916 PRODUCT_SUFFIX
 917 PRODUCT_NAME
 918 LAUNCHER_NAME
 919 JLINK_KEEP_PACKAGED_MODULES
 920 COPYRIGHT_YEAR
 921 COMPRESS_JARS
 922 INCLUDE_SA
 923 UNLIMITED_CRYPTO
 924 CACERTS_FILE
 925 ENABLE_HEADLESS_ONLY
 926 DEFAULT_MAKE_TARGET
 927 OS_VERSION_MICRO
 928 OS_VERSION_MINOR
 929 OS_VERSION_MAJOR
 930 PKG_CONFIG
 931 BASH_ARGS
 932 SETFILE
 933 CODESIGN
 934 XATTR
 935 DSYMUTIL
 936 IS_GNU_TIME
 937 PATCH
 938 DTRACE
 939 TIME
 940 STAT
 941 HG
 942 READELF
 943 OTOOL
 944 LDD
 945 ZIPEXE
 946 UNZIP
 947 TAR_SUPPORTS_TRANSFORM
 948 TAR_INCLUDE_PARAM
 949 TAR_CREATE_EXTRA_PARAM
 950 TAR_TYPE
 951 FIND_DELETE
 952 OUTPUT_SYNC
 953 OUTPUT_SYNC_SUPPORTED
 954 CHECK_TOOLSDIR_MAKE
 955 CHECK_TOOLSDIR_GMAKE
 956 CHECK_MAKE
 957 CHECK_GMAKE
 958 MAKE
 959 PKGHANDLER
 960 CONFIGURESUPPORT_OUTPUTDIR
 961 OUTPUT_ROOT
 962 CONF_NAME
 963 SPEC
 964 SDKROOT
 965 XCODEBUILD
 966 JVM_VARIANT_MAIN
 967 VALID_JVM_VARIANTS
 968 JVM_VARIANTS
 969 DEBUG_LEVEL
 970 HOTSPOT_DEBUG_LEVEL
 971 JDK_VARIANT
 972 USERNAME
 973 CANONICAL_TOPDIR
 974 ORIGINAL_TOPDIR
 975 TOPDIR
 976 PATH_SEP
 977 ZERO_ARCHDEF
 978 HOTSPOT_BUILD_CPU_DEFINE
 979 HOTSPOT_BUILD_CPU_ARCH
 980 HOTSPOT_BUILD_CPU
 981 HOTSPOT_BUILD_OS_TYPE
 982 HOTSPOT_BUILD_OS
 983 OPENJDK_BUILD_BUNDLE_PLATFORM
 984 OPENJDK_BUILD_CPU_BUNDLE
 985 OPENJDK_BUILD_OS_BUNDLE
 986 OPENJDK_BUILD_OS_EXPORT_DIR
 987 OPENJDK_BUILD_CPU_OSARCH
 988 OPENJDK_BUILD_CPU_ISADIR
 989 OPENJDK_BUILD_CPU_LEGACY_LIB
 990 OPENJDK_BUILD_CPU_LEGACY
 991 HOTSPOT_TARGET_CPU_DEFINE
 992 HOTSPOT_TARGET_CPU_ARCH
 993 HOTSPOT_TARGET_CPU
 994 HOTSPOT_TARGET_OS_TYPE
 995 HOTSPOT_TARGET_OS
 996 DEFINE_CROSS_COMPILE_ARCH
 997 LP64
 998 OPENJDK_TARGET_BUNDLE_PLATFORM
 999 OPENJDK_TARGET_CPU_BUNDLE
1000 OPENJDK_TARGET_OS_BUNDLE
1001 OPENJDK_TARGET_OS_EXPORT_DIR
1002 OPENJDK_TARGET_CPU_OSARCH
1003 OPENJDK_TARGET_CPU_ISADIR
1004 OPENJDK_TARGET_CPU_LEGACY_LIB
1005 OPENJDK_TARGET_CPU_LEGACY
1006 REQUIRED_OS_VERSION
1007 REQUIRED_OS_NAME
1008 COMPILE_TYPE
1009 OPENJDK_TARGET_CPU_ENDIAN
1010 OPENJDK_TARGET_CPU_BITS
1011 OPENJDK_TARGET_CPU_ARCH
1012 OPENJDK_TARGET_CPU
1013 OPENJDK_TARGET_OS_ENV
1014 OPENJDK_TARGET_OS_TYPE
1015 OPENJDK_TARGET_OS
1016 OPENJDK_BUILD_CPU_ENDIAN
1017 OPENJDK_BUILD_CPU_BITS
1018 OPENJDK_BUILD_CPU_ARCH
1019 OPENJDK_BUILD_CPU
1020 OPENJDK_BUILD_OS_ENV
1021 OPENJDK_BUILD_OS_TYPE
1022 OPENJDK_BUILD_OS
1023 OPENJDK_BUILD_AUTOCONF_NAME
1024 OPENJDK_TARGET_AUTOCONF_NAME
1025 target_os
1026 target_vendor
1027 target_cpu
1028 target
1029 host_os
1030 host_vendor
1031 host_cpu
1032 host
1033 build_os
1034 build_vendor
1035 build_cpu
1036 build
1037 NICE
1038 CPIO
1039 DF
1040 READLINK
1041 CYGPATH
1042 SED
1043 FGREP
1044 EGREP
1045 GREP
1046 AWK
1047 XARGS
1048 WHICH
1049 WC
1050 UNIQ
1051 UNAME
1052 TR
1053 TOUCH
1054 TEE
1055 TAR
1056 TAIL
1057 SORT
1058 SH
1059 RMDIR
1060 RM
1061 PRINTF
1062 NAWK
1063 MV
1064 MKTEMP
1065 MKDIR
1066 LS
1067 LN
1068 GZIP
1069 GUNZIP
1070 HEAD
1071 FIND
1072 FILE
1073 EXPR
1074 ECHO
1075 DIRNAME
1076 DIFF
1077 DATE
1078 CUT
1079 CP
1080 COMM
1081 CMP
1082 CHMOD
1083 CAT
1084 BASH
1085 BASENAME
1086 DATE_WHEN_CONFIGURED
1087 ORIGINAL_PATH
1088 CONFIGURE_COMMAND_LINE
1089 target_alias
1090 host_alias
1091 build_alias
1092 LIBS
1093 ECHO_T
1094 ECHO_N
1095 ECHO_C
1096 DEFS
1097 mandir
1098 localedir
1099 libdir
1100 psdir
1101 pdfdir
1102 dvidir
1103 htmldir
1104 infodir
1105 docdir
1106 oldincludedir
1107 includedir
1108 localstatedir
1109 sharedstatedir
1110 sysconfdir
1111 datadir
1112 datarootdir
1113 libexecdir
1114 sbindir
1115 bindir
1116 program_transform_name
1117 prefix
1118 exec_prefix
1119 PACKAGE_URL
1120 PACKAGE_BUGREPORT
1121 PACKAGE_STRING
1122 PACKAGE_VERSION
1123 PACKAGE_TARNAME
1124 PACKAGE_NAME
1125 PATH_SEPARATOR
1126 SHELL'
1127 ac_subst_files=''
1128 ac_user_opts='
1129 enable_option_checking
1130 with_target_bits
1131 enable_openjdk_only
1132 with_custom_make_dir
1133 with_jdk_variant
1134 enable_debug
1135 with_debug_level
1136 with_jvm_variants
1137 with_cpu_port
1138 with_devkit
1139 with_sys_root
1140 with_sysroot
1141 with_tools_dir
1142 with_toolchain_path
1143 with_extra_path
1144 with_sdk_name
1145 with_conf_name
1146 with_output_sync
1147 with_default_make_target
1148 enable_headless_only
1149 with_cacerts_file
1150 enable_unlimited_crypto
1151 with_copyright_year
1152 enable_keep_packaged_modules
1153 with_milestone
1154 with_update_version
1155 with_user_release_suffix
1156 with_build_number
1157 with_version_string
1158 with_version_pre
1159 with_version_opt
1160 with_version_build
1161 with_version_major
1162 with_version_minor
1163 with_version_security
1164 with_version_patch
1165 with_boot_jdk
1166 with_build_jdk
1167 with_add_source_root
1168 with_override_source_root
1169 with_adds_and_overrides
1170 with_override_langtools
1171 with_override_corba
1172 with_override_jaxp
1173 with_override_jaxws
1174 with_override_hotspot
1175 with_override_nashorn
1176 with_override_jdk
1177 with_import_hotspot
1178 with_import_modules
1179 enable_static_build
1180 with_toolchain_type
1181 with_extra_cflags
1182 with_extra_cxxflags
1183 with_extra_ldflags
1184 with_toolchain_version
1185 with_build_devkit
1186 with_jtreg
1187 with_abi_profile
1188 enable_warnings_as_errors
1189 with_native_debug_symbols
1190 enable_debug_symbols
1191 enable_zip_debug_info
1192 enable_native_coverage
1193 enable_dtrace
1194 enable_aot
1195 enable_hotspot_gtest
1196 with_stdc__lib
1197 with_msvcr_dll
1198 with_msvcp_dll
1199 with_x
1200 with_cups
1201 with_cups_include
1202 with_freetype
1203 with_freetype_include
1204 with_freetype_lib
1205 with_freetype_src
1206 enable_freetype_bundling
1207 with_alsa
1208 with_alsa_include
1209 with_alsa_lib
1210 with_libffi
1211 with_libffi_include
1212 with_libffi_lib
1213 enable_libffi_bundling
1214 with_libjpeg
1215 with_giflib
1216 with_libpng
1217 with_zlib
1218 with_lcms
1219 with_dxsdk
1220 with_dxsdk_lib
1221 with_dxsdk_include
1222 with_libelf
1223 with_libelf_include
1224 with_libelf_lib
1225 with_jvm_features
1226 with_jvm_interpreter
1227 enable_jtreg_failure_handler
1228 enable_generate_classlist
1229 with_num_cores
1230 with_memory_size
1231 with_jobs
1232 with_test_jobs
1233 with_boot_jdk_jvmargs
1234 with_sjavac_server_java
1235 enable_sjavac
1236 enable_javac_server
1237 enable_icecc
1238 enable_precompiled_headers
1239 enable_ccache
1240 with_ccache_dir
1241 '
1242       ac_precious_vars='build_alias
1243 host_alias
1244 target_alias
1245 BASENAME
1246 BASH
1247 CAT
1248 CHMOD
1249 CMP
1250 COMM
1251 CP
1252 CUT
1253 DATE
1254 DIFF
1255 DIRNAME
1256 ECHO
1257 EXPR
1258 FILE
1259 FIND
1260 HEAD
1261 GUNZIP
1262 GZIP
1263 LN
1264 LS
1265 MKDIR
1266 MKTEMP
1267 MV
1268 NAWK
1269 PRINTF
1270 RM
1271 RMDIR
1272 SH
1273 SORT
1274 TAIL
1275 TAR
1276 TEE
1277 TOUCH
1278 TR
1279 UNAME
1280 UNIQ
1281 WC
1282 WHICH
1283 XARGS
1284 AWK
1285 GREP
1286 EGREP
1287 FGREP
1288 SED
1289 CYGPATH
1290 READLINK
1291 DF
1292 CPIO
1293 NICE
1294 MAKE
1295 UNZIP
1296 ZIPEXE
1297 LDD
1298 OTOOL
1299 READELF
1300 HG
1301 STAT
1302 TIME
1303 DTRACE
1304 PATCH
1305 DSYMUTIL
1306 XATTR
1307 CODESIGN
1308 SETFILE
1309 PKG_CONFIG
1310 JAVA
1311 JAVAC
1312 JAVAH
1313 JAR
1314 JARSIGNER
1315 CC
1316 CFLAGS
1317 LDFLAGS
1318 LIBS
1319 CPPFLAGS
1320 CXX
1321 CXXFLAGS
1322 CCC
1323 CPP
1324 CXXCPP
1325 AS
1326 AR
1327 LIPO
1328 STRIP
1329 NM
1330 GNM
1331 OBJCOPY
1332 OBJDUMP
1333 BUILD_CC
1334 BUILD_CXX
1335 BUILD_NM
1336 BUILD_AR
1337 BUILD_OBJCOPY
1338 BUILD_STRIP
1339 JTREGEXE
1340 XMKMF
1341 FREETYPE_CFLAGS
1342 FREETYPE_LIBS
1343 ALSA_CFLAGS
1344 ALSA_LIBS
1345 LIBFFI_CFLAGS
1346 LIBFFI_LIBS
1347 PNG_CFLAGS
1348 PNG_LIBS
1349 LCMS_CFLAGS
1350 LCMS_LIBS
1351 ELF_CFLAGS
1352 ELF_LIBS
1353 ICECC_CMD
1354 ICECC_CREATE_ENV
1355 ICECC_WRAPPER
1356 CCACHE'
1357 
1358 
1359 # Initialize some variables set by options.
1360 ac_init_help=
1361 ac_init_version=false
1362 ac_unrecognized_opts=
1363 ac_unrecognized_sep=
1364 # The variables have the same names as the options, with
1365 # dashes changed to underlines.
1366 cache_file=/dev/null
1367 exec_prefix=NONE
1368 no_create=
1369 no_recursion=
1370 prefix=NONE
1371 program_prefix=NONE
1372 program_suffix=NONE
1373 program_transform_name=s,x,x,
1374 silent=
1375 site=
1376 srcdir=
1377 verbose=
1378 x_includes=NONE
1379 x_libraries=NONE
1380 
1381 # Installation directory options.
1382 # These are left unexpanded so users can "make install exec_prefix=/foo"
1383 # and all the variables that are supposed to be based on exec_prefix
1384 # by default will actually change.
1385 # Use braces instead of parens because sh, perl, etc. also accept them.
1386 # (The list follows the same order as the GNU Coding Standards.)
1387 bindir='${exec_prefix}/bin'
1388 sbindir='${exec_prefix}/sbin'
1389 libexecdir='${exec_prefix}/libexec'
1390 datarootdir='${prefix}/share'
1391 datadir='${datarootdir}'
1392 sysconfdir='${prefix}/etc'
1393 sharedstatedir='${prefix}/com'
1394 localstatedir='${prefix}/var'
1395 includedir='${prefix}/include'
1396 oldincludedir='/usr/include'
1397 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1398 infodir='${datarootdir}/info'
1399 htmldir='${docdir}'
1400 dvidir='${docdir}'
1401 pdfdir='${docdir}'
1402 psdir='${docdir}'
1403 libdir='${exec_prefix}/lib'
1404 localedir='${datarootdir}/locale'
1405 mandir='${datarootdir}/man'
1406 
1407 ac_prev=
1408 ac_dashdash=
1409 for ac_option
1410 do
1411   # If the previous option needs an argument, assign it.
1412   if test -n "$ac_prev"; then
1413     eval $ac_prev=\$ac_option
1414     ac_prev=
1415     continue
1416   fi
1417 
1418   case $ac_option in
1419   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1420   *=)   ac_optarg= ;;
1421   *)    ac_optarg=yes ;;
1422   esac
1423 
1424   # Accept the important Cygnus configure options, so we can diagnose typos.
1425 
1426   case $ac_dashdash$ac_option in
1427   --)
1428     ac_dashdash=yes ;;
1429 
1430   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1431     ac_prev=bindir ;;
1432   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1433     bindir=$ac_optarg ;;
1434 
1435   -build | --build | --buil | --bui | --bu)
1436     ac_prev=build_alias ;;
1437   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1438     build_alias=$ac_optarg ;;
1439 
1440   -cache-file | --cache-file | --cache-fil | --cache-fi \
1441   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1442     ac_prev=cache_file ;;
1443   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1444   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1445     cache_file=$ac_optarg ;;
1446 
1447   --config-cache | -C)
1448     cache_file=config.cache ;;
1449 
1450   -datadir | --datadir | --datadi | --datad)
1451     ac_prev=datadir ;;
1452   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1453     datadir=$ac_optarg ;;
1454 
1455   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1456   | --dataroo | --dataro | --datar)
1457     ac_prev=datarootdir ;;
1458   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1459   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1460     datarootdir=$ac_optarg ;;
1461 
1462   -disable-* | --disable-*)
1463     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1464     # Reject names that are not valid shell variable names.
1465     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1466       as_fn_error $? "invalid feature name: $ac_useropt"
1467     ac_useropt_orig=$ac_useropt
1468     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1469     case $ac_user_opts in
1470       *"
1471 "enable_$ac_useropt"
1472 "*) ;;
1473       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1474          ac_unrecognized_sep=', ';;
1475     esac
1476     eval enable_$ac_useropt=no ;;
1477 
1478   -docdir | --docdir | --docdi | --doc | --do)
1479     ac_prev=docdir ;;
1480   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1481     docdir=$ac_optarg ;;
1482 
1483   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1484     ac_prev=dvidir ;;
1485   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1486     dvidir=$ac_optarg ;;
1487 
1488   -enable-* | --enable-*)
1489     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1490     # Reject names that are not valid shell variable names.
1491     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1492       as_fn_error $? "invalid feature name: $ac_useropt"
1493     ac_useropt_orig=$ac_useropt
1494     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1495     case $ac_user_opts in
1496       *"
1497 "enable_$ac_useropt"
1498 "*) ;;
1499       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1500          ac_unrecognized_sep=', ';;
1501     esac
1502     eval enable_$ac_useropt=\$ac_optarg ;;
1503 
1504   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1505   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1506   | --exec | --exe | --ex)
1507     ac_prev=exec_prefix ;;
1508   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1509   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1510   | --exec=* | --exe=* | --ex=*)
1511     exec_prefix=$ac_optarg ;;
1512 
1513   -gas | --gas | --ga | --g)
1514     # Obsolete; use --with-gas.
1515     with_gas=yes ;;
1516 
1517   -help | --help | --hel | --he | -h)
1518     ac_init_help=long ;;
1519   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1520     ac_init_help=recursive ;;
1521   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1522     ac_init_help=short ;;
1523 
1524   -host | --host | --hos | --ho)
1525     ac_prev=host_alias ;;
1526   -host=* | --host=* | --hos=* | --ho=*)
1527     host_alias=$ac_optarg ;;
1528 
1529   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1530     ac_prev=htmldir ;;
1531   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1532   | --ht=*)
1533     htmldir=$ac_optarg ;;
1534 
1535   -includedir | --includedir | --includedi | --included | --include \
1536   | --includ | --inclu | --incl | --inc)
1537     ac_prev=includedir ;;
1538   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1539   | --includ=* | --inclu=* | --incl=* | --inc=*)
1540     includedir=$ac_optarg ;;
1541 
1542   -infodir | --infodir | --infodi | --infod | --info | --inf)
1543     ac_prev=infodir ;;
1544   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1545     infodir=$ac_optarg ;;
1546 
1547   -libdir | --libdir | --libdi | --libd)
1548     ac_prev=libdir ;;
1549   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1550     libdir=$ac_optarg ;;
1551 
1552   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1553   | --libexe | --libex | --libe)
1554     ac_prev=libexecdir ;;
1555   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1556   | --libexe=* | --libex=* | --libe=*)
1557     libexecdir=$ac_optarg ;;
1558 
1559   -localedir | --localedir | --localedi | --localed | --locale)
1560     ac_prev=localedir ;;
1561   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1562     localedir=$ac_optarg ;;
1563 
1564   -localstatedir | --localstatedir | --localstatedi | --localstated \
1565   | --localstate | --localstat | --localsta | --localst | --locals)
1566     ac_prev=localstatedir ;;
1567   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1568   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1569     localstatedir=$ac_optarg ;;
1570 
1571   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1572     ac_prev=mandir ;;
1573   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1574     mandir=$ac_optarg ;;
1575 
1576   -nfp | --nfp | --nf)
1577     # Obsolete; use --without-fp.
1578     with_fp=no ;;
1579 
1580   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1581   | --no-cr | --no-c | -n)
1582     no_create=yes ;;
1583 
1584   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1585   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1586     no_recursion=yes ;;
1587 
1588   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1589   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1590   | --oldin | --oldi | --old | --ol | --o)
1591     ac_prev=oldincludedir ;;
1592   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1593   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1594   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1595     oldincludedir=$ac_optarg ;;
1596 
1597   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1598     ac_prev=prefix ;;
1599   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1600     prefix=$ac_optarg ;;
1601 
1602   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1603   | --program-pre | --program-pr | --program-p)
1604     ac_prev=program_prefix ;;
1605   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1606   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1607     program_prefix=$ac_optarg ;;
1608 
1609   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1610   | --program-suf | --program-su | --program-s)
1611     ac_prev=program_suffix ;;
1612   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1613   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1614     program_suffix=$ac_optarg ;;
1615 
1616   -program-transform-name | --program-transform-name \
1617   | --program-transform-nam | --program-transform-na \
1618   | --program-transform-n | --program-transform- \
1619   | --program-transform | --program-transfor \
1620   | --program-transfo | --program-transf \
1621   | --program-trans | --program-tran \
1622   | --progr-tra | --program-tr | --program-t)
1623     ac_prev=program_transform_name ;;
1624   -program-transform-name=* | --program-transform-name=* \
1625   | --program-transform-nam=* | --program-transform-na=* \
1626   | --program-transform-n=* | --program-transform-=* \
1627   | --program-transform=* | --program-transfor=* \
1628   | --program-transfo=* | --program-transf=* \
1629   | --program-trans=* | --program-tran=* \
1630   | --progr-tra=* | --program-tr=* | --program-t=*)
1631     program_transform_name=$ac_optarg ;;
1632 
1633   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1634     ac_prev=pdfdir ;;
1635   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1636     pdfdir=$ac_optarg ;;
1637 
1638   -psdir | --psdir | --psdi | --psd | --ps)
1639     ac_prev=psdir ;;
1640   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1641     psdir=$ac_optarg ;;
1642 
1643   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644   | -silent | --silent | --silen | --sile | --sil)
1645     silent=yes ;;
1646 
1647   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1648     ac_prev=sbindir ;;
1649   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1650   | --sbi=* | --sb=*)
1651     sbindir=$ac_optarg ;;
1652 
1653   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1654   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1655   | --sharedst | --shareds | --shared | --share | --shar \
1656   | --sha | --sh)
1657     ac_prev=sharedstatedir ;;
1658   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1659   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1660   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1661   | --sha=* | --sh=*)
1662     sharedstatedir=$ac_optarg ;;
1663 
1664   -site | --site | --sit)
1665     ac_prev=site ;;
1666   -site=* | --site=* | --sit=*)
1667     site=$ac_optarg ;;
1668 
1669   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1670     ac_prev=srcdir ;;
1671   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1672     srcdir=$ac_optarg ;;
1673 
1674   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1675   | --syscon | --sysco | --sysc | --sys | --sy)
1676     ac_prev=sysconfdir ;;
1677   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1678   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1679     sysconfdir=$ac_optarg ;;
1680 
1681   -target | --target | --targe | --targ | --tar | --ta | --t)
1682     ac_prev=target_alias ;;
1683   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1684     target_alias=$ac_optarg ;;
1685 
1686   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1687     verbose=yes ;;
1688 
1689   -version | --version | --versio | --versi | --vers | -V)
1690     ac_init_version=: ;;
1691 
1692   -with-* | --with-*)
1693     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1694     # Reject names that are not valid shell variable names.
1695     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1696       as_fn_error $? "invalid package name: $ac_useropt"
1697     ac_useropt_orig=$ac_useropt
1698     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1699     case $ac_user_opts in
1700       *"
1701 "with_$ac_useropt"
1702 "*) ;;
1703       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1704          ac_unrecognized_sep=', ';;
1705     esac
1706     eval with_$ac_useropt=\$ac_optarg ;;
1707 
1708   -without-* | --without-*)
1709     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1710     # Reject names that are not valid shell variable names.
1711     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1712       as_fn_error $? "invalid package name: $ac_useropt"
1713     ac_useropt_orig=$ac_useropt
1714     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1715     case $ac_user_opts in
1716       *"
1717 "with_$ac_useropt"
1718 "*) ;;
1719       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1720          ac_unrecognized_sep=', ';;
1721     esac
1722     eval with_$ac_useropt=no ;;
1723 
1724   --x)
1725     # Obsolete; use --with-x.
1726     with_x=yes ;;
1727 
1728   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1729   | --x-incl | --x-inc | --x-in | --x-i)
1730     ac_prev=x_includes ;;
1731   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1732   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1733     x_includes=$ac_optarg ;;
1734 
1735   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1736   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1737     ac_prev=x_libraries ;;
1738   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1739   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1740     x_libraries=$ac_optarg ;;
1741 
1742   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1743 Try \`$0 --help' for more information"
1744     ;;
1745 
1746   *=*)
1747     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1748     # Reject names that are not valid shell variable names.
1749     case $ac_envvar in #(
1750       '' | [0-9]* | *[!_$as_cr_alnum]* )
1751       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1752     esac
1753     eval $ac_envvar=\$ac_optarg
1754     export $ac_envvar ;;
1755 
1756   *)
1757     # FIXME: should be removed in autoconf 3.0.
1758     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1759     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1760       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1761     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1762     ;;
1763 
1764   esac
1765 done
1766 
1767 if test -n "$ac_prev"; then
1768   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1769   as_fn_error $? "missing argument to $ac_option"
1770 fi
1771 
1772 if test -n "$ac_unrecognized_opts"; then
1773   case $enable_option_checking in
1774     no) ;;
1775     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1776     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1777   esac
1778 fi
1779 
1780 # Check all directory arguments for consistency.
1781 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1782                 datadir sysconfdir sharedstatedir localstatedir includedir \
1783                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1784                 libdir localedir mandir
1785 do
1786   eval ac_val=\$$ac_var
1787   # Remove trailing slashes.
1788   case $ac_val in
1789     */ )
1790       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1791       eval $ac_var=\$ac_val;;
1792   esac
1793   # Be sure to have absolute directory names.
1794   case $ac_val in
1795     [\\/$]* | ?:[\\/]* )  continue;;
1796     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1797   esac
1798   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1799 done
1800 
1801 # There might be people who depend on the old broken behavior: `$host'
1802 # used to hold the argument of --host etc.
1803 # FIXME: To remove some day.
1804 build=$build_alias
1805 host=$host_alias
1806 target=$target_alias
1807 
1808 # FIXME: To remove some day.
1809 if test "x$host_alias" != x; then
1810   if test "x$build_alias" = x; then
1811     cross_compiling=maybe
1812   elif test "x$build_alias" != "x$host_alias"; then
1813     cross_compiling=yes
1814   fi
1815 fi
1816 
1817 ac_tool_prefix=
1818 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1819 
1820 test "$silent" = yes && exec 6>/dev/null
1821 
1822 
1823 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1824 ac_ls_di=`ls -di .` &&
1825 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1826   as_fn_error $? "working directory cannot be determined"
1827 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1828   as_fn_error $? "pwd does not report name of working directory"
1829 
1830 
1831 # Find the source files, if location was not specified.
1832 if test -z "$srcdir"; then
1833   ac_srcdir_defaulted=yes
1834   # Try the directory containing this script, then the parent directory.
1835   ac_confdir=`$as_dirname -- "$as_myself" ||
1836 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1837          X"$as_myself" : 'X\(//\)[^/]' \| \
1838          X"$as_myself" : 'X\(//\)$' \| \
1839          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1840 $as_echo X"$as_myself" |
1841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1842             s//\1/
1843             q
1844           }
1845           /^X\(\/\/\)[^/].*/{
1846             s//\1/
1847             q
1848           }
1849           /^X\(\/\/\)$/{
1850             s//\1/
1851             q
1852           }
1853           /^X\(\/\).*/{
1854             s//\1/
1855             q
1856           }
1857           s/.*/./; q'`
1858   srcdir=$ac_confdir
1859   if test ! -r "$srcdir/$ac_unique_file"; then
1860     srcdir=..
1861   fi
1862 else
1863   ac_srcdir_defaulted=no
1864 fi
1865 if test ! -r "$srcdir/$ac_unique_file"; then
1866   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1867   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1868 fi
1869 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1870 ac_abs_confdir=`(
1871         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1872         pwd)`
1873 # When building in place, set srcdir=.
1874 if test "$ac_abs_confdir" = "$ac_pwd"; then
1875   srcdir=.
1876 fi
1877 # Remove unnecessary trailing slashes from srcdir.
1878 # Double slashes in file names in object file debugging info
1879 # mess up M-x gdb in Emacs.
1880 case $srcdir in
1881 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1882 esac
1883 for ac_var in $ac_precious_vars; do
1884   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1885   eval ac_env_${ac_var}_value=\$${ac_var}
1886   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1887   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1888 done
1889 
1890 #
1891 # Report the --help message.
1892 #
1893 if test "$ac_init_help" = "long"; then
1894   # Omit some internal or obsolete options to make the list less imposing.
1895   # This message is too long to be a string in the A/UX 3.1 sh.
1896   cat <<_ACEOF
1897 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1898 
1899 Usage: $0 [OPTION]... [VAR=VALUE]...
1900 
1901 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1902 VAR=VALUE.  See below for descriptions of some of the useful variables.
1903 
1904 Defaults for the options are specified in brackets.
1905 
1906 Configuration:
1907   -h, --help              display this help and exit
1908       --help=short        display options specific to this package
1909       --help=recursive    display the short help of all the included packages
1910   -V, --version           display version information and exit
1911   -q, --quiet, --silent   do not print \`checking ...' messages
1912       --cache-file=FILE   cache test results in FILE [disabled]
1913   -C, --config-cache      alias for \`--cache-file=config.cache'
1914   -n, --no-create         do not create output files
1915       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1916 
1917 Installation directories:
1918   --prefix=PREFIX         install architecture-independent files in PREFIX
1919                           [$ac_default_prefix]
1920   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1921                           [PREFIX]
1922 
1923 By default, \`make install' will install all the files in
1924 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1925 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1926 for instance \`--prefix=\$HOME'.
1927 
1928 For better control, use the options below.
1929 
1930 Fine tuning of the installation directories:
1931   --bindir=DIR            user executables [EPREFIX/bin]
1932   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1933   --libexecdir=DIR        program executables [EPREFIX/libexec]
1934   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1935   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1936   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1937   --libdir=DIR            object code libraries [EPREFIX/lib]
1938   --includedir=DIR        C header files [PREFIX/include]
1939   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1940   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1941   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1942   --infodir=DIR           info documentation [DATAROOTDIR/info]
1943   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1944   --mandir=DIR            man documentation [DATAROOTDIR/man]
1945   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1946   --htmldir=DIR           html documentation [DOCDIR]
1947   --dvidir=DIR            dvi documentation [DOCDIR]
1948   --pdfdir=DIR            pdf documentation [DOCDIR]
1949   --psdir=DIR             ps documentation [DOCDIR]
1950 _ACEOF
1951 
1952   cat <<\_ACEOF
1953 
1954 X features:
1955   --x-includes=DIR    X include files are in DIR
1956   --x-libraries=DIR   X library files are in DIR
1957 
1958 System types:
1959   --build=BUILD     configure for building on BUILD [guessed]
1960   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1961   --target=TARGET   configure for building compilers for TARGET [HOST]
1962 _ACEOF
1963 fi
1964 
1965 if test -n "$ac_init_help"; then
1966   case $ac_init_help in
1967      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1968    esac
1969   cat <<\_ACEOF
1970 
1971 Optional Features:
1972   --disable-option-checking  ignore unrecognized --enable/--with options
1973   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1974   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1975   --enable-openjdk-only   suppress building custom source even if present
1976                           [disabled]
1977   --enable-debug          set the debug level to fastdebug (shorthand for
1978                           --with-debug-level=fastdebug) [disabled]
1979   --enable-headless-only  only build headless (no GUI) support [disabled]
1980   --disable-unlimited-crypto
1981                           Disable unlimited crypto policy [enabled]
1982   --disable-keep-packaged-modules
1983                           Do not keep packaged modules in jdk image [enable]
1984   --enable-static-build   enable static library build [disabled]
1985   --disable-warnings-as-errors
1986                           do not consider native warnings to be an error
1987                           [enabled]
1988   --enable-debug-symbols  Deprecated. Option is kept for backwards
1989                           compatibility and is ignored
1990   --enable-zip-debug-info Deprecated. Option is kept for backwards
1991                           compatibility and is ignored
1992   --enable-native-coverage
1993                           enable native compilation with code coverage
1994                           data[disabled]
1995   --enable-dtrace[=yes/no/auto]
1996                           enable dtrace. Default is auto, where dtrace is
1997                           enabled if all dependencies are present.
1998   --enable-aot[=yes/no/auto]
1999                           enable ahead of time compilation feature. Default is
2000                           auto, where aot is enabled if all dependencies are
2001                           present.
2002   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2003   --disable-freetype-bundling
2004                           disable bundling of the freetype library with the
2005                           build result [enabled on Windows or when using
2006                           --with-freetype, disabled otherwise]
2007   --enable-libffi-bundling
2008                           enable bundling of libffi.so to make the built JDK
2009                           runnable on more systems
2010   --enable-jtreg-failure-handler
2011                           forces build of the jtreg failure handler to be
2012                           enabled, missing dependencies become fatal errors.
2013                           Default is auto, where the failure handler is built
2014                           if all dependencies are present and otherwise just
2015                           disabled.
2016   --disable-generate-classlist
2017                           forces enabling or disabling of the generation of a
2018                           CDS classlist at build time. Default is to generate
2019                           it when either the server or client JVMs are built.
2020   --enable-sjavac         use sjavac to do fast incremental compiles
2021                           [disabled]
2022   --disable-javac-server  disable javac server [enabled]
2023   --enable-icecc          enable distribted compilation of native code using
2024                           icecc/icecream [disabled]
2025   --disable-precompiled-headers
2026                           disable using precompiled headers when compiling C++
2027                           [enabled]
2028   --enable-ccache         enable using ccache to speed up recompilations
2029                           [disabled]
2030 
2031 Optional Packages:
2032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2034   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2035                           support it), e.g. --with-target-bits=32 [guessed]
2036   --with-custom-make-dir  Deprecated. Option is kept for backwards
2037                           compatibility and is ignored
2038   --with-jdk-variant      JDK variant to build (normal) [normal]
2039   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2040                           optimized) [release]
2041   --with-jvm-variants     JVM variants (separated by commas) to build
2042                           (server,client,minimal,core,zero,zeroshark,custom)
2043                           [server]
2044   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2045                           (arm64,aarch64) [aarch64]
2046   --with-devkit           use this devkit for compilers, tools and resources
2047   --with-sys-root         alias for --with-sysroot for backwards compatability
2048   --with-sysroot          use this directory as sysroot
2049   --with-tools-dir        alias for --with-toolchain-path for backwards
2050                           compatibility
2051   --with-toolchain-path   prepend these directories when searching for
2052                           toolchain binaries (compilers etc)
2053   --with-extra-path       prepend these directories to the default path
2054   --with-sdk-name         use the platform SDK of the given name. [macosx]
2055   --with-conf-name        use this as the name of the configuration [generated
2056                           from important configuration options]
2057   --with-output-sync      set make output sync type if supported by make.
2058                           [recurse]
2059   --with-default-make-target
2060                           set the default make target [exploded-image]
2061   --with-cacerts-file     specify alternative cacerts file
2062   --with-copyright-year   Set copyright year value for build [current year]
2063   --with-milestone        Deprecated. Option is kept for backwards
2064                           compatibility and is ignored
2065   --with-update-version   Deprecated. Option is kept for backwards
2066                           compatibility and is ignored
2067   --with-user-release-suffix
2068                           Deprecated. Option is kept for backwards
2069                           compatibility and is ignored
2070   --with-build-number     Deprecated. Option is kept for backwards
2071                           compatibility and is ignored
2072   --with-version-string   Set version string [calculated]
2073   --with-version-pre      Set the base part of the version 'PRE' field
2074                           (pre-release identifier) ['internal']
2075   --with-version-opt      Set version 'OPT' field (build metadata)
2076                           [<timestamp>.<user>.<dirname>]
2077   --with-version-build    Set version 'BUILD' field (build number) [not
2078                           specified]
2079   --with-version-major    Set version 'MAJOR' field (first number) [current
2080                           source value]
2081   --with-version-minor    Set version 'MINOR' field (second number) [current
2082                           source value]
2083   --with-version-security Set version 'SECURITY' field (third number) [current
2084                           source value]
2085   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2086                           specified]
2087   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2088   --with-build-jdk        path to JDK of same version as is being built[the
2089                           newly built JDK]
2090   --with-add-source-root  Deprecated. Option is kept for backwards
2091                           compatibility and is ignored
2092   --with-override-source-root
2093                           Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-adds-and-overrides
2096                           Deprecated. Option is kept for backwards
2097                           compatibility and is ignored
2098   --with-override-langtools
2099                           Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-override-corba   Deprecated. Option is kept for backwards
2102                           compatibility and is ignored
2103   --with-override-jaxp    Deprecated. Option is kept for backwards
2104                           compatibility and is ignored
2105   --with-override-jaxws   Deprecated. Option is kept for backwards
2106                           compatibility and is ignored
2107   --with-override-hotspot Deprecated. Option is kept for backwards
2108                           compatibility and is ignored
2109   --with-override-nashorn Deprecated. Option is kept for backwards
2110                           compatibility and is ignored
2111   --with-override-jdk     Deprecated. Option is kept for backwards
2112                           compatibility and is ignored
2113   --with-import_hotspot   Deprecated. Option is kept for backwards
2114                           compatibility and is ignored
2115   --with-import-modules   import a set of prebuilt modules either as a zip
2116                           file or an exploded directory
2117   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2118                           to show possible values [platform dependent]
2119   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2120   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2121   --with-extra-ldflags    extra flags to be used when linking jdk
2122   --with-toolchain-version
2123                           the version of the toolchain to look for, use
2124                           '--help' to show possible values [platform
2125                           dependent]
2126   --with-build-devkit     Devkit to use for the build platform toolchain
2127   --with-jtreg            Regression Test Harness [probed]
2128   --with-abi-profile      specify ABI profile for ARM builds
2129                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2130                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2131                           [toolchain dependent]
2132   --with-native-debug-symbols
2133                           set the native debug symbol configuration (none,
2134                           internal, external, zipped) [varying]
2135   --with-stdc++lib=<static>,<dynamic>,<default>
2136                           force linking of the C++ runtime on Linux to either
2137                           static or dynamic, default is static with dynamic as
2138                           fallback
2139   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2140                           (Windows only) [probed]
2141   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2142                           (Windows only) [probed]
2143   --with-x                use the X Window System
2144   --with-cups             specify prefix directory for the cups package
2145                           (expecting the headers under PATH/include)
2146   --with-cups-include     specify directory for the cups include files
2147   --with-freetype         specify prefix directory for the freetype package
2148                           (expecting the libraries under PATH/lib and the
2149                           headers under PATH/include)
2150   --with-freetype-include specify directory for the freetype include files
2151   --with-freetype-lib     specify directory for the freetype library
2152   --with-freetype-src     specify directory with freetype sources to
2153                           automatically build the library (experimental,
2154                           Windows-only)
2155   --with-alsa             specify prefix directory for the alsa package
2156                           (expecting the libraries under PATH/lib and the
2157                           headers under PATH/include)
2158   --with-alsa-include     specify directory for the alsa include files
2159   --with-alsa-lib         specify directory for the alsa library
2160   --with-libffi           specify prefix directory for the libffi package
2161                           (expecting the libraries under PATH/lib and the
2162                           headers under PATH/include)
2163   --with-libffi-include   specify directory for the libffi include files
2164   --with-libffi-lib       specify directory for the libffi library
2165   --with-libjpeg          use libjpeg from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-giflib           use giflib from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-libpng           use libpng from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-zlib             use zlib from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-lcms             use lcms2 from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-dxsdk            Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-dxsdk-include    Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-libelf           specify prefix directory for the libelf package
2182                           (expecting the libraries under PATH/lib and the
2183                           headers under PATH/include)
2184   --with-libelf-include   specify directory for the libelf include files
2185   --with-libelf-lib       specify directory for the libelf library
2186   --with-jvm-features     additional JVM features to enable (separated by
2187                           comma), use '--help' to show possible values [none]
2188   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2189                           compatibility and is ignored
2190   --with-num-cores        number of cores in the build system, e.g.
2191                           --with-num-cores=8 [probed]
2192   --with-memory-size      memory (in MB) available in the build system, e.g.
2193                           --with-memory-size=1024 [probed]
2194   --with-jobs             number of parallel jobs to let make run [calculated
2195                           based on cores and memory]
2196   --with-test-jobs        number of parallel tests jobs to run [based on build
2197                           jobs]
2198   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2199                           invocations of boot JDK, overriding the default
2200                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2201                           -enableassertions"
2202   --with-sjavac-server-java
2203                           use this java binary for running the sjavac
2204                           background server [Boot JDK java]
2205   --with-ccache-dir       where to store ccache files [~/.ccache]
2206 
2207 Some influential environment variables:
2208   BASENAME    Override default value for BASENAME
2209   BASH        Override default value for BASH
2210   CAT         Override default value for CAT
2211   CHMOD       Override default value for CHMOD
2212   CMP         Override default value for CMP
2213   COMM        Override default value for COMM
2214   CP          Override default value for CP
2215   CUT         Override default value for CUT
2216   DATE        Override default value for DATE
2217   DIFF        Override default value for DIFF
2218   DIRNAME     Override default value for DIRNAME
2219   ECHO        Override default value for ECHO
2220   EXPR        Override default value for EXPR
2221   FILE        Override default value for FILE
2222   FIND        Override default value for FIND
2223   HEAD        Override default value for HEAD
2224   GUNZIP      Override default value for GUNZIP
2225   GZIP        Override default value for GZIP
2226   LN          Override default value for LN
2227   LS          Override default value for LS
2228   MKDIR       Override default value for MKDIR
2229   MKTEMP      Override default value for MKTEMP
2230   MV          Override default value for MV
2231   NAWK        Override default value for NAWK
2232   PRINTF      Override default value for PRINTF
2233   RM          Override default value for RM
2234   RMDIR       Override default value for RMDIR
2235   SH          Override default value for SH
2236   SORT        Override default value for SORT
2237   TAIL        Override default value for TAIL
2238   TAR         Override default value for TAR
2239   TEE         Override default value for TEE
2240   TOUCH       Override default value for TOUCH
2241   TR          Override default value for TR
2242   UNAME       Override default value for UNAME
2243   UNIQ        Override default value for UNIQ
2244   WC          Override default value for WC
2245   WHICH       Override default value for WHICH
2246   XARGS       Override default value for XARGS
2247   AWK         Override default value for AWK
2248   GREP        Override default value for GREP
2249   EGREP       Override default value for EGREP
2250   FGREP       Override default value for FGREP
2251   SED         Override default value for SED
2252   CYGPATH     Override default value for CYGPATH
2253   READLINK    Override default value for READLINK
2254   DF          Override default value for DF
2255   CPIO        Override default value for CPIO
2256   NICE        Override default value for NICE
2257   MAKE        Override default value for MAKE
2258   UNZIP       Override default value for UNZIP
2259   ZIPEXE      Override default value for ZIPEXE
2260   LDD         Override default value for LDD
2261   OTOOL       Override default value for OTOOL
2262   READELF     Override default value for READELF
2263   HG          Override default value for HG
2264   STAT        Override default value for STAT
2265   TIME        Override default value for TIME
2266   DTRACE      Override default value for DTRACE
2267   PATCH       Override default value for PATCH
2268   DSYMUTIL    Override default value for DSYMUTIL
2269   XATTR       Override default value for XATTR
2270   CODESIGN    Override default value for CODESIGN
2271   SETFILE     Override default value for SETFILE
2272   PKG_CONFIG  path to pkg-config utility
2273   JAVA        Override default value for JAVA
2274   JAVAC       Override default value for JAVAC
2275   JAVAH       Override default value for JAVAH
2276   JAR         Override default value for JAR
2277   JARSIGNER   Override default value for JARSIGNER
2278   CC          C compiler command
2279   CFLAGS      C compiler flags
2280   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2281               nonstandard directory <lib dir>
2282   LIBS        libraries to pass to the linker, e.g. -l<library>
2283   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2284               you have headers in a nonstandard directory <include dir>
2285   CXX         C++ compiler command
2286   CXXFLAGS    C++ compiler flags
2287   CPP         C preprocessor
2288   CXXCPP      C++ preprocessor
2289   AS          Override default value for AS
2290   AR          Override default value for AR
2291   LIPO        Override default value for LIPO
2292   STRIP       Override default value for STRIP
2293   NM          Override default value for NM
2294   GNM         Override default value for GNM
2295   OBJCOPY     Override default value for OBJCOPY
2296   OBJDUMP     Override default value for OBJDUMP
2297   BUILD_CC    Override default value for BUILD_CC
2298   BUILD_CXX   Override default value for BUILD_CXX
2299   BUILD_NM    Override default value for BUILD_NM
2300   BUILD_AR    Override default value for BUILD_AR
2301   BUILD_OBJCOPY
2302               Override default value for BUILD_OBJCOPY
2303   BUILD_STRIP Override default value for BUILD_STRIP
2304   JTREGEXE    Override default value for JTREGEXE
2305   XMKMF       Path to xmkmf, Makefile generator for X Window System
2306   FREETYPE_CFLAGS
2307               C compiler flags for FREETYPE, overriding pkg-config
2308   FREETYPE_LIBS
2309               linker flags for FREETYPE, overriding pkg-config
2310   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2311   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2312   LIBFFI_CFLAGS
2313               C compiler flags for LIBFFI, overriding pkg-config
2314   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2315   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2316   PNG_LIBS    linker flags for PNG, overriding pkg-config
2317   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2318   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2319   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2320   ELF_LIBS    linker flags for ELF, overriding pkg-config
2321   ICECC_CMD   Override default value for ICECC_CMD
2322   ICECC_CREATE_ENV
2323               Override default value for ICECC_CREATE_ENV
2324   ICECC_WRAPPER
2325               Override default value for ICECC_WRAPPER
2326   CCACHE      Override default value for CCACHE
2327 
2328 Use these variables to override the choices made by `configure' or to help
2329 it to find libraries and programs with nonstandard names/locations.
2330 
2331 Report bugs to <build-dev@openjdk.java.net>.
2332 OpenJDK home page: <http://openjdk.java.net>.
2333 _ACEOF
2334 ac_status=$?
2335 fi
2336 
2337 if test "$ac_init_help" = "recursive"; then
2338   # If there are subdirs, report their specific --help.
2339   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2340     test -d "$ac_dir" ||
2341       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2342       continue
2343     ac_builddir=.
2344 
2345 case "$ac_dir" in
2346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2347 *)
2348   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2349   # A ".." for each directory in $ac_dir_suffix.
2350   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2351   case $ac_top_builddir_sub in
2352   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2353   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2354   esac ;;
2355 esac
2356 ac_abs_top_builddir=$ac_pwd
2357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2358 # for backward compatibility:
2359 ac_top_builddir=$ac_top_build_prefix
2360 
2361 case $srcdir in
2362   .)  # We are building in place.
2363     ac_srcdir=.
2364     ac_top_srcdir=$ac_top_builddir_sub
2365     ac_abs_top_srcdir=$ac_pwd ;;
2366   [\\/]* | ?:[\\/]* )  # Absolute name.
2367     ac_srcdir=$srcdir$ac_dir_suffix;
2368     ac_top_srcdir=$srcdir
2369     ac_abs_top_srcdir=$srcdir ;;
2370   *) # Relative name.
2371     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2372     ac_top_srcdir=$ac_top_build_prefix$srcdir
2373     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2374 esac
2375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2376 
2377     cd "$ac_dir" || { ac_status=$?; continue; }
2378     # Check for guested configure.
2379     if test -f "$ac_srcdir/configure.gnu"; then
2380       echo &&
2381       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2382     elif test -f "$ac_srcdir/configure"; then
2383       echo &&
2384       $SHELL "$ac_srcdir/configure" --help=recursive
2385     else
2386       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2387     fi || ac_status=$?
2388     cd "$ac_pwd" || { ac_status=$?; break; }
2389   done
2390 fi
2391 
2392 test -n "$ac_init_help" && exit $ac_status
2393 if $ac_init_version; then
2394   cat <<\_ACEOF
2395 OpenJDK configure jdk9
2396 generated by GNU Autoconf 2.69
2397 
2398 Copyright (C) 2012 Free Software Foundation, Inc.
2399 This configure script is free software; the Free Software Foundation
2400 gives unlimited permission to copy, distribute and modify it.
2401 _ACEOF
2402   exit
2403 fi
2404 
2405 ## ------------------------ ##
2406 ## Autoconf initialization. ##
2407 ## ------------------------ ##
2408 
2409 # ac_fn_c_try_compile LINENO
2410 # --------------------------
2411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2412 ac_fn_c_try_compile ()
2413 {
2414   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415   rm -f conftest.$ac_objext
2416   if { { ac_try="$ac_compile"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423   (eval "$ac_compile") 2>conftest.err
2424   ac_status=$?
2425   if test -s conftest.err; then
2426     grep -v '^ *+' conftest.err >conftest.er1
2427     cat conftest.er1 >&5
2428     mv -f conftest.er1 conftest.err
2429   fi
2430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431   test $ac_status = 0; } && {
2432          test -z "$ac_c_werror_flag" ||
2433          test ! -s conftest.err
2434        } && test -s conftest.$ac_objext; then :
2435   ac_retval=0
2436 else
2437   $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439 
2440         ac_retval=1
2441 fi
2442   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443   as_fn_set_status $ac_retval
2444 
2445 } # ac_fn_c_try_compile
2446 
2447 # ac_fn_cxx_try_compile LINENO
2448 # ----------------------------
2449 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2450 ac_fn_cxx_try_compile ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   rm -f conftest.$ac_objext
2454   if { { ac_try="$ac_compile"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461   (eval "$ac_compile") 2>conftest.err
2462   ac_status=$?
2463   if test -s conftest.err; then
2464     grep -v '^ *+' conftest.err >conftest.er1
2465     cat conftest.er1 >&5
2466     mv -f conftest.er1 conftest.err
2467   fi
2468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469   test $ac_status = 0; } && {
2470          test -z "$ac_cxx_werror_flag" ||
2471          test ! -s conftest.err
2472        } && test -s conftest.$ac_objext; then :
2473   ac_retval=0
2474 else
2475   $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477 
2478         ac_retval=1
2479 fi
2480   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481   as_fn_set_status $ac_retval
2482 
2483 } # ac_fn_cxx_try_compile
2484 
2485 # ac_fn_c_try_cpp LINENO
2486 # ----------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_c_try_cpp ()
2489 {
2490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491   if { { ac_try="$ac_cpp conftest.$ac_ext"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499   ac_status=$?
2500   if test -s conftest.err; then
2501     grep -v '^ *+' conftest.err >conftest.er1
2502     cat conftest.er1 >&5
2503     mv -f conftest.er1 conftest.err
2504   fi
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; } > conftest.i && {
2507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2508          test ! -s conftest.err
2509        }; then :
2510   ac_retval=0
2511 else
2512   $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514 
2515     ac_retval=1
2516 fi
2517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518   as_fn_set_status $ac_retval
2519 
2520 } # ac_fn_c_try_cpp
2521 
2522 # ac_fn_cxx_try_cpp LINENO
2523 # ------------------------
2524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_cpp ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   if { { ac_try="$ac_cpp conftest.$ac_ext"
2529 case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2534 $as_echo "$ac_try_echo"; } >&5
2535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2536   ac_status=$?
2537   if test -s conftest.err; then
2538     grep -v '^ *+' conftest.err >conftest.er1
2539     cat conftest.er1 >&5
2540     mv -f conftest.er1 conftest.err
2541   fi
2542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543   test $ac_status = 0; } > conftest.i && {
2544          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2545          test ! -s conftest.err
2546        }; then :
2547   ac_retval=0
2548 else
2549   $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551 
2552     ac_retval=1
2553 fi
2554   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555   as_fn_set_status $ac_retval
2556 
2557 } # ac_fn_cxx_try_cpp
2558 
2559 # ac_fn_c_try_link LINENO
2560 # -----------------------
2561 # Try to link conftest.$ac_ext, and return whether this succeeded.
2562 ac_fn_c_try_link ()
2563 {
2564   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565   rm -f conftest.$ac_objext conftest$ac_exeext
2566   if { { ac_try="$ac_link"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573   (eval "$ac_link") 2>conftest.err
2574   ac_status=$?
2575   if test -s conftest.err; then
2576     grep -v '^ *+' conftest.err >conftest.er1
2577     cat conftest.er1 >&5
2578     mv -f conftest.er1 conftest.err
2579   fi
2580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581   test $ac_status = 0; } && {
2582          test -z "$ac_c_werror_flag" ||
2583          test ! -s conftest.err
2584        } && test -s conftest$ac_exeext && {
2585          test "$cross_compiling" = yes ||
2586          test -x conftest$ac_exeext
2587        }; then :
2588   ac_retval=0
2589 else
2590   $as_echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592 
2593         ac_retval=1
2594 fi
2595   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2596   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2597   # interfere with the next link command; also delete a directory that is
2598   # left behind by Apple's compiler.  We do this before executing the actions.
2599   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2601   as_fn_set_status $ac_retval
2602 
2603 } # ac_fn_c_try_link
2604 
2605 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2606 # ---------------------------------------------------------
2607 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2608 # the include files in INCLUDES and setting the cache variable VAR
2609 # accordingly.
2610 ac_fn_cxx_check_header_mongrel ()
2611 {
2612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613   if eval \${$3+:} false; then :
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if eval \${$3+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 fi
2619 eval ac_res=\$$3
2620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 else
2623   # Is the header compilable?
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2625 $as_echo_n "checking $2 usability... " >&6; }
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h.  */
2628 $4
2629 #include <$2>
2630 _ACEOF
2631 if ac_fn_cxx_try_compile "$LINENO"; then :
2632   ac_header_compiler=yes
2633 else
2634   ac_header_compiler=no
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2638 $as_echo "$ac_header_compiler" >&6; }
2639 
2640 # Is the header present?
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2642 $as_echo_n "checking $2 presence... " >&6; }
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h.  */
2645 #include <$2>
2646 _ACEOF
2647 if ac_fn_cxx_try_cpp "$LINENO"; then :
2648   ac_header_preproc=yes
2649 else
2650   ac_header_preproc=no
2651 fi
2652 rm -f conftest.err conftest.i conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2654 $as_echo "$ac_header_preproc" >&6; }
2655 
2656 # So?  What about this header?
2657 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2658   yes:no: )
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2660 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2663     ;;
2664   no:yes:* )
2665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2666 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2668 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2670 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2672 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2675 ( $as_echo "## ----------------------------------------- ##
2676 ## Report this to build-dev@openjdk.java.net ##
2677 ## ----------------------------------------- ##"
2678      ) | sed "s/^/$as_me: WARNING:     /" >&2
2679     ;;
2680 esac
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2682 $as_echo_n "checking for $2... " >&6; }
2683 if eval \${$3+:} false; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   eval "$3=\$ac_header_compiler"
2687 fi
2688 eval ac_res=\$$3
2689                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 fi
2692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2693 
2694 } # ac_fn_cxx_check_header_mongrel
2695 
2696 # ac_fn_cxx_try_run LINENO
2697 # ------------------------
2698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2699 # that executables *can* be run.
2700 ac_fn_cxx_try_run ()
2701 {
2702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703   if { { ac_try="$ac_link"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710   (eval "$ac_link") 2>&5
2711   ac_status=$?
2712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2714   { { case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720   (eval "$ac_try") 2>&5
2721   ac_status=$?
2722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723   test $ac_status = 0; }; }; then :
2724   ac_retval=0
2725 else
2726   $as_echo "$as_me: program exited with status $ac_status" >&5
2727        $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729 
2730        ac_retval=$ac_status
2731 fi
2732   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2734   as_fn_set_status $ac_retval
2735 
2736 } # ac_fn_cxx_try_run
2737 
2738 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2739 # ---------------------------------------------------------
2740 # Tests whether HEADER exists and can be compiled using the include files in
2741 # INCLUDES, setting the cache variable VAR accordingly.
2742 ac_fn_cxx_check_header_compile ()
2743 {
2744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746 $as_echo_n "checking for $2... " >&6; }
2747 if eval \${$3+:} false; then :
2748   $as_echo_n "(cached) " >&6
2749 else
2750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h.  */
2752 $4
2753 #include <$2>
2754 _ACEOF
2755 if ac_fn_cxx_try_compile "$LINENO"; then :
2756   eval "$3=yes"
2757 else
2758   eval "$3=no"
2759 fi
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 fi
2762 eval ac_res=\$$3
2763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 
2767 } # ac_fn_cxx_check_header_compile
2768 
2769 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2770 # ----------------------------------------------
2771 # Tries to find the compile-time value of EXPR in a program that includes
2772 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2773 # computed
2774 ac_fn_cxx_compute_int ()
2775 {
2776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2777   if test "$cross_compiling" = yes; then
2778     # Depending upon the size, compute the lo and hi bounds.
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h.  */
2781 $4
2782 int
2783 main ()
2784 {
2785 static int test_array [1 - 2 * !(($2) >= 0)];
2786 test_array [0] = 0;
2787 return test_array [0];
2788 
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 if ac_fn_cxx_try_compile "$LINENO"; then :
2794   ac_lo=0 ac_mid=0
2795   while :; do
2796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h.  */
2798 $4
2799 int
2800 main ()
2801 {
2802 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2803 test_array [0] = 0;
2804 return test_array [0];
2805 
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 if ac_fn_cxx_try_compile "$LINENO"; then :
2811   ac_hi=$ac_mid; break
2812 else
2813   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2814                         if test $ac_lo -le $ac_mid; then
2815                           ac_lo= ac_hi=
2816                           break
2817                         fi
2818                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821   done
2822 else
2823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h.  */
2825 $4
2826 int
2827 main ()
2828 {
2829 static int test_array [1 - 2 * !(($2) < 0)];
2830 test_array [0] = 0;
2831 return test_array [0];
2832 
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 if ac_fn_cxx_try_compile "$LINENO"; then :
2838   ac_hi=-1 ac_mid=-1
2839   while :; do
2840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h.  */
2842 $4
2843 int
2844 main ()
2845 {
2846 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2847 test_array [0] = 0;
2848 return test_array [0];
2849 
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 if ac_fn_cxx_try_compile "$LINENO"; then :
2855   ac_lo=$ac_mid; break
2856 else
2857   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2858                         if test $ac_mid -le $ac_hi; then
2859                           ac_lo= ac_hi=
2860                           break
2861                         fi
2862                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2863 fi
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865   done
2866 else
2867   ac_lo= ac_hi=
2868 fi
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 # Binary search between lo and hi bounds.
2873 while test "x$ac_lo" != "x$ac_hi"; do
2874   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h.  */
2877 $4
2878 int
2879 main ()
2880 {
2881 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2882 test_array [0] = 0;
2883 return test_array [0];
2884 
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 if ac_fn_cxx_try_compile "$LINENO"; then :
2890   ac_hi=$ac_mid
2891 else
2892   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2893 fi
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 done
2896 case $ac_lo in #((
2897 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2898 '') ac_retval=1 ;;
2899 esac
2900   else
2901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h.  */
2903 $4
2904 static long int longval () { return $2; }
2905 static unsigned long int ulongval () { return $2; }
2906 #include <stdio.h>
2907 #include <stdlib.h>
2908 int
2909 main ()
2910 {
2911 
2912   FILE *f = fopen ("conftest.val", "w");
2913   if (! f)
2914     return 1;
2915   if (($2) < 0)
2916     {
2917       long int i = longval ();
2918       if (i != ($2))
2919         return 1;
2920       fprintf (f, "%ld", i);
2921     }
2922   else
2923     {
2924       unsigned long int i = ulongval ();
2925       if (i != ($2))
2926         return 1;
2927       fprintf (f, "%lu", i);
2928     }
2929   /* Do not output a trailing newline, as this causes \r\n confusion
2930      on some platforms.  */
2931   return ferror (f) || fclose (f) != 0;
2932 
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 if ac_fn_cxx_try_run "$LINENO"; then :
2938   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2939 else
2940   ac_retval=1
2941 fi
2942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2943   conftest.$ac_objext conftest.beam conftest.$ac_ext
2944 rm -f conftest.val
2945 
2946   fi
2947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2948   as_fn_set_status $ac_retval
2949 
2950 } # ac_fn_cxx_compute_int
2951 
2952 # ac_fn_cxx_try_link LINENO
2953 # -------------------------
2954 # Try to link conftest.$ac_ext, and return whether this succeeded.
2955 ac_fn_cxx_try_link ()
2956 {
2957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2958   rm -f conftest.$ac_objext conftest$ac_exeext
2959   if { { ac_try="$ac_link"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966   (eval "$ac_link") 2>conftest.err
2967   ac_status=$?
2968   if test -s conftest.err; then
2969     grep -v '^ *+' conftest.err >conftest.er1
2970     cat conftest.er1 >&5
2971     mv -f conftest.er1 conftest.err
2972   fi
2973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974   test $ac_status = 0; } && {
2975          test -z "$ac_cxx_werror_flag" ||
2976          test ! -s conftest.err
2977        } && test -s conftest$ac_exeext && {
2978          test "$cross_compiling" = yes ||
2979          test -x conftest$ac_exeext
2980        }; then :
2981   ac_retval=0
2982 else
2983   $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985 
2986         ac_retval=1
2987 fi
2988   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2989   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2990   # interfere with the next link command; also delete a directory that is
2991   # left behind by Apple's compiler.  We do this before executing the actions.
2992   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994   as_fn_set_status $ac_retval
2995 
2996 } # ac_fn_cxx_try_link
2997 
2998 # ac_fn_cxx_check_func LINENO FUNC VAR
2999 # ------------------------------------
3000 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3001 ac_fn_cxx_check_func ()
3002 {
3003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3005 $as_echo_n "checking for $2... " >&6; }
3006 if eval \${$3+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h.  */
3011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3013 #define $2 innocuous_$2
3014 
3015 /* System header to define __stub macros and hopefully few prototypes,
3016     which can conflict with char $2 (); below.
3017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018     <limits.h> exists even on freestanding compilers.  */
3019 
3020 #ifdef __STDC__
3021 # include <limits.h>
3022 #else
3023 # include <assert.h>
3024 #endif
3025 
3026 #undef $2
3027 
3028 /* Override any GCC internal prototype to avoid an error.
3029    Use char because int might match the return type of a GCC
3030    builtin and then its argument prototype would still apply.  */
3031 #ifdef __cplusplus
3032 extern "C"
3033 #endif
3034 char $2 ();
3035 /* The GNU C library defines this for functions which it implements
3036     to always fail with ENOSYS.  Some functions are actually named
3037     something starting with __ and the normal name is an alias.  */
3038 #if defined __stub_$2 || defined __stub___$2
3039 choke me
3040 #endif
3041 
3042 int
3043 main ()
3044 {
3045 return $2 ();
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 if ac_fn_cxx_try_link "$LINENO"; then :
3051   eval "$3=yes"
3052 else
3053   eval "$3=no"
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext \
3056     conftest$ac_exeext conftest.$ac_ext
3057 fi
3058 eval ac_res=\$$3
3059                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3060 $as_echo "$ac_res" >&6; }
3061   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3062 
3063 } # ac_fn_cxx_check_func
3064 
3065 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3066 # -------------------------------------------------------
3067 # Tests whether HEADER exists and can be compiled using the include files in
3068 # INCLUDES, setting the cache variable VAR accordingly.
3069 ac_fn_c_check_header_compile ()
3070 {
3071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3073 $as_echo_n "checking for $2... " >&6; }
3074 if eval \${$3+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h.  */
3079 $4
3080 #include <$2>
3081 _ACEOF
3082 if ac_fn_c_try_compile "$LINENO"; then :
3083   eval "$3=yes"
3084 else
3085   eval "$3=no"
3086 fi
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 fi
3089 eval ac_res=\$$3
3090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3091 $as_echo "$ac_res" >&6; }
3092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3093 
3094 } # ac_fn_c_check_header_compile
3095 cat >config.log <<_ACEOF
3096 This file contains any messages produced by compilers while
3097 running configure, to aid debugging if configure makes a mistake.
3098 
3099 It was created by OpenJDK $as_me jdk9, which was
3100 generated by GNU Autoconf 2.69.  Invocation command line was
3101 
3102   $ $0 $@
3103 
3104 _ACEOF
3105 exec 5>>config.log
3106 {
3107 cat <<_ASUNAME
3108 ## --------- ##
3109 ## Platform. ##
3110 ## --------- ##
3111 
3112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3117 
3118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3119 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3120 
3121 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3122 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3124 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3125 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3126 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3127 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3128 
3129 _ASUNAME
3130 
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     $as_echo "PATH: $as_dir"
3137   done
3138 IFS=$as_save_IFS
3139 
3140 } >&5
3141 
3142 cat >&5 <<_ACEOF
3143 
3144 
3145 ## ----------- ##
3146 ## Core tests. ##
3147 ## ----------- ##
3148 
3149 _ACEOF
3150 
3151 
3152 # Keep a trace of the command line.
3153 # Strip out --no-create and --no-recursion so they do not pile up.
3154 # Strip out --silent because we don't want to record it for future runs.
3155 # Also quote any args containing shell meta-characters.
3156 # Make two passes to allow for proper duplicate-argument suppression.
3157 ac_configure_args=
3158 ac_configure_args0=
3159 ac_configure_args1=
3160 ac_must_keep_next=false
3161 for ac_pass in 1 2
3162 do
3163   for ac_arg
3164   do
3165     case $ac_arg in
3166     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3167     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3168     | -silent | --silent | --silen | --sile | --sil)
3169       continue ;;
3170     *\'*)
3171       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3172     esac
3173     case $ac_pass in
3174     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3175     2)
3176       as_fn_append ac_configure_args1 " '$ac_arg'"
3177       if test $ac_must_keep_next = true; then
3178         ac_must_keep_next=false # Got value, back to normal.
3179       else
3180         case $ac_arg in
3181           *=* | --config-cache | -C | -disable-* | --disable-* \
3182           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3183           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3184           | -with-* | --with-* | -without-* | --without-* | --x)
3185             case "$ac_configure_args0 " in
3186               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3187             esac
3188             ;;
3189           -* ) ac_must_keep_next=true ;;
3190         esac
3191       fi
3192       as_fn_append ac_configure_args " '$ac_arg'"
3193       ;;
3194     esac
3195   done
3196 done
3197 { ac_configure_args0=; unset ac_configure_args0;}
3198 { ac_configure_args1=; unset ac_configure_args1;}
3199 
3200 # When interrupted or exit'd, cleanup temporary files, and complete
3201 # config.log.  We remove comments because anyway the quotes in there
3202 # would cause problems or look ugly.
3203 # WARNING: Use '\'' to represent an apostrophe within the trap.
3204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3205 trap 'exit_status=$?
3206   # Save into config.log some information that might help in debugging.
3207   {
3208     echo
3209 
3210     $as_echo "## ---------------- ##
3211 ## Cache variables. ##
3212 ## ---------------- ##"
3213     echo
3214     # The following way of writing the cache mishandles newlines in values,
3215 (
3216   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3217     eval ac_val=\$$ac_var
3218     case $ac_val in #(
3219     *${as_nl}*)
3220       case $ac_var in #(
3221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3223       esac
3224       case $ac_var in #(
3225       _ | IFS | as_nl) ;; #(
3226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3227       *) { eval $ac_var=; unset $ac_var;} ;;
3228       esac ;;
3229     esac
3230   done
3231   (set) 2>&1 |
3232     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3233     *${as_nl}ac_space=\ *)
3234       sed -n \
3235         "s/'\''/'\''\\\\'\'''\''/g;
3236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3237       ;; #(
3238     *)
3239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3240       ;;
3241     esac |
3242     sort
3243 )
3244     echo
3245 
3246     $as_echo "## ----------------- ##
3247 ## Output variables. ##
3248 ## ----------------- ##"
3249     echo
3250     for ac_var in $ac_subst_vars
3251     do
3252       eval ac_val=\$$ac_var
3253       case $ac_val in
3254       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255       esac
3256       $as_echo "$ac_var='\''$ac_val'\''"
3257     done | sort
3258     echo
3259 
3260     if test -n "$ac_subst_files"; then
3261       $as_echo "## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##"
3264       echo
3265       for ac_var in $ac_subst_files
3266       do
3267         eval ac_val=\$$ac_var
3268         case $ac_val in
3269         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3270         esac
3271         $as_echo "$ac_var='\''$ac_val'\''"
3272       done | sort
3273       echo
3274     fi
3275 
3276     if test -s confdefs.h; then
3277       $as_echo "## ----------- ##
3278 ## confdefs.h. ##
3279 ## ----------- ##"
3280       echo
3281       cat confdefs.h
3282       echo
3283     fi
3284     test "$ac_signal" != 0 &&
3285       $as_echo "$as_me: caught signal $ac_signal"
3286     $as_echo "$as_me: exit $exit_status"
3287   } >&5
3288   rm -f core *.core core.conftest.* &&
3289     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3290     exit $exit_status
3291 ' 0
3292 for ac_signal in 1 2 13 15; do
3293   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3294 done
3295 ac_signal=0
3296 
3297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3298 rm -f -r conftest* confdefs.h
3299 
3300 $as_echo "/* confdefs.h */" > confdefs.h
3301 
3302 # Predefined preprocessor variables.
3303 
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE_NAME "$PACKAGE_NAME"
3306 _ACEOF
3307 
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3310 _ACEOF
3311 
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3314 _ACEOF
3315 
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_STRING "$PACKAGE_STRING"
3318 _ACEOF
3319 
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3322 _ACEOF
3323 
3324 cat >>confdefs.h <<_ACEOF
3325 #define PACKAGE_URL "$PACKAGE_URL"
3326 _ACEOF
3327 
3328 
3329 # Let the site file select an alternate cache file if it wants to.
3330 # Prefer an explicitly selected file to automatically selected ones.
3331 ac_site_file1=NONE
3332 ac_site_file2=NONE
3333 if test -n "$CONFIG_SITE"; then
3334   # We do not want a PATH search for config.site.
3335   case $CONFIG_SITE in #((
3336     -*)  ac_site_file1=./$CONFIG_SITE;;
3337     */*) ac_site_file1=$CONFIG_SITE;;
3338     *)   ac_site_file1=./$CONFIG_SITE;;
3339   esac
3340 elif test "x$prefix" != xNONE; then
3341   ac_site_file1=$prefix/share/config.site
3342   ac_site_file2=$prefix/etc/config.site
3343 else
3344   ac_site_file1=$ac_default_prefix/share/config.site
3345   ac_site_file2=$ac_default_prefix/etc/config.site
3346 fi
3347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3348 do
3349   test "x$ac_site_file" = xNONE && continue
3350   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3353     sed 's/^/| /' "$ac_site_file" >&5
3354     . "$ac_site_file" \
3355       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "failed to load site script $ac_site_file
3358 See \`config.log' for more details" "$LINENO" 5; }
3359   fi
3360 done
3361 
3362 if test -r "$cache_file"; then
3363   # Some versions of bash will fail to source /dev/null (special files
3364   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3365   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3366     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3367 $as_echo "$as_me: loading cache $cache_file" >&6;}
3368     case $cache_file in
3369       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3370       *)                      . "./$cache_file";;
3371     esac
3372   fi
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3375 $as_echo "$as_me: creating cache $cache_file" >&6;}
3376   >$cache_file
3377 fi
3378 
3379 # Check that the precious variables saved in the cache have kept the same
3380 # value.
3381 ac_cache_corrupted=false
3382 for ac_var in $ac_precious_vars; do
3383   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3384   eval ac_new_set=\$ac_env_${ac_var}_set
3385   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3386   eval ac_new_val=\$ac_env_${ac_var}_value
3387   case $ac_old_set,$ac_new_set in
3388     set,)
3389       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3391       ac_cache_corrupted=: ;;
3392     ,set)
3393       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3395       ac_cache_corrupted=: ;;
3396     ,);;
3397     *)
3398       if test "x$ac_old_val" != "x$ac_new_val"; then
3399         # differences in whitespace do not lead to failure.
3400         ac_old_val_w=`echo x $ac_old_val`
3401         ac_new_val_w=`echo x $ac_new_val`
3402         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3403           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3405           ac_cache_corrupted=:
3406         else
3407           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3409           eval $ac_var=\$ac_old_val
3410         fi
3411         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3412 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3413         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3414 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3415       fi;;
3416   esac
3417   # Pass precious variables to config.status.
3418   if test "$ac_new_set" = set; then
3419     case $ac_new_val in
3420     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3421     *) ac_arg=$ac_var=$ac_new_val ;;
3422     esac
3423     case " $ac_configure_args " in
3424       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3425       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3426     esac
3427   fi
3428 done
3429 if $ac_cache_corrupted; then
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3434   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3435 fi
3436 ## -------------------- ##
3437 ## Main body of script. ##
3438 ## -------------------- ##
3439 
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 
3446 
3447 
3448 ac_aux_dir=
3449 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3450   if test -f "$ac_dir/install-sh"; then
3451     ac_aux_dir=$ac_dir
3452     ac_install_sh="$ac_aux_dir/install-sh -c"
3453     break
3454   elif test -f "$ac_dir/install.sh"; then
3455     ac_aux_dir=$ac_dir
3456     ac_install_sh="$ac_aux_dir/install.sh -c"
3457     break
3458   elif test -f "$ac_dir/shtool"; then
3459     ac_aux_dir=$ac_dir
3460     ac_install_sh="$ac_aux_dir/shtool install -c"
3461     break
3462   fi
3463 done
3464 if test -z "$ac_aux_dir"; then
3465   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
3466 fi
3467 
3468 # These three variables are undocumented and unsupported,
3469 # and are intended to be withdrawn in a future Autoconf release.
3470 # They can cause serious problems if a builder's source tree is in a directory
3471 # whose full name contains unusual characters.
3472 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3473 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3474 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3475 
3476 
3477 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3478 
3479 #
3480 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3481 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3482 #
3483 # This code is free software; you can redistribute it and/or modify it
3484 # under the terms of the GNU General Public License version 2 only, as
3485 # published by the Free Software Foundation.  Oracle designates this
3486 # particular file as subject to the "Classpath" exception as provided
3487 # by Oracle in the LICENSE file that accompanied this code.
3488 #
3489 # This code is distributed in the hope that it will be useful, but WITHOUT
3490 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3491 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3492 # version 2 for more details (a copy is included in the LICENSE file that
3493 # accompanied this code).
3494 #
3495 # You should have received a copy of the GNU General Public License version
3496 # 2 along with this work; if not, write to the Free Software Foundation,
3497 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3498 #
3499 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3500 # or visit www.oracle.com if you need additional information or have any
3501 # questions.
3502 #
3503 
3504 #
3505 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3506 #
3507 # This program is free software; you can redistribute it and/or modify
3508 # it under the terms of the GNU General Public License as published by
3509 # the Free Software Foundation; either version 2 of the License, or
3510 # (at your option) any later version.
3511 #
3512 # This program is distributed in the hope that it will be useful, but
3513 # WITHOUT ANY WARRANTY; without even the implied warranty of
3514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3515 # General Public License for more details.
3516 #
3517 # You should have received a copy of the GNU General Public License
3518 # along with this program; if not, write to the Free Software
3519 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3520 #
3521 # As a special exception to the GNU General Public License, if you
3522 # distribute this file as part of a program that contains a
3523 # configuration script generated by Autoconf, you may include it under
3524 # the same distribution terms that you use for the rest of that program.
3525 
3526 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3527 # ----------------------------------
3528 # PKG_PROG_PKG_CONFIG
3529 
3530 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3531 #
3532 # Check to see whether a particular set of modules exists.  Similar
3533 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3534 #
3535 #
3536 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3537 # this or PKG_CHECK_MODULES is called, or make sure to call
3538 # PKG_CHECK_EXISTS manually
3539 # --------------------------------------------------------------
3540 
3541 
3542 
3543 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3544 # ---------------------------------------------
3545 # _PKG_CONFIG
3546 
3547 # _PKG_SHORT_ERRORS_SUPPORTED
3548 # -----------------------------
3549 # _PKG_SHORT_ERRORS_SUPPORTED
3550 
3551 
3552 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3553 # [ACTION-IF-NOT-FOUND])
3554 #
3555 #
3556 # Note that if there is a possibility the first call to
3557 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3558 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3559 #
3560 #
3561 # --------------------------------------------------------------
3562 # PKG_CHECK_MODULES
3563 
3564 
3565 # Include these first...
3566 #
3567 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3568 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3569 #
3570 # This code is free software; you can redistribute it and/or modify it
3571 # under the terms of the GNU General Public License version 2 only, as
3572 # published by the Free Software Foundation.  Oracle designates this
3573 # particular file as subject to the "Classpath" exception as provided
3574 # by Oracle in the LICENSE file that accompanied this code.
3575 #
3576 # This code is distributed in the hope that it will be useful, but WITHOUT
3577 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3578 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3579 # version 2 for more details (a copy is included in the LICENSE file that
3580 # accompanied this code).
3581 #
3582 # You should have received a copy of the GNU General Public License version
3583 # 2 along with this work; if not, write to the Free Software Foundation,
3584 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3585 #
3586 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3587 # or visit www.oracle.com if you need additional information or have any
3588 # questions.
3589 #
3590 
3591 # Create a function/macro that takes a series of named arguments. The call is
3592 # similar to AC_DEFUN, but the setup of the function looks like this:
3593 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3594 # ... do something
3595 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3596 # ])
3597 # A star (*) in front of a named argument means that it is required and it's
3598 # presence will be verified. To pass e.g. the first value as a normal indexed
3599 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3600 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3601 # "ARG_FOO".
3602 #
3603 # The generated function can be called like this:
3604 # MYFUNC(FOO: [foo-val],
3605 #     BAR: [
3606 #         $ECHO hello world
3607 #     ])
3608 # Note that the argument value must start on the same line as the argument name.
3609 #
3610 # Argument 1: Name of the function to define
3611 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3612 # Argument 3: Argument array to treat as named, typically $@
3613 # Argument 4: The main function body
3614 
3615 
3616 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3617 # If so, then append $1 to $2 \
3618 # Also set JVM_ARG_OK to true/false depending on outcome.
3619 
3620 
3621 # Appends a string to a path variable, only adding the : when needed.
3622 
3623 
3624 # Prepends a string to a path variable, only adding the : when needed.
3625 
3626 
3627 # This will make sure the given variable points to a full and proper
3628 # path. This means:
3629 # 1) There will be no spaces in the path. On unix platforms,
3630 #    spaces in the path will result in an error. On Windows,
3631 #    the path will be rewritten using short-style to be space-free.
3632 # 2) The path will be absolute, and it will be in unix-style (on
3633 #     cygwin).
3634 # $1: The name of the variable to fix
3635 
3636 
3637 # This will make sure the given variable points to a executable
3638 # with a full and proper path. This means:
3639 # 1) There will be no spaces in the path. On unix platforms,
3640 #    spaces in the path will result in an error. On Windows,
3641 #    the path will be rewritten using short-style to be space-free.
3642 # 2) The path will be absolute, and it will be in unix-style (on
3643 #     cygwin).
3644 # Any arguments given to the executable is preserved.
3645 # If the input variable does not have a directory specification, then
3646 # it need to be in the PATH.
3647 # $1: The name of the variable to fix
3648 
3649 
3650 
3651 
3652 # Register a --with argument but mark it as deprecated
3653 # $1: The name of the with argument to deprecate, not including --with-
3654 
3655 
3656 # Register a --enable argument but mark it as deprecated
3657 # $1: The name of the with argument to deprecate, not including --enable-
3658 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3659 # $3: Messages to user.
3660 
3661 
3662 
3663 
3664 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3665 # $1: variable to check
3666 
3667 
3668 # Check that there are no unprocessed overridden variables left.
3669 # If so, they are an incorrect argument and we will exit with an error.
3670 
3671 
3672 # Setup a tool for the given variable. If correctly specified by the user,
3673 # use that value, otherwise search for the tool using the supplied code snippet.
3674 # $1: variable to set
3675 # $2: code snippet to call to look for the tool
3676 # $3: code snippet to call if variable was used to find tool
3677 
3678 
3679 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3680 # $1: variable to set
3681 # $2: executable name (or list of names) to look for
3682 # $3: [path]
3683 
3684 
3685 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3686 # $1: variable to set
3687 # $2: executable name (or list of names) to look for
3688 
3689 
3690 # Like BASIC_PATH_PROGS but fails if no tool was found.
3691 # $1: variable to set
3692 # $2: executable name (or list of names) to look for
3693 # $3: [path]
3694 
3695 
3696 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3697 # $1: variable to set
3698 # $2: autoconf macro to call to look for the special tool
3699 
3700 
3701 # Setup the most fundamental tools that relies on not much else to set up,
3702 # but is used by much of the early bootstrap code.
3703 
3704 
3705 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3706 
3707 
3708 # Evaluates platform specific overrides for devkit variables.
3709 # $1: Name of variable
3710 
3711 
3712 
3713 
3714 
3715 
3716 #%%% Simple tools %%%
3717 
3718 # Check if we have found a usable version of make
3719 # $1: the path to a potential make binary (or empty)
3720 # $2: the description on how we found this
3721 
3722 
3723 
3724 
3725 # Goes looking for a usable version of GNU make.
3726 
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 # Check if build directory is on local disk. If not possible to determine,
3737 # we prefer to claim it's local.
3738 # Argument 1: directory to test
3739 # Argument 2: what to do if it is on local disk
3740 # Argument 3: what to do otherwise (remote disk or failure)
3741 
3742 
3743 # Check that source files have basic read permissions set. This might
3744 # not be the case in cygwin in certain conditions.
3745 
3746 
3747 
3748 
3749 # Check for support for specific options in bash
3750 
3751 
3752 ################################################################################
3753 #
3754 # Default make target
3755 #
3756 
3757 
3758 # Code to run after AC_OUTPUT
3759 
3760 
3761 #
3762 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3763 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3764 #
3765 # This code is free software; you can redistribute it and/or modify it
3766 # under the terms of the GNU General Public License version 2 only, as
3767 # published by the Free Software Foundation.  Oracle designates this
3768 # particular file as subject to the "Classpath" exception as provided
3769 # by Oracle in the LICENSE file that accompanied this code.
3770 #
3771 # This code is distributed in the hope that it will be useful, but WITHOUT
3772 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3773 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3774 # version 2 for more details (a copy is included in the LICENSE file that
3775 # accompanied this code).
3776 #
3777 # You should have received a copy of the GNU General Public License version
3778 # 2 along with this work; if not, write to the Free Software Foundation,
3779 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3780 #
3781 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3782 # or visit www.oracle.com if you need additional information or have any
3783 # questions.
3784 #
3785 
3786 
3787 
3788 
3789 
3790 # Helper function which possibly converts a path using DOS-style short mode.
3791 # If so, the updated path is stored in $new_path.
3792 # $1: The path to check
3793 
3794 
3795 # Helper function which possibly converts a path using DOS-style short mode.
3796 # If so, the updated path is stored in $new_path.
3797 # $1: The path to check
3798 
3799 
3800 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3801 # and could probably be heavily simplified. However, all changes in this
3802 # area tend to need lot of testing in different scenarios, and in lack of
3803 # proper unit testing, cleaning this up has not been deemed worth the effort
3804 # at the moment.
3805 
3806 
3807 
3808 
3809 
3810 
3811 
3812 
3813 
3814 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3815 
3816 
3817 
3818 
3819 # ... then the rest
3820 #
3821 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3822 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3823 #
3824 # This code is free software; you can redistribute it and/or modify it
3825 # under the terms of the GNU General Public License version 2 only, as
3826 # published by the Free Software Foundation.  Oracle designates this
3827 # particular file as subject to the "Classpath" exception as provided
3828 # by Oracle in the LICENSE file that accompanied this code.
3829 #
3830 # This code is distributed in the hope that it will be useful, but WITHOUT
3831 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3832 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3833 # version 2 for more details (a copy is included in the LICENSE file that
3834 # accompanied this code).
3835 #
3836 # You should have received a copy of the GNU General Public License version
3837 # 2 along with this work; if not, write to the Free Software Foundation,
3838 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3839 #
3840 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3841 # or visit www.oracle.com if you need additional information or have any
3842 # questions.
3843 #
3844 
3845 ########################################################################
3846 # This file handles detection of the Boot JDK. The Boot JDK detection
3847 # process has been developed as a response to solve a complex real-world
3848 # problem. Initially, it was simple, but it has grown as platform after
3849 # platform, idiosyncracy after idiosyncracy has been supported.
3850 #
3851 # The basic idea is this:
3852 # 1) You need an acceptable *) JDK to use as a Boot JDK
3853 # 2) There are several ways to locate a JDK, that are mostly platform
3854 #    dependent **)
3855 # 3) You can have multiple JDKs installed
3856 # 4) If possible, configure should try to dig out an acceptable JDK
3857 #    automatically, without having to resort to command-line options
3858 #
3859 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3860 #     javac) and not a JRE, etc.
3861 #
3862 # **) On Windows we typically use a well-known path.
3863 #     On MacOSX we typically use the tool java_home.
3864 #     On Linux we typically find javac in the $PATH, and then follow a
3865 #     chain of symlinks that often ends up in a real JDK.
3866 #
3867 # This leads to the code where we check in different ways to locate a
3868 # JDK, and if one is found, check if it is acceptable. If not, we print
3869 # our reasons for rejecting it (useful when debugging non-working
3870 # configure situations) and continue checking the next one.
3871 ########################################################################
3872 
3873 # Execute the check given as argument, and verify the result
3874 # If the Boot JDK was previously found, do nothing
3875 # $1 A command line (typically autoconf macro) to execute
3876 
3877 
3878 # Test: Is bootjdk explicitly set by command line arguments?
3879 
3880 
3881 # Test: Is $JAVA_HOME set?
3882 
3883 
3884 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3885 
3886 
3887 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3888 # $1: Argument to the java_home binary (optional)
3889 
3890 
3891 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3892 
3893 
3894 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3895 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3896 # $1 = Path to directory containing jdk installations.
3897 # $2 = String to append to the found JDK directory to get the proper JDK home
3898 
3899 
3900 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3901 # environmental variable as base for where to look.
3902 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3903 
3904 
3905 # Test: Is there a JDK installed in default, well-known locations?
3906 
3907 
3908 # Check that a command-line tool in the Boot JDK is correct
3909 # $1 = name of variable to assign
3910 # $2 = name of binary
3911 
3912 
3913 ###############################################################################
3914 #
3915 # We need a Boot JDK to bootstrap the build.
3916 #
3917 
3918 
3919 
3920 
3921 
3922 # BUILD_JDK: the location of the latest JDK that can run
3923 #   on the host system and supports the target class file version
3924 #   generated in this JDK build.  This variable should only be
3925 #   used after the launchers are built.
3926 #
3927 
3928 # Execute the check given as argument, and verify the result.
3929 # If the JDK was previously found, do nothing.
3930 # $1 A command line (typically autoconf macro) to execute
3931 
3932 
3933 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3934 # is different than the host system doing the build (e.g. cross-compilation),
3935 # a special BUILD_JDK is built as part of the build process.  An external
3936 # prebuilt BUILD_JDK can also be supplied.
3937 
3938 
3939 #
3940 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3941 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3942 #
3943 # This code is free software; you can redistribute it and/or modify it
3944 # under the terms of the GNU General Public License version 2 only, as
3945 # published by the Free Software Foundation.  Oracle designates this
3946 # particular file as subject to the "Classpath" exception as provided
3947 # by Oracle in the LICENSE file that accompanied this code.
3948 #
3949 # This code is distributed in the hope that it will be useful, but WITHOUT
3950 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3951 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3952 # version 2 for more details (a copy is included in the LICENSE file that
3953 # accompanied this code).
3954 #
3955 # You should have received a copy of the GNU General Public License version
3956 # 2 along with this work; if not, write to the Free Software Foundation,
3957 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3958 #
3959 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3960 # or visit www.oracle.com if you need additional information or have any
3961 # questions.
3962 #
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 ################################################################################
3981 #
3982 # Runs icecc-create-env once and prints the error if it fails
3983 #
3984 # $1: arguments to icecc-create-env
3985 # $2: log file
3986 #
3987 
3988 
3989 ################################################################################
3990 #
3991 # Optionally enable distributed compilation of native code using icecc/icecream
3992 #
3993 
3994 
3995 
3996 
3997 
3998 
3999 
4000 #
4001 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4002 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4003 #
4004 # This code is free software; you can redistribute it and/or modify it
4005 # under the terms of the GNU General Public License version 2 only, as
4006 # published by the Free Software Foundation.  Oracle designates this
4007 # particular file as subject to the "Classpath" exception as provided
4008 # by Oracle in the LICENSE file that accompanied this code.
4009 #
4010 # This code is distributed in the hope that it will be useful, but WITHOUT
4011 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4012 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4013 # version 2 for more details (a copy is included in the LICENSE file that
4014 # accompanied this code).
4015 #
4016 # You should have received a copy of the GNU General Public License version
4017 # 2 along with this work; if not, write to the Free Software Foundation,
4018 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4019 #
4020 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4021 # or visit www.oracle.com if you need additional information or have any
4022 # questions.
4023 #
4024 
4025 ################################################################################
4026 #
4027 # Setup ABI profile (for arm)
4028 #
4029 
4030 
4031 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4032 # corresponding configure arguments instead
4033 
4034 
4035 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4036 # that configure can use them while detecting compilers.
4037 # TOOLCHAIN_TYPE is available here.
4038 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4039 
4040 
4041 
4042 
4043 
4044 
4045 # Documentation on common flags used for solstudio in HIGHEST.
4046 #
4047 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4048 #          done with care, there are some assumptions below that need to
4049 #          be understood about the use of pointers, and IEEE behavior.
4050 #
4051 # -fns: Use non-standard floating point mode (not IEEE 754)
4052 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4053 # -fsingle: Use single precision floating point with 'float'
4054 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4055 #   (Source with excessing pointer casting and data access with mixed
4056 #    pointer types are not recommended)
4057 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4058 #   (If you expect perfect errno behavior, do not use this)
4059 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4060 # -xrestrict: Pointer parameters to functions do not overlap
4061 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4062 #    If you pass in multiple pointers to the same data, do not use this)
4063 # -xlibmil: Inline some library routines
4064 #   (If you expect perfect errno behavior, do not use this)
4065 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4066 #   (If you expect perfect errno behavior, do not use this)
4067 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4068 
4069     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4070     # Bug?
4071     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4072     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4073     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4074     #fi
4075 
4076 
4077 
4078 
4079 
4080 
4081 ################################################################################
4082 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4083 #      conditionals against.
4084 # $2 - Optional prefix for each variable defined.
4085 
4086 
4087 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4088 #                                  IF_FALSE: [RUN-IF-FALSE])
4089 # ------------------------------------------------------------
4090 # Check that the C compiler supports an argument
4091 
4092 
4093 
4094 
4095 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4096 #                                    IF_FALSE: [RUN-IF-FALSE])
4097 # ------------------------------------------------------------
4098 # Check that the C++ compiler supports an argument
4099 
4100 
4101 
4102 
4103 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4104 #                                IF_FALSE: [RUN-IF-FALSE])
4105 # ------------------------------------------------------------
4106 # Check that the C and C++ compilers support an argument
4107 
4108 
4109 
4110 
4111 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4112 #                                   IF_FALSE: [RUN-IF-FALSE])
4113 # ------------------------------------------------------------
4114 # Check that the linker support an argument
4115 
4116 
4117 
4118 
4119 
4120 
4121 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4122 # Arguments:
4123 # $1 - Optional prefix for each variable defined.
4124 
4125 
4126 #
4127 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4128 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4129 #
4130 # This code is free software; you can redistribute it and/or modify it
4131 # under the terms of the GNU General Public License version 2 only, as
4132 # published by the Free Software Foundation.  Oracle designates this
4133 # particular file as subject to the "Classpath" exception as provided
4134 # by Oracle in the LICENSE file that accompanied this code.
4135 #
4136 # This code is distributed in the hope that it will be useful, but WITHOUT
4137 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4138 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4139 # version 2 for more details (a copy is included in the LICENSE file that
4140 # accompanied this code).
4141 #
4142 # You should have received a copy of the GNU General Public License version
4143 # 2 along with this work; if not, write to the Free Software Foundation,
4144 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4145 #
4146 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4147 # or visit www.oracle.com if you need additional information or have any
4148 # questions.
4149 #
4150 
4151 
4152 
4153 
4154 
4155 cygwin_help() {
4156   case $1 in
4157     unzip)
4158       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4159       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4160       ;;
4161     zip)
4162       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4163       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4164       ;;
4165     make)
4166       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4167       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4168       ;;
4169     freetype)
4170       HELP_MSG="
4171 The freetype library can now be build during the configure process.
4172 Download the freetype sources and unpack them into an arbitrary directory:
4173 
4174 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4175 tar -xzf freetype-2.5.3.tar.gz
4176 
4177 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4178 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4179 builds or into '<freetype_src>/lib32' for 32-bit builds.
4180 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4181 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4182 
4183 Alternatively you can unpack the sources like this to use the default directory:
4184 
4185 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4186       ;;
4187   esac
4188 }
4189 
4190 msys_help() {
4191   PKGHANDLER_COMMAND=""
4192 }
4193 
4194 apt_help() {
4195   case $1 in
4196     reduced)
4197       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4198     devkit)
4199       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4200     openjdk)
4201       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4202     alsa)
4203       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4204     cups)
4205       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4206     freetype)
4207       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4208     ffi)
4209       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4210     x11)
4211       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4212     ccache)
4213       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4214     dtrace)
4215       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4216     elf)
4217       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4218   esac
4219 }
4220 
4221 yum_help() {
4222   case $1 in
4223     devkit)
4224       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4225     openjdk)
4226       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4227     alsa)
4228       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4229     cups)
4230       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4231     freetype)
4232       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4233     x11)
4234       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4235     ccache)
4236       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4237     elf)
4238       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4239   esac
4240 }
4241 
4242 brew_help() {
4243   case $1 in
4244     openjdk)
4245       PKGHANDLER_COMMAND="brew cask install java" ;;
4246     freetype)
4247       PKGHANDLER_COMMAND="brew install freetype" ;;
4248     ccache)
4249       PKGHANDLER_COMMAND="brew install ccache" ;;
4250   esac
4251 }
4252 
4253 port_help() {
4254   PKGHANDLER_COMMAND=""
4255 }
4256 
4257 pkgutil_help() {
4258   PKGHANDLER_COMMAND=""
4259 }
4260 
4261 pkgadd_help() {
4262   PKGHANDLER_COMMAND=""
4263 }
4264 
4265 # This function will check if we're called from the "configure" wrapper while
4266 # printing --help. If so, we will print out additional information that can
4267 # only be extracted within the autoconf script, and then exit. This must be
4268 # called at the very beginning in configure.ac.
4269 
4270 
4271 
4272 
4273 
4274 
4275 #
4276 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4277 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4278 #
4279 # This code is free software; you can redistribute it and/or modify it
4280 # under the terms of the GNU General Public License version 2 only, as
4281 # published by the Free Software Foundation.  Oracle designates this
4282 # particular file as subject to the "Classpath" exception as provided
4283 # by Oracle in the LICENSE file that accompanied this code.
4284 #
4285 # This code is distributed in the hope that it will be useful, but WITHOUT
4286 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4287 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4288 # version 2 for more details (a copy is included in the LICENSE file that
4289 # accompanied this code).
4290 #
4291 # You should have received a copy of the GNU General Public License version
4292 # 2 along with this work; if not, write to the Free Software Foundation,
4293 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4294 #
4295 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4296 # or visit www.oracle.com if you need additional information or have any
4297 # questions.
4298 #
4299 
4300 # All valid JVM features, regardless of platform
4301 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4302     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4303     static-build link-time-opt aot"
4304 
4305 # All valid JVM variants
4306 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4307 
4308 ###############################################################################
4309 # Check if the specified JVM variant should be built. To be used in shell if
4310 # constructs, like this:
4311 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4312 #
4313 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4314 
4315 # Definition kept in one line to allow inlining in if statements.
4316 # Additional [] needed to keep m4 from mangling shell constructs.
4317 
4318 
4319 ###############################################################################
4320 # Check if the specified JVM features are explicitly enabled. To be used in
4321 # shell if constructs, like this:
4322 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4323 #
4324 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4325 
4326 # Definition kept in one line to allow inlining in if statements.
4327 # Additional [] needed to keep m4 from mangling shell constructs.
4328 
4329 
4330 ###############################################################################
4331 # Check which variants of the JVM that we want to build. Available variants are:
4332 #   server: normal interpreter, and a tiered C1/C2 compiler
4333 #   client: normal interpreter, and C1 (no C2 compiler)
4334 #   minimal: reduced form of client with optional features stripped out
4335 #   core: normal interpreter only, no compiler
4336 #   zero: C++ based interpreter only, no compiler
4337 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4338 #   custom: baseline JVM with no default features
4339 #
4340 
4341 
4342 ###############################################################################
4343 # Check if dtrace should be enabled and has all prerequisites present.
4344 #
4345 
4346 
4347 ################################################################################
4348 # Check if AOT should be enabled
4349 #
4350 
4351 
4352 ###############################################################################
4353 # Set up all JVM features for each JVM variant.
4354 #
4355 
4356 
4357 ###############################################################################
4358 # Validate JVM features once all setup is complete, including custom setup.
4359 #
4360 
4361 
4362 ################################################################################
4363 #
4364 # Specify which sources will be used to build the 64-bit ARM port
4365 #
4366 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4367 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4368 #
4369 
4370 
4371 
4372 ################################################################################
4373 # Check if gtest should be built
4374 #
4375 
4376 
4377 #
4378 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4379 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4380 #
4381 # This code is free software; you can redistribute it and/or modify it
4382 # under the terms of the GNU General Public License version 2 only, as
4383 # published by the Free Software Foundation.  Oracle designates this
4384 # particular file as subject to the "Classpath" exception as provided
4385 # by Oracle in the LICENSE file that accompanied this code.
4386 #
4387 # This code is distributed in the hope that it will be useful, but WITHOUT
4388 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4389 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4390 # version 2 for more details (a copy is included in the LICENSE file that
4391 # accompanied this code).
4392 #
4393 # You should have received a copy of the GNU General Public License version
4394 # 2 along with this work; if not, write to the Free Software Foundation,
4395 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4396 #
4397 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4398 # or visit www.oracle.com if you need additional information or have any
4399 # questions.
4400 #
4401 
4402 ###############################################################################
4403 # Check which variant of the JDK that we want to build.
4404 # Currently we have:
4405 #    normal:   standard edition
4406 # but the custom make system may add other variants
4407 #
4408 # Effectively the JDK variant gives a name to a specific set of
4409 # modules to compile into the JDK.
4410 
4411 
4412 ###############################################################################
4413 # Set the debug level
4414 #    release: no debug information, all optimizations, no asserts.
4415 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4416 #    fastdebug: debug information (-g), all optimizations, all asserts
4417 #    slowdebug: debug information (-g), no optimizations, all asserts
4418 
4419 
4420 ###############################################################################
4421 #
4422 # Should we build only OpenJDK even if closed sources are present?
4423 #
4424 
4425 
4426 
4427 
4428 ###############################################################################
4429 #
4430 # Enable or disable the elliptic curve crypto implementation
4431 #
4432 
4433 
4434 
4435 
4436 ################################################################################
4437 #
4438 # Gcov coverage data for hotspot
4439 #
4440 
4441 
4442 ################################################################################
4443 #
4444 # Static build support.  When enabled will generate static
4445 # libraries instead of shared libraries for all JDK libs.
4446 #
4447 
4448 
4449 ################################################################################
4450 #
4451 # jlink options.
4452 # We always keep packaged modules in JDK image.
4453 #
4454 
4455 
4456 ################################################################################
4457 #
4458 # Check if building of the jtreg failure handler should be enabled.
4459 #
4460 
4461 
4462 ################################################################################
4463 #
4464 # Enable or disable generation of the classlist at build time
4465 #
4466 
4467 
4468 #
4469 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4470 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4471 #
4472 # This code is free software; you can redistribute it and/or modify it
4473 # under the terms of the GNU General Public License version 2 only, as
4474 # published by the Free Software Foundation.  Oracle designates this
4475 # particular file as subject to the "Classpath" exception as provided
4476 # by Oracle in the LICENSE file that accompanied this code.
4477 #
4478 # This code is distributed in the hope that it will be useful, but WITHOUT
4479 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4480 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4481 # version 2 for more details (a copy is included in the LICENSE file that
4482 # accompanied this code).
4483 #
4484 # You should have received a copy of the GNU General Public License version
4485 # 2 along with this work; if not, write to the Free Software Foundation,
4486 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4487 #
4488 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4489 # or visit www.oracle.com if you need additional information or have any
4490 # questions.
4491 #
4492 
4493 ###############################################################################
4494 #
4495 # Setup version numbers
4496 #
4497 
4498 # Verify that a given string represents a valid version number, and assign it
4499 # to a variable.
4500 
4501 # Argument 1: the variable to assign to
4502 # Argument 2: the value given by the user
4503 
4504 
4505 
4506 
4507 #
4508 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4509 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4510 #
4511 # This code is free software; you can redistribute it and/or modify it
4512 # under the terms of the GNU General Public License version 2 only, as
4513 # published by the Free Software Foundation.  Oracle designates this
4514 # particular file as subject to the "Classpath" exception as provided
4515 # by Oracle in the LICENSE file that accompanied this code.
4516 #
4517 # This code is distributed in the hope that it will be useful, but WITHOUT
4518 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4519 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4520 # version 2 for more details (a copy is included in the LICENSE file that
4521 # accompanied this code).
4522 #
4523 # You should have received a copy of the GNU General Public License version
4524 # 2 along with this work; if not, write to the Free Software Foundation,
4525 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4526 #
4527 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4528 # or visit www.oracle.com if you need additional information or have any
4529 # questions.
4530 #
4531 
4532 # Major library component reside in separate files.
4533 #
4534 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4535 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4536 #
4537 # This code is free software; you can redistribute it and/or modify it
4538 # under the terms of the GNU General Public License version 2 only, as
4539 # published by the Free Software Foundation.  Oracle designates this
4540 # particular file as subject to the "Classpath" exception as provided
4541 # by Oracle in the LICENSE file that accompanied this code.
4542 #
4543 # This code is distributed in the hope that it will be useful, but WITHOUT
4544 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4545 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4546 # version 2 for more details (a copy is included in the LICENSE file that
4547 # accompanied this code).
4548 #
4549 # You should have received a copy of the GNU General Public License version
4550 # 2 along with this work; if not, write to the Free Software Foundation,
4551 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4552 #
4553 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4554 # or visit www.oracle.com if you need additional information or have any
4555 # questions.
4556 #
4557 
4558 ################################################################################
4559 # Setup alsa (Advanced Linux Sound Architecture)
4560 ################################################################################
4561 
4562 
4563 #
4564 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4565 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4566 #
4567 # This code is free software; you can redistribute it and/or modify it
4568 # under the terms of the GNU General Public License version 2 only, as
4569 # published by the Free Software Foundation.  Oracle designates this
4570 # particular file as subject to the "Classpath" exception as provided
4571 # by Oracle in the LICENSE file that accompanied this code.
4572 #
4573 # This code is distributed in the hope that it will be useful, but WITHOUT
4574 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4575 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4576 # version 2 for more details (a copy is included in the LICENSE file that
4577 # accompanied this code).
4578 #
4579 # You should have received a copy of the GNU General Public License version
4580 # 2 along with this work; if not, write to the Free Software Foundation,
4581 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4582 #
4583 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4584 # or visit www.oracle.com if you need additional information or have any
4585 # questions.
4586 #
4587 
4588 ################################################################################
4589 # Setup bundled libraries.
4590 #
4591 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4592 # OpenJDK repository. Default is to use these libraries as bundled, but they
4593 # might be replaced by en external version by the user.
4594 ################################################################################
4595 
4596 
4597 ################################################################################
4598 # Setup libjpeg
4599 ################################################################################
4600 
4601 
4602 ################################################################################
4603 # Setup giflib
4604 ################################################################################
4605 
4606 
4607 ################################################################################
4608 # Setup libpng
4609 ################################################################################
4610 
4611 
4612 ################################################################################
4613 # Setup zlib
4614 ################################################################################
4615 
4616 
4617 ################################################################################
4618 # Setup lcms (Little CMS)
4619 ################################################################################
4620 
4621 
4622 #
4623 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4624 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4625 #
4626 # This code is free software; you can redistribute it and/or modify it
4627 # under the terms of the GNU General Public License version 2 only, as
4628 # published by the Free Software Foundation.  Oracle designates this
4629 # particular file as subject to the "Classpath" exception as provided
4630 # by Oracle in the LICENSE file that accompanied this code.
4631 #
4632 # This code is distributed in the hope that it will be useful, but WITHOUT
4633 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4634 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4635 # version 2 for more details (a copy is included in the LICENSE file that
4636 # accompanied this code).
4637 #
4638 # You should have received a copy of the GNU General Public License version
4639 # 2 along with this work; if not, write to the Free Software Foundation,
4640 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4641 #
4642 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4643 # or visit www.oracle.com if you need additional information or have any
4644 # questions.
4645 #
4646 
4647 ################################################################################
4648 # Setup cups (Common Unix Printing System)
4649 ################################################################################
4650 
4651 
4652 #
4653 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4654 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4655 #
4656 # This code is free software; you can redistribute it and/or modify it
4657 # under the terms of the GNU General Public License version 2 only, as
4658 # published by the Free Software Foundation.  Oracle designates this
4659 # particular file as subject to the "Classpath" exception as provided
4660 # by Oracle in the LICENSE file that accompanied this code.
4661 #
4662 # This code is distributed in the hope that it will be useful, but WITHOUT
4663 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4664 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4665 # version 2 for more details (a copy is included in the LICENSE file that
4666 # accompanied this code).
4667 #
4668 # You should have received a copy of the GNU General Public License version
4669 # 2 along with this work; if not, write to the Free Software Foundation,
4670 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4671 #
4672 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4673 # or visit www.oracle.com if you need additional information or have any
4674 # questions.
4675 #
4676 
4677 ################################################################################
4678 # Setup libffi (Foreign Function Interface)
4679 ################################################################################
4680 
4681 
4682 #
4683 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4684 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4685 #
4686 # This code is free software; you can redistribute it and/or modify it
4687 # under the terms of the GNU General Public License version 2 only, as
4688 # published by the Free Software Foundation.  Oracle designates this
4689 # particular file as subject to the "Classpath" exception as provided
4690 # by Oracle in the LICENSE file that accompanied this code.
4691 #
4692 # This code is distributed in the hope that it will be useful, but WITHOUT
4693 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4694 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4695 # version 2 for more details (a copy is included in the LICENSE file that
4696 # accompanied this code).
4697 #
4698 # You should have received a copy of the GNU General Public License version
4699 # 2 along with this work; if not, write to the Free Software Foundation,
4700 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4701 #
4702 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4703 # or visit www.oracle.com if you need additional information or have any
4704 # questions.
4705 #
4706 
4707 ################################################################################
4708 # Build the freetype lib from source
4709 ################################################################################
4710 
4711 
4712 ################################################################################
4713 # Check if a potential freeype library match is correct and usable
4714 ################################################################################
4715 
4716 
4717 ################################################################################
4718 # Setup freetype (The FreeType2 font rendering library)
4719 ################################################################################
4720 
4721 
4722 #
4723 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4724 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4725 #
4726 # This code is free software; you can redistribute it and/or modify it
4727 # under the terms of the GNU General Public License version 2 only, as
4728 # published by the Free Software Foundation.  Oracle designates this
4729 # particular file as subject to the "Classpath" exception as provided
4730 # by Oracle in the LICENSE file that accompanied this code.
4731 #
4732 # This code is distributed in the hope that it will be useful, but WITHOUT
4733 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4734 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4735 # version 2 for more details (a copy is included in the LICENSE file that
4736 # accompanied this code).
4737 #
4738 # You should have received a copy of the GNU General Public License version
4739 # 2 along with this work; if not, write to the Free Software Foundation,
4740 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4741 #
4742 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4743 # or visit www.oracle.com if you need additional information or have any
4744 # questions.
4745 #
4746 
4747 ################################################################################
4748 # Setup the standard C/C++ runtime libraries.
4749 #
4750 # Most importantly, determine if stdc++ should be linked statically or
4751 # dynamically.
4752 ################################################################################
4753 
4754 
4755 #
4756 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4757 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4758 #
4759 # This code is free software; you can redistribute it and/or modify it
4760 # under the terms of the GNU General Public License version 2 only, as
4761 # published by the Free Software Foundation.  Oracle designates this
4762 # particular file as subject to the "Classpath" exception as provided
4763 # by Oracle in the LICENSE file that accompanied this code.
4764 #
4765 # This code is distributed in the hope that it will be useful, but WITHOUT
4766 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4767 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4768 # version 2 for more details (a copy is included in the LICENSE file that
4769 # accompanied this code).
4770 #
4771 # You should have received a copy of the GNU General Public License version
4772 # 2 along with this work; if not, write to the Free Software Foundation,
4773 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4774 #
4775 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4776 # or visit www.oracle.com if you need additional information or have any
4777 # questions.
4778 #
4779 
4780 ################################################################################
4781 # Setup X11 Windows system
4782 ################################################################################
4783 
4784 
4785 #
4786 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4787 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4788 #
4789 # This code is free software; you can redistribute it and/or modify it
4790 # under the terms of the GNU General Public License version 2 only, as
4791 # published by the Free Software Foundation.  Oracle designates this
4792 # particular file as subject to the "Classpath" exception as provided
4793 # by Oracle in the LICENSE file that accompanied this code.
4794 #
4795 # This code is distributed in the hope that it will be useful, but WITHOUT
4796 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4797 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4798 # version 2 for more details (a copy is included in the LICENSE file that
4799 # accompanied this code).
4800 #
4801 # You should have received a copy of the GNU General Public License version
4802 # 2 along with this work; if not, write to the Free Software Foundation,
4803 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4804 #
4805 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4806 # or visit www.oracle.com if you need additional information or have any
4807 # questions.
4808 #
4809 
4810 ################################################################################
4811 # Setup libelf (ELF library)
4812 ################################################################################
4813 
4814 
4815 
4816 ################################################################################
4817 # Determine which libraries are needed for this configuration
4818 ################################################################################
4819 
4820 
4821 ################################################################################
4822 # Parse library options, and setup needed libraries
4823 ################################################################################
4824 
4825 
4826 ################################################################################
4827 # Setup llvm (Low-Level VM)
4828 ################################################################################
4829 
4830 
4831 ################################################################################
4832 # Setup various libraries, typically small system libraries
4833 ################################################################################
4834 
4835 
4836 ################################################################################
4837 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4838 # redistribute it in the test image.
4839 ################################################################################
4840 
4841 
4842 
4843 #
4844 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4845 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4846 #
4847 # This code is free software; you can redistribute it and/or modify it
4848 # under the terms of the GNU General Public License version 2 only, as
4849 # published by the Free Software Foundation.  Oracle designates this
4850 # particular file as subject to the "Classpath" exception as provided
4851 # by Oracle in the LICENSE file that accompanied this code.
4852 #
4853 # This code is distributed in the hope that it will be useful, but WITHOUT
4854 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4855 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4856 # version 2 for more details (a copy is included in the LICENSE file that
4857 # accompanied this code).
4858 #
4859 # You should have received a copy of the GNU General Public License version
4860 # 2 along with this work; if not, write to the Free Software Foundation,
4861 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4862 #
4863 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4864 # or visit www.oracle.com if you need additional information or have any
4865 # questions.
4866 #
4867 
4868 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4869 # Converts autoconf style CPU name to OpenJDK style, into
4870 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4871 
4872 
4873 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4874 # Converts autoconf style OS name to OpenJDK style, into
4875 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4876 
4877 
4878 # Expects $host_os $host_cpu $build_os and $build_cpu
4879 # and $with_target_bits to have been setup!
4880 #
4881 # Translate the standard triplet(quadruplet) definition
4882 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4883 # OPENJDK_BUILD_OS, etc.
4884 
4885 
4886 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4887 # accordingly. Must be done after setting up build and target system, but before
4888 # doing anything else with these values.
4889 
4890 
4891 # Setup the legacy variables, for controlling the old makefiles.
4892 #
4893 
4894 
4895 # $1 - Either TARGET or BUILD to setup the variables for.
4896 
4897 
4898 
4899 
4900 #%%% Build and target systems %%%
4901 
4902 
4903 
4904 
4905 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4906 # Add -mX to various FLAGS variables.
4907 
4908 
4909 
4910 
4911 
4912 
4913 #
4914 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4915 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4916 #
4917 # This code is free software; you can redistribute it and/or modify it
4918 # under the terms of the GNU General Public License version 2 only, as
4919 # published by the Free Software Foundation.  Oracle designates this
4920 # particular file as subject to the "Classpath" exception as provided
4921 # by Oracle in the LICENSE file that accompanied this code.
4922 #
4923 # This code is distributed in the hope that it will be useful, but WITHOUT
4924 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4925 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4926 # version 2 for more details (a copy is included in the LICENSE file that
4927 # accompanied this code).
4928 #
4929 # You should have received a copy of the GNU General Public License version
4930 # 2 along with this work; if not, write to the Free Software Foundation,
4931 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4932 #
4933 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4934 # or visit www.oracle.com if you need additional information or have any
4935 # questions.
4936 #
4937 
4938 
4939 
4940 
4941 
4942 
4943 
4944 ################################################################################
4945 # Define a mechanism for importing extra prebuilt modules
4946 #
4947 
4948 
4949 
4950 #
4951 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4952 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4953 #
4954 # This code is free software; you can redistribute it and/or modify it
4955 # under the terms of the GNU General Public License version 2 only, as
4956 # published by the Free Software Foundation.  Oracle designates this
4957 # particular file as subject to the "Classpath" exception as provided
4958 # by Oracle in the LICENSE file that accompanied this code.
4959 #
4960 # This code is distributed in the hope that it will be useful, but WITHOUT
4961 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4962 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4963 # version 2 for more details (a copy is included in the LICENSE file that
4964 # accompanied this code).
4965 #
4966 # You should have received a copy of the GNU General Public License version
4967 # 2 along with this work; if not, write to the Free Software Foundation,
4968 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4969 #
4970 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4971 # or visit www.oracle.com if you need additional information or have any
4972 # questions.
4973 #
4974 
4975 ########################################################################
4976 # This file is responsible for detecting, verifying and setting up the
4977 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4978 # proper paths to the binaries, but it will not setup any flags.
4979 #
4980 # The binaries used is determined by the toolchain type, which is the family of
4981 # compilers and related tools that are used.
4982 ########################################################################
4983 
4984 
4985 # All valid toolchains, regardless of platform (used by help.m4)
4986 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4987 
4988 # These toolchains are valid on different platforms
4989 VALID_TOOLCHAINS_linux="gcc clang"
4990 VALID_TOOLCHAINS_solaris="solstudio"
4991 VALID_TOOLCHAINS_macosx="gcc clang"
4992 VALID_TOOLCHAINS_aix="xlc"
4993 VALID_TOOLCHAINS_windows="microsoft"
4994 
4995 # Toolchain descriptions
4996 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4997 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4998 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4999 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5000 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5001 
5002 # Minimum supported versions, empty means unspecified
5003 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5004 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
5005 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5006 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5007 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5008 
5009 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5010 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5011 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5012 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5013 
5014 
5015 # Check if the configured compiler (C and C++) is of a specific version or
5016 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5017 #
5018 # Arguments:
5019 #   VERSION:   The version string to check against the found version
5020 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5021 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5022 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5023 
5024 
5025 
5026 
5027 # Setup a number of variables describing how native output files are
5028 # named on this platform/toolchain.
5029 
5030 
5031 # Determine which toolchain type to use, and make sure it is valid for this
5032 # platform. Setup various information about the selected toolchain.
5033 
5034 
5035 # Before we start detecting the toolchain executables, we might need some
5036 # special setup, e.g. additional paths etc.
5037 
5038 
5039 # Restore path, etc
5040 
5041 
5042 # Check if a compiler is of the toolchain type we expect, and save the version
5043 # information from it. If the compiler does not match the expected type,
5044 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5045 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5046 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5047 #
5048 # $1 = compiler to test (CC or CXX)
5049 # $2 = human readable name of compiler (C or C++)
5050 
5051 
5052 # Try to locate the given C or C++ compiler in the path, or otherwise.
5053 #
5054 # $1 = compiler to test (CC or CXX)
5055 # $2 = human readable name of compiler (C or C++)
5056 # $3 = list of compiler names to search for
5057 
5058 
5059 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5060 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5061 # archiver (AR). Verify that the compilers are correct according to the
5062 # toolchain type.
5063 
5064 
5065 # Setup additional tools that is considered a part of the toolchain, but not the
5066 # core part. Many of these are highly platform-specific and do not exist,
5067 # and/or are not needed on all platforms.
5068 
5069 
5070 # Setup the build tools (i.e, the compiler and linker used to build programs
5071 # that should be run on the build platform, not the target platform, as a build
5072 # helper). Since the non-cross-compile case uses the normal, target compilers
5073 # for this, we can only do this after these have been setup.
5074 
5075 
5076 # Do some additional checks on the detected tools.
5077 
5078 
5079 # Setup the JTReg Regression Test Harness.
5080 
5081 
5082 #
5083 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5084 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5085 #
5086 # This code is free software; you can redistribute it and/or modify it
5087 # under the terms of the GNU General Public License version 2 only, as
5088 # published by the Free Software Foundation.  Oracle designates this
5089 # particular file as subject to the "Classpath" exception as provided
5090 # by Oracle in the LICENSE file that accompanied this code.
5091 #
5092 # This code is distributed in the hope that it will be useful, but WITHOUT
5093 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5094 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5095 # version 2 for more details (a copy is included in the LICENSE file that
5096 # accompanied this code).
5097 #
5098 # You should have received a copy of the GNU General Public License version
5099 # 2 along with this work; if not, write to the Free Software Foundation,
5100 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5101 #
5102 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5103 # or visit www.oracle.com if you need additional information or have any
5104 # questions.
5105 #
5106 
5107 ################################################################################
5108 # The order of these defines the priority by which we try to find them.
5109 VALID_VS_VERSIONS="2013 2012 2010"
5110 
5111 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5112 VS_VERSION_INTERNAL_2010=100
5113 VS_MSVCR_2010=msvcr100.dll
5114 # We don't use msvcp on Visual Studio 2010
5115 #VS_MSVCP_2010=msvcp100.dll
5116 VS_ENVVAR_2010="VS100COMNTOOLS"
5117 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5118 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5119 VS_VS_PLATFORM_NAME_2010="v100"
5120 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5121 
5122 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5123 VS_VERSION_INTERNAL_2012=110
5124 VS_MSVCR_2012=msvcr110.dll
5125 VS_MSVCP_2012=msvcp110.dll
5126 VS_ENVVAR_2012="VS110COMNTOOLS"
5127 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5128 VS_SDK_INSTALLDIR_2012=
5129 VS_VS_PLATFORM_NAME_2012="v110"
5130 VS_SDK_PLATFORM_NAME_2012=
5131 
5132 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5133 VS_VERSION_INTERNAL_2013=120
5134 VS_MSVCR_2013=msvcr120.dll
5135 VS_MSVCP_2013=msvcp120.dll
5136 VS_ENVVAR_2013="VS120COMNTOOLS"
5137 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5138 VS_SDK_INSTALLDIR_2013=
5139 VS_VS_PLATFORM_NAME_2013="v120"
5140 VS_SDK_PLATFORM_NAME_2013=
5141 
5142 ################################################################################
5143 
5144 
5145 
5146 ################################################################################
5147 
5148 
5149 
5150 ################################################################################
5151 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5152 # build environment and assigns it to VS_ENV_CMD
5153 
5154 
5155 ################################################################################
5156 
5157 
5158 
5159 ################################################################################
5160 # Check if the VS env variables were setup prior to running configure.
5161 # If not, then find vcvarsall.bat and run it automatically, and integrate
5162 # the set env variables into the spec file.
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 
5171 
5172 
5173 
5174 
5175 
5176 
5177 # This line needs to be here, verbatim, after all includes and the dummy hook
5178 # definitions. It is replaced with custom functionality when building
5179 # custom sources.
5180 #CUSTOM_AUTOCONF_INCLUDE
5181 
5182 # Do not change or remove the following line, it is needed for consistency checks:
5183 DATE_WHEN_GENERATED=1484571183
5184 
5185 ###############################################################################
5186 #
5187 # Initialization / Boot-strapping
5188 #
5189 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5190 # thus it jumps back and forth, each time gaining something needed later on.
5191 #
5192 ###############################################################################
5193 
5194 # If we are requested to print additional help, do that and then exit.
5195 # This must be the very first call.
5196 
5197   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5198 
5199     # Print available toolchains
5200     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5201     $PRINTF "Which are valid to use depends on the build platform.\n"
5202     for toolchain in $VALID_TOOLCHAINS_all; do
5203       # Use indirect variable referencing
5204       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5205       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5206       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5207     done
5208     $PRINTF "\n"
5209 
5210     # Print available jvm features
5211     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5212     $PRINTF "Which are valid to use depends on the target platform.\n  "
5213     $PRINTF "%s " $VALID_JVM_FEATURES
5214     $PRINTF "\n"
5215 
5216     # And now exit directly
5217     exit 0
5218   fi
5219 
5220 
5221 # Basic initialization that must happen first of all in the normal process.
5222 
5223   # Save the original command line. This is passed to us by the wrapper configure script.
5224 
5225   # Save the path variable before it gets changed
5226   ORIGINAL_PATH="$PATH"
5227 
5228   DATE_WHEN_CONFIGURED=`LANG=C date`
5229 
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5231 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5233 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5234 
5235 
5236   # Start with tools that do not need have cross compilation support
5237   # and can be expected to be found in the default PATH. These tools are
5238   # used by configure.
5239 
5240   # First are all the simple required tools.
5241 
5242 
5243 
5244   # Publish this variable in the help.
5245 
5246 
5247   if [ -z "${BASENAME+x}" ]; then
5248     # The variable is not set by user, try to locate tool using the code snippet
5249     for ac_prog in basename
5250 do
5251   # Extract the first word of "$ac_prog", so it can be a program name with args.
5252 set dummy $ac_prog; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_path_BASENAME+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   case $BASENAME in
5259   [\\/]* | ?:[\\/]*)
5260   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5261   ;;
5262   *)
5263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277 
5278   ;;
5279 esac
5280 fi
5281 BASENAME=$ac_cv_path_BASENAME
5282 if test -n "$BASENAME"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5284 $as_echo "$BASENAME" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289 
5290 
5291   test -n "$BASENAME" && break
5292 done
5293 
5294   else
5295     # The variable is set, but is it from the command line or the environment?
5296 
5297     # Try to remove the string !BASENAME! from our list.
5298     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5299     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5300       # If it failed, the variable was not from the command line. Ignore it,
5301       # but warn the user (except for BASH, which is always set by the calling BASH).
5302       if test "xBASENAME" != xBASH; then
5303         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5304 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5305       fi
5306       # Try to locate tool using the code snippet
5307       for ac_prog in basename
5308 do
5309   # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_path_BASENAME+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   case $BASENAME in
5317   [\\/]* | ?:[\\/]*)
5318   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5319   ;;
5320   *)
5321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326     for ac_exec_ext in '' $ac_executable_extensions; do
5327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333   done
5334 IFS=$as_save_IFS
5335 
5336   ;;
5337 esac
5338 fi
5339 BASENAME=$ac_cv_path_BASENAME
5340 if test -n "$BASENAME"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5342 $as_echo "$BASENAME" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347 
5348 
5349   test -n "$BASENAME" && break
5350 done
5351 
5352     else
5353       # If it succeeded, then it was overridden by the user. We will use it
5354       # for the tool.
5355 
5356       # First remove it from the list of overridden variables, so we can test
5357       # for unknown variables in the end.
5358       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5359 
5360       # Check if we try to supply an empty value
5361       if test "x$BASENAME" = x; then
5362         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5363 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5365 $as_echo_n "checking for BASENAME... " >&6; }
5366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5367 $as_echo "disabled" >&6; }
5368       else
5369         # Check if the provided tool contains a complete path.
5370         tool_specified="$BASENAME"
5371         tool_basename="${tool_specified##*/}"
5372         if test "x$tool_basename" = "x$tool_specified"; then
5373           # A command without a complete path is provided, search $PATH.
5374           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5375 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5376           # Extract the first word of "$tool_basename", so it can be a program name with args.
5377 set dummy $tool_basename; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_BASENAME+:} false; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   case $BASENAME in
5384   [\\/]* | ?:[\\/]*)
5385   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5386   ;;
5387   *)
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402 
5403   ;;
5404 esac
5405 fi
5406 BASENAME=$ac_cv_path_BASENAME
5407 if test -n "$BASENAME"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5409 $as_echo "$BASENAME" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414 
5415 
5416           if test "x$BASENAME" = x; then
5417             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5418           fi
5419         else
5420           # Otherwise we believe it is a complete path. Use it as it is.
5421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5422 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5423           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5424 $as_echo_n "checking for BASENAME... " >&6; }
5425           if test ! -x "$tool_specified"; then
5426             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5427 $as_echo "not found" >&6; }
5428             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5429           fi
5430           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5431 $as_echo "$tool_specified" >&6; }
5432         fi
5433       fi
5434     fi
5435 
5436   fi
5437 
5438 
5439 
5440   if test "x$BASENAME" = x; then
5441     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5442   fi
5443 
5444 
5445 
5446 
5447 
5448   # Publish this variable in the help.
5449 
5450 
5451   if [ -z "${BASH+x}" ]; then
5452     # The variable is not set by user, try to locate tool using the code snippet
5453     for ac_prog in bash
5454 do
5455   # Extract the first word of "$ac_prog", so it can be a program name with args.
5456 set dummy $ac_prog; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_path_BASH+:} false; then :
5460   $as_echo_n "(cached) " >&6
5461 else
5462   case $BASH in
5463   [\\/]* | ?:[\\/]*)
5464   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5465   ;;
5466   *)
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_exec_ext in '' $ac_executable_extensions; do
5473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476     break 2
5477   fi
5478 done
5479   done
5480 IFS=$as_save_IFS
5481 
5482   ;;
5483 esac
5484 fi
5485 BASH=$ac_cv_path_BASH
5486 if test -n "$BASH"; then
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5488 $as_echo "$BASH" >&6; }
5489 else
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493 
5494 
5495   test -n "$BASH" && break
5496 done
5497 
5498   else
5499     # The variable is set, but is it from the command line or the environment?
5500 
5501     # Try to remove the string !BASH! from our list.
5502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5504       # If it failed, the variable was not from the command line. Ignore it,
5505       # but warn the user (except for BASH, which is always set by the calling BASH).
5506       if test "xBASH" != xBASH; then
5507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5508 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5509       fi
5510       # Try to locate tool using the code snippet
5511       for ac_prog in bash
5512 do
5513   # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_path_BASH+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   case $BASH in
5521   [\\/]* | ?:[\\/]*)
5522   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5523   ;;
5524   *)
5525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539 
5540   ;;
5541 esac
5542 fi
5543 BASH=$ac_cv_path_BASH
5544 if test -n "$BASH"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5546 $as_echo "$BASH" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551 
5552 
5553   test -n "$BASH" && break
5554 done
5555 
5556     else
5557       # If it succeeded, then it was overridden by the user. We will use it
5558       # for the tool.
5559 
5560       # First remove it from the list of overridden variables, so we can test
5561       # for unknown variables in the end.
5562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5563 
5564       # Check if we try to supply an empty value
5565       if test "x$BASH" = x; then
5566         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5567 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5569 $as_echo_n "checking for BASH... " >&6; }
5570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5571 $as_echo "disabled" >&6; }
5572       else
5573         # Check if the provided tool contains a complete path.
5574         tool_specified="$BASH"
5575         tool_basename="${tool_specified##*/}"
5576         if test "x$tool_basename" = "x$tool_specified"; then
5577           # A command without a complete path is provided, search $PATH.
5578           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5579 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5580           # Extract the first word of "$tool_basename", so it can be a program name with args.
5581 set dummy $tool_basename; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_path_BASH+:} false; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   case $BASH in
5588   [\\/]* | ?:[\\/]*)
5589   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5590   ;;
5591   *)
5592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606 
5607   ;;
5608 esac
5609 fi
5610 BASH=$ac_cv_path_BASH
5611 if test -n "$BASH"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5613 $as_echo "$BASH" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618 
5619 
5620           if test "x$BASH" = x; then
5621             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5622           fi
5623         else
5624           # Otherwise we believe it is a complete path. Use it as it is.
5625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5626 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5627           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5628 $as_echo_n "checking for BASH... " >&6; }
5629           if test ! -x "$tool_specified"; then
5630             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5631 $as_echo "not found" >&6; }
5632             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5633           fi
5634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5635 $as_echo "$tool_specified" >&6; }
5636         fi
5637       fi
5638     fi
5639 
5640   fi
5641 
5642 
5643 
5644   if test "x$BASH" = x; then
5645     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5646   fi
5647 
5648 
5649 
5650 
5651 
5652   # Publish this variable in the help.
5653 
5654 
5655   if [ -z "${CAT+x}" ]; then
5656     # The variable is not set by user, try to locate tool using the code snippet
5657     for ac_prog in cat
5658 do
5659   # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_path_CAT+:} false; then :
5664   $as_echo_n "(cached) " >&6
5665 else
5666   case $CAT in
5667   [\\/]* | ?:[\\/]*)
5668   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5669   ;;
5670   *)
5671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685 
5686   ;;
5687 esac
5688 fi
5689 CAT=$ac_cv_path_CAT
5690 if test -n "$CAT"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5692 $as_echo "$CAT" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697 
5698 
5699   test -n "$CAT" && break
5700 done
5701 
5702   else
5703     # The variable is set, but is it from the command line or the environment?
5704 
5705     # Try to remove the string !CAT! from our list.
5706     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5707     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5708       # If it failed, the variable was not from the command line. Ignore it,
5709       # but warn the user (except for BASH, which is always set by the calling BASH).
5710       if test "xCAT" != xBASH; then
5711         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5712 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5713       fi
5714       # Try to locate tool using the code snippet
5715       for ac_prog in cat
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_path_CAT+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   case $CAT in
5725   [\\/]* | ?:[\\/]*)
5726   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5727   ;;
5728   *)
5729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5743 
5744   ;;
5745 esac
5746 fi
5747 CAT=$ac_cv_path_CAT
5748 if test -n "$CAT"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5750 $as_echo "$CAT" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755 
5756 
5757   test -n "$CAT" && break
5758 done
5759 
5760     else
5761       # If it succeeded, then it was overridden by the user. We will use it
5762       # for the tool.
5763 
5764       # First remove it from the list of overridden variables, so we can test
5765       # for unknown variables in the end.
5766       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5767 
5768       # Check if we try to supply an empty value
5769       if test "x$CAT" = x; then
5770         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5771 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5773 $as_echo_n "checking for CAT... " >&6; }
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5775 $as_echo "disabled" >&6; }
5776       else
5777         # Check if the provided tool contains a complete path.
5778         tool_specified="$CAT"
5779         tool_basename="${tool_specified##*/}"
5780         if test "x$tool_basename" = "x$tool_specified"; then
5781           # A command without a complete path is provided, search $PATH.
5782           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5783 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5784           # Extract the first word of "$tool_basename", so it can be a program name with args.
5785 set dummy $tool_basename; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if ${ac_cv_path_CAT+:} false; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   case $CAT in
5792   [\\/]* | ?:[\\/]*)
5793   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5794   ;;
5795   *)
5796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810 
5811   ;;
5812 esac
5813 fi
5814 CAT=$ac_cv_path_CAT
5815 if test -n "$CAT"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5817 $as_echo "$CAT" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822 
5823 
5824           if test "x$CAT" = x; then
5825             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5826           fi
5827         else
5828           # Otherwise we believe it is a complete path. Use it as it is.
5829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5830 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5831           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5832 $as_echo_n "checking for CAT... " >&6; }
5833           if test ! -x "$tool_specified"; then
5834             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5835 $as_echo "not found" >&6; }
5836             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5837           fi
5838           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5839 $as_echo "$tool_specified" >&6; }
5840         fi
5841       fi
5842     fi
5843 
5844   fi
5845 
5846 
5847 
5848   if test "x$CAT" = x; then
5849     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5850   fi
5851 
5852 
5853 
5854 
5855 
5856   # Publish this variable in the help.
5857 
5858 
5859   if [ -z "${CHMOD+x}" ]; then
5860     # The variable is not set by user, try to locate tool using the code snippet
5861     for ac_prog in chmod
5862 do
5863   # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_path_CHMOD+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   case $CHMOD in
5871   [\\/]* | ?:[\\/]*)
5872   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5873   ;;
5874   *)
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889 
5890   ;;
5891 esac
5892 fi
5893 CHMOD=$ac_cv_path_CHMOD
5894 if test -n "$CHMOD"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5896 $as_echo "$CHMOD" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901 
5902 
5903   test -n "$CHMOD" && break
5904 done
5905 
5906   else
5907     # The variable is set, but is it from the command line or the environment?
5908 
5909     # Try to remove the string !CHMOD! from our list.
5910     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5911     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5912       # If it failed, the variable was not from the command line. Ignore it,
5913       # but warn the user (except for BASH, which is always set by the calling BASH).
5914       if test "xCHMOD" != xBASH; then
5915         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5916 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5917       fi
5918       # Try to locate tool using the code snippet
5919       for ac_prog in chmod
5920 do
5921   # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_path_CHMOD+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   case $CHMOD in
5929   [\\/]* | ?:[\\/]*)
5930   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5931   ;;
5932   *)
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5947 
5948   ;;
5949 esac
5950 fi
5951 CHMOD=$ac_cv_path_CHMOD
5952 if test -n "$CHMOD"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5954 $as_echo "$CHMOD" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959 
5960 
5961   test -n "$CHMOD" && break
5962 done
5963 
5964     else
5965       # If it succeeded, then it was overridden by the user. We will use it
5966       # for the tool.
5967 
5968       # First remove it from the list of overridden variables, so we can test
5969       # for unknown variables in the end.
5970       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5971 
5972       # Check if we try to supply an empty value
5973       if test "x$CHMOD" = x; then
5974         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5975 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5977 $as_echo_n "checking for CHMOD... " >&6; }
5978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5979 $as_echo "disabled" >&6; }
5980       else
5981         # Check if the provided tool contains a complete path.
5982         tool_specified="$CHMOD"
5983         tool_basename="${tool_specified##*/}"
5984         if test "x$tool_basename" = "x$tool_specified"; then
5985           # A command without a complete path is provided, search $PATH.
5986           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5987 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5988           # Extract the first word of "$tool_basename", so it can be a program name with args.
5989 set dummy $tool_basename; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if ${ac_cv_path_CHMOD+:} false; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   case $CHMOD in
5996   [\\/]* | ?:[\\/]*)
5997   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5998   ;;
5999   *)
6000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005     for ac_exec_ext in '' $ac_executable_extensions; do
6006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012   done
6013 IFS=$as_save_IFS
6014 
6015   ;;
6016 esac
6017 fi
6018 CHMOD=$ac_cv_path_CHMOD
6019 if test -n "$CHMOD"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6021 $as_echo "$CHMOD" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026 
6027 
6028           if test "x$CHMOD" = x; then
6029             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6030           fi
6031         else
6032           # Otherwise we believe it is a complete path. Use it as it is.
6033           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6034 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6035           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6036 $as_echo_n "checking for CHMOD... " >&6; }
6037           if test ! -x "$tool_specified"; then
6038             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6039 $as_echo "not found" >&6; }
6040             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6041           fi
6042           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6043 $as_echo "$tool_specified" >&6; }
6044         fi
6045       fi
6046     fi
6047 
6048   fi
6049 
6050 
6051 
6052   if test "x$CHMOD" = x; then
6053     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6054   fi
6055 
6056 
6057 
6058 
6059 
6060   # Publish this variable in the help.
6061 
6062 
6063   if [ -z "${CMP+x}" ]; then
6064     # The variable is not set by user, try to locate tool using the code snippet
6065     for ac_prog in cmp
6066 do
6067   # Extract the first word of "$ac_prog", so it can be a program name with args.
6068 set dummy $ac_prog; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_path_CMP+:} false; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   case $CMP in
6075   [\\/]* | ?:[\\/]*)
6076   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6077   ;;
6078   *)
6079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093 
6094   ;;
6095 esac
6096 fi
6097 CMP=$ac_cv_path_CMP
6098 if test -n "$CMP"; then
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6100 $as_echo "$CMP" >&6; }
6101 else
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6104 fi
6105 
6106 
6107   test -n "$CMP" && break
6108 done
6109 
6110   else
6111     # The variable is set, but is it from the command line or the environment?
6112 
6113     # Try to remove the string !CMP! from our list.
6114     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6115     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6116       # If it failed, the variable was not from the command line. Ignore it,
6117       # but warn the user (except for BASH, which is always set by the calling BASH).
6118       if test "xCMP" != xBASH; then
6119         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6120 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6121       fi
6122       # Try to locate tool using the code snippet
6123       for ac_prog in cmp
6124 do
6125   # Extract the first word of "$ac_prog", so it can be a program name with args.
6126 set dummy $ac_prog; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_path_CMP+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   case $CMP in
6133   [\\/]* | ?:[\\/]*)
6134   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6135   ;;
6136   *)
6137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_exec_ext in '' $ac_executable_extensions; do
6143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149   done
6150 IFS=$as_save_IFS
6151 
6152   ;;
6153 esac
6154 fi
6155 CMP=$ac_cv_path_CMP
6156 if test -n "$CMP"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6158 $as_echo "$CMP" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163 
6164 
6165   test -n "$CMP" && break
6166 done
6167 
6168     else
6169       # If it succeeded, then it was overridden by the user. We will use it
6170       # for the tool.
6171 
6172       # First remove it from the list of overridden variables, so we can test
6173       # for unknown variables in the end.
6174       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6175 
6176       # Check if we try to supply an empty value
6177       if test "x$CMP" = x; then
6178         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6179 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6181 $as_echo_n "checking for CMP... " >&6; }
6182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6183 $as_echo "disabled" >&6; }
6184       else
6185         # Check if the provided tool contains a complete path.
6186         tool_specified="$CMP"
6187         tool_basename="${tool_specified##*/}"
6188         if test "x$tool_basename" = "x$tool_specified"; then
6189           # A command without a complete path is provided, search $PATH.
6190           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6191 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6192           # Extract the first word of "$tool_basename", so it can be a program name with args.
6193 set dummy $tool_basename; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_CMP+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   case $CMP in
6200   [\\/]* | ?:[\\/]*)
6201   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6202   ;;
6203   *)
6204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218 
6219   ;;
6220 esac
6221 fi
6222 CMP=$ac_cv_path_CMP
6223 if test -n "$CMP"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6225 $as_echo "$CMP" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230 
6231 
6232           if test "x$CMP" = x; then
6233             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6234           fi
6235         else
6236           # Otherwise we believe it is a complete path. Use it as it is.
6237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6238 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6239           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6240 $as_echo_n "checking for CMP... " >&6; }
6241           if test ! -x "$tool_specified"; then
6242             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6243 $as_echo "not found" >&6; }
6244             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6245           fi
6246           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6247 $as_echo "$tool_specified" >&6; }
6248         fi
6249       fi
6250     fi
6251 
6252   fi
6253 
6254 
6255 
6256   if test "x$CMP" = x; then
6257     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6258   fi
6259 
6260 
6261 
6262 
6263 
6264   # Publish this variable in the help.
6265 
6266 
6267   if [ -z "${COMM+x}" ]; then
6268     # The variable is not set by user, try to locate tool using the code snippet
6269     for ac_prog in comm
6270 do
6271   # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_path_COMM+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   case $COMM in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288     for ac_exec_ext in '' $ac_executable_extensions; do
6289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295   done
6296 IFS=$as_save_IFS
6297 
6298   ;;
6299 esac
6300 fi
6301 COMM=$ac_cv_path_COMM
6302 if test -n "$COMM"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6304 $as_echo "$COMM" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309 
6310 
6311   test -n "$COMM" && break
6312 done
6313 
6314   else
6315     # The variable is set, but is it from the command line or the environment?
6316 
6317     # Try to remove the string !COMM! from our list.
6318     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6319     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6320       # If it failed, the variable was not from the command line. Ignore it,
6321       # but warn the user (except for BASH, which is always set by the calling BASH).
6322       if test "xCOMM" != xBASH; then
6323         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6324 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6325       fi
6326       # Try to locate tool using the code snippet
6327       for ac_prog in comm
6328 do
6329   # Extract the first word of "$ac_prog", so it can be a program name with args.
6330 set dummy $ac_prog; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_path_COMM+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   case $COMM in
6337   [\\/]* | ?:[\\/]*)
6338   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6339   ;;
6340   *)
6341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355 
6356   ;;
6357 esac
6358 fi
6359 COMM=$ac_cv_path_COMM
6360 if test -n "$COMM"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6362 $as_echo "$COMM" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367 
6368 
6369   test -n "$COMM" && break
6370 done
6371 
6372     else
6373       # If it succeeded, then it was overridden by the user. We will use it
6374       # for the tool.
6375 
6376       # First remove it from the list of overridden variables, so we can test
6377       # for unknown variables in the end.
6378       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6379 
6380       # Check if we try to supply an empty value
6381       if test "x$COMM" = x; then
6382         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6383 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6385 $as_echo_n "checking for COMM... " >&6; }
6386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6387 $as_echo "disabled" >&6; }
6388       else
6389         # Check if the provided tool contains a complete path.
6390         tool_specified="$COMM"
6391         tool_basename="${tool_specified##*/}"
6392         if test "x$tool_basename" = "x$tool_specified"; then
6393           # A command without a complete path is provided, search $PATH.
6394           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6395 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6396           # Extract the first word of "$tool_basename", so it can be a program name with args.
6397 set dummy $tool_basename; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_path_COMM+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   case $COMM in
6404   [\\/]* | ?:[\\/]*)
6405   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6406   ;;
6407   *)
6408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422 
6423   ;;
6424 esac
6425 fi
6426 COMM=$ac_cv_path_COMM
6427 if test -n "$COMM"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6429 $as_echo "$COMM" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434 
6435 
6436           if test "x$COMM" = x; then
6437             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6438           fi
6439         else
6440           # Otherwise we believe it is a complete path. Use it as it is.
6441           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6442 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6443           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6444 $as_echo_n "checking for COMM... " >&6; }
6445           if test ! -x "$tool_specified"; then
6446             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6447 $as_echo "not found" >&6; }
6448             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6449           fi
6450           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6451 $as_echo "$tool_specified" >&6; }
6452         fi
6453       fi
6454     fi
6455 
6456   fi
6457 
6458 
6459 
6460   if test "x$COMM" = x; then
6461     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6462   fi
6463 
6464 
6465 
6466 
6467 
6468   # Publish this variable in the help.
6469 
6470 
6471   if [ -z "${CP+x}" ]; then
6472     # The variable is not set by user, try to locate tool using the code snippet
6473     for ac_prog in cp
6474 do
6475   # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_path_CP+:} false; then :
6480   $as_echo_n "(cached) " >&6
6481 else
6482   case $CP in
6483   [\\/]* | ?:[\\/]*)
6484   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6485   ;;
6486   *)
6487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492     for ac_exec_ext in '' $ac_executable_extensions; do
6493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499   done
6500 IFS=$as_save_IFS
6501 
6502   ;;
6503 esac
6504 fi
6505 CP=$ac_cv_path_CP
6506 if test -n "$CP"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6508 $as_echo "$CP" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513 
6514 
6515   test -n "$CP" && break
6516 done
6517 
6518   else
6519     # The variable is set, but is it from the command line or the environment?
6520 
6521     # Try to remove the string !CP! from our list.
6522     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6523     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6524       # If it failed, the variable was not from the command line. Ignore it,
6525       # but warn the user (except for BASH, which is always set by the calling BASH).
6526       if test "xCP" != xBASH; then
6527         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6528 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6529       fi
6530       # Try to locate tool using the code snippet
6531       for ac_prog in cp
6532 do
6533   # Extract the first word of "$ac_prog", so it can be a program name with args.
6534 set dummy $ac_prog; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_path_CP+:} false; then :
6538   $as_echo_n "(cached) " >&6
6539 else
6540   case $CP in
6541   [\\/]* | ?:[\\/]*)
6542   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6543   ;;
6544   *)
6545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559 
6560   ;;
6561 esac
6562 fi
6563 CP=$ac_cv_path_CP
6564 if test -n "$CP"; then
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6566 $as_echo "$CP" >&6; }
6567 else
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571 
6572 
6573   test -n "$CP" && break
6574 done
6575 
6576     else
6577       # If it succeeded, then it was overridden by the user. We will use it
6578       # for the tool.
6579 
6580       # First remove it from the list of overridden variables, so we can test
6581       # for unknown variables in the end.
6582       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6583 
6584       # Check if we try to supply an empty value
6585       if test "x$CP" = x; then
6586         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6587 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6589 $as_echo_n "checking for CP... " >&6; }
6590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6591 $as_echo "disabled" >&6; }
6592       else
6593         # Check if the provided tool contains a complete path.
6594         tool_specified="$CP"
6595         tool_basename="${tool_specified##*/}"
6596         if test "x$tool_basename" = "x$tool_specified"; then
6597           # A command without a complete path is provided, search $PATH.
6598           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6599 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6600           # Extract the first word of "$tool_basename", so it can be a program name with args.
6601 set dummy $tool_basename; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_path_CP+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   case $CP in
6608   [\\/]* | ?:[\\/]*)
6609   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6610   ;;
6611   *)
6612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617     for ac_exec_ext in '' $ac_executable_extensions; do
6618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624   done
6625 IFS=$as_save_IFS
6626 
6627   ;;
6628 esac
6629 fi
6630 CP=$ac_cv_path_CP
6631 if test -n "$CP"; then
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6633 $as_echo "$CP" >&6; }
6634 else
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638 
6639 
6640           if test "x$CP" = x; then
6641             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6642           fi
6643         else
6644           # Otherwise we believe it is a complete path. Use it as it is.
6645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6646 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6647           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6648 $as_echo_n "checking for CP... " >&6; }
6649           if test ! -x "$tool_specified"; then
6650             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6651 $as_echo "not found" >&6; }
6652             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6653           fi
6654           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6655 $as_echo "$tool_specified" >&6; }
6656         fi
6657       fi
6658     fi
6659 
6660   fi
6661 
6662 
6663 
6664   if test "x$CP" = x; then
6665     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6666   fi
6667 
6668 
6669 
6670 
6671 
6672   # Publish this variable in the help.
6673 
6674 
6675   if [ -z "${CUT+x}" ]; then
6676     # The variable is not set by user, try to locate tool using the code snippet
6677     for ac_prog in cut
6678 do
6679   # Extract the first word of "$ac_prog", so it can be a program name with args.
6680 set dummy $ac_prog; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_path_CUT+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   case $CUT in
6687   [\\/]* | ?:[\\/]*)
6688   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6689   ;;
6690   *)
6691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705 
6706   ;;
6707 esac
6708 fi
6709 CUT=$ac_cv_path_CUT
6710 if test -n "$CUT"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6712 $as_echo "$CUT" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717 
6718 
6719   test -n "$CUT" && break
6720 done
6721 
6722   else
6723     # The variable is set, but is it from the command line or the environment?
6724 
6725     # Try to remove the string !CUT! from our list.
6726     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6727     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6728       # If it failed, the variable was not from the command line. Ignore it,
6729       # but warn the user (except for BASH, which is always set by the calling BASH).
6730       if test "xCUT" != xBASH; then
6731         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6732 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6733       fi
6734       # Try to locate tool using the code snippet
6735       for ac_prog in cut
6736 do
6737   # Extract the first word of "$ac_prog", so it can be a program name with args.
6738 set dummy $ac_prog; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_path_CUT+:} false; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744   case $CUT in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763 
6764   ;;
6765 esac
6766 fi
6767 CUT=$ac_cv_path_CUT
6768 if test -n "$CUT"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6770 $as_echo "$CUT" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775 
6776 
6777   test -n "$CUT" && break
6778 done
6779 
6780     else
6781       # If it succeeded, then it was overridden by the user. We will use it
6782       # for the tool.
6783 
6784       # First remove it from the list of overridden variables, so we can test
6785       # for unknown variables in the end.
6786       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6787 
6788       # Check if we try to supply an empty value
6789       if test "x$CUT" = x; then
6790         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6791 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6793 $as_echo_n "checking for CUT... " >&6; }
6794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6795 $as_echo "disabled" >&6; }
6796       else
6797         # Check if the provided tool contains a complete path.
6798         tool_specified="$CUT"
6799         tool_basename="${tool_specified##*/}"
6800         if test "x$tool_basename" = "x$tool_specified"; then
6801           # A command without a complete path is provided, search $PATH.
6802           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6803 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6804           # Extract the first word of "$tool_basename", so it can be a program name with args.
6805 set dummy $tool_basename; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if ${ac_cv_path_CUT+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   case $CUT in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830 
6831   ;;
6832 esac
6833 fi
6834 CUT=$ac_cv_path_CUT
6835 if test -n "$CUT"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6837 $as_echo "$CUT" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842 
6843 
6844           if test "x$CUT" = x; then
6845             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6846           fi
6847         else
6848           # Otherwise we believe it is a complete path. Use it as it is.
6849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6850 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6852 $as_echo_n "checking for CUT... " >&6; }
6853           if test ! -x "$tool_specified"; then
6854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6855 $as_echo "not found" >&6; }
6856             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6857           fi
6858           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6859 $as_echo "$tool_specified" >&6; }
6860         fi
6861       fi
6862     fi
6863 
6864   fi
6865 
6866 
6867 
6868   if test "x$CUT" = x; then
6869     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6870   fi
6871 
6872 
6873 
6874 
6875 
6876   # Publish this variable in the help.
6877 
6878 
6879   if [ -z "${DATE+x}" ]; then
6880     # The variable is not set by user, try to locate tool using the code snippet
6881     for ac_prog in date
6882 do
6883   # Extract the first word of "$ac_prog", so it can be a program name with args.
6884 set dummy $ac_prog; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_path_DATE+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   case $DATE in
6891   [\\/]* | ?:[\\/]*)
6892   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6893   ;;
6894   *)
6895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900     for ac_exec_ext in '' $ac_executable_extensions; do
6901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907   done
6908 IFS=$as_save_IFS
6909 
6910   ;;
6911 esac
6912 fi
6913 DATE=$ac_cv_path_DATE
6914 if test -n "$DATE"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6916 $as_echo "$DATE" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921 
6922 
6923   test -n "$DATE" && break
6924 done
6925 
6926   else
6927     # The variable is set, but is it from the command line or the environment?
6928 
6929     # Try to remove the string !DATE! from our list.
6930     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6931     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6932       # If it failed, the variable was not from the command line. Ignore it,
6933       # but warn the user (except for BASH, which is always set by the calling BASH).
6934       if test "xDATE" != xBASH; then
6935         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6936 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6937       fi
6938       # Try to locate tool using the code snippet
6939       for ac_prog in date
6940 do
6941   # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_path_DATE+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   case $DATE in
6949   [\\/]* | ?:[\\/]*)
6950   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6951   ;;
6952   *)
6953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958     for ac_exec_ext in '' $ac_executable_extensions; do
6959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965   done
6966 IFS=$as_save_IFS
6967 
6968   ;;
6969 esac
6970 fi
6971 DATE=$ac_cv_path_DATE
6972 if test -n "$DATE"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6974 $as_echo "$DATE" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979 
6980 
6981   test -n "$DATE" && break
6982 done
6983 
6984     else
6985       # If it succeeded, then it was overridden by the user. We will use it
6986       # for the tool.
6987 
6988       # First remove it from the list of overridden variables, so we can test
6989       # for unknown variables in the end.
6990       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6991 
6992       # Check if we try to supply an empty value
6993       if test "x$DATE" = x; then
6994         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6995 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6997 $as_echo_n "checking for DATE... " >&6; }
6998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6999 $as_echo "disabled" >&6; }
7000       else
7001         # Check if the provided tool contains a complete path.
7002         tool_specified="$DATE"
7003         tool_basename="${tool_specified##*/}"
7004         if test "x$tool_basename" = "x$tool_specified"; then
7005           # A command without a complete path is provided, search $PATH.
7006           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7007 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7008           # Extract the first word of "$tool_basename", so it can be a program name with args.
7009 set dummy $tool_basename; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if ${ac_cv_path_DATE+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   case $DATE in
7016   [\\/]* | ?:[\\/]*)
7017   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7018   ;;
7019   *)
7020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034 
7035   ;;
7036 esac
7037 fi
7038 DATE=$ac_cv_path_DATE
7039 if test -n "$DATE"; then
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7041 $as_echo "$DATE" >&6; }
7042 else
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046 
7047 
7048           if test "x$DATE" = x; then
7049             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7050           fi
7051         else
7052           # Otherwise we believe it is a complete path. Use it as it is.
7053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7054 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7055           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7056 $as_echo_n "checking for DATE... " >&6; }
7057           if test ! -x "$tool_specified"; then
7058             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7059 $as_echo "not found" >&6; }
7060             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7061           fi
7062           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7063 $as_echo "$tool_specified" >&6; }
7064         fi
7065       fi
7066     fi
7067 
7068   fi
7069 
7070 
7071 
7072   if test "x$DATE" = x; then
7073     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7074   fi
7075 
7076 
7077 
7078 
7079 
7080   # Publish this variable in the help.
7081 
7082 
7083   if [ -z "${DIFF+x}" ]; then
7084     # The variable is not set by user, try to locate tool using the code snippet
7085     for ac_prog in gdiff diff
7086 do
7087   # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_path_DIFF+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   case $DIFF in
7095   [\\/]* | ?:[\\/]*)
7096   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7097   ;;
7098   *)
7099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102   IFS=$as_save_IFS
7103   test -z "$as_dir" && as_dir=.
7104     for ac_exec_ext in '' $ac_executable_extensions; do
7105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108     break 2
7109   fi
7110 done
7111   done
7112 IFS=$as_save_IFS
7113 
7114   ;;
7115 esac
7116 fi
7117 DIFF=$ac_cv_path_DIFF
7118 if test -n "$DIFF"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7120 $as_echo "$DIFF" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125 
7126 
7127   test -n "$DIFF" && break
7128 done
7129 
7130   else
7131     # The variable is set, but is it from the command line or the environment?
7132 
7133     # Try to remove the string !DIFF! from our list.
7134     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7135     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7136       # If it failed, the variable was not from the command line. Ignore it,
7137       # but warn the user (except for BASH, which is always set by the calling BASH).
7138       if test "xDIFF" != xBASH; then
7139         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7140 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7141       fi
7142       # Try to locate tool using the code snippet
7143       for ac_prog in gdiff diff
7144 do
7145   # Extract the first word of "$ac_prog", so it can be a program name with args.
7146 set dummy $ac_prog; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_path_DIFF+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   case $DIFF in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171 
7172   ;;
7173 esac
7174 fi
7175 DIFF=$ac_cv_path_DIFF
7176 if test -n "$DIFF"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7178 $as_echo "$DIFF" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183 
7184 
7185   test -n "$DIFF" && break
7186 done
7187 
7188     else
7189       # If it succeeded, then it was overridden by the user. We will use it
7190       # for the tool.
7191 
7192       # First remove it from the list of overridden variables, so we can test
7193       # for unknown variables in the end.
7194       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7195 
7196       # Check if we try to supply an empty value
7197       if test "x$DIFF" = x; then
7198         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7199 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7201 $as_echo_n "checking for DIFF... " >&6; }
7202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7203 $as_echo "disabled" >&6; }
7204       else
7205         # Check if the provided tool contains a complete path.
7206         tool_specified="$DIFF"
7207         tool_basename="${tool_specified##*/}"
7208         if test "x$tool_basename" = "x$tool_specified"; then
7209           # A command without a complete path is provided, search $PATH.
7210           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7211 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7212           # Extract the first word of "$tool_basename", so it can be a program name with args.
7213 set dummy $tool_basename; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_path_DIFF+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   case $DIFF in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238 
7239   ;;
7240 esac
7241 fi
7242 DIFF=$ac_cv_path_DIFF
7243 if test -n "$DIFF"; then
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7245 $as_echo "$DIFF" >&6; }
7246 else
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250 
7251 
7252           if test "x$DIFF" = x; then
7253             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7254           fi
7255         else
7256           # Otherwise we believe it is a complete path. Use it as it is.
7257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7258 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7259           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7260 $as_echo_n "checking for DIFF... " >&6; }
7261           if test ! -x "$tool_specified"; then
7262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7263 $as_echo "not found" >&6; }
7264             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7265           fi
7266           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7267 $as_echo "$tool_specified" >&6; }
7268         fi
7269       fi
7270     fi
7271 
7272   fi
7273 
7274 
7275 
7276   if test "x$DIFF" = x; then
7277     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7278   fi
7279 
7280 
7281 
7282 
7283 
7284   # Publish this variable in the help.
7285 
7286 
7287   if [ -z "${DIRNAME+x}" ]; then
7288     # The variable is not set by user, try to locate tool using the code snippet
7289     for ac_prog in dirname
7290 do
7291   # Extract the first word of "$ac_prog", so it can be a program name with args.
7292 set dummy $ac_prog; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_path_DIRNAME+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   case $DIRNAME in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317 
7318   ;;
7319 esac
7320 fi
7321 DIRNAME=$ac_cv_path_DIRNAME
7322 if test -n "$DIRNAME"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7324 $as_echo "$DIRNAME" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329 
7330 
7331   test -n "$DIRNAME" && break
7332 done
7333 
7334   else
7335     # The variable is set, but is it from the command line or the environment?
7336 
7337     # Try to remove the string !DIRNAME! from our list.
7338     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7339     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7340       # If it failed, the variable was not from the command line. Ignore it,
7341       # but warn the user (except for BASH, which is always set by the calling BASH).
7342       if test "xDIRNAME" != xBASH; then
7343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7344 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7345       fi
7346       # Try to locate tool using the code snippet
7347       for ac_prog in dirname
7348 do
7349   # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_path_DIRNAME+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   case $DIRNAME in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375 
7376   ;;
7377 esac
7378 fi
7379 DIRNAME=$ac_cv_path_DIRNAME
7380 if test -n "$DIRNAME"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7382 $as_echo "$DIRNAME" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387 
7388 
7389   test -n "$DIRNAME" && break
7390 done
7391 
7392     else
7393       # If it succeeded, then it was overridden by the user. We will use it
7394       # for the tool.
7395 
7396       # First remove it from the list of overridden variables, so we can test
7397       # for unknown variables in the end.
7398       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7399 
7400       # Check if we try to supply an empty value
7401       if test "x$DIRNAME" = x; then
7402         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7403 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7405 $as_echo_n "checking for DIRNAME... " >&6; }
7406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7407 $as_echo "disabled" >&6; }
7408       else
7409         # Check if the provided tool contains a complete path.
7410         tool_specified="$DIRNAME"
7411         tool_basename="${tool_specified##*/}"
7412         if test "x$tool_basename" = "x$tool_specified"; then
7413           # A command without a complete path is provided, search $PATH.
7414           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7415 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7416           # Extract the first word of "$tool_basename", so it can be a program name with args.
7417 set dummy $tool_basename; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_path_DIRNAME+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   case $DIRNAME in
7424   [\\/]* | ?:[\\/]*)
7425   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7426   ;;
7427   *)
7428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433     for ac_exec_ext in '' $ac_executable_extensions; do
7434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440   done
7441 IFS=$as_save_IFS
7442 
7443   ;;
7444 esac
7445 fi
7446 DIRNAME=$ac_cv_path_DIRNAME
7447 if test -n "$DIRNAME"; then
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7449 $as_echo "$DIRNAME" >&6; }
7450 else
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454 
7455 
7456           if test "x$DIRNAME" = x; then
7457             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7458           fi
7459         else
7460           # Otherwise we believe it is a complete path. Use it as it is.
7461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7462 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7463           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7464 $as_echo_n "checking for DIRNAME... " >&6; }
7465           if test ! -x "$tool_specified"; then
7466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7467 $as_echo "not found" >&6; }
7468             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7469           fi
7470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7471 $as_echo "$tool_specified" >&6; }
7472         fi
7473       fi
7474     fi
7475 
7476   fi
7477 
7478 
7479 
7480   if test "x$DIRNAME" = x; then
7481     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7482   fi
7483 
7484 
7485 
7486 
7487 
7488   # Publish this variable in the help.
7489 
7490 
7491   if [ -z "${ECHO+x}" ]; then
7492     # The variable is not set by user, try to locate tool using the code snippet
7493     for ac_prog in echo
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_path_ECHO+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   case $ECHO in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512     for ac_exec_ext in '' $ac_executable_extensions; do
7513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519   done
7520 IFS=$as_save_IFS
7521 
7522   ;;
7523 esac
7524 fi
7525 ECHO=$ac_cv_path_ECHO
7526 if test -n "$ECHO"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7528 $as_echo "$ECHO" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533 
7534 
7535   test -n "$ECHO" && break
7536 done
7537 
7538   else
7539     # The variable is set, but is it from the command line or the environment?
7540 
7541     # Try to remove the string !ECHO! from our list.
7542     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7543     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7544       # If it failed, the variable was not from the command line. Ignore it,
7545       # but warn the user (except for BASH, which is always set by the calling BASH).
7546       if test "xECHO" != xBASH; then
7547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7548 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7549       fi
7550       # Try to locate tool using the code snippet
7551       for ac_prog in echo
7552 do
7553   # Extract the first word of "$ac_prog", so it can be a program name with args.
7554 set dummy $ac_prog; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_path_ECHO+:} false; then :
7558   $as_echo_n "(cached) " >&6
7559 else
7560   case $ECHO in
7561   [\\/]* | ?:[\\/]*)
7562   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7563   ;;
7564   *)
7565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570     for ac_exec_ext in '' $ac_executable_extensions; do
7571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577   done
7578 IFS=$as_save_IFS
7579 
7580   ;;
7581 esac
7582 fi
7583 ECHO=$ac_cv_path_ECHO
7584 if test -n "$ECHO"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7586 $as_echo "$ECHO" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591 
7592 
7593   test -n "$ECHO" && break
7594 done
7595 
7596     else
7597       # If it succeeded, then it was overridden by the user. We will use it
7598       # for the tool.
7599 
7600       # First remove it from the list of overridden variables, so we can test
7601       # for unknown variables in the end.
7602       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7603 
7604       # Check if we try to supply an empty value
7605       if test "x$ECHO" = x; then
7606         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7607 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7609 $as_echo_n "checking for ECHO... " >&6; }
7610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7611 $as_echo "disabled" >&6; }
7612       else
7613         # Check if the provided tool contains a complete path.
7614         tool_specified="$ECHO"
7615         tool_basename="${tool_specified##*/}"
7616         if test "x$tool_basename" = "x$tool_specified"; then
7617           # A command without a complete path is provided, search $PATH.
7618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7619 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7620           # Extract the first word of "$tool_basename", so it can be a program name with args.
7621 set dummy $tool_basename; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_path_ECHO+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   case $ECHO in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644   done
7645 IFS=$as_save_IFS
7646 
7647   ;;
7648 esac
7649 fi
7650 ECHO=$ac_cv_path_ECHO
7651 if test -n "$ECHO"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7653 $as_echo "$ECHO" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658 
7659 
7660           if test "x$ECHO" = x; then
7661             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7662           fi
7663         else
7664           # Otherwise we believe it is a complete path. Use it as it is.
7665           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7666 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7667           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7668 $as_echo_n "checking for ECHO... " >&6; }
7669           if test ! -x "$tool_specified"; then
7670             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7671 $as_echo "not found" >&6; }
7672             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7673           fi
7674           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7675 $as_echo "$tool_specified" >&6; }
7676         fi
7677       fi
7678     fi
7679 
7680   fi
7681 
7682 
7683 
7684   if test "x$ECHO" = x; then
7685     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7686   fi
7687 
7688 
7689 
7690 
7691 
7692   # Publish this variable in the help.
7693 
7694 
7695   if [ -z "${EXPR+x}" ]; then
7696     # The variable is not set by user, try to locate tool using the code snippet
7697     for ac_prog in expr
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_path_EXPR+:} false; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   case $EXPR in
7707   [\\/]* | ?:[\\/]*)
7708   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7709   ;;
7710   *)
7711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716     for ac_exec_ext in '' $ac_executable_extensions; do
7717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723   done
7724 IFS=$as_save_IFS
7725 
7726   ;;
7727 esac
7728 fi
7729 EXPR=$ac_cv_path_EXPR
7730 if test -n "$EXPR"; then
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7732 $as_echo "$EXPR" >&6; }
7733 else
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737 
7738 
7739   test -n "$EXPR" && break
7740 done
7741 
7742   else
7743     # The variable is set, but is it from the command line or the environment?
7744 
7745     # Try to remove the string !EXPR! from our list.
7746     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7747     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7748       # If it failed, the variable was not from the command line. Ignore it,
7749       # but warn the user (except for BASH, which is always set by the calling BASH).
7750       if test "xEXPR" != xBASH; then
7751         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7752 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7753       fi
7754       # Try to locate tool using the code snippet
7755       for ac_prog in expr
7756 do
7757   # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_path_EXPR+:} false; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   case $EXPR in
7765   [\\/]* | ?:[\\/]*)
7766   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7767   ;;
7768   *)
7769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774     for ac_exec_ext in '' $ac_executable_extensions; do
7775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781   done
7782 IFS=$as_save_IFS
7783 
7784   ;;
7785 esac
7786 fi
7787 EXPR=$ac_cv_path_EXPR
7788 if test -n "$EXPR"; then
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7790 $as_echo "$EXPR" >&6; }
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795 
7796 
7797   test -n "$EXPR" && break
7798 done
7799 
7800     else
7801       # If it succeeded, then it was overridden by the user. We will use it
7802       # for the tool.
7803 
7804       # First remove it from the list of overridden variables, so we can test
7805       # for unknown variables in the end.
7806       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7807 
7808       # Check if we try to supply an empty value
7809       if test "x$EXPR" = x; then
7810         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7811 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7813 $as_echo_n "checking for EXPR... " >&6; }
7814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7815 $as_echo "disabled" >&6; }
7816       else
7817         # Check if the provided tool contains a complete path.
7818         tool_specified="$EXPR"
7819         tool_basename="${tool_specified##*/}"
7820         if test "x$tool_basename" = "x$tool_specified"; then
7821           # A command without a complete path is provided, search $PATH.
7822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7823 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7824           # Extract the first word of "$tool_basename", so it can be a program name with args.
7825 set dummy $tool_basename; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_path_EXPR+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   case $EXPR in
7832   [\\/]* | ?:[\\/]*)
7833   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7834   ;;
7835   *)
7836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841     for ac_exec_ext in '' $ac_executable_extensions; do
7842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848   done
7849 IFS=$as_save_IFS
7850 
7851   ;;
7852 esac
7853 fi
7854 EXPR=$ac_cv_path_EXPR
7855 if test -n "$EXPR"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7857 $as_echo "$EXPR" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862 
7863 
7864           if test "x$EXPR" = x; then
7865             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7866           fi
7867         else
7868           # Otherwise we believe it is a complete path. Use it as it is.
7869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7870 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7872 $as_echo_n "checking for EXPR... " >&6; }
7873           if test ! -x "$tool_specified"; then
7874             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7875 $as_echo "not found" >&6; }
7876             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7877           fi
7878           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7879 $as_echo "$tool_specified" >&6; }
7880         fi
7881       fi
7882     fi
7883 
7884   fi
7885 
7886 
7887 
7888   if test "x$EXPR" = x; then
7889     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7890   fi
7891 
7892 
7893 
7894 
7895 
7896   # Publish this variable in the help.
7897 
7898 
7899   if [ -z "${FILE+x}" ]; then
7900     # The variable is not set by user, try to locate tool using the code snippet
7901     for ac_prog in file
7902 do
7903   # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_path_FILE+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   case $FILE in
7911   [\\/]* | ?:[\\/]*)
7912   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7913   ;;
7914   *)
7915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920     for ac_exec_ext in '' $ac_executable_extensions; do
7921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927   done
7928 IFS=$as_save_IFS
7929 
7930   ;;
7931 esac
7932 fi
7933 FILE=$ac_cv_path_FILE
7934 if test -n "$FILE"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7936 $as_echo "$FILE" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941 
7942 
7943   test -n "$FILE" && break
7944 done
7945 
7946   else
7947     # The variable is set, but is it from the command line or the environment?
7948 
7949     # Try to remove the string !FILE! from our list.
7950     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7951     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7952       # If it failed, the variable was not from the command line. Ignore it,
7953       # but warn the user (except for BASH, which is always set by the calling BASH).
7954       if test "xFILE" != xBASH; then
7955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7956 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7957       fi
7958       # Try to locate tool using the code snippet
7959       for ac_prog in file
7960 do
7961   # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_path_FILE+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   case $FILE in
7969   [\\/]* | ?:[\\/]*)
7970   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7971   ;;
7972   *)
7973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978     for ac_exec_ext in '' $ac_executable_extensions; do
7979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985   done
7986 IFS=$as_save_IFS
7987 
7988   ;;
7989 esac
7990 fi
7991 FILE=$ac_cv_path_FILE
7992 if test -n "$FILE"; then
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7994 $as_echo "$FILE" >&6; }
7995 else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999 
8000 
8001   test -n "$FILE" && break
8002 done
8003 
8004     else
8005       # If it succeeded, then it was overridden by the user. We will use it
8006       # for the tool.
8007 
8008       # First remove it from the list of overridden variables, so we can test
8009       # for unknown variables in the end.
8010       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8011 
8012       # Check if we try to supply an empty value
8013       if test "x$FILE" = x; then
8014         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8015 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8017 $as_echo_n "checking for FILE... " >&6; }
8018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8019 $as_echo "disabled" >&6; }
8020       else
8021         # Check if the provided tool contains a complete path.
8022         tool_specified="$FILE"
8023         tool_basename="${tool_specified##*/}"
8024         if test "x$tool_basename" = "x$tool_specified"; then
8025           # A command without a complete path is provided, search $PATH.
8026           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8027 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8028           # Extract the first word of "$tool_basename", so it can be a program name with args.
8029 set dummy $tool_basename; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_path_FILE+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   case $FILE in
8036   [\\/]* | ?:[\\/]*)
8037   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8038   ;;
8039   *)
8040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043   IFS=$as_save_IFS
8044   test -z "$as_dir" && as_dir=.
8045     for ac_exec_ext in '' $ac_executable_extensions; do
8046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8047     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049     break 2
8050   fi
8051 done
8052   done
8053 IFS=$as_save_IFS
8054 
8055   ;;
8056 esac
8057 fi
8058 FILE=$ac_cv_path_FILE
8059 if test -n "$FILE"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8061 $as_echo "$FILE" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066 
8067 
8068           if test "x$FILE" = x; then
8069             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8070           fi
8071         else
8072           # Otherwise we believe it is a complete path. Use it as it is.
8073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8074 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8075           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8076 $as_echo_n "checking for FILE... " >&6; }
8077           if test ! -x "$tool_specified"; then
8078             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8079 $as_echo "not found" >&6; }
8080             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8081           fi
8082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8083 $as_echo "$tool_specified" >&6; }
8084         fi
8085       fi
8086     fi
8087 
8088   fi
8089 
8090 
8091 
8092   if test "x$FILE" = x; then
8093     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8094   fi
8095 
8096 
8097 
8098 
8099 
8100   # Publish this variable in the help.
8101 
8102 
8103   if [ -z "${FIND+x}" ]; then
8104     # The variable is not set by user, try to locate tool using the code snippet
8105     for ac_prog in find
8106 do
8107   # Extract the first word of "$ac_prog", so it can be a program name with args.
8108 set dummy $ac_prog; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_path_FIND+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   case $FIND in
8115   [\\/]* | ?:[\\/]*)
8116   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8117   ;;
8118   *)
8119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133 
8134   ;;
8135 esac
8136 fi
8137 FIND=$ac_cv_path_FIND
8138 if test -n "$FIND"; then
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8140 $as_echo "$FIND" >&6; }
8141 else
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145 
8146 
8147   test -n "$FIND" && break
8148 done
8149 
8150   else
8151     # The variable is set, but is it from the command line or the environment?
8152 
8153     # Try to remove the string !FIND! from our list.
8154     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8155     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8156       # If it failed, the variable was not from the command line. Ignore it,
8157       # but warn the user (except for BASH, which is always set by the calling BASH).
8158       if test "xFIND" != xBASH; then
8159         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8160 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8161       fi
8162       # Try to locate tool using the code snippet
8163       for ac_prog in find
8164 do
8165   # Extract the first word of "$ac_prog", so it can be a program name with args.
8166 set dummy $ac_prog; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_path_FIND+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   case $FIND in
8173   [\\/]* | ?:[\\/]*)
8174   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8175   ;;
8176   *)
8177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   test -z "$as_dir" && as_dir=.
8182     for ac_exec_ext in '' $ac_executable_extensions; do
8183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186     break 2
8187   fi
8188 done
8189   done
8190 IFS=$as_save_IFS
8191 
8192   ;;
8193 esac
8194 fi
8195 FIND=$ac_cv_path_FIND
8196 if test -n "$FIND"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8198 $as_echo "$FIND" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203 
8204 
8205   test -n "$FIND" && break
8206 done
8207 
8208     else
8209       # If it succeeded, then it was overridden by the user. We will use it
8210       # for the tool.
8211 
8212       # First remove it from the list of overridden variables, so we can test
8213       # for unknown variables in the end.
8214       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8215 
8216       # Check if we try to supply an empty value
8217       if test "x$FIND" = x; then
8218         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8219 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8221 $as_echo_n "checking for FIND... " >&6; }
8222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8223 $as_echo "disabled" >&6; }
8224       else
8225         # Check if the provided tool contains a complete path.
8226         tool_specified="$FIND"
8227         tool_basename="${tool_specified##*/}"
8228         if test "x$tool_basename" = "x$tool_specified"; then
8229           # A command without a complete path is provided, search $PATH.
8230           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8231 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8232           # Extract the first word of "$tool_basename", so it can be a program name with args.
8233 set dummy $tool_basename; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_path_FIND+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   case $FIND in
8240   [\\/]* | ?:[\\/]*)
8241   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8242   ;;
8243   *)
8244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249     for ac_exec_ext in '' $ac_executable_extensions; do
8250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256   done
8257 IFS=$as_save_IFS
8258 
8259   ;;
8260 esac
8261 fi
8262 FIND=$ac_cv_path_FIND
8263 if test -n "$FIND"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8265 $as_echo "$FIND" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270 
8271 
8272           if test "x$FIND" = x; then
8273             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8274           fi
8275         else
8276           # Otherwise we believe it is a complete path. Use it as it is.
8277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8278 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8279           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8280 $as_echo_n "checking for FIND... " >&6; }
8281           if test ! -x "$tool_specified"; then
8282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8283 $as_echo "not found" >&6; }
8284             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8285           fi
8286           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8287 $as_echo "$tool_specified" >&6; }
8288         fi
8289       fi
8290     fi
8291 
8292   fi
8293 
8294 
8295 
8296   if test "x$FIND" = x; then
8297     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8298   fi
8299 
8300 
8301 
8302 
8303 
8304   # Publish this variable in the help.
8305 
8306 
8307   if [ -z "${HEAD+x}" ]; then
8308     # The variable is not set by user, try to locate tool using the code snippet
8309     for ac_prog in head
8310 do
8311   # Extract the first word of "$ac_prog", so it can be a program name with args.
8312 set dummy $ac_prog; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_path_HEAD+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   case $HEAD in
8319   [\\/]* | ?:[\\/]*)
8320   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8321   ;;
8322   *)
8323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328     for ac_exec_ext in '' $ac_executable_extensions; do
8329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335   done
8336 IFS=$as_save_IFS
8337 
8338   ;;
8339 esac
8340 fi
8341 HEAD=$ac_cv_path_HEAD
8342 if test -n "$HEAD"; then
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8344 $as_echo "$HEAD" >&6; }
8345 else
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349 
8350 
8351   test -n "$HEAD" && break
8352 done
8353 
8354   else
8355     # The variable is set, but is it from the command line or the environment?
8356 
8357     # Try to remove the string !HEAD! from our list.
8358     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8359     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8360       # If it failed, the variable was not from the command line. Ignore it,
8361       # but warn the user (except for BASH, which is always set by the calling BASH).
8362       if test "xHEAD" != xBASH; then
8363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8364 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8365       fi
8366       # Try to locate tool using the code snippet
8367       for ac_prog in head
8368 do
8369   # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy $ac_prog; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if ${ac_cv_path_HEAD+:} false; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   case $HEAD in
8377   [\\/]* | ?:[\\/]*)
8378   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8379   ;;
8380   *)
8381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384   IFS=$as_save_IFS
8385   test -z "$as_dir" && as_dir=.
8386     for ac_exec_ext in '' $ac_executable_extensions; do
8387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393   done
8394 IFS=$as_save_IFS
8395 
8396   ;;
8397 esac
8398 fi
8399 HEAD=$ac_cv_path_HEAD
8400 if test -n "$HEAD"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8402 $as_echo "$HEAD" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407 
8408 
8409   test -n "$HEAD" && break
8410 done
8411 
8412     else
8413       # If it succeeded, then it was overridden by the user. We will use it
8414       # for the tool.
8415 
8416       # First remove it from the list of overridden variables, so we can test
8417       # for unknown variables in the end.
8418       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8419 
8420       # Check if we try to supply an empty value
8421       if test "x$HEAD" = x; then
8422         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8423 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8425 $as_echo_n "checking for HEAD... " >&6; }
8426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8427 $as_echo "disabled" >&6; }
8428       else
8429         # Check if the provided tool contains a complete path.
8430         tool_specified="$HEAD"
8431         tool_basename="${tool_specified##*/}"
8432         if test "x$tool_basename" = "x$tool_specified"; then
8433           # A command without a complete path is provided, search $PATH.
8434           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8435 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8436           # Extract the first word of "$tool_basename", so it can be a program name with args.
8437 set dummy $tool_basename; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_path_HEAD+:} false; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   case $HEAD in
8444   [\\/]* | ?:[\\/]*)
8445   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8446   ;;
8447   *)
8448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8450 do
8451   IFS=$as_save_IFS
8452   test -z "$as_dir" && as_dir=.
8453     for ac_exec_ext in '' $ac_executable_extensions; do
8454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457     break 2
8458   fi
8459 done
8460   done
8461 IFS=$as_save_IFS
8462 
8463   ;;
8464 esac
8465 fi
8466 HEAD=$ac_cv_path_HEAD
8467 if test -n "$HEAD"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8469 $as_echo "$HEAD" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474 
8475 
8476           if test "x$HEAD" = x; then
8477             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8478           fi
8479         else
8480           # Otherwise we believe it is a complete path. Use it as it is.
8481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8482 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8483           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8484 $as_echo_n "checking for HEAD... " >&6; }
8485           if test ! -x "$tool_specified"; then
8486             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8487 $as_echo "not found" >&6; }
8488             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8489           fi
8490           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8491 $as_echo "$tool_specified" >&6; }
8492         fi
8493       fi
8494     fi
8495 
8496   fi
8497 
8498 
8499 
8500   if test "x$HEAD" = x; then
8501     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8502   fi
8503 
8504 
8505 
8506 
8507 
8508   # Publish this variable in the help.
8509 
8510 
8511   if [ -z "${GUNZIP+x}" ]; then
8512     # The variable is not set by user, try to locate tool using the code snippet
8513     for ac_prog in gunzip
8514 do
8515   # Extract the first word of "$ac_prog", so it can be a program name with args.
8516 set dummy $ac_prog; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_path_GUNZIP+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   case $GUNZIP in
8523   [\\/]* | ?:[\\/]*)
8524   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8525   ;;
8526   *)
8527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_exec_ext in '' $ac_executable_extensions; do
8533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539   done
8540 IFS=$as_save_IFS
8541 
8542   ;;
8543 esac
8544 fi
8545 GUNZIP=$ac_cv_path_GUNZIP
8546 if test -n "$GUNZIP"; then
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8548 $as_echo "$GUNZIP" >&6; }
8549 else
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553 
8554 
8555   test -n "$GUNZIP" && break
8556 done
8557 
8558   else
8559     # The variable is set, but is it from the command line or the environment?
8560 
8561     # Try to remove the string !GUNZIP! from our list.
8562     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8563     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8564       # If it failed, the variable was not from the command line. Ignore it,
8565       # but warn the user (except for BASH, which is always set by the calling BASH).
8566       if test "xGUNZIP" != xBASH; then
8567         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8568 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8569       fi
8570       # Try to locate tool using the code snippet
8571       for ac_prog in gunzip
8572 do
8573   # Extract the first word of "$ac_prog", so it can be a program name with args.
8574 set dummy $ac_prog; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if ${ac_cv_path_GUNZIP+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   case $GUNZIP in
8581   [\\/]* | ?:[\\/]*)
8582   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8583   ;;
8584   *)
8585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588   IFS=$as_save_IFS
8589   test -z "$as_dir" && as_dir=.
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599 
8600   ;;
8601 esac
8602 fi
8603 GUNZIP=$ac_cv_path_GUNZIP
8604 if test -n "$GUNZIP"; then
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8606 $as_echo "$GUNZIP" >&6; }
8607 else
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611 
8612 
8613   test -n "$GUNZIP" && break
8614 done
8615 
8616     else
8617       # If it succeeded, then it was overridden by the user. We will use it
8618       # for the tool.
8619 
8620       # First remove it from the list of overridden variables, so we can test
8621       # for unknown variables in the end.
8622       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8623 
8624       # Check if we try to supply an empty value
8625       if test "x$GUNZIP" = x; then
8626         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8627 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8629 $as_echo_n "checking for GUNZIP... " >&6; }
8630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8631 $as_echo "disabled" >&6; }
8632       else
8633         # Check if the provided tool contains a complete path.
8634         tool_specified="$GUNZIP"
8635         tool_basename="${tool_specified##*/}"
8636         if test "x$tool_basename" = "x$tool_specified"; then
8637           # A command without a complete path is provided, search $PATH.
8638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8639 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8640           # Extract the first word of "$tool_basename", so it can be a program name with args.
8641 set dummy $tool_basename; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if ${ac_cv_path_GUNZIP+:} false; then :
8645   $as_echo_n "(cached) " >&6
8646 else
8647   case $GUNZIP in
8648   [\\/]* | ?:[\\/]*)
8649   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8650   ;;
8651   *)
8652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8654 do
8655   IFS=$as_save_IFS
8656   test -z "$as_dir" && as_dir=.
8657     for ac_exec_ext in '' $ac_executable_extensions; do
8658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661     break 2
8662   fi
8663 done
8664   done
8665 IFS=$as_save_IFS
8666 
8667   ;;
8668 esac
8669 fi
8670 GUNZIP=$ac_cv_path_GUNZIP
8671 if test -n "$GUNZIP"; then
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8673 $as_echo "$GUNZIP" >&6; }
8674 else
8675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8677 fi
8678 
8679 
8680           if test "x$GUNZIP" = x; then
8681             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8682           fi
8683         else
8684           # Otherwise we believe it is a complete path. Use it as it is.
8685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8686 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8687           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8688 $as_echo_n "checking for GUNZIP... " >&6; }
8689           if test ! -x "$tool_specified"; then
8690             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8691 $as_echo "not found" >&6; }
8692             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8693           fi
8694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8695 $as_echo "$tool_specified" >&6; }
8696         fi
8697       fi
8698     fi
8699 
8700   fi
8701 
8702 
8703 
8704   if test "x$GUNZIP" = x; then
8705     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8706   fi
8707 
8708 
8709 
8710 
8711 
8712   # Publish this variable in the help.
8713 
8714 
8715   if [ -z "${GZIP+x}" ]; then
8716     # The variable is not set by user, try to locate tool using the code snippet
8717     for ac_prog in pigz gzip
8718 do
8719   # Extract the first word of "$ac_prog", so it can be a program name with args.
8720 set dummy $ac_prog; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_path_GZIP+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   case $GZIP in
8727   [\\/]* | ?:[\\/]*)
8728   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8729   ;;
8730   *)
8731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736     for ac_exec_ext in '' $ac_executable_extensions; do
8737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743   done
8744 IFS=$as_save_IFS
8745 
8746   ;;
8747 esac
8748 fi
8749 GZIP=$ac_cv_path_GZIP
8750 if test -n "$GZIP"; then
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8752 $as_echo "$GZIP" >&6; }
8753 else
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757 
8758 
8759   test -n "$GZIP" && break
8760 done
8761 
8762   else
8763     # The variable is set, but is it from the command line or the environment?
8764 
8765     # Try to remove the string !GZIP! from our list.
8766     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8767     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8768       # If it failed, the variable was not from the command line. Ignore it,
8769       # but warn the user (except for BASH, which is always set by the calling BASH).
8770       if test "xGZIP" != xBASH; then
8771         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8772 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8773       fi
8774       # Try to locate tool using the code snippet
8775       for ac_prog in pigz gzip
8776 do
8777   # Extract the first word of "$ac_prog", so it can be a program name with args.
8778 set dummy $ac_prog; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if ${ac_cv_path_GZIP+:} false; then :
8782   $as_echo_n "(cached) " >&6
8783 else
8784   case $GZIP in
8785   [\\/]* | ?:[\\/]*)
8786   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8787   ;;
8788   *)
8789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803 
8804   ;;
8805 esac
8806 fi
8807 GZIP=$ac_cv_path_GZIP
8808 if test -n "$GZIP"; then
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8810 $as_echo "$GZIP" >&6; }
8811 else
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815 
8816 
8817   test -n "$GZIP" && break
8818 done
8819 
8820     else
8821       # If it succeeded, then it was overridden by the user. We will use it
8822       # for the tool.
8823 
8824       # First remove it from the list of overridden variables, so we can test
8825       # for unknown variables in the end.
8826       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8827 
8828       # Check if we try to supply an empty value
8829       if test "x$GZIP" = x; then
8830         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8831 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8833 $as_echo_n "checking for GZIP... " >&6; }
8834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8835 $as_echo "disabled" >&6; }
8836       else
8837         # Check if the provided tool contains a complete path.
8838         tool_specified="$GZIP"
8839         tool_basename="${tool_specified##*/}"
8840         if test "x$tool_basename" = "x$tool_specified"; then
8841           # A command without a complete path is provided, search $PATH.
8842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8843 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8844           # Extract the first word of "$tool_basename", so it can be a program name with args.
8845 set dummy $tool_basename; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_path_GZIP+:} false; then :
8849   $as_echo_n "(cached) " >&6
8850 else
8851   case $GZIP in
8852   [\\/]* | ?:[\\/]*)
8853   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8854   ;;
8855   *)
8856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8858 do
8859   IFS=$as_save_IFS
8860   test -z "$as_dir" && as_dir=.
8861     for ac_exec_ext in '' $ac_executable_extensions; do
8862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865     break 2
8866   fi
8867 done
8868   done
8869 IFS=$as_save_IFS
8870 
8871   ;;
8872 esac
8873 fi
8874 GZIP=$ac_cv_path_GZIP
8875 if test -n "$GZIP"; then
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8877 $as_echo "$GZIP" >&6; }
8878 else
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881 fi
8882 
8883 
8884           if test "x$GZIP" = x; then
8885             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8886           fi
8887         else
8888           # Otherwise we believe it is a complete path. Use it as it is.
8889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8890 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8891           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8892 $as_echo_n "checking for GZIP... " >&6; }
8893           if test ! -x "$tool_specified"; then
8894             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8895 $as_echo "not found" >&6; }
8896             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8897           fi
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8899 $as_echo "$tool_specified" >&6; }
8900         fi
8901       fi
8902     fi
8903 
8904   fi
8905 
8906 
8907 
8908   if test "x$GZIP" = x; then
8909     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8910   fi
8911 
8912 
8913 
8914 
8915 
8916   # Publish this variable in the help.
8917 
8918 
8919   if [ -z "${LN+x}" ]; then
8920     # The variable is not set by user, try to locate tool using the code snippet
8921     for ac_prog in ln
8922 do
8923   # Extract the first word of "$ac_prog", so it can be a program name with args.
8924 set dummy $ac_prog; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_path_LN+:} false; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   case $LN in
8931   [\\/]* | ?:[\\/]*)
8932   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8933   ;;
8934   *)
8935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938   IFS=$as_save_IFS
8939   test -z "$as_dir" && as_dir=.
8940     for ac_exec_ext in '' $ac_executable_extensions; do
8941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944     break 2
8945   fi
8946 done
8947   done
8948 IFS=$as_save_IFS
8949 
8950   ;;
8951 esac
8952 fi
8953 LN=$ac_cv_path_LN
8954 if test -n "$LN"; then
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8956 $as_echo "$LN" >&6; }
8957 else
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961 
8962 
8963   test -n "$LN" && break
8964 done
8965 
8966   else
8967     # The variable is set, but is it from the command line or the environment?
8968 
8969     # Try to remove the string !LN! from our list.
8970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8972       # If it failed, the variable was not from the command line. Ignore it,
8973       # but warn the user (except for BASH, which is always set by the calling BASH).
8974       if test "xLN" != xBASH; then
8975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8976 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8977       fi
8978       # Try to locate tool using the code snippet
8979       for ac_prog in ln
8980 do
8981   # Extract the first word of "$ac_prog", so it can be a program name with args.
8982 set dummy $ac_prog; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_path_LN+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   case $LN in
8989   [\\/]* | ?:[\\/]*)
8990   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8991   ;;
8992   *)
8993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996   IFS=$as_save_IFS
8997   test -z "$as_dir" && as_dir=.
8998     for ac_exec_ext in '' $ac_executable_extensions; do
8999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002     break 2
9003   fi
9004 done
9005   done
9006 IFS=$as_save_IFS
9007 
9008   ;;
9009 esac
9010 fi
9011 LN=$ac_cv_path_LN
9012 if test -n "$LN"; then
9013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9014 $as_echo "$LN" >&6; }
9015 else
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 fi
9019 
9020 
9021   test -n "$LN" && break
9022 done
9023 
9024     else
9025       # If it succeeded, then it was overridden by the user. We will use it
9026       # for the tool.
9027 
9028       # First remove it from the list of overridden variables, so we can test
9029       # for unknown variables in the end.
9030       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9031 
9032       # Check if we try to supply an empty value
9033       if test "x$LN" = x; then
9034         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9035 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9037 $as_echo_n "checking for LN... " >&6; }
9038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9039 $as_echo "disabled" >&6; }
9040       else
9041         # Check if the provided tool contains a complete path.
9042         tool_specified="$LN"
9043         tool_basename="${tool_specified##*/}"
9044         if test "x$tool_basename" = "x$tool_specified"; then
9045           # A command without a complete path is provided, search $PATH.
9046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9047 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9048           # Extract the first word of "$tool_basename", so it can be a program name with args.
9049 set dummy $tool_basename; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_LN+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   case $LN in
9056   [\\/]* | ?:[\\/]*)
9057   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9058   ;;
9059   *)
9060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in $PATH
9062 do
9063   IFS=$as_save_IFS
9064   test -z "$as_dir" && as_dir=.
9065     for ac_exec_ext in '' $ac_executable_extensions; do
9066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9067     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069     break 2
9070   fi
9071 done
9072   done
9073 IFS=$as_save_IFS
9074 
9075   ;;
9076 esac
9077 fi
9078 LN=$ac_cv_path_LN
9079 if test -n "$LN"; then
9080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9081 $as_echo "$LN" >&6; }
9082 else
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9085 fi
9086 
9087 
9088           if test "x$LN" = x; then
9089             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9090           fi
9091         else
9092           # Otherwise we believe it is a complete path. Use it as it is.
9093           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9094 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9095           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9096 $as_echo_n "checking for LN... " >&6; }
9097           if test ! -x "$tool_specified"; then
9098             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9099 $as_echo "not found" >&6; }
9100             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9101           fi
9102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9103 $as_echo "$tool_specified" >&6; }
9104         fi
9105       fi
9106     fi
9107 
9108   fi
9109 
9110 
9111 
9112   if test "x$LN" = x; then
9113     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9114   fi
9115 
9116 
9117 
9118 
9119 
9120   # Publish this variable in the help.
9121 
9122 
9123   if [ -z "${LS+x}" ]; then
9124     # The variable is not set by user, try to locate tool using the code snippet
9125     for ac_prog in ls
9126 do
9127   # Extract the first word of "$ac_prog", so it can be a program name with args.
9128 set dummy $ac_prog; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_path_LS+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   case $LS in
9135   [\\/]* | ?:[\\/]*)
9136   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9137   ;;
9138   *)
9139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142   IFS=$as_save_IFS
9143   test -z "$as_dir" && as_dir=.
9144     for ac_exec_ext in '' $ac_executable_extensions; do
9145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148     break 2
9149   fi
9150 done
9151   done
9152 IFS=$as_save_IFS
9153 
9154   ;;
9155 esac
9156 fi
9157 LS=$ac_cv_path_LS
9158 if test -n "$LS"; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9160 $as_echo "$LS" >&6; }
9161 else
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164 fi
9165 
9166 
9167   test -n "$LS" && break
9168 done
9169 
9170   else
9171     # The variable is set, but is it from the command line or the environment?
9172 
9173     # Try to remove the string !LS! from our list.
9174     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9175     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9176       # If it failed, the variable was not from the command line. Ignore it,
9177       # but warn the user (except for BASH, which is always set by the calling BASH).
9178       if test "xLS" != xBASH; then
9179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9180 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9181       fi
9182       # Try to locate tool using the code snippet
9183       for ac_prog in ls
9184 do
9185   # Extract the first word of "$ac_prog", so it can be a program name with args.
9186 set dummy $ac_prog; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_path_LS+:} false; then :
9190   $as_echo_n "(cached) " >&6
9191 else
9192   case $LS in
9193   [\\/]* | ?:[\\/]*)
9194   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9195   ;;
9196   *)
9197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9199 do
9200   IFS=$as_save_IFS
9201   test -z "$as_dir" && as_dir=.
9202     for ac_exec_ext in '' $ac_executable_extensions; do
9203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9204     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206     break 2
9207   fi
9208 done
9209   done
9210 IFS=$as_save_IFS
9211 
9212   ;;
9213 esac
9214 fi
9215 LS=$ac_cv_path_LS
9216 if test -n "$LS"; then
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9218 $as_echo "$LS" >&6; }
9219 else
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9222 fi
9223 
9224 
9225   test -n "$LS" && break
9226 done
9227 
9228     else
9229       # If it succeeded, then it was overridden by the user. We will use it
9230       # for the tool.
9231 
9232       # First remove it from the list of overridden variables, so we can test
9233       # for unknown variables in the end.
9234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9235 
9236       # Check if we try to supply an empty value
9237       if test "x$LS" = x; then
9238         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9239 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9241 $as_echo_n "checking for LS... " >&6; }
9242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9243 $as_echo "disabled" >&6; }
9244       else
9245         # Check if the provided tool contains a complete path.
9246         tool_specified="$LS"
9247         tool_basename="${tool_specified##*/}"
9248         if test "x$tool_basename" = "x$tool_specified"; then
9249           # A command without a complete path is provided, search $PATH.
9250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9251 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9252           # Extract the first word of "$tool_basename", so it can be a program name with args.
9253 set dummy $tool_basename; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if ${ac_cv_path_LS+:} false; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   case $LS in
9260   [\\/]* | ?:[\\/]*)
9261   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9262   ;;
9263   *)
9264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9266 do
9267   IFS=$as_save_IFS
9268   test -z "$as_dir" && as_dir=.
9269     for ac_exec_ext in '' $ac_executable_extensions; do
9270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273     break 2
9274   fi
9275 done
9276   done
9277 IFS=$as_save_IFS
9278 
9279   ;;
9280 esac
9281 fi
9282 LS=$ac_cv_path_LS
9283 if test -n "$LS"; then
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9285 $as_echo "$LS" >&6; }
9286 else
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290 
9291 
9292           if test "x$LS" = x; then
9293             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9294           fi
9295         else
9296           # Otherwise we believe it is a complete path. Use it as it is.
9297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9298 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9299           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9300 $as_echo_n "checking for LS... " >&6; }
9301           if test ! -x "$tool_specified"; then
9302             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9303 $as_echo "not found" >&6; }
9304             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9305           fi
9306           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9307 $as_echo "$tool_specified" >&6; }
9308         fi
9309       fi
9310     fi
9311 
9312   fi
9313 
9314 
9315 
9316   if test "x$LS" = x; then
9317     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9318   fi
9319 
9320 
9321 
9322 
9323 
9324   # Publish this variable in the help.
9325 
9326 
9327   if [ -z "${MKDIR+x}" ]; then
9328     # The variable is not set by user, try to locate tool using the code snippet
9329     for ac_prog in mkdir
9330 do
9331   # Extract the first word of "$ac_prog", so it can be a program name with args.
9332 set dummy $ac_prog; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_path_MKDIR+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   case $MKDIR in
9339   [\\/]* | ?:[\\/]*)
9340   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9341   ;;
9342   *)
9343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346   IFS=$as_save_IFS
9347   test -z "$as_dir" && as_dir=.
9348     for ac_exec_ext in '' $ac_executable_extensions; do
9349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352     break 2
9353   fi
9354 done
9355   done
9356 IFS=$as_save_IFS
9357 
9358   ;;
9359 esac
9360 fi
9361 MKDIR=$ac_cv_path_MKDIR
9362 if test -n "$MKDIR"; then
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9364 $as_echo "$MKDIR" >&6; }
9365 else
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9368 fi
9369 
9370 
9371   test -n "$MKDIR" && break
9372 done
9373 
9374   else
9375     # The variable is set, but is it from the command line or the environment?
9376 
9377     # Try to remove the string !MKDIR! from our list.
9378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9380       # If it failed, the variable was not from the command line. Ignore it,
9381       # but warn the user (except for BASH, which is always set by the calling BASH).
9382       if test "xMKDIR" != xBASH; then
9383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9384 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9385       fi
9386       # Try to locate tool using the code snippet
9387       for ac_prog in mkdir
9388 do
9389   # Extract the first word of "$ac_prog", so it can be a program name with args.
9390 set dummy $ac_prog; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if ${ac_cv_path_MKDIR+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   case $MKDIR in
9397   [\\/]* | ?:[\\/]*)
9398   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9399   ;;
9400   *)
9401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404   IFS=$as_save_IFS
9405   test -z "$as_dir" && as_dir=.
9406     for ac_exec_ext in '' $ac_executable_extensions; do
9407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9408     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410     break 2
9411   fi
9412 done
9413   done
9414 IFS=$as_save_IFS
9415 
9416   ;;
9417 esac
9418 fi
9419 MKDIR=$ac_cv_path_MKDIR
9420 if test -n "$MKDIR"; then
9421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9422 $as_echo "$MKDIR" >&6; }
9423 else
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9426 fi
9427 
9428 
9429   test -n "$MKDIR" && break
9430 done
9431 
9432     else
9433       # If it succeeded, then it was overridden by the user. We will use it
9434       # for the tool.
9435 
9436       # First remove it from the list of overridden variables, so we can test
9437       # for unknown variables in the end.
9438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9439 
9440       # Check if we try to supply an empty value
9441       if test "x$MKDIR" = x; then
9442         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9443 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9445 $as_echo_n "checking for MKDIR... " >&6; }
9446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9447 $as_echo "disabled" >&6; }
9448       else
9449         # Check if the provided tool contains a complete path.
9450         tool_specified="$MKDIR"
9451         tool_basename="${tool_specified##*/}"
9452         if test "x$tool_basename" = "x$tool_specified"; then
9453           # A command without a complete path is provided, search $PATH.
9454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9455 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9456           # Extract the first word of "$tool_basename", so it can be a program name with args.
9457 set dummy $tool_basename; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if ${ac_cv_path_MKDIR+:} false; then :
9461   $as_echo_n "(cached) " >&6
9462 else
9463   case $MKDIR in
9464   [\\/]* | ?:[\\/]*)
9465   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9466   ;;
9467   *)
9468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471   IFS=$as_save_IFS
9472   test -z "$as_dir" && as_dir=.
9473     for ac_exec_ext in '' $ac_executable_extensions; do
9474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9475     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477     break 2
9478   fi
9479 done
9480   done
9481 IFS=$as_save_IFS
9482 
9483   ;;
9484 esac
9485 fi
9486 MKDIR=$ac_cv_path_MKDIR
9487 if test -n "$MKDIR"; then
9488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9489 $as_echo "$MKDIR" >&6; }
9490 else
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9493 fi
9494 
9495 
9496           if test "x$MKDIR" = x; then
9497             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9498           fi
9499         else
9500           # Otherwise we believe it is a complete path. Use it as it is.
9501           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9502 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9503           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9504 $as_echo_n "checking for MKDIR... " >&6; }
9505           if test ! -x "$tool_specified"; then
9506             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9507 $as_echo "not found" >&6; }
9508             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9509           fi
9510           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9511 $as_echo "$tool_specified" >&6; }
9512         fi
9513       fi
9514     fi
9515 
9516   fi
9517 
9518 
9519 
9520   if test "x$MKDIR" = x; then
9521     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9522   fi
9523 
9524 
9525 
9526 
9527 
9528   # Publish this variable in the help.
9529 
9530 
9531   if [ -z "${MKTEMP+x}" ]; then
9532     # The variable is not set by user, try to locate tool using the code snippet
9533     for ac_prog in mktemp
9534 do
9535   # Extract the first word of "$ac_prog", so it can be a program name with args.
9536 set dummy $ac_prog; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if ${ac_cv_path_MKTEMP+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   case $MKTEMP in
9543   [\\/]* | ?:[\\/]*)
9544   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9545   ;;
9546   *)
9547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9549 do
9550   IFS=$as_save_IFS
9551   test -z "$as_dir" && as_dir=.
9552     for ac_exec_ext in '' $ac_executable_extensions; do
9553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556     break 2
9557   fi
9558 done
9559   done
9560 IFS=$as_save_IFS
9561 
9562   ;;
9563 esac
9564 fi
9565 MKTEMP=$ac_cv_path_MKTEMP
9566 if test -n "$MKTEMP"; then
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9568 $as_echo "$MKTEMP" >&6; }
9569 else
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9572 fi
9573 
9574 
9575   test -n "$MKTEMP" && break
9576 done
9577 
9578   else
9579     # The variable is set, but is it from the command line or the environment?
9580 
9581     # Try to remove the string !MKTEMP! from our list.
9582     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9583     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9584       # If it failed, the variable was not from the command line. Ignore it,
9585       # but warn the user (except for BASH, which is always set by the calling BASH).
9586       if test "xMKTEMP" != xBASH; then
9587         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9588 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9589       fi
9590       # Try to locate tool using the code snippet
9591       for ac_prog in mktemp
9592 do
9593   # Extract the first word of "$ac_prog", so it can be a program name with args.
9594 set dummy $ac_prog; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_MKTEMP+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   case $MKTEMP in
9601   [\\/]* | ?:[\\/]*)
9602   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9603   ;;
9604   *)
9605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608   IFS=$as_save_IFS
9609   test -z "$as_dir" && as_dir=.
9610     for ac_exec_ext in '' $ac_executable_extensions; do
9611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614     break 2
9615   fi
9616 done
9617   done
9618 IFS=$as_save_IFS
9619 
9620   ;;
9621 esac
9622 fi
9623 MKTEMP=$ac_cv_path_MKTEMP
9624 if test -n "$MKTEMP"; then
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9626 $as_echo "$MKTEMP" >&6; }
9627 else
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9630 fi
9631 
9632 
9633   test -n "$MKTEMP" && break
9634 done
9635 
9636     else
9637       # If it succeeded, then it was overridden by the user. We will use it
9638       # for the tool.
9639 
9640       # First remove it from the list of overridden variables, so we can test
9641       # for unknown variables in the end.
9642       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9643 
9644       # Check if we try to supply an empty value
9645       if test "x$MKTEMP" = x; then
9646         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9647 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9649 $as_echo_n "checking for MKTEMP... " >&6; }
9650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9651 $as_echo "disabled" >&6; }
9652       else
9653         # Check if the provided tool contains a complete path.
9654         tool_specified="$MKTEMP"
9655         tool_basename="${tool_specified##*/}"
9656         if test "x$tool_basename" = "x$tool_specified"; then
9657           # A command without a complete path is provided, search $PATH.
9658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9659 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9660           # Extract the first word of "$tool_basename", so it can be a program name with args.
9661 set dummy $tool_basename; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_path_MKTEMP+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   case $MKTEMP in
9668   [\\/]* | ?:[\\/]*)
9669   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9670   ;;
9671   *)
9672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675   IFS=$as_save_IFS
9676   test -z "$as_dir" && as_dir=.
9677     for ac_exec_ext in '' $ac_executable_extensions; do
9678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681     break 2
9682   fi
9683 done
9684   done
9685 IFS=$as_save_IFS
9686 
9687   ;;
9688 esac
9689 fi
9690 MKTEMP=$ac_cv_path_MKTEMP
9691 if test -n "$MKTEMP"; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9693 $as_echo "$MKTEMP" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698 
9699 
9700           if test "x$MKTEMP" = x; then
9701             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9702           fi
9703         else
9704           # Otherwise we believe it is a complete path. Use it as it is.
9705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9706 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9708 $as_echo_n "checking for MKTEMP... " >&6; }
9709           if test ! -x "$tool_specified"; then
9710             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9711 $as_echo "not found" >&6; }
9712             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9713           fi
9714           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9715 $as_echo "$tool_specified" >&6; }
9716         fi
9717       fi
9718     fi
9719 
9720   fi
9721 
9722 
9723 
9724   if test "x$MKTEMP" = x; then
9725     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9726   fi
9727 
9728 
9729 
9730 
9731 
9732   # Publish this variable in the help.
9733 
9734 
9735   if [ -z "${MV+x}" ]; then
9736     # The variable is not set by user, try to locate tool using the code snippet
9737     for ac_prog in mv
9738 do
9739   # Extract the first word of "$ac_prog", so it can be a program name with args.
9740 set dummy $ac_prog; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_path_MV+:} false; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   case $MV in
9747   [\\/]* | ?:[\\/]*)
9748   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9749   ;;
9750   *)
9751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9753 do
9754   IFS=$as_save_IFS
9755   test -z "$as_dir" && as_dir=.
9756     for ac_exec_ext in '' $ac_executable_extensions; do
9757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760     break 2
9761   fi
9762 done
9763   done
9764 IFS=$as_save_IFS
9765 
9766   ;;
9767 esac
9768 fi
9769 MV=$ac_cv_path_MV
9770 if test -n "$MV"; then
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9772 $as_echo "$MV" >&6; }
9773 else
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777 
9778 
9779   test -n "$MV" && break
9780 done
9781 
9782   else
9783     # The variable is set, but is it from the command line or the environment?
9784 
9785     # Try to remove the string !MV! from our list.
9786     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9787     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9788       # If it failed, the variable was not from the command line. Ignore it,
9789       # but warn the user (except for BASH, which is always set by the calling BASH).
9790       if test "xMV" != xBASH; then
9791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9792 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9793       fi
9794       # Try to locate tool using the code snippet
9795       for ac_prog in mv
9796 do
9797   # Extract the first word of "$ac_prog", so it can be a program name with args.
9798 set dummy $ac_prog; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_path_MV+:} false; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   case $MV in
9805   [\\/]* | ?:[\\/]*)
9806   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9807   ;;
9808   *)
9809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in $PATH
9811 do
9812   IFS=$as_save_IFS
9813   test -z "$as_dir" && as_dir=.
9814     for ac_exec_ext in '' $ac_executable_extensions; do
9815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9816     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818     break 2
9819   fi
9820 done
9821   done
9822 IFS=$as_save_IFS
9823 
9824   ;;
9825 esac
9826 fi
9827 MV=$ac_cv_path_MV
9828 if test -n "$MV"; then
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9830 $as_echo "$MV" >&6; }
9831 else
9832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835 
9836 
9837   test -n "$MV" && break
9838 done
9839 
9840     else
9841       # If it succeeded, then it was overridden by the user. We will use it
9842       # for the tool.
9843 
9844       # First remove it from the list of overridden variables, so we can test
9845       # for unknown variables in the end.
9846       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9847 
9848       # Check if we try to supply an empty value
9849       if test "x$MV" = x; then
9850         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9851 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9853 $as_echo_n "checking for MV... " >&6; }
9854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9855 $as_echo "disabled" >&6; }
9856       else
9857         # Check if the provided tool contains a complete path.
9858         tool_specified="$MV"
9859         tool_basename="${tool_specified##*/}"
9860         if test "x$tool_basename" = "x$tool_specified"; then
9861           # A command without a complete path is provided, search $PATH.
9862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9863 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9864           # Extract the first word of "$tool_basename", so it can be a program name with args.
9865 set dummy $tool_basename; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_MV+:} false; then :
9869   $as_echo_n "(cached) " >&6
9870 else
9871   case $MV in
9872   [\\/]* | ?:[\\/]*)
9873   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9874   ;;
9875   *)
9876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881     for ac_exec_ext in '' $ac_executable_extensions; do
9882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885     break 2
9886   fi
9887 done
9888   done
9889 IFS=$as_save_IFS
9890 
9891   ;;
9892 esac
9893 fi
9894 MV=$ac_cv_path_MV
9895 if test -n "$MV"; then
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9897 $as_echo "$MV" >&6; }
9898 else
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902 
9903 
9904           if test "x$MV" = x; then
9905             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9906           fi
9907         else
9908           # Otherwise we believe it is a complete path. Use it as it is.
9909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9910 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9911           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9912 $as_echo_n "checking for MV... " >&6; }
9913           if test ! -x "$tool_specified"; then
9914             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9915 $as_echo "not found" >&6; }
9916             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9917           fi
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9919 $as_echo "$tool_specified" >&6; }
9920         fi
9921       fi
9922     fi
9923 
9924   fi
9925 
9926 
9927 
9928   if test "x$MV" = x; then
9929     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9930   fi
9931 
9932 
9933 
9934 
9935 
9936   # Publish this variable in the help.
9937 
9938 
9939   if [ -z "${NAWK+x}" ]; then
9940     # The variable is not set by user, try to locate tool using the code snippet
9941     for ac_prog in nawk gawk awk
9942 do
9943   # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if ${ac_cv_path_NAWK+:} false; then :
9948   $as_echo_n "(cached) " >&6
9949 else
9950   case $NAWK in
9951   [\\/]* | ?:[\\/]*)
9952   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9953   ;;
9954   *)
9955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958   IFS=$as_save_IFS
9959   test -z "$as_dir" && as_dir=.
9960     for ac_exec_ext in '' $ac_executable_extensions; do
9961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964     break 2
9965   fi
9966 done
9967   done
9968 IFS=$as_save_IFS
9969 
9970   ;;
9971 esac
9972 fi
9973 NAWK=$ac_cv_path_NAWK
9974 if test -n "$NAWK"; then
9975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9976 $as_echo "$NAWK" >&6; }
9977 else
9978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9980 fi
9981 
9982 
9983   test -n "$NAWK" && break
9984 done
9985 
9986   else
9987     # The variable is set, but is it from the command line or the environment?
9988 
9989     # Try to remove the string !NAWK! from our list.
9990     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9991     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9992       # If it failed, the variable was not from the command line. Ignore it,
9993       # but warn the user (except for BASH, which is always set by the calling BASH).
9994       if test "xNAWK" != xBASH; then
9995         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9996 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9997       fi
9998       # Try to locate tool using the code snippet
9999       for ac_prog in nawk gawk awk
10000 do
10001   # Extract the first word of "$ac_prog", so it can be a program name with args.
10002 set dummy $ac_prog; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_NAWK+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   case $NAWK in
10009   [\\/]* | ?:[\\/]*)
10010   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10011   ;;
10012   *)
10013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016   IFS=$as_save_IFS
10017   test -z "$as_dir" && as_dir=.
10018     for ac_exec_ext in '' $ac_executable_extensions; do
10019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022     break 2
10023   fi
10024 done
10025   done
10026 IFS=$as_save_IFS
10027 
10028   ;;
10029 esac
10030 fi
10031 NAWK=$ac_cv_path_NAWK
10032 if test -n "$NAWK"; then
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10034 $as_echo "$NAWK" >&6; }
10035 else
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10038 fi
10039 
10040 
10041   test -n "$NAWK" && break
10042 done
10043 
10044     else
10045       # If it succeeded, then it was overridden by the user. We will use it
10046       # for the tool.
10047 
10048       # First remove it from the list of overridden variables, so we can test
10049       # for unknown variables in the end.
10050       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10051 
10052       # Check if we try to supply an empty value
10053       if test "x$NAWK" = x; then
10054         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10055 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10057 $as_echo_n "checking for NAWK... " >&6; }
10058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10059 $as_echo "disabled" >&6; }
10060       else
10061         # Check if the provided tool contains a complete path.
10062         tool_specified="$NAWK"
10063         tool_basename="${tool_specified##*/}"
10064         if test "x$tool_basename" = "x$tool_specified"; then
10065           # A command without a complete path is provided, search $PATH.
10066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10067 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10068           # Extract the first word of "$tool_basename", so it can be a program name with args.
10069 set dummy $tool_basename; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_path_NAWK+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   case $NAWK in
10076   [\\/]* | ?:[\\/]*)
10077   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10078   ;;
10079   *)
10080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10082 do
10083   IFS=$as_save_IFS
10084   test -z "$as_dir" && as_dir=.
10085     for ac_exec_ext in '' $ac_executable_extensions; do
10086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089     break 2
10090   fi
10091 done
10092   done
10093 IFS=$as_save_IFS
10094 
10095   ;;
10096 esac
10097 fi
10098 NAWK=$ac_cv_path_NAWK
10099 if test -n "$NAWK"; then
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10101 $as_echo "$NAWK" >&6; }
10102 else
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10105 fi
10106 
10107 
10108           if test "x$NAWK" = x; then
10109             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10110           fi
10111         else
10112           # Otherwise we believe it is a complete path. Use it as it is.
10113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10114 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10115           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10116 $as_echo_n "checking for NAWK... " >&6; }
10117           if test ! -x "$tool_specified"; then
10118             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10119 $as_echo "not found" >&6; }
10120             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10121           fi
10122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10123 $as_echo "$tool_specified" >&6; }
10124         fi
10125       fi
10126     fi
10127 
10128   fi
10129 
10130 
10131 
10132   if test "x$NAWK" = x; then
10133     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10134   fi
10135 
10136 
10137 
10138 
10139 
10140   # Publish this variable in the help.
10141 
10142 
10143   if [ -z "${PRINTF+x}" ]; then
10144     # The variable is not set by user, try to locate tool using the code snippet
10145     for ac_prog in printf
10146 do
10147   # Extract the first word of "$ac_prog", so it can be a program name with args.
10148 set dummy $ac_prog; ac_word=$2
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 $as_echo_n "checking for $ac_word... " >&6; }
10151 if ${ac_cv_path_PRINTF+:} false; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   case $PRINTF in
10155   [\\/]* | ?:[\\/]*)
10156   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10157   ;;
10158   *)
10159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10161 do
10162   IFS=$as_save_IFS
10163   test -z "$as_dir" && as_dir=.
10164     for ac_exec_ext in '' $ac_executable_extensions; do
10165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168     break 2
10169   fi
10170 done
10171   done
10172 IFS=$as_save_IFS
10173 
10174   ;;
10175 esac
10176 fi
10177 PRINTF=$ac_cv_path_PRINTF
10178 if test -n "$PRINTF"; then
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10180 $as_echo "$PRINTF" >&6; }
10181 else
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185 
10186 
10187   test -n "$PRINTF" && break
10188 done
10189 
10190   else
10191     # The variable is set, but is it from the command line or the environment?
10192 
10193     # Try to remove the string !PRINTF! from our list.
10194     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10195     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10196       # If it failed, the variable was not from the command line. Ignore it,
10197       # but warn the user (except for BASH, which is always set by the calling BASH).
10198       if test "xPRINTF" != xBASH; then
10199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10200 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10201       fi
10202       # Try to locate tool using the code snippet
10203       for ac_prog in printf
10204 do
10205   # Extract the first word of "$ac_prog", so it can be a program name with args.
10206 set dummy $ac_prog; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_path_PRINTF+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   case $PRINTF in
10213   [\\/]* | ?:[\\/]*)
10214   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10215   ;;
10216   *)
10217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220   IFS=$as_save_IFS
10221   test -z "$as_dir" && as_dir=.
10222     for ac_exec_ext in '' $ac_executable_extensions; do
10223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226     break 2
10227   fi
10228 done
10229   done
10230 IFS=$as_save_IFS
10231 
10232   ;;
10233 esac
10234 fi
10235 PRINTF=$ac_cv_path_PRINTF
10236 if test -n "$PRINTF"; then
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10238 $as_echo "$PRINTF" >&6; }
10239 else
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242 fi
10243 
10244 
10245   test -n "$PRINTF" && break
10246 done
10247 
10248     else
10249       # If it succeeded, then it was overridden by the user. We will use it
10250       # for the tool.
10251 
10252       # First remove it from the list of overridden variables, so we can test
10253       # for unknown variables in the end.
10254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10255 
10256       # Check if we try to supply an empty value
10257       if test "x$PRINTF" = x; then
10258         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10259 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10261 $as_echo_n "checking for PRINTF... " >&6; }
10262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10263 $as_echo "disabled" >&6; }
10264       else
10265         # Check if the provided tool contains a complete path.
10266         tool_specified="$PRINTF"
10267         tool_basename="${tool_specified##*/}"
10268         if test "x$tool_basename" = "x$tool_specified"; then
10269           # A command without a complete path is provided, search $PATH.
10270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10271 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10272           # Extract the first word of "$tool_basename", so it can be a program name with args.
10273 set dummy $tool_basename; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_path_PRINTF+:} false; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   case $PRINTF in
10280   [\\/]* | ?:[\\/]*)
10281   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10282   ;;
10283   *)
10284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10286 do
10287   IFS=$as_save_IFS
10288   test -z "$as_dir" && as_dir=.
10289     for ac_exec_ext in '' $ac_executable_extensions; do
10290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293     break 2
10294   fi
10295 done
10296   done
10297 IFS=$as_save_IFS
10298 
10299   ;;
10300 esac
10301 fi
10302 PRINTF=$ac_cv_path_PRINTF
10303 if test -n "$PRINTF"; then
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10305 $as_echo "$PRINTF" >&6; }
10306 else
10307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10309 fi
10310 
10311 
10312           if test "x$PRINTF" = x; then
10313             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10314           fi
10315         else
10316           # Otherwise we believe it is a complete path. Use it as it is.
10317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10318 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10320 $as_echo_n "checking for PRINTF... " >&6; }
10321           if test ! -x "$tool_specified"; then
10322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10323 $as_echo "not found" >&6; }
10324             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10325           fi
10326           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10327 $as_echo "$tool_specified" >&6; }
10328         fi
10329       fi
10330     fi
10331 
10332   fi
10333 
10334 
10335 
10336   if test "x$PRINTF" = x; then
10337     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10338   fi
10339 
10340 
10341 
10342 
10343 
10344   # Publish this variable in the help.
10345 
10346 
10347   if [ -z "${RM+x}" ]; then
10348     # The variable is not set by user, try to locate tool using the code snippet
10349     for ac_prog in rm
10350 do
10351   # Extract the first word of "$ac_prog", so it can be a program name with args.
10352 set dummy $ac_prog; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_path_RM+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   case $RM in
10359   [\\/]* | ?:[\\/]*)
10360   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10361   ;;
10362   *)
10363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10365 do
10366   IFS=$as_save_IFS
10367   test -z "$as_dir" && as_dir=.
10368     for ac_exec_ext in '' $ac_executable_extensions; do
10369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372     break 2
10373   fi
10374 done
10375   done
10376 IFS=$as_save_IFS
10377 
10378   ;;
10379 esac
10380 fi
10381 RM=$ac_cv_path_RM
10382 if test -n "$RM"; then
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10384 $as_echo "$RM" >&6; }
10385 else
10386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10388 fi
10389 
10390 
10391   test -n "$RM" && break
10392 done
10393 
10394   else
10395     # The variable is set, but is it from the command line or the environment?
10396 
10397     # Try to remove the string !RM! from our list.
10398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10400       # If it failed, the variable was not from the command line. Ignore it,
10401       # but warn the user (except for BASH, which is always set by the calling BASH).
10402       if test "xRM" != xBASH; then
10403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10404 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10405       fi
10406       # Try to locate tool using the code snippet
10407       for ac_prog in rm
10408 do
10409   # Extract the first word of "$ac_prog", so it can be a program name with args.
10410 set dummy $ac_prog; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_path_RM+:} false; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   case $RM in
10417   [\\/]* | ?:[\\/]*)
10418   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10419   ;;
10420   *)
10421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10423 do
10424   IFS=$as_save_IFS
10425   test -z "$as_dir" && as_dir=.
10426     for ac_exec_ext in '' $ac_executable_extensions; do
10427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10428     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430     break 2
10431   fi
10432 done
10433   done
10434 IFS=$as_save_IFS
10435 
10436   ;;
10437 esac
10438 fi
10439 RM=$ac_cv_path_RM
10440 if test -n "$RM"; then
10441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10442 $as_echo "$RM" >&6; }
10443 else
10444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10446 fi
10447 
10448 
10449   test -n "$RM" && break
10450 done
10451 
10452     else
10453       # If it succeeded, then it was overridden by the user. We will use it
10454       # for the tool.
10455 
10456       # First remove it from the list of overridden variables, so we can test
10457       # for unknown variables in the end.
10458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10459 
10460       # Check if we try to supply an empty value
10461       if test "x$RM" = x; then
10462         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10463 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10465 $as_echo_n "checking for RM... " >&6; }
10466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10467 $as_echo "disabled" >&6; }
10468       else
10469         # Check if the provided tool contains a complete path.
10470         tool_specified="$RM"
10471         tool_basename="${tool_specified##*/}"
10472         if test "x$tool_basename" = "x$tool_specified"; then
10473           # A command without a complete path is provided, search $PATH.
10474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10475 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10476           # Extract the first word of "$tool_basename", so it can be a program name with args.
10477 set dummy $tool_basename; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_path_RM+:} false; then :
10481   $as_echo_n "(cached) " >&6
10482 else
10483   case $RM in
10484   [\\/]* | ?:[\\/]*)
10485   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10486   ;;
10487   *)
10488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491   IFS=$as_save_IFS
10492   test -z "$as_dir" && as_dir=.
10493     for ac_exec_ext in '' $ac_executable_extensions; do
10494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497     break 2
10498   fi
10499 done
10500   done
10501 IFS=$as_save_IFS
10502 
10503   ;;
10504 esac
10505 fi
10506 RM=$ac_cv_path_RM
10507 if test -n "$RM"; then
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10509 $as_echo "$RM" >&6; }
10510 else
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513 fi
10514 
10515 
10516           if test "x$RM" = x; then
10517             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10518           fi
10519         else
10520           # Otherwise we believe it is a complete path. Use it as it is.
10521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10522 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10524 $as_echo_n "checking for RM... " >&6; }
10525           if test ! -x "$tool_specified"; then
10526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10527 $as_echo "not found" >&6; }
10528             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10529           fi
10530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10531 $as_echo "$tool_specified" >&6; }
10532         fi
10533       fi
10534     fi
10535 
10536   fi
10537 
10538 
10539 
10540   if test "x$RM" = x; then
10541     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10542   fi
10543 
10544 
10545 
10546 
10547 
10548   # Publish this variable in the help.
10549 
10550 
10551   if [ -z "${RMDIR+x}" ]; then
10552     # The variable is not set by user, try to locate tool using the code snippet
10553     for ac_prog in rmdir
10554 do
10555   # Extract the first word of "$ac_prog", so it can be a program name with args.
10556 set dummy $ac_prog; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_path_RMDIR+:} false; then :
10560   $as_echo_n "(cached) " >&6
10561 else
10562   case $RMDIR in
10563   [\\/]* | ?:[\\/]*)
10564   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10565   ;;
10566   *)
10567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10569 do
10570   IFS=$as_save_IFS
10571   test -z "$as_dir" && as_dir=.
10572     for ac_exec_ext in '' $ac_executable_extensions; do
10573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10574     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576     break 2
10577   fi
10578 done
10579   done
10580 IFS=$as_save_IFS
10581 
10582   ;;
10583 esac
10584 fi
10585 RMDIR=$ac_cv_path_RMDIR
10586 if test -n "$RMDIR"; then
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10588 $as_echo "$RMDIR" >&6; }
10589 else
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 fi
10593 
10594 
10595   test -n "$RMDIR" && break
10596 done
10597 
10598   else
10599     # The variable is set, but is it from the command line or the environment?
10600 
10601     # Try to remove the string !RMDIR! from our list.
10602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10604       # If it failed, the variable was not from the command line. Ignore it,
10605       # but warn the user (except for BASH, which is always set by the calling BASH).
10606       if test "xRMDIR" != xBASH; then
10607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10608 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10609       fi
10610       # Try to locate tool using the code snippet
10611       for ac_prog in rmdir
10612 do
10613   # Extract the first word of "$ac_prog", so it can be a program name with args.
10614 set dummy $ac_prog; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_path_RMDIR+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   case $RMDIR in
10621   [\\/]* | ?:[\\/]*)
10622   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10623   ;;
10624   *)
10625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10627 do
10628   IFS=$as_save_IFS
10629   test -z "$as_dir" && as_dir=.
10630     for ac_exec_ext in '' $ac_executable_extensions; do
10631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634     break 2
10635   fi
10636 done
10637   done
10638 IFS=$as_save_IFS
10639 
10640   ;;
10641 esac
10642 fi
10643 RMDIR=$ac_cv_path_RMDIR
10644 if test -n "$RMDIR"; then
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10646 $as_echo "$RMDIR" >&6; }
10647 else
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651 
10652 
10653   test -n "$RMDIR" && break
10654 done
10655 
10656     else
10657       # If it succeeded, then it was overridden by the user. We will use it
10658       # for the tool.
10659 
10660       # First remove it from the list of overridden variables, so we can test
10661       # for unknown variables in the end.
10662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10663 
10664       # Check if we try to supply an empty value
10665       if test "x$RMDIR" = x; then
10666         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10667 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10669 $as_echo_n "checking for RMDIR... " >&6; }
10670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10671 $as_echo "disabled" >&6; }
10672       else
10673         # Check if the provided tool contains a complete path.
10674         tool_specified="$RMDIR"
10675         tool_basename="${tool_specified##*/}"
10676         if test "x$tool_basename" = "x$tool_specified"; then
10677           # A command without a complete path is provided, search $PATH.
10678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10679 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10680           # Extract the first word of "$tool_basename", so it can be a program name with args.
10681 set dummy $tool_basename; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if ${ac_cv_path_RMDIR+:} false; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   case $RMDIR in
10688   [\\/]* | ?:[\\/]*)
10689   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10690   ;;
10691   *)
10692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10694 do
10695   IFS=$as_save_IFS
10696   test -z "$as_dir" && as_dir=.
10697     for ac_exec_ext in '' $ac_executable_extensions; do
10698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701     break 2
10702   fi
10703 done
10704   done
10705 IFS=$as_save_IFS
10706 
10707   ;;
10708 esac
10709 fi
10710 RMDIR=$ac_cv_path_RMDIR
10711 if test -n "$RMDIR"; then
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10713 $as_echo "$RMDIR" >&6; }
10714 else
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 fi
10718 
10719 
10720           if test "x$RMDIR" = x; then
10721             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10722           fi
10723         else
10724           # Otherwise we believe it is a complete path. Use it as it is.
10725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10726 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10728 $as_echo_n "checking for RMDIR... " >&6; }
10729           if test ! -x "$tool_specified"; then
10730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10731 $as_echo "not found" >&6; }
10732             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10733           fi
10734           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10735 $as_echo "$tool_specified" >&6; }
10736         fi
10737       fi
10738     fi
10739 
10740   fi
10741 
10742 
10743 
10744   if test "x$RMDIR" = x; then
10745     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10746   fi
10747 
10748 
10749 
10750 
10751 
10752   # Publish this variable in the help.
10753 
10754 
10755   if [ -z "${SH+x}" ]; then
10756     # The variable is not set by user, try to locate tool using the code snippet
10757     for ac_prog in sh
10758 do
10759   # Extract the first word of "$ac_prog", so it can be a program name with args.
10760 set dummy $ac_prog; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if ${ac_cv_path_SH+:} false; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   case $SH in
10767   [\\/]* | ?:[\\/]*)
10768   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10769   ;;
10770   *)
10771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10773 do
10774   IFS=$as_save_IFS
10775   test -z "$as_dir" && as_dir=.
10776     for ac_exec_ext in '' $ac_executable_extensions; do
10777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780     break 2
10781   fi
10782 done
10783   done
10784 IFS=$as_save_IFS
10785 
10786   ;;
10787 esac
10788 fi
10789 SH=$ac_cv_path_SH
10790 if test -n "$SH"; then
10791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10792 $as_echo "$SH" >&6; }
10793 else
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796 fi
10797 
10798 
10799   test -n "$SH" && break
10800 done
10801 
10802   else
10803     # The variable is set, but is it from the command line or the environment?
10804 
10805     # Try to remove the string !SH! from our list.
10806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10808       # If it failed, the variable was not from the command line. Ignore it,
10809       # but warn the user (except for BASH, which is always set by the calling BASH).
10810       if test "xSH" != xBASH; then
10811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10812 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10813       fi
10814       # Try to locate tool using the code snippet
10815       for ac_prog in sh
10816 do
10817   # Extract the first word of "$ac_prog", so it can be a program name with args.
10818 set dummy $ac_prog; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if ${ac_cv_path_SH+:} false; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   case $SH in
10825   [\\/]* | ?:[\\/]*)
10826   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10827   ;;
10828   *)
10829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10831 do
10832   IFS=$as_save_IFS
10833   test -z "$as_dir" && as_dir=.
10834     for ac_exec_ext in '' $ac_executable_extensions; do
10835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838     break 2
10839   fi
10840 done
10841   done
10842 IFS=$as_save_IFS
10843 
10844   ;;
10845 esac
10846 fi
10847 SH=$ac_cv_path_SH
10848 if test -n "$SH"; then
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10850 $as_echo "$SH" >&6; }
10851 else
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 fi
10855 
10856 
10857   test -n "$SH" && break
10858 done
10859 
10860     else
10861       # If it succeeded, then it was overridden by the user. We will use it
10862       # for the tool.
10863 
10864       # First remove it from the list of overridden variables, so we can test
10865       # for unknown variables in the end.
10866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10867 
10868       # Check if we try to supply an empty value
10869       if test "x$SH" = x; then
10870         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10871 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10873 $as_echo_n "checking for SH... " >&6; }
10874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10875 $as_echo "disabled" >&6; }
10876       else
10877         # Check if the provided tool contains a complete path.
10878         tool_specified="$SH"
10879         tool_basename="${tool_specified##*/}"
10880         if test "x$tool_basename" = "x$tool_specified"; then
10881           # A command without a complete path is provided, search $PATH.
10882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10883 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10884           # Extract the first word of "$tool_basename", so it can be a program name with args.
10885 set dummy $tool_basename; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_path_SH+:} false; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891   case $SH in
10892   [\\/]* | ?:[\\/]*)
10893   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10894   ;;
10895   *)
10896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10898 do
10899   IFS=$as_save_IFS
10900   test -z "$as_dir" && as_dir=.
10901     for ac_exec_ext in '' $ac_executable_extensions; do
10902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905     break 2
10906   fi
10907 done
10908   done
10909 IFS=$as_save_IFS
10910 
10911   ;;
10912 esac
10913 fi
10914 SH=$ac_cv_path_SH
10915 if test -n "$SH"; then
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10917 $as_echo "$SH" >&6; }
10918 else
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10921 fi
10922 
10923 
10924           if test "x$SH" = x; then
10925             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10926           fi
10927         else
10928           # Otherwise we believe it is a complete path. Use it as it is.
10929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10930 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10932 $as_echo_n "checking for SH... " >&6; }
10933           if test ! -x "$tool_specified"; then
10934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10935 $as_echo "not found" >&6; }
10936             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10937           fi
10938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10939 $as_echo "$tool_specified" >&6; }
10940         fi
10941       fi
10942     fi
10943 
10944   fi
10945 
10946 
10947 
10948   if test "x$SH" = x; then
10949     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10950   fi
10951 
10952 
10953 
10954 
10955 
10956   # Publish this variable in the help.
10957 
10958 
10959   if [ -z "${SORT+x}" ]; then
10960     # The variable is not set by user, try to locate tool using the code snippet
10961     for ac_prog in sort
10962 do
10963   # Extract the first word of "$ac_prog", so it can be a program name with args.
10964 set dummy $ac_prog; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if ${ac_cv_path_SORT+:} false; then :
10968   $as_echo_n "(cached) " >&6
10969 else
10970   case $SORT in
10971   [\\/]* | ?:[\\/]*)
10972   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10973   ;;
10974   *)
10975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10977 do
10978   IFS=$as_save_IFS
10979   test -z "$as_dir" && as_dir=.
10980     for ac_exec_ext in '' $ac_executable_extensions; do
10981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984     break 2
10985   fi
10986 done
10987   done
10988 IFS=$as_save_IFS
10989 
10990   ;;
10991 esac
10992 fi
10993 SORT=$ac_cv_path_SORT
10994 if test -n "$SORT"; then
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10996 $as_echo "$SORT" >&6; }
10997 else
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11000 fi
11001 
11002 
11003   test -n "$SORT" && break
11004 done
11005 
11006   else
11007     # The variable is set, but is it from the command line or the environment?
11008 
11009     # Try to remove the string !SORT! from our list.
11010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11012       # If it failed, the variable was not from the command line. Ignore it,
11013       # but warn the user (except for BASH, which is always set by the calling BASH).
11014       if test "xSORT" != xBASH; then
11015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11016 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11017       fi
11018       # Try to locate tool using the code snippet
11019       for ac_prog in sort
11020 do
11021   # Extract the first word of "$ac_prog", so it can be a program name with args.
11022 set dummy $ac_prog; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_path_SORT+:} false; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   case $SORT in
11029   [\\/]* | ?:[\\/]*)
11030   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11031   ;;
11032   *)
11033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11035 do
11036   IFS=$as_save_IFS
11037   test -z "$as_dir" && as_dir=.
11038     for ac_exec_ext in '' $ac_executable_extensions; do
11039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042     break 2
11043   fi
11044 done
11045   done
11046 IFS=$as_save_IFS
11047 
11048   ;;
11049 esac
11050 fi
11051 SORT=$ac_cv_path_SORT
11052 if test -n "$SORT"; then
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11054 $as_echo "$SORT" >&6; }
11055 else
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11058 fi
11059 
11060 
11061   test -n "$SORT" && break
11062 done
11063 
11064     else
11065       # If it succeeded, then it was overridden by the user. We will use it
11066       # for the tool.
11067 
11068       # First remove it from the list of overridden variables, so we can test
11069       # for unknown variables in the end.
11070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11071 
11072       # Check if we try to supply an empty value
11073       if test "x$SORT" = x; then
11074         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11075 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11077 $as_echo_n "checking for SORT... " >&6; }
11078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11079 $as_echo "disabled" >&6; }
11080       else
11081         # Check if the provided tool contains a complete path.
11082         tool_specified="$SORT"
11083         tool_basename="${tool_specified##*/}"
11084         if test "x$tool_basename" = "x$tool_specified"; then
11085           # A command without a complete path is provided, search $PATH.
11086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11087 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11088           # Extract the first word of "$tool_basename", so it can be a program name with args.
11089 set dummy $tool_basename; ac_word=$2
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091 $as_echo_n "checking for $ac_word... " >&6; }
11092 if ${ac_cv_path_SORT+:} false; then :
11093   $as_echo_n "(cached) " >&6
11094 else
11095   case $SORT in
11096   [\\/]* | ?:[\\/]*)
11097   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11098   ;;
11099   *)
11100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103   IFS=$as_save_IFS
11104   test -z "$as_dir" && as_dir=.
11105     for ac_exec_ext in '' $ac_executable_extensions; do
11106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109     break 2
11110   fi
11111 done
11112   done
11113 IFS=$as_save_IFS
11114 
11115   ;;
11116 esac
11117 fi
11118 SORT=$ac_cv_path_SORT
11119 if test -n "$SORT"; then
11120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11121 $as_echo "$SORT" >&6; }
11122 else
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 fi
11126 
11127 
11128           if test "x$SORT" = x; then
11129             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11130           fi
11131         else
11132           # Otherwise we believe it is a complete path. Use it as it is.
11133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11134 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11135           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11136 $as_echo_n "checking for SORT... " >&6; }
11137           if test ! -x "$tool_specified"; then
11138             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11139 $as_echo "not found" >&6; }
11140             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11141           fi
11142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11143 $as_echo "$tool_specified" >&6; }
11144         fi
11145       fi
11146     fi
11147 
11148   fi
11149 
11150 
11151 
11152   if test "x$SORT" = x; then
11153     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11154   fi
11155 
11156 
11157 
11158 
11159 
11160   # Publish this variable in the help.
11161 
11162 
11163   if [ -z "${TAIL+x}" ]; then
11164     # The variable is not set by user, try to locate tool using the code snippet
11165     for ac_prog in tail
11166 do
11167   # Extract the first word of "$ac_prog", so it can be a program name with args.
11168 set dummy $ac_prog; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if ${ac_cv_path_TAIL+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   case $TAIL in
11175   [\\/]* | ?:[\\/]*)
11176   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11177   ;;
11178   *)
11179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11181 do
11182   IFS=$as_save_IFS
11183   test -z "$as_dir" && as_dir=.
11184     for ac_exec_ext in '' $ac_executable_extensions; do
11185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11188     break 2
11189   fi
11190 done
11191   done
11192 IFS=$as_save_IFS
11193 
11194   ;;
11195 esac
11196 fi
11197 TAIL=$ac_cv_path_TAIL
11198 if test -n "$TAIL"; then
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11200 $as_echo "$TAIL" >&6; }
11201 else
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11204 fi
11205 
11206 
11207   test -n "$TAIL" && break
11208 done
11209 
11210   else
11211     # The variable is set, but is it from the command line or the environment?
11212 
11213     # Try to remove the string !TAIL! from our list.
11214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11216       # If it failed, the variable was not from the command line. Ignore it,
11217       # but warn the user (except for BASH, which is always set by the calling BASH).
11218       if test "xTAIL" != xBASH; then
11219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11220 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11221       fi
11222       # Try to locate tool using the code snippet
11223       for ac_prog in tail
11224 do
11225   # Extract the first word of "$ac_prog", so it can be a program name with args.
11226 set dummy $ac_prog; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if ${ac_cv_path_TAIL+:} false; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   case $TAIL in
11233   [\\/]* | ?:[\\/]*)
11234   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11235   ;;
11236   *)
11237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11239 do
11240   IFS=$as_save_IFS
11241   test -z "$as_dir" && as_dir=.
11242     for ac_exec_ext in '' $ac_executable_extensions; do
11243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246     break 2
11247   fi
11248 done
11249   done
11250 IFS=$as_save_IFS
11251 
11252   ;;
11253 esac
11254 fi
11255 TAIL=$ac_cv_path_TAIL
11256 if test -n "$TAIL"; then
11257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11258 $as_echo "$TAIL" >&6; }
11259 else
11260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11262 fi
11263 
11264 
11265   test -n "$TAIL" && break
11266 done
11267 
11268     else
11269       # If it succeeded, then it was overridden by the user. We will use it
11270       # for the tool.
11271 
11272       # First remove it from the list of overridden variables, so we can test
11273       # for unknown variables in the end.
11274       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11275 
11276       # Check if we try to supply an empty value
11277       if test "x$TAIL" = x; then
11278         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11279 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11281 $as_echo_n "checking for TAIL... " >&6; }
11282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11283 $as_echo "disabled" >&6; }
11284       else
11285         # Check if the provided tool contains a complete path.
11286         tool_specified="$TAIL"
11287         tool_basename="${tool_specified##*/}"
11288         if test "x$tool_basename" = "x$tool_specified"; then
11289           # A command without a complete path is provided, search $PATH.
11290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11291 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11292           # Extract the first word of "$tool_basename", so it can be a program name with args.
11293 set dummy $tool_basename; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_TAIL+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   case $TAIL in
11300   [\\/]* | ?:[\\/]*)
11301   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11302   ;;
11303   *)
11304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318 
11319   ;;
11320 esac
11321 fi
11322 TAIL=$ac_cv_path_TAIL
11323 if test -n "$TAIL"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11325 $as_echo "$TAIL" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330 
11331 
11332           if test "x$TAIL" = x; then
11333             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11334           fi
11335         else
11336           # Otherwise we believe it is a complete path. Use it as it is.
11337           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11338 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11340 $as_echo_n "checking for TAIL... " >&6; }
11341           if test ! -x "$tool_specified"; then
11342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11343 $as_echo "not found" >&6; }
11344             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11345           fi
11346           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11347 $as_echo "$tool_specified" >&6; }
11348         fi
11349       fi
11350     fi
11351 
11352   fi
11353 
11354 
11355 
11356   if test "x$TAIL" = x; then
11357     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11358   fi
11359 
11360 
11361 
11362 
11363 
11364   # Publish this variable in the help.
11365 
11366 
11367   if [ -z "${TAR+x}" ]; then
11368     # The variable is not set by user, try to locate tool using the code snippet
11369     for ac_prog in gtar tar
11370 do
11371   # Extract the first word of "$ac_prog", so it can be a program name with args.
11372 set dummy $ac_prog; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_path_TAR+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   case $TAR in
11379   [\\/]* | ?:[\\/]*)
11380   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11381   ;;
11382   *)
11383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397 
11398   ;;
11399 esac
11400 fi
11401 TAR=$ac_cv_path_TAR
11402 if test -n "$TAR"; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11404 $as_echo "$TAR" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409 
11410 
11411   test -n "$TAR" && break
11412 done
11413 
11414   else
11415     # The variable is set, but is it from the command line or the environment?
11416 
11417     # Try to remove the string !TAR! from our list.
11418     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11419     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11420       # If it failed, the variable was not from the command line. Ignore it,
11421       # but warn the user (except for BASH, which is always set by the calling BASH).
11422       if test "xTAR" != xBASH; then
11423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11424 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11425       fi
11426       # Try to locate tool using the code snippet
11427       for ac_prog in gtar tar
11428 do
11429   # Extract the first word of "$ac_prog", so it can be a program name with args.
11430 set dummy $ac_prog; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if ${ac_cv_path_TAR+:} false; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   case $TAR in
11437   [\\/]* | ?:[\\/]*)
11438   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11439   ;;
11440   *)
11441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444   IFS=$as_save_IFS
11445   test -z "$as_dir" && as_dir=.
11446     for ac_exec_ext in '' $ac_executable_extensions; do
11447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11448     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450     break 2
11451   fi
11452 done
11453   done
11454 IFS=$as_save_IFS
11455 
11456   ;;
11457 esac
11458 fi
11459 TAR=$ac_cv_path_TAR
11460 if test -n "$TAR"; then
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11462 $as_echo "$TAR" >&6; }
11463 else
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466 fi
11467 
11468 
11469   test -n "$TAR" && break
11470 done
11471 
11472     else
11473       # If it succeeded, then it was overridden by the user. We will use it
11474       # for the tool.
11475 
11476       # First remove it from the list of overridden variables, so we can test
11477       # for unknown variables in the end.
11478       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11479 
11480       # Check if we try to supply an empty value
11481       if test "x$TAR" = x; then
11482         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11483 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11485 $as_echo_n "checking for TAR... " >&6; }
11486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11487 $as_echo "disabled" >&6; }
11488       else
11489         # Check if the provided tool contains a complete path.
11490         tool_specified="$TAR"
11491         tool_basename="${tool_specified##*/}"
11492         if test "x$tool_basename" = "x$tool_specified"; then
11493           # A command without a complete path is provided, search $PATH.
11494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11495 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11496           # Extract the first word of "$tool_basename", so it can be a program name with args.
11497 set dummy $tool_basename; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_TAR+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   case $TAR in
11504   [\\/]* | ?:[\\/]*)
11505   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11506   ;;
11507   *)
11508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511   IFS=$as_save_IFS
11512   test -z "$as_dir" && as_dir=.
11513     for ac_exec_ext in '' $ac_executable_extensions; do
11514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517     break 2
11518   fi
11519 done
11520   done
11521 IFS=$as_save_IFS
11522 
11523   ;;
11524 esac
11525 fi
11526 TAR=$ac_cv_path_TAR
11527 if test -n "$TAR"; then
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11529 $as_echo "$TAR" >&6; }
11530 else
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534 
11535 
11536           if test "x$TAR" = x; then
11537             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11538           fi
11539         else
11540           # Otherwise we believe it is a complete path. Use it as it is.
11541           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11542 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11544 $as_echo_n "checking for TAR... " >&6; }
11545           if test ! -x "$tool_specified"; then
11546             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11547 $as_echo "not found" >&6; }
11548             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11549           fi
11550           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11551 $as_echo "$tool_specified" >&6; }
11552         fi
11553       fi
11554     fi
11555 
11556   fi
11557 
11558 
11559 
11560   if test "x$TAR" = x; then
11561     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11562   fi
11563 
11564 
11565 
11566 
11567 
11568   # Publish this variable in the help.
11569 
11570 
11571   if [ -z "${TEE+x}" ]; then
11572     # The variable is not set by user, try to locate tool using the code snippet
11573     for ac_prog in tee
11574 do
11575   # Extract the first word of "$ac_prog", so it can be a program name with args.
11576 set dummy $ac_prog; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_path_TEE+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   case $TEE in
11583   [\\/]* | ?:[\\/]*)
11584   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11585   ;;
11586   *)
11587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11589 do
11590   IFS=$as_save_IFS
11591   test -z "$as_dir" && as_dir=.
11592     for ac_exec_ext in '' $ac_executable_extensions; do
11593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11594     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596     break 2
11597   fi
11598 done
11599   done
11600 IFS=$as_save_IFS
11601 
11602   ;;
11603 esac
11604 fi
11605 TEE=$ac_cv_path_TEE
11606 if test -n "$TEE"; then
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11608 $as_echo "$TEE" >&6; }
11609 else
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11612 fi
11613 
11614 
11615   test -n "$TEE" && break
11616 done
11617 
11618   else
11619     # The variable is set, but is it from the command line or the environment?
11620 
11621     # Try to remove the string !TEE! from our list.
11622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11624       # If it failed, the variable was not from the command line. Ignore it,
11625       # but warn the user (except for BASH, which is always set by the calling BASH).
11626       if test "xTEE" != xBASH; then
11627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11628 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11629       fi
11630       # Try to locate tool using the code snippet
11631       for ac_prog in tee
11632 do
11633   # Extract the first word of "$ac_prog", so it can be a program name with args.
11634 set dummy $ac_prog; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_path_TEE+:} false; then :
11638   $as_echo_n "(cached) " >&6
11639 else
11640   case $TEE in
11641   [\\/]* | ?:[\\/]*)
11642   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11643   ;;
11644   *)
11645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648   IFS=$as_save_IFS
11649   test -z "$as_dir" && as_dir=.
11650     for ac_exec_ext in '' $ac_executable_extensions; do
11651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657   done
11658 IFS=$as_save_IFS
11659 
11660   ;;
11661 esac
11662 fi
11663 TEE=$ac_cv_path_TEE
11664 if test -n "$TEE"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11666 $as_echo "$TEE" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671 
11672 
11673   test -n "$TEE" && break
11674 done
11675 
11676     else
11677       # If it succeeded, then it was overridden by the user. We will use it
11678       # for the tool.
11679 
11680       # First remove it from the list of overridden variables, so we can test
11681       # for unknown variables in the end.
11682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11683 
11684       # Check if we try to supply an empty value
11685       if test "x$TEE" = x; then
11686         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11687 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11689 $as_echo_n "checking for TEE... " >&6; }
11690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11691 $as_echo "disabled" >&6; }
11692       else
11693         # Check if the provided tool contains a complete path.
11694         tool_specified="$TEE"
11695         tool_basename="${tool_specified##*/}"
11696         if test "x$tool_basename" = "x$tool_specified"; then
11697           # A command without a complete path is provided, search $PATH.
11698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11699 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11700           # Extract the first word of "$tool_basename", so it can be a program name with args.
11701 set dummy $tool_basename; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if ${ac_cv_path_TEE+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   case $TEE in
11708   [\\/]* | ?:[\\/]*)
11709   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11710   ;;
11711   *)
11712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_exec_ext in '' $ac_executable_extensions; do
11718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11719     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721     break 2
11722   fi
11723 done
11724   done
11725 IFS=$as_save_IFS
11726 
11727   ;;
11728 esac
11729 fi
11730 TEE=$ac_cv_path_TEE
11731 if test -n "$TEE"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11733 $as_echo "$TEE" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738 
11739 
11740           if test "x$TEE" = x; then
11741             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11742           fi
11743         else
11744           # Otherwise we believe it is a complete path. Use it as it is.
11745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11746 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11747           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11748 $as_echo_n "checking for TEE... " >&6; }
11749           if test ! -x "$tool_specified"; then
11750             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11751 $as_echo "not found" >&6; }
11752             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11753           fi
11754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11755 $as_echo "$tool_specified" >&6; }
11756         fi
11757       fi
11758     fi
11759 
11760   fi
11761 
11762 
11763 
11764   if test "x$TEE" = x; then
11765     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11766   fi
11767 
11768 
11769 
11770 
11771 
11772   # Publish this variable in the help.
11773 
11774 
11775   if [ -z "${TOUCH+x}" ]; then
11776     # The variable is not set by user, try to locate tool using the code snippet
11777     for ac_prog in touch
11778 do
11779   # Extract the first word of "$ac_prog", so it can be a program name with args.
11780 set dummy $ac_prog; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_path_TOUCH+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   case $TOUCH in
11787   [\\/]* | ?:[\\/]*)
11788   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11789   ;;
11790   *)
11791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_exec_ext in '' $ac_executable_extensions; do
11797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803   done
11804 IFS=$as_save_IFS
11805 
11806   ;;
11807 esac
11808 fi
11809 TOUCH=$ac_cv_path_TOUCH
11810 if test -n "$TOUCH"; then
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11812 $as_echo "$TOUCH" >&6; }
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817 
11818 
11819   test -n "$TOUCH" && break
11820 done
11821 
11822   else
11823     # The variable is set, but is it from the command line or the environment?
11824 
11825     # Try to remove the string !TOUCH! from our list.
11826     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11827     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11828       # If it failed, the variable was not from the command line. Ignore it,
11829       # but warn the user (except for BASH, which is always set by the calling BASH).
11830       if test "xTOUCH" != xBASH; then
11831         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11832 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11833       fi
11834       # Try to locate tool using the code snippet
11835       for ac_prog in touch
11836 do
11837   # Extract the first word of "$ac_prog", so it can be a program name with args.
11838 set dummy $ac_prog; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_path_TOUCH+:} false; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   case $TOUCH in
11845   [\\/]* | ?:[\\/]*)
11846   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11847   ;;
11848   *)
11849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854     for ac_exec_ext in '' $ac_executable_extensions; do
11855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861   done
11862 IFS=$as_save_IFS
11863 
11864   ;;
11865 esac
11866 fi
11867 TOUCH=$ac_cv_path_TOUCH
11868 if test -n "$TOUCH"; then
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11870 $as_echo "$TOUCH" >&6; }
11871 else
11872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11874 fi
11875 
11876 
11877   test -n "$TOUCH" && break
11878 done
11879 
11880     else
11881       # If it succeeded, then it was overridden by the user. We will use it
11882       # for the tool.
11883 
11884       # First remove it from the list of overridden variables, so we can test
11885       # for unknown variables in the end.
11886       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11887 
11888       # Check if we try to supply an empty value
11889       if test "x$TOUCH" = x; then
11890         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11891 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11893 $as_echo_n "checking for TOUCH... " >&6; }
11894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11895 $as_echo "disabled" >&6; }
11896       else
11897         # Check if the provided tool contains a complete path.
11898         tool_specified="$TOUCH"
11899         tool_basename="${tool_specified##*/}"
11900         if test "x$tool_basename" = "x$tool_specified"; then
11901           # A command without a complete path is provided, search $PATH.
11902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11903 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11904           # Extract the first word of "$tool_basename", so it can be a program name with args.
11905 set dummy $tool_basename; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_path_TOUCH+:} false; then :
11909   $as_echo_n "(cached) " >&6
11910 else
11911   case $TOUCH in
11912   [\\/]* | ?:[\\/]*)
11913   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11914   ;;
11915   *)
11916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919   IFS=$as_save_IFS
11920   test -z "$as_dir" && as_dir=.
11921     for ac_exec_ext in '' $ac_executable_extensions; do
11922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925     break 2
11926   fi
11927 done
11928   done
11929 IFS=$as_save_IFS
11930 
11931   ;;
11932 esac
11933 fi
11934 TOUCH=$ac_cv_path_TOUCH
11935 if test -n "$TOUCH"; then
11936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11937 $as_echo "$TOUCH" >&6; }
11938 else
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 fi
11942 
11943 
11944           if test "x$TOUCH" = x; then
11945             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11946           fi
11947         else
11948           # Otherwise we believe it is a complete path. Use it as it is.
11949           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11950 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11951           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11952 $as_echo_n "checking for TOUCH... " >&6; }
11953           if test ! -x "$tool_specified"; then
11954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11955 $as_echo "not found" >&6; }
11956             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11957           fi
11958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11959 $as_echo "$tool_specified" >&6; }
11960         fi
11961       fi
11962     fi
11963 
11964   fi
11965 
11966 
11967 
11968   if test "x$TOUCH" = x; then
11969     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11970   fi
11971 
11972 
11973 
11974 
11975 
11976   # Publish this variable in the help.
11977 
11978 
11979   if [ -z "${TR+x}" ]; then
11980     # The variable is not set by user, try to locate tool using the code snippet
11981     for ac_prog in tr
11982 do
11983   # Extract the first word of "$ac_prog", so it can be a program name with args.
11984 set dummy $ac_prog; ac_word=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if ${ac_cv_path_TR+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   case $TR in
11991   [\\/]* | ?:[\\/]*)
11992   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11993   ;;
11994   *)
11995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11997 do
11998   IFS=$as_save_IFS
11999   test -z "$as_dir" && as_dir=.
12000     for ac_exec_ext in '' $ac_executable_extensions; do
12001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004     break 2
12005   fi
12006 done
12007   done
12008 IFS=$as_save_IFS
12009 
12010   ;;
12011 esac
12012 fi
12013 TR=$ac_cv_path_TR
12014 if test -n "$TR"; then
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12016 $as_echo "$TR" >&6; }
12017 else
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021 
12022 
12023   test -n "$TR" && break
12024 done
12025 
12026   else
12027     # The variable is set, but is it from the command line or the environment?
12028 
12029     # Try to remove the string !TR! from our list.
12030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12032       # If it failed, the variable was not from the command line. Ignore it,
12033       # but warn the user (except for BASH, which is always set by the calling BASH).
12034       if test "xTR" != xBASH; then
12035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12036 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12037       fi
12038       # Try to locate tool using the code snippet
12039       for ac_prog in tr
12040 do
12041   # Extract the first word of "$ac_prog", so it can be a program name with args.
12042 set dummy $ac_prog; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_path_TR+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   case $TR in
12049   [\\/]* | ?:[\\/]*)
12050   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12051   ;;
12052   *)
12053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058     for ac_exec_ext in '' $ac_executable_extensions; do
12059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062     break 2
12063   fi
12064 done
12065   done
12066 IFS=$as_save_IFS
12067 
12068   ;;
12069 esac
12070 fi
12071 TR=$ac_cv_path_TR
12072 if test -n "$TR"; then
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12074 $as_echo "$TR" >&6; }
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12078 fi
12079 
12080 
12081   test -n "$TR" && break
12082 done
12083 
12084     else
12085       # If it succeeded, then it was overridden by the user. We will use it
12086       # for the tool.
12087 
12088       # First remove it from the list of overridden variables, so we can test
12089       # for unknown variables in the end.
12090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12091 
12092       # Check if we try to supply an empty value
12093       if test "x$TR" = x; then
12094         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12095 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12097 $as_echo_n "checking for TR... " >&6; }
12098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12099 $as_echo "disabled" >&6; }
12100       else
12101         # Check if the provided tool contains a complete path.
12102         tool_specified="$TR"
12103         tool_basename="${tool_specified##*/}"
12104         if test "x$tool_basename" = "x$tool_specified"; then
12105           # A command without a complete path is provided, search $PATH.
12106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12107 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12108           # Extract the first word of "$tool_basename", so it can be a program name with args.
12109 set dummy $tool_basename; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if ${ac_cv_path_TR+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   case $TR in
12116   [\\/]* | ?:[\\/]*)
12117   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12118   ;;
12119   *)
12120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12122 do
12123   IFS=$as_save_IFS
12124   test -z "$as_dir" && as_dir=.
12125     for ac_exec_ext in '' $ac_executable_extensions; do
12126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129     break 2
12130   fi
12131 done
12132   done
12133 IFS=$as_save_IFS
12134 
12135   ;;
12136 esac
12137 fi
12138 TR=$ac_cv_path_TR
12139 if test -n "$TR"; then
12140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12141 $as_echo "$TR" >&6; }
12142 else
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146 
12147 
12148           if test "x$TR" = x; then
12149             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12150           fi
12151         else
12152           # Otherwise we believe it is a complete path. Use it as it is.
12153           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12154 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12156 $as_echo_n "checking for TR... " >&6; }
12157           if test ! -x "$tool_specified"; then
12158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12159 $as_echo "not found" >&6; }
12160             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12161           fi
12162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12163 $as_echo "$tool_specified" >&6; }
12164         fi
12165       fi
12166     fi
12167 
12168   fi
12169 
12170 
12171 
12172   if test "x$TR" = x; then
12173     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12174   fi
12175 
12176 
12177 
12178 
12179 
12180   # Publish this variable in the help.
12181 
12182 
12183   if [ -z "${UNAME+x}" ]; then
12184     # The variable is not set by user, try to locate tool using the code snippet
12185     for ac_prog in uname
12186 do
12187   # Extract the first word of "$ac_prog", so it can be a program name with args.
12188 set dummy $ac_prog; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_UNAME+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   case $UNAME in
12195   [\\/]* | ?:[\\/]*)
12196   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12197   ;;
12198   *)
12199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202   IFS=$as_save_IFS
12203   test -z "$as_dir" && as_dir=.
12204     for ac_exec_ext in '' $ac_executable_extensions; do
12205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208     break 2
12209   fi
12210 done
12211   done
12212 IFS=$as_save_IFS
12213 
12214   ;;
12215 esac
12216 fi
12217 UNAME=$ac_cv_path_UNAME
12218 if test -n "$UNAME"; then
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12220 $as_echo "$UNAME" >&6; }
12221 else
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225 
12226 
12227   test -n "$UNAME" && break
12228 done
12229 
12230   else
12231     # The variable is set, but is it from the command line or the environment?
12232 
12233     # Try to remove the string !UNAME! from our list.
12234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12236       # If it failed, the variable was not from the command line. Ignore it,
12237       # but warn the user (except for BASH, which is always set by the calling BASH).
12238       if test "xUNAME" != xBASH; then
12239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12240 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12241       fi
12242       # Try to locate tool using the code snippet
12243       for ac_prog in uname
12244 do
12245   # Extract the first word of "$ac_prog", so it can be a program name with args.
12246 set dummy $ac_prog; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_path_UNAME+:} false; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   case $UNAME in
12253   [\\/]* | ?:[\\/]*)
12254   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12255   ;;
12256   *)
12257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12259 do
12260   IFS=$as_save_IFS
12261   test -z "$as_dir" && as_dir=.
12262     for ac_exec_ext in '' $ac_executable_extensions; do
12263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266     break 2
12267   fi
12268 done
12269   done
12270 IFS=$as_save_IFS
12271 
12272   ;;
12273 esac
12274 fi
12275 UNAME=$ac_cv_path_UNAME
12276 if test -n "$UNAME"; then
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12278 $as_echo "$UNAME" >&6; }
12279 else
12280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282 fi
12283 
12284 
12285   test -n "$UNAME" && break
12286 done
12287 
12288     else
12289       # If it succeeded, then it was overridden by the user. We will use it
12290       # for the tool.
12291 
12292       # First remove it from the list of overridden variables, so we can test
12293       # for unknown variables in the end.
12294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12295 
12296       # Check if we try to supply an empty value
12297       if test "x$UNAME" = x; then
12298         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12299 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12301 $as_echo_n "checking for UNAME... " >&6; }
12302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12303 $as_echo "disabled" >&6; }
12304       else
12305         # Check if the provided tool contains a complete path.
12306         tool_specified="$UNAME"
12307         tool_basename="${tool_specified##*/}"
12308         if test "x$tool_basename" = "x$tool_specified"; then
12309           # A command without a complete path is provided, search $PATH.
12310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12311 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12312           # Extract the first word of "$tool_basename", so it can be a program name with args.
12313 set dummy $tool_basename; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if ${ac_cv_path_UNAME+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319   case $UNAME in
12320   [\\/]* | ?:[\\/]*)
12321   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12322   ;;
12323   *)
12324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327   IFS=$as_save_IFS
12328   test -z "$as_dir" && as_dir=.
12329     for ac_exec_ext in '' $ac_executable_extensions; do
12330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333     break 2
12334   fi
12335 done
12336   done
12337 IFS=$as_save_IFS
12338 
12339   ;;
12340 esac
12341 fi
12342 UNAME=$ac_cv_path_UNAME
12343 if test -n "$UNAME"; then
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12345 $as_echo "$UNAME" >&6; }
12346 else
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350 
12351 
12352           if test "x$UNAME" = x; then
12353             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12354           fi
12355         else
12356           # Otherwise we believe it is a complete path. Use it as it is.
12357           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12358 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12360 $as_echo_n "checking for UNAME... " >&6; }
12361           if test ! -x "$tool_specified"; then
12362             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12363 $as_echo "not found" >&6; }
12364             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12365           fi
12366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12367 $as_echo "$tool_specified" >&6; }
12368         fi
12369       fi
12370     fi
12371 
12372   fi
12373 
12374 
12375 
12376   if test "x$UNAME" = x; then
12377     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12378   fi
12379 
12380 
12381 
12382 
12383 
12384   # Publish this variable in the help.
12385 
12386 
12387   if [ -z "${UNIQ+x}" ]; then
12388     # The variable is not set by user, try to locate tool using the code snippet
12389     for ac_prog in uniq
12390 do
12391   # Extract the first word of "$ac_prog", so it can be a program name with args.
12392 set dummy $ac_prog; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if ${ac_cv_path_UNIQ+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   case $UNIQ in
12399   [\\/]* | ?:[\\/]*)
12400   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12401   ;;
12402   *)
12403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406   IFS=$as_save_IFS
12407   test -z "$as_dir" && as_dir=.
12408     for ac_exec_ext in '' $ac_executable_extensions; do
12409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412     break 2
12413   fi
12414 done
12415   done
12416 IFS=$as_save_IFS
12417 
12418   ;;
12419 esac
12420 fi
12421 UNIQ=$ac_cv_path_UNIQ
12422 if test -n "$UNIQ"; then
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12424 $as_echo "$UNIQ" >&6; }
12425 else
12426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429 
12430 
12431   test -n "$UNIQ" && break
12432 done
12433 
12434   else
12435     # The variable is set, but is it from the command line or the environment?
12436 
12437     # Try to remove the string !UNIQ! from our list.
12438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12440       # If it failed, the variable was not from the command line. Ignore it,
12441       # but warn the user (except for BASH, which is always set by the calling BASH).
12442       if test "xUNIQ" != xBASH; then
12443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12444 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12445       fi
12446       # Try to locate tool using the code snippet
12447       for ac_prog in uniq
12448 do
12449   # Extract the first word of "$ac_prog", so it can be a program name with args.
12450 set dummy $ac_prog; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_path_UNIQ+:} false; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   case $UNIQ in
12457   [\\/]* | ?:[\\/]*)
12458   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12459   ;;
12460   *)
12461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12463 do
12464   IFS=$as_save_IFS
12465   test -z "$as_dir" && as_dir=.
12466     for ac_exec_ext in '' $ac_executable_extensions; do
12467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12468     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470     break 2
12471   fi
12472 done
12473   done
12474 IFS=$as_save_IFS
12475 
12476   ;;
12477 esac
12478 fi
12479 UNIQ=$ac_cv_path_UNIQ
12480 if test -n "$UNIQ"; then
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12482 $as_echo "$UNIQ" >&6; }
12483 else
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487 
12488 
12489   test -n "$UNIQ" && break
12490 done
12491 
12492     else
12493       # If it succeeded, then it was overridden by the user. We will use it
12494       # for the tool.
12495 
12496       # First remove it from the list of overridden variables, so we can test
12497       # for unknown variables in the end.
12498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12499 
12500       # Check if we try to supply an empty value
12501       if test "x$UNIQ" = x; then
12502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12503 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12505 $as_echo_n "checking for UNIQ... " >&6; }
12506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12507 $as_echo "disabled" >&6; }
12508       else
12509         # Check if the provided tool contains a complete path.
12510         tool_specified="$UNIQ"
12511         tool_basename="${tool_specified##*/}"
12512         if test "x$tool_basename" = "x$tool_specified"; then
12513           # A command without a complete path is provided, search $PATH.
12514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12515 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12516           # Extract the first word of "$tool_basename", so it can be a program name with args.
12517 set dummy $tool_basename; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_path_UNIQ+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   case $UNIQ in
12524   [\\/]* | ?:[\\/]*)
12525   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12526   ;;
12527   *)
12528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531   IFS=$as_save_IFS
12532   test -z "$as_dir" && as_dir=.
12533     for ac_exec_ext in '' $ac_executable_extensions; do
12534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537     break 2
12538   fi
12539 done
12540   done
12541 IFS=$as_save_IFS
12542 
12543   ;;
12544 esac
12545 fi
12546 UNIQ=$ac_cv_path_UNIQ
12547 if test -n "$UNIQ"; then
12548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12549 $as_echo "$UNIQ" >&6; }
12550 else
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554 
12555 
12556           if test "x$UNIQ" = x; then
12557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12558           fi
12559         else
12560           # Otherwise we believe it is a complete path. Use it as it is.
12561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12562 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12564 $as_echo_n "checking for UNIQ... " >&6; }
12565           if test ! -x "$tool_specified"; then
12566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12567 $as_echo "not found" >&6; }
12568             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12569           fi
12570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12571 $as_echo "$tool_specified" >&6; }
12572         fi
12573       fi
12574     fi
12575 
12576   fi
12577 
12578 
12579 
12580   if test "x$UNIQ" = x; then
12581     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12582   fi
12583 
12584 
12585 
12586 
12587 
12588   # Publish this variable in the help.
12589 
12590 
12591   if [ -z "${WC+x}" ]; then
12592     # The variable is not set by user, try to locate tool using the code snippet
12593     for ac_prog in wc
12594 do
12595   # Extract the first word of "$ac_prog", so it can be a program name with args.
12596 set dummy $ac_prog; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if ${ac_cv_path_WC+:} false; then :
12600   $as_echo_n "(cached) " >&6
12601 else
12602   case $WC in
12603   [\\/]* | ?:[\\/]*)
12604   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12605   ;;
12606   *)
12607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610   IFS=$as_save_IFS
12611   test -z "$as_dir" && as_dir=.
12612     for ac_exec_ext in '' $ac_executable_extensions; do
12613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616     break 2
12617   fi
12618 done
12619   done
12620 IFS=$as_save_IFS
12621 
12622   ;;
12623 esac
12624 fi
12625 WC=$ac_cv_path_WC
12626 if test -n "$WC"; then
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12628 $as_echo "$WC" >&6; }
12629 else
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12632 fi
12633 
12634 
12635   test -n "$WC" && break
12636 done
12637 
12638   else
12639     # The variable is set, but is it from the command line or the environment?
12640 
12641     # Try to remove the string !WC! from our list.
12642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12644       # If it failed, the variable was not from the command line. Ignore it,
12645       # but warn the user (except for BASH, which is always set by the calling BASH).
12646       if test "xWC" != xBASH; then
12647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12648 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12649       fi
12650       # Try to locate tool using the code snippet
12651       for ac_prog in wc
12652 do
12653   # Extract the first word of "$ac_prog", so it can be a program name with args.
12654 set dummy $ac_prog; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_path_WC+:} false; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   case $WC in
12661   [\\/]* | ?:[\\/]*)
12662   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12663   ;;
12664   *)
12665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12667 do
12668   IFS=$as_save_IFS
12669   test -z "$as_dir" && as_dir=.
12670     for ac_exec_ext in '' $ac_executable_extensions; do
12671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674     break 2
12675   fi
12676 done
12677   done
12678 IFS=$as_save_IFS
12679 
12680   ;;
12681 esac
12682 fi
12683 WC=$ac_cv_path_WC
12684 if test -n "$WC"; then
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12686 $as_echo "$WC" >&6; }
12687 else
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691 
12692 
12693   test -n "$WC" && break
12694 done
12695 
12696     else
12697       # If it succeeded, then it was overridden by the user. We will use it
12698       # for the tool.
12699 
12700       # First remove it from the list of overridden variables, so we can test
12701       # for unknown variables in the end.
12702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12703 
12704       # Check if we try to supply an empty value
12705       if test "x$WC" = x; then
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12707 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12709 $as_echo_n "checking for WC... " >&6; }
12710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12711 $as_echo "disabled" >&6; }
12712       else
12713         # Check if the provided tool contains a complete path.
12714         tool_specified="$WC"
12715         tool_basename="${tool_specified##*/}"
12716         if test "x$tool_basename" = "x$tool_specified"; then
12717           # A command without a complete path is provided, search $PATH.
12718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12719 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12720           # Extract the first word of "$tool_basename", so it can be a program name with args.
12721 set dummy $tool_basename; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if ${ac_cv_path_WC+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   case $WC in
12728   [\\/]* | ?:[\\/]*)
12729   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12730   ;;
12731   *)
12732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737     for ac_exec_ext in '' $ac_executable_extensions; do
12738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744   done
12745 IFS=$as_save_IFS
12746 
12747   ;;
12748 esac
12749 fi
12750 WC=$ac_cv_path_WC
12751 if test -n "$WC"; then
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12753 $as_echo "$WC" >&6; }
12754 else
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758 
12759 
12760           if test "x$WC" = x; then
12761             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12762           fi
12763         else
12764           # Otherwise we believe it is a complete path. Use it as it is.
12765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12766 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12767           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12768 $as_echo_n "checking for WC... " >&6; }
12769           if test ! -x "$tool_specified"; then
12770             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12771 $as_echo "not found" >&6; }
12772             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12773           fi
12774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12775 $as_echo "$tool_specified" >&6; }
12776         fi
12777       fi
12778     fi
12779 
12780   fi
12781 
12782 
12783 
12784   if test "x$WC" = x; then
12785     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12786   fi
12787 
12788 
12789 
12790 
12791 
12792   # Publish this variable in the help.
12793 
12794 
12795   if [ -z "${WHICH+x}" ]; then
12796     # The variable is not set by user, try to locate tool using the code snippet
12797     for ac_prog in which
12798 do
12799   # Extract the first word of "$ac_prog", so it can be a program name with args.
12800 set dummy $ac_prog; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_path_WHICH+:} false; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   case $WHICH in
12807   [\\/]* | ?:[\\/]*)
12808   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12809   ;;
12810   *)
12811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814   IFS=$as_save_IFS
12815   test -z "$as_dir" && as_dir=.
12816     for ac_exec_ext in '' $ac_executable_extensions; do
12817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820     break 2
12821   fi
12822 done
12823   done
12824 IFS=$as_save_IFS
12825 
12826   ;;
12827 esac
12828 fi
12829 WHICH=$ac_cv_path_WHICH
12830 if test -n "$WHICH"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12832 $as_echo "$WHICH" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837 
12838 
12839   test -n "$WHICH" && break
12840 done
12841 
12842   else
12843     # The variable is set, but is it from the command line or the environment?
12844 
12845     # Try to remove the string !WHICH! from our list.
12846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12848       # If it failed, the variable was not from the command line. Ignore it,
12849       # but warn the user (except for BASH, which is always set by the calling BASH).
12850       if test "xWHICH" != xBASH; then
12851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12852 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12853       fi
12854       # Try to locate tool using the code snippet
12855       for ac_prog in which
12856 do
12857   # Extract the first word of "$ac_prog", so it can be a program name with args.
12858 set dummy $ac_prog; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_WHICH+:} false; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   case $WHICH in
12865   [\\/]* | ?:[\\/]*)
12866   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12867   ;;
12868   *)
12869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883 
12884   ;;
12885 esac
12886 fi
12887 WHICH=$ac_cv_path_WHICH
12888 if test -n "$WHICH"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12890 $as_echo "$WHICH" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895 
12896 
12897   test -n "$WHICH" && break
12898 done
12899 
12900     else
12901       # If it succeeded, then it was overridden by the user. We will use it
12902       # for the tool.
12903 
12904       # First remove it from the list of overridden variables, so we can test
12905       # for unknown variables in the end.
12906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12907 
12908       # Check if we try to supply an empty value
12909       if test "x$WHICH" = x; then
12910         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12911 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12913 $as_echo_n "checking for WHICH... " >&6; }
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12915 $as_echo "disabled" >&6; }
12916       else
12917         # Check if the provided tool contains a complete path.
12918         tool_specified="$WHICH"
12919         tool_basename="${tool_specified##*/}"
12920         if test "x$tool_basename" = "x$tool_specified"; then
12921           # A command without a complete path is provided, search $PATH.
12922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12923 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12924           # Extract the first word of "$tool_basename", so it can be a program name with args.
12925 set dummy $tool_basename; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_WHICH+:} false; then :
12929   $as_echo_n "(cached) " >&6
12930 else
12931   case $WHICH in
12932   [\\/]* | ?:[\\/]*)
12933   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12934   ;;
12935   *)
12936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939   IFS=$as_save_IFS
12940   test -z "$as_dir" && as_dir=.
12941     for ac_exec_ext in '' $ac_executable_extensions; do
12942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945     break 2
12946   fi
12947 done
12948   done
12949 IFS=$as_save_IFS
12950 
12951   ;;
12952 esac
12953 fi
12954 WHICH=$ac_cv_path_WHICH
12955 if test -n "$WHICH"; then
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12957 $as_echo "$WHICH" >&6; }
12958 else
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12961 fi
12962 
12963 
12964           if test "x$WHICH" = x; then
12965             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12966           fi
12967         else
12968           # Otherwise we believe it is a complete path. Use it as it is.
12969           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12970 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12971           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12972 $as_echo_n "checking for WHICH... " >&6; }
12973           if test ! -x "$tool_specified"; then
12974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12975 $as_echo "not found" >&6; }
12976             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12977           fi
12978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12979 $as_echo "$tool_specified" >&6; }
12980         fi
12981       fi
12982     fi
12983 
12984   fi
12985 
12986 
12987 
12988   if test "x$WHICH" = x; then
12989     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12990   fi
12991 
12992 
12993 
12994 
12995 
12996   # Publish this variable in the help.
12997 
12998 
12999   if [ -z "${XARGS+x}" ]; then
13000     # The variable is not set by user, try to locate tool using the code snippet
13001     for ac_prog in xargs
13002 do
13003   # Extract the first word of "$ac_prog", so it can be a program name with args.
13004 set dummy $ac_prog; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_path_XARGS+:} false; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   case $XARGS in
13011   [\\/]* | ?:[\\/]*)
13012   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13013   ;;
13014   *)
13015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018   IFS=$as_save_IFS
13019   test -z "$as_dir" && as_dir=.
13020     for ac_exec_ext in '' $ac_executable_extensions; do
13021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024     break 2
13025   fi
13026 done
13027   done
13028 IFS=$as_save_IFS
13029 
13030   ;;
13031 esac
13032 fi
13033 XARGS=$ac_cv_path_XARGS
13034 if test -n "$XARGS"; then
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13036 $as_echo "$XARGS" >&6; }
13037 else
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041 
13042 
13043   test -n "$XARGS" && break
13044 done
13045 
13046   else
13047     # The variable is set, but is it from the command line or the environment?
13048 
13049     # Try to remove the string !XARGS! from our list.
13050     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13051     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13052       # If it failed, the variable was not from the command line. Ignore it,
13053       # but warn the user (except for BASH, which is always set by the calling BASH).
13054       if test "xXARGS" != xBASH; then
13055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13056 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13057       fi
13058       # Try to locate tool using the code snippet
13059       for ac_prog in xargs
13060 do
13061   # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_XARGS+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   case $XARGS in
13069   [\\/]* | ?:[\\/]*)
13070   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13071   ;;
13072   *)
13073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076   IFS=$as_save_IFS
13077   test -z "$as_dir" && as_dir=.
13078     for ac_exec_ext in '' $ac_executable_extensions; do
13079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082     break 2
13083   fi
13084 done
13085   done
13086 IFS=$as_save_IFS
13087 
13088   ;;
13089 esac
13090 fi
13091 XARGS=$ac_cv_path_XARGS
13092 if test -n "$XARGS"; then
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13094 $as_echo "$XARGS" >&6; }
13095 else
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099 
13100 
13101   test -n "$XARGS" && break
13102 done
13103 
13104     else
13105       # If it succeeded, then it was overridden by the user. We will use it
13106       # for the tool.
13107 
13108       # First remove it from the list of overridden variables, so we can test
13109       # for unknown variables in the end.
13110       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13111 
13112       # Check if we try to supply an empty value
13113       if test "x$XARGS" = x; then
13114         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13115 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13117 $as_echo_n "checking for XARGS... " >&6; }
13118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13119 $as_echo "disabled" >&6; }
13120       else
13121         # Check if the provided tool contains a complete path.
13122         tool_specified="$XARGS"
13123         tool_basename="${tool_specified##*/}"
13124         if test "x$tool_basename" = "x$tool_specified"; then
13125           # A command without a complete path is provided, search $PATH.
13126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13127 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13128           # Extract the first word of "$tool_basename", so it can be a program name with args.
13129 set dummy $tool_basename; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_path_XARGS+:} false; then :
13133   $as_echo_n "(cached) " >&6
13134 else
13135   case $XARGS in
13136   [\\/]* | ?:[\\/]*)
13137   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13138   ;;
13139   *)
13140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152   done
13153 IFS=$as_save_IFS
13154 
13155   ;;
13156 esac
13157 fi
13158 XARGS=$ac_cv_path_XARGS
13159 if test -n "$XARGS"; then
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13161 $as_echo "$XARGS" >&6; }
13162 else
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 fi
13166 
13167 
13168           if test "x$XARGS" = x; then
13169             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13170           fi
13171         else
13172           # Otherwise we believe it is a complete path. Use it as it is.
13173           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13174 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13175           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13176 $as_echo_n "checking for XARGS... " >&6; }
13177           if test ! -x "$tool_specified"; then
13178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13179 $as_echo "not found" >&6; }
13180             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13181           fi
13182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13183 $as_echo "$tool_specified" >&6; }
13184         fi
13185       fi
13186     fi
13187 
13188   fi
13189 
13190 
13191 
13192   if test "x$XARGS" = x; then
13193     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13194   fi
13195 
13196 
13197 
13198   # Then required tools that require some special treatment.
13199 
13200 
13201   # Publish this variable in the help.
13202 
13203 
13204   if [ -z "${AWK+x}" ]; then
13205     # The variable is not set by user, try to locate tool using the code snippet
13206     for ac_prog in gawk mawk nawk awk
13207 do
13208   # Extract the first word of "$ac_prog", so it can be a program name with args.
13209 set dummy $ac_prog; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_prog_AWK+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   if test -n "$AWK"; then
13216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13220 do
13221   IFS=$as_save_IFS
13222   test -z "$as_dir" && as_dir=.
13223     for ac_exec_ext in '' $ac_executable_extensions; do
13224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225     ac_cv_prog_AWK="$ac_prog"
13226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227     break 2
13228   fi
13229 done
13230   done
13231 IFS=$as_save_IFS
13232 
13233 fi
13234 fi
13235 AWK=$ac_cv_prog_AWK
13236 if test -n "$AWK"; then
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13238 $as_echo "$AWK" >&6; }
13239 else
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 fi
13243 
13244 
13245   test -n "$AWK" && break
13246 done
13247 
13248   else
13249     # The variable is set, but is it from the command line or the environment?
13250 
13251     # Try to remove the string !AWK! from our list.
13252     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13253     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13254       # If it failed, the variable was not from the command line. Ignore it,
13255       # but warn the user (except for BASH, which is always set by the calling BASH).
13256       if test "xAWK" != xBASH; then
13257         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13258 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13259       fi
13260       # Try to locate tool using the code snippet
13261       for ac_prog in gawk mawk nawk awk
13262 do
13263   # Extract the first word of "$ac_prog", so it can be a program name with args.
13264 set dummy $ac_prog; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_prog_AWK+:} false; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270   if test -n "$AWK"; then
13271   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276   IFS=$as_save_IFS
13277   test -z "$as_dir" && as_dir=.
13278     for ac_exec_ext in '' $ac_executable_extensions; do
13279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280     ac_cv_prog_AWK="$ac_prog"
13281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282     break 2
13283   fi
13284 done
13285   done
13286 IFS=$as_save_IFS
13287 
13288 fi
13289 fi
13290 AWK=$ac_cv_prog_AWK
13291 if test -n "$AWK"; then
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13293 $as_echo "$AWK" >&6; }
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 
13299 
13300   test -n "$AWK" && break
13301 done
13302 
13303     else
13304       # If it succeeded, then it was overridden by the user. We will use it
13305       # for the tool.
13306 
13307       # First remove it from the list of overridden variables, so we can test
13308       # for unknown variables in the end.
13309       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13310 
13311       # Check if we try to supply an empty value
13312       if test "x$AWK" = x; then
13313         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13314 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13316 $as_echo_n "checking for AWK... " >&6; }
13317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13318 $as_echo "disabled" >&6; }
13319       else
13320         # Check if the provided tool contains a complete path.
13321         tool_specified="$AWK"
13322         tool_basename="${tool_specified##*/}"
13323         if test "x$tool_basename" = "x$tool_specified"; then
13324           # A command without a complete path is provided, search $PATH.
13325           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13326 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13327           # Extract the first word of "$tool_basename", so it can be a program name with args.
13328 set dummy $tool_basename; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_path_AWK+:} false; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   case $AWK in
13335   [\\/]* | ?:[\\/]*)
13336   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13337   ;;
13338   *)
13339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13341 do
13342   IFS=$as_save_IFS
13343   test -z "$as_dir" && as_dir=.
13344     for ac_exec_ext in '' $ac_executable_extensions; do
13345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13346     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348     break 2
13349   fi
13350 done
13351   done
13352 IFS=$as_save_IFS
13353 
13354   ;;
13355 esac
13356 fi
13357 AWK=$ac_cv_path_AWK
13358 if test -n "$AWK"; then
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13360 $as_echo "$AWK" >&6; }
13361 else
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 fi
13365 
13366 
13367           if test "x$AWK" = x; then
13368             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13369           fi
13370         else
13371           # Otherwise we believe it is a complete path. Use it as it is.
13372           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13373 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13374           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13375 $as_echo_n "checking for AWK... " >&6; }
13376           if test ! -x "$tool_specified"; then
13377             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13378 $as_echo "not found" >&6; }
13379             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13380           fi
13381           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13382 $as_echo "$tool_specified" >&6; }
13383         fi
13384       fi
13385     fi
13386 
13387   fi
13388 
13389 
13390   if test "x$AWK" = x; then
13391     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13392   fi
13393 
13394 
13395 
13396 
13397   # Publish this variable in the help.
13398 
13399 
13400   if [ -z "${GREP+x}" ]; then
13401     # The variable is not set by user, try to locate tool using the code snippet
13402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13403 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13404 if ${ac_cv_path_GREP+:} false; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   if test -z "$GREP"; then
13408   ac_path_GREP_found=false
13409   # Loop through the user's path and test for each of PROGNAME-LIST
13410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13412 do
13413   IFS=$as_save_IFS
13414   test -z "$as_dir" && as_dir=.
13415     for ac_prog in grep ggrep; do
13416     for ac_exec_ext in '' $ac_executable_extensions; do
13417       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13418       as_fn_executable_p "$ac_path_GREP" || continue
13419 # Check for GNU ac_path_GREP and select it if it is found.
13420   # Check for GNU $ac_path_GREP
13421 case `"$ac_path_GREP" --version 2>&1` in
13422 *GNU*)
13423   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13424 *)
13425   ac_count=0
13426   $as_echo_n 0123456789 >"conftest.in"
13427   while :
13428   do
13429     cat "conftest.in" "conftest.in" >"conftest.tmp"
13430     mv "conftest.tmp" "conftest.in"
13431     cp "conftest.in" "conftest.nl"
13432     $as_echo 'GREP' >> "conftest.nl"
13433     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13434     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13435     as_fn_arith $ac_count + 1 && ac_count=$as_val
13436     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13437       # Best one so far, save it but keep looking for a better one
13438       ac_cv_path_GREP="$ac_path_GREP"
13439       ac_path_GREP_max=$ac_count
13440     fi
13441     # 10*(2^10) chars as input seems more than enough
13442     test $ac_count -gt 10 && break
13443   done
13444   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13445 esac
13446 
13447       $ac_path_GREP_found && break 3
13448     done
13449   done
13450   done
13451 IFS=$as_save_IFS
13452   if test -z "$ac_cv_path_GREP"; then
13453     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13454   fi
13455 else
13456   ac_cv_path_GREP=$GREP
13457 fi
13458 
13459 fi
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13461 $as_echo "$ac_cv_path_GREP" >&6; }
13462  GREP="$ac_cv_path_GREP"
13463 
13464 
13465   else
13466     # The variable is set, but is it from the command line or the environment?
13467 
13468     # Try to remove the string !GREP! from our list.
13469     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13470     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13471       # If it failed, the variable was not from the command line. Ignore it,
13472       # but warn the user (except for BASH, which is always set by the calling BASH).
13473       if test "xGREP" != xBASH; then
13474         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13475 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13476       fi
13477       # Try to locate tool using the code snippet
13478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13479 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13480 if ${ac_cv_path_GREP+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   if test -z "$GREP"; then
13484   ac_path_GREP_found=false
13485   # Loop through the user's path and test for each of PROGNAME-LIST
13486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13488 do
13489   IFS=$as_save_IFS
13490   test -z "$as_dir" && as_dir=.
13491     for ac_prog in grep ggrep; do
13492     for ac_exec_ext in '' $ac_executable_extensions; do
13493       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13494       as_fn_executable_p "$ac_path_GREP" || continue
13495 # Check for GNU ac_path_GREP and select it if it is found.
13496   # Check for GNU $ac_path_GREP
13497 case `"$ac_path_GREP" --version 2>&1` in
13498 *GNU*)
13499   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13500 *)
13501   ac_count=0
13502   $as_echo_n 0123456789 >"conftest.in"
13503   while :
13504   do
13505     cat "conftest.in" "conftest.in" >"conftest.tmp"
13506     mv "conftest.tmp" "conftest.in"
13507     cp "conftest.in" "conftest.nl"
13508     $as_echo 'GREP' >> "conftest.nl"
13509     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13510     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13511     as_fn_arith $ac_count + 1 && ac_count=$as_val
13512     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13513       # Best one so far, save it but keep looking for a better one
13514       ac_cv_path_GREP="$ac_path_GREP"
13515       ac_path_GREP_max=$ac_count
13516     fi
13517     # 10*(2^10) chars as input seems more than enough
13518     test $ac_count -gt 10 && break
13519   done
13520   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13521 esac
13522 
13523       $ac_path_GREP_found && break 3
13524     done
13525   done
13526   done
13527 IFS=$as_save_IFS
13528   if test -z "$ac_cv_path_GREP"; then
13529     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13530   fi
13531 else
13532   ac_cv_path_GREP=$GREP
13533 fi
13534 
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13537 $as_echo "$ac_cv_path_GREP" >&6; }
13538  GREP="$ac_cv_path_GREP"
13539 
13540 
13541     else
13542       # If it succeeded, then it was overridden by the user. We will use it
13543       # for the tool.
13544 
13545       # First remove it from the list of overridden variables, so we can test
13546       # for unknown variables in the end.
13547       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13548 
13549       # Check if we try to supply an empty value
13550       if test "x$GREP" = x; then
13551         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13552 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13553         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13554 $as_echo_n "checking for GREP... " >&6; }
13555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13556 $as_echo "disabled" >&6; }
13557       else
13558         # Check if the provided tool contains a complete path.
13559         tool_specified="$GREP"
13560         tool_basename="${tool_specified##*/}"
13561         if test "x$tool_basename" = "x$tool_specified"; then
13562           # A command without a complete path is provided, search $PATH.
13563           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13564 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13565           # Extract the first word of "$tool_basename", so it can be a program name with args.
13566 set dummy $tool_basename; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_path_GREP+:} false; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   case $GREP in
13573   [\\/]* | ?:[\\/]*)
13574   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13575   ;;
13576   *)
13577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582     for ac_exec_ext in '' $ac_executable_extensions; do
13583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589   done
13590 IFS=$as_save_IFS
13591 
13592   ;;
13593 esac
13594 fi
13595 GREP=$ac_cv_path_GREP
13596 if test -n "$GREP"; then
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13598 $as_echo "$GREP" >&6; }
13599 else
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602 fi
13603 
13604 
13605           if test "x$GREP" = x; then
13606             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13607           fi
13608         else
13609           # Otherwise we believe it is a complete path. Use it as it is.
13610           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13611 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13612           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13613 $as_echo_n "checking for GREP... " >&6; }
13614           if test ! -x "$tool_specified"; then
13615             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13616 $as_echo "not found" >&6; }
13617             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13618           fi
13619           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13620 $as_echo "$tool_specified" >&6; }
13621         fi
13622       fi
13623     fi
13624 
13625   fi
13626 
13627 
13628   if test "x$GREP" = x; then
13629     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13630   fi
13631 
13632 
13633 
13634 
13635   # Publish this variable in the help.
13636 
13637 
13638   if [ -z "${EGREP+x}" ]; then
13639     # The variable is not set by user, try to locate tool using the code snippet
13640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13641 $as_echo_n "checking for egrep... " >&6; }
13642 if ${ac_cv_path_EGREP+:} false; then :
13643   $as_echo_n "(cached) " >&6
13644 else
13645   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13646    then ac_cv_path_EGREP="$GREP -E"
13647    else
13648      if test -z "$EGREP"; then
13649   ac_path_EGREP_found=false
13650   # Loop through the user's path and test for each of PROGNAME-LIST
13651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13653 do
13654   IFS=$as_save_IFS
13655   test -z "$as_dir" && as_dir=.
13656     for ac_prog in egrep; do
13657     for ac_exec_ext in '' $ac_executable_extensions; do
13658       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13659       as_fn_executable_p "$ac_path_EGREP" || continue
13660 # Check for GNU ac_path_EGREP and select it if it is found.
13661   # Check for GNU $ac_path_EGREP
13662 case `"$ac_path_EGREP" --version 2>&1` in
13663 *GNU*)
13664   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13665 *)
13666   ac_count=0
13667   $as_echo_n 0123456789 >"conftest.in"
13668   while :
13669   do
13670     cat "conftest.in" "conftest.in" >"conftest.tmp"
13671     mv "conftest.tmp" "conftest.in"
13672     cp "conftest.in" "conftest.nl"
13673     $as_echo 'EGREP' >> "conftest.nl"
13674     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13676     as_fn_arith $ac_count + 1 && ac_count=$as_val
13677     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13678       # Best one so far, save it but keep looking for a better one
13679       ac_cv_path_EGREP="$ac_path_EGREP"
13680       ac_path_EGREP_max=$ac_count
13681     fi
13682     # 10*(2^10) chars as input seems more than enough
13683     test $ac_count -gt 10 && break
13684   done
13685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13686 esac
13687 
13688       $ac_path_EGREP_found && break 3
13689     done
13690   done
13691   done
13692 IFS=$as_save_IFS
13693   if test -z "$ac_cv_path_EGREP"; then
13694     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13695   fi
13696 else
13697   ac_cv_path_EGREP=$EGREP
13698 fi
13699 
13700    fi
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13703 $as_echo "$ac_cv_path_EGREP" >&6; }
13704  EGREP="$ac_cv_path_EGREP"
13705 
13706 
13707   else
13708     # The variable is set, but is it from the command line or the environment?
13709 
13710     # Try to remove the string !EGREP! from our list.
13711     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13712     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13713       # If it failed, the variable was not from the command line. Ignore it,
13714       # but warn the user (except for BASH, which is always set by the calling BASH).
13715       if test "xEGREP" != xBASH; then
13716         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13717 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13718       fi
13719       # Try to locate tool using the code snippet
13720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13721 $as_echo_n "checking for egrep... " >&6; }
13722 if ${ac_cv_path_EGREP+:} false; then :
13723   $as_echo_n "(cached) " >&6
13724 else
13725   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13726    then ac_cv_path_EGREP="$GREP -E"
13727    else
13728      if test -z "$EGREP"; then
13729   ac_path_EGREP_found=false
13730   # Loop through the user's path and test for each of PROGNAME-LIST
13731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13733 do
13734   IFS=$as_save_IFS
13735   test -z "$as_dir" && as_dir=.
13736     for ac_prog in egrep; do
13737     for ac_exec_ext in '' $ac_executable_extensions; do
13738       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13739       as_fn_executable_p "$ac_path_EGREP" || continue
13740 # Check for GNU ac_path_EGREP and select it if it is found.
13741   # Check for GNU $ac_path_EGREP
13742 case `"$ac_path_EGREP" --version 2>&1` in
13743 *GNU*)
13744   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13745 *)
13746   ac_count=0
13747   $as_echo_n 0123456789 >"conftest.in"
13748   while :
13749   do
13750     cat "conftest.in" "conftest.in" >"conftest.tmp"
13751     mv "conftest.tmp" "conftest.in"
13752     cp "conftest.in" "conftest.nl"
13753     $as_echo 'EGREP' >> "conftest.nl"
13754     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13755     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13756     as_fn_arith $ac_count + 1 && ac_count=$as_val
13757     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13758       # Best one so far, save it but keep looking for a better one
13759       ac_cv_path_EGREP="$ac_path_EGREP"
13760       ac_path_EGREP_max=$ac_count
13761     fi
13762     # 10*(2^10) chars as input seems more than enough
13763     test $ac_count -gt 10 && break
13764   done
13765   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13766 esac
13767 
13768       $ac_path_EGREP_found && break 3
13769     done
13770   done
13771   done
13772 IFS=$as_save_IFS
13773   if test -z "$ac_cv_path_EGREP"; then
13774     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13775   fi
13776 else
13777   ac_cv_path_EGREP=$EGREP
13778 fi
13779 
13780    fi
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13783 $as_echo "$ac_cv_path_EGREP" >&6; }
13784  EGREP="$ac_cv_path_EGREP"
13785 
13786 
13787     else
13788       # If it succeeded, then it was overridden by the user. We will use it
13789       # for the tool.
13790 
13791       # First remove it from the list of overridden variables, so we can test
13792       # for unknown variables in the end.
13793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13794 
13795       # Check if we try to supply an empty value
13796       if test "x$EGREP" = x; then
13797         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13798 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13800 $as_echo_n "checking for EGREP... " >&6; }
13801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13802 $as_echo "disabled" >&6; }
13803       else
13804         # Check if the provided tool contains a complete path.
13805         tool_specified="$EGREP"
13806         tool_basename="${tool_specified##*/}"
13807         if test "x$tool_basename" = "x$tool_specified"; then
13808           # A command without a complete path is provided, search $PATH.
13809           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13810 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13811           # Extract the first word of "$tool_basename", so it can be a program name with args.
13812 set dummy $tool_basename; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_path_EGREP+:} false; then :
13816   $as_echo_n "(cached) " >&6
13817 else
13818   case $EGREP in
13819   [\\/]* | ?:[\\/]*)
13820   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13821   ;;
13822   *)
13823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
13827   test -z "$as_dir" && as_dir=.
13828     for ac_exec_ext in '' $ac_executable_extensions; do
13829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832     break 2
13833   fi
13834 done
13835   done
13836 IFS=$as_save_IFS
13837 
13838   ;;
13839 esac
13840 fi
13841 EGREP=$ac_cv_path_EGREP
13842 if test -n "$EGREP"; then
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13844 $as_echo "$EGREP" >&6; }
13845 else
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849 
13850 
13851           if test "x$EGREP" = x; then
13852             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13853           fi
13854         else
13855           # Otherwise we believe it is a complete path. Use it as it is.
13856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13857 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13859 $as_echo_n "checking for EGREP... " >&6; }
13860           if test ! -x "$tool_specified"; then
13861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13862 $as_echo "not found" >&6; }
13863             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13864           fi
13865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13866 $as_echo "$tool_specified" >&6; }
13867         fi
13868       fi
13869     fi
13870 
13871   fi
13872 
13873 
13874   if test "x$EGREP" = x; then
13875     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13876   fi
13877 
13878 
13879 
13880 
13881   # Publish this variable in the help.
13882 
13883 
13884   if [ -z "${FGREP+x}" ]; then
13885     # The variable is not set by user, try to locate tool using the code snippet
13886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13887 $as_echo_n "checking for fgrep... " >&6; }
13888 if ${ac_cv_path_FGREP+:} false; then :
13889   $as_echo_n "(cached) " >&6
13890 else
13891   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13892    then ac_cv_path_FGREP="$GREP -F"
13893    else
13894      if test -z "$FGREP"; then
13895   ac_path_FGREP_found=false
13896   # Loop through the user's path and test for each of PROGNAME-LIST
13897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13899 do
13900   IFS=$as_save_IFS
13901   test -z "$as_dir" && as_dir=.
13902     for ac_prog in fgrep; do
13903     for ac_exec_ext in '' $ac_executable_extensions; do
13904       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13905       as_fn_executable_p "$ac_path_FGREP" || continue
13906 # Check for GNU ac_path_FGREP and select it if it is found.
13907   # Check for GNU $ac_path_FGREP
13908 case `"$ac_path_FGREP" --version 2>&1` in
13909 *GNU*)
13910   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13911 *)
13912   ac_count=0
13913   $as_echo_n 0123456789 >"conftest.in"
13914   while :
13915   do
13916     cat "conftest.in" "conftest.in" >"conftest.tmp"
13917     mv "conftest.tmp" "conftest.in"
13918     cp "conftest.in" "conftest.nl"
13919     $as_echo 'FGREP' >> "conftest.nl"
13920     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13922     as_fn_arith $ac_count + 1 && ac_count=$as_val
13923     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13924       # Best one so far, save it but keep looking for a better one
13925       ac_cv_path_FGREP="$ac_path_FGREP"
13926       ac_path_FGREP_max=$ac_count
13927     fi
13928     # 10*(2^10) chars as input seems more than enough
13929     test $ac_count -gt 10 && break
13930   done
13931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13932 esac
13933 
13934       $ac_path_FGREP_found && break 3
13935     done
13936   done
13937   done
13938 IFS=$as_save_IFS
13939   if test -z "$ac_cv_path_FGREP"; then
13940     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13941   fi
13942 else
13943   ac_cv_path_FGREP=$FGREP
13944 fi
13945 
13946    fi
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13949 $as_echo "$ac_cv_path_FGREP" >&6; }
13950  FGREP="$ac_cv_path_FGREP"
13951 
13952 
13953   else
13954     # The variable is set, but is it from the command line or the environment?
13955 
13956     # Try to remove the string !FGREP! from our list.
13957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13959       # If it failed, the variable was not from the command line. Ignore it,
13960       # but warn the user (except for BASH, which is always set by the calling BASH).
13961       if test "xFGREP" != xBASH; then
13962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13963 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13964       fi
13965       # Try to locate tool using the code snippet
13966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13967 $as_echo_n "checking for fgrep... " >&6; }
13968 if ${ac_cv_path_FGREP+:} false; then :
13969   $as_echo_n "(cached) " >&6
13970 else
13971   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13972    then ac_cv_path_FGREP="$GREP -F"
13973    else
13974      if test -z "$FGREP"; then
13975   ac_path_FGREP_found=false
13976   # Loop through the user's path and test for each of PROGNAME-LIST
13977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13979 do
13980   IFS=$as_save_IFS
13981   test -z "$as_dir" && as_dir=.
13982     for ac_prog in fgrep; do
13983     for ac_exec_ext in '' $ac_executable_extensions; do
13984       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13985       as_fn_executable_p "$ac_path_FGREP" || continue
13986 # Check for GNU ac_path_FGREP and select it if it is found.
13987   # Check for GNU $ac_path_FGREP
13988 case `"$ac_path_FGREP" --version 2>&1` in
13989 *GNU*)
13990   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13991 *)
13992   ac_count=0
13993   $as_echo_n 0123456789 >"conftest.in"
13994   while :
13995   do
13996     cat "conftest.in" "conftest.in" >"conftest.tmp"
13997     mv "conftest.tmp" "conftest.in"
13998     cp "conftest.in" "conftest.nl"
13999     $as_echo 'FGREP' >> "conftest.nl"
14000     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14002     as_fn_arith $ac_count + 1 && ac_count=$as_val
14003     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14004       # Best one so far, save it but keep looking for a better one
14005       ac_cv_path_FGREP="$ac_path_FGREP"
14006       ac_path_FGREP_max=$ac_count
14007     fi
14008     # 10*(2^10) chars as input seems more than enough
14009     test $ac_count -gt 10 && break
14010   done
14011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14012 esac
14013 
14014       $ac_path_FGREP_found && break 3
14015     done
14016   done
14017   done
14018 IFS=$as_save_IFS
14019   if test -z "$ac_cv_path_FGREP"; then
14020     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14021   fi
14022 else
14023   ac_cv_path_FGREP=$FGREP
14024 fi
14025 
14026    fi
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14029 $as_echo "$ac_cv_path_FGREP" >&6; }
14030  FGREP="$ac_cv_path_FGREP"
14031 
14032 
14033     else
14034       # If it succeeded, then it was overridden by the user. We will use it
14035       # for the tool.
14036 
14037       # First remove it from the list of overridden variables, so we can test
14038       # for unknown variables in the end.
14039       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14040 
14041       # Check if we try to supply an empty value
14042       if test "x$FGREP" = x; then
14043         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14044 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14046 $as_echo_n "checking for FGREP... " >&6; }
14047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14048 $as_echo "disabled" >&6; }
14049       else
14050         # Check if the provided tool contains a complete path.
14051         tool_specified="$FGREP"
14052         tool_basename="${tool_specified##*/}"
14053         if test "x$tool_basename" = "x$tool_specified"; then
14054           # A command without a complete path is provided, search $PATH.
14055           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14056 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14057           # Extract the first word of "$tool_basename", so it can be a program name with args.
14058 set dummy $tool_basename; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if ${ac_cv_path_FGREP+:} false; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   case $FGREP in
14065   [\\/]* | ?:[\\/]*)
14066   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14067   ;;
14068   *)
14069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in $PATH
14071 do
14072   IFS=$as_save_IFS
14073   test -z "$as_dir" && as_dir=.
14074     for ac_exec_ext in '' $ac_executable_extensions; do
14075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14076     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14078     break 2
14079   fi
14080 done
14081   done
14082 IFS=$as_save_IFS
14083 
14084   ;;
14085 esac
14086 fi
14087 FGREP=$ac_cv_path_FGREP
14088 if test -n "$FGREP"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14090 $as_echo "$FGREP" >&6; }
14091 else
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095 
14096 
14097           if test "x$FGREP" = x; then
14098             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14099           fi
14100         else
14101           # Otherwise we believe it is a complete path. Use it as it is.
14102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14103 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14105 $as_echo_n "checking for FGREP... " >&6; }
14106           if test ! -x "$tool_specified"; then
14107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14108 $as_echo "not found" >&6; }
14109             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14110           fi
14111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14112 $as_echo "$tool_specified" >&6; }
14113         fi
14114       fi
14115     fi
14116 
14117   fi
14118 
14119 
14120   if test "x$FGREP" = x; then
14121     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14122   fi
14123 
14124 
14125 
14126 
14127   # Publish this variable in the help.
14128 
14129 
14130   if [ -z "${SED+x}" ]; then
14131     # The variable is not set by user, try to locate tool using the code snippet
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14134 if ${ac_cv_path_SED+:} false; then :
14135   $as_echo_n "(cached) " >&6
14136 else
14137             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14138      for ac_i in 1 2 3 4 5 6 7; do
14139        ac_script="$ac_script$as_nl$ac_script"
14140      done
14141      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14142      { ac_script=; unset ac_script;}
14143      if test -z "$SED"; then
14144   ac_path_SED_found=false
14145   # Loop through the user's path and test for each of PROGNAME-LIST
14146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149   IFS=$as_save_IFS
14150   test -z "$as_dir" && as_dir=.
14151     for ac_prog in sed gsed; do
14152     for ac_exec_ext in '' $ac_executable_extensions; do
14153       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14154       as_fn_executable_p "$ac_path_SED" || continue
14155 # Check for GNU ac_path_SED and select it if it is found.
14156   # Check for GNU $ac_path_SED
14157 case `"$ac_path_SED" --version 2>&1` in
14158 *GNU*)
14159   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14160 *)
14161   ac_count=0
14162   $as_echo_n 0123456789 >"conftest.in"
14163   while :
14164   do
14165     cat "conftest.in" "conftest.in" >"conftest.tmp"
14166     mv "conftest.tmp" "conftest.in"
14167     cp "conftest.in" "conftest.nl"
14168     $as_echo '' >> "conftest.nl"
14169     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14171     as_fn_arith $ac_count + 1 && ac_count=$as_val
14172     if test $ac_count -gt ${ac_path_SED_max-0}; then
14173       # Best one so far, save it but keep looking for a better one
14174       ac_cv_path_SED="$ac_path_SED"
14175       ac_path_SED_max=$ac_count
14176     fi
14177     # 10*(2^10) chars as input seems more than enough
14178     test $ac_count -gt 10 && break
14179   done
14180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14181 esac
14182 
14183       $ac_path_SED_found && break 3
14184     done
14185   done
14186   done
14187 IFS=$as_save_IFS
14188   if test -z "$ac_cv_path_SED"; then
14189     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14190   fi
14191 else
14192   ac_cv_path_SED=$SED
14193 fi
14194 
14195 fi
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14197 $as_echo "$ac_cv_path_SED" >&6; }
14198  SED="$ac_cv_path_SED"
14199   rm -f conftest.sed
14200 
14201   else
14202     # The variable is set, but is it from the command line or the environment?
14203 
14204     # Try to remove the string !SED! from our list.
14205     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14206     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14207       # If it failed, the variable was not from the command line. Ignore it,
14208       # but warn the user (except for BASH, which is always set by the calling BASH).
14209       if test "xSED" != xBASH; then
14210         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14211 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14212       fi
14213       # Try to locate tool using the code snippet
14214       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14215 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14216 if ${ac_cv_path_SED+:} false; then :
14217   $as_echo_n "(cached) " >&6
14218 else
14219             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14220      for ac_i in 1 2 3 4 5 6 7; do
14221        ac_script="$ac_script$as_nl$ac_script"
14222      done
14223      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14224      { ac_script=; unset ac_script;}
14225      if test -z "$SED"; then
14226   ac_path_SED_found=false
14227   # Loop through the user's path and test for each of PROGNAME-LIST
14228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14230 do
14231   IFS=$as_save_IFS
14232   test -z "$as_dir" && as_dir=.
14233     for ac_prog in sed gsed; do
14234     for ac_exec_ext in '' $ac_executable_extensions; do
14235       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14236       as_fn_executable_p "$ac_path_SED" || continue
14237 # Check for GNU ac_path_SED and select it if it is found.
14238   # Check for GNU $ac_path_SED
14239 case `"$ac_path_SED" --version 2>&1` in
14240 *GNU*)
14241   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14242 *)
14243   ac_count=0
14244   $as_echo_n 0123456789 >"conftest.in"
14245   while :
14246   do
14247     cat "conftest.in" "conftest.in" >"conftest.tmp"
14248     mv "conftest.tmp" "conftest.in"
14249     cp "conftest.in" "conftest.nl"
14250     $as_echo '' >> "conftest.nl"
14251     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14253     as_fn_arith $ac_count + 1 && ac_count=$as_val
14254     if test $ac_count -gt ${ac_path_SED_max-0}; then
14255       # Best one so far, save it but keep looking for a better one
14256       ac_cv_path_SED="$ac_path_SED"
14257       ac_path_SED_max=$ac_count
14258     fi
14259     # 10*(2^10) chars as input seems more than enough
14260     test $ac_count -gt 10 && break
14261   done
14262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14263 esac
14264 
14265       $ac_path_SED_found && break 3
14266     done
14267   done
14268   done
14269 IFS=$as_save_IFS
14270   if test -z "$ac_cv_path_SED"; then
14271     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14272   fi
14273 else
14274   ac_cv_path_SED=$SED
14275 fi
14276 
14277 fi
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14279 $as_echo "$ac_cv_path_SED" >&6; }
14280  SED="$ac_cv_path_SED"
14281   rm -f conftest.sed
14282 
14283     else
14284       # If it succeeded, then it was overridden by the user. We will use it
14285       # for the tool.
14286 
14287       # First remove it from the list of overridden variables, so we can test
14288       # for unknown variables in the end.
14289       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14290 
14291       # Check if we try to supply an empty value
14292       if test "x$SED" = x; then
14293         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14294 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14296 $as_echo_n "checking for SED... " >&6; }
14297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14298 $as_echo "disabled" >&6; }
14299       else
14300         # Check if the provided tool contains a complete path.
14301         tool_specified="$SED"
14302         tool_basename="${tool_specified##*/}"
14303         if test "x$tool_basename" = "x$tool_specified"; then
14304           # A command without a complete path is provided, search $PATH.
14305           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14306 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14307           # Extract the first word of "$tool_basename", so it can be a program name with args.
14308 set dummy $tool_basename; ac_word=$2
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14310 $as_echo_n "checking for $ac_word... " >&6; }
14311 if ${ac_cv_path_SED+:} false; then :
14312   $as_echo_n "(cached) " >&6
14313 else
14314   case $SED in
14315   [\\/]* | ?:[\\/]*)
14316   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14317   ;;
14318   *)
14319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14321 do
14322   IFS=$as_save_IFS
14323   test -z "$as_dir" && as_dir=.
14324     for ac_exec_ext in '' $ac_executable_extensions; do
14325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14326     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328     break 2
14329   fi
14330 done
14331   done
14332 IFS=$as_save_IFS
14333 
14334   ;;
14335 esac
14336 fi
14337 SED=$ac_cv_path_SED
14338 if test -n "$SED"; then
14339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14340 $as_echo "$SED" >&6; }
14341 else
14342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 fi
14345 
14346 
14347           if test "x$SED" = x; then
14348             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14349           fi
14350         else
14351           # Otherwise we believe it is a complete path. Use it as it is.
14352           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14353 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14354           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14355 $as_echo_n "checking for SED... " >&6; }
14356           if test ! -x "$tool_specified"; then
14357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14358 $as_echo "not found" >&6; }
14359             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14360           fi
14361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14362 $as_echo "$tool_specified" >&6; }
14363         fi
14364       fi
14365     fi
14366 
14367   fi
14368 
14369 
14370   if test "x$SED" = x; then
14371     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14372   fi
14373 
14374 
14375 
14376   # Always force rm.
14377   RM="$RM -f"
14378 
14379   # pwd behaves differently on various platforms and some don't support the -L flag.
14380   # Always use the bash builtin pwd to get uniform behavior.
14381   THEPWDCMD=pwd
14382 
14383   # These are not required on all platforms
14384 
14385 
14386   # Publish this variable in the help.
14387 
14388 
14389   if [ -z "${CYGPATH+x}" ]; then
14390     # The variable is not set by user, try to locate tool using the code snippet
14391     for ac_prog in cygpath
14392 do
14393   # Extract the first word of "$ac_prog", so it can be a program name with args.
14394 set dummy $ac_prog; ac_word=$2
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14396 $as_echo_n "checking for $ac_word... " >&6; }
14397 if ${ac_cv_path_CYGPATH+:} false; then :
14398   $as_echo_n "(cached) " >&6
14399 else
14400   case $CYGPATH in
14401   [\\/]* | ?:[\\/]*)
14402   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14403   ;;
14404   *)
14405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14407 do
14408   IFS=$as_save_IFS
14409   test -z "$as_dir" && as_dir=.
14410     for ac_exec_ext in '' $ac_executable_extensions; do
14411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14414     break 2
14415   fi
14416 done
14417   done
14418 IFS=$as_save_IFS
14419 
14420   ;;
14421 esac
14422 fi
14423 CYGPATH=$ac_cv_path_CYGPATH
14424 if test -n "$CYGPATH"; then
14425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14426 $as_echo "$CYGPATH" >&6; }
14427 else
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430 fi
14431 
14432 
14433   test -n "$CYGPATH" && break
14434 done
14435 
14436   else
14437     # The variable is set, but is it from the command line or the environment?
14438 
14439     # Try to remove the string !CYGPATH! from our list.
14440     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14441     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14442       # If it failed, the variable was not from the command line. Ignore it,
14443       # but warn the user (except for BASH, which is always set by the calling BASH).
14444       if test "xCYGPATH" != xBASH; then
14445         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14446 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14447       fi
14448       # Try to locate tool using the code snippet
14449       for ac_prog in cygpath
14450 do
14451   # Extract the first word of "$ac_prog", so it can be a program name with args.
14452 set dummy $ac_prog; ac_word=$2
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14454 $as_echo_n "checking for $ac_word... " >&6; }
14455 if ${ac_cv_path_CYGPATH+:} false; then :
14456   $as_echo_n "(cached) " >&6
14457 else
14458   case $CYGPATH in
14459   [\\/]* | ?:[\\/]*)
14460   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14461   ;;
14462   *)
14463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14465 do
14466   IFS=$as_save_IFS
14467   test -z "$as_dir" && as_dir=.
14468     for ac_exec_ext in '' $ac_executable_extensions; do
14469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14470     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14472     break 2
14473   fi
14474 done
14475   done
14476 IFS=$as_save_IFS
14477 
14478   ;;
14479 esac
14480 fi
14481 CYGPATH=$ac_cv_path_CYGPATH
14482 if test -n "$CYGPATH"; then
14483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14484 $as_echo "$CYGPATH" >&6; }
14485 else
14486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14488 fi
14489 
14490 
14491   test -n "$CYGPATH" && break
14492 done
14493 
14494     else
14495       # If it succeeded, then it was overridden by the user. We will use it
14496       # for the tool.
14497 
14498       # First remove it from the list of overridden variables, so we can test
14499       # for unknown variables in the end.
14500       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14501 
14502       # Check if we try to supply an empty value
14503       if test "x$CYGPATH" = x; then
14504         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14505 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14507 $as_echo_n "checking for CYGPATH... " >&6; }
14508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14509 $as_echo "disabled" >&6; }
14510       else
14511         # Check if the provided tool contains a complete path.
14512         tool_specified="$CYGPATH"
14513         tool_basename="${tool_specified##*/}"
14514         if test "x$tool_basename" = "x$tool_specified"; then
14515           # A command without a complete path is provided, search $PATH.
14516           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14517 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14518           # Extract the first word of "$tool_basename", so it can be a program name with args.
14519 set dummy $tool_basename; ac_word=$2
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14521 $as_echo_n "checking for $ac_word... " >&6; }
14522 if ${ac_cv_path_CYGPATH+:} false; then :
14523   $as_echo_n "(cached) " >&6
14524 else
14525   case $CYGPATH in
14526   [\\/]* | ?:[\\/]*)
14527   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14528   ;;
14529   *)
14530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14532 do
14533   IFS=$as_save_IFS
14534   test -z "$as_dir" && as_dir=.
14535     for ac_exec_ext in '' $ac_executable_extensions; do
14536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14537     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14539     break 2
14540   fi
14541 done
14542   done
14543 IFS=$as_save_IFS
14544 
14545   ;;
14546 esac
14547 fi
14548 CYGPATH=$ac_cv_path_CYGPATH
14549 if test -n "$CYGPATH"; then
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14551 $as_echo "$CYGPATH" >&6; }
14552 else
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14555 fi
14556 
14557 
14558           if test "x$CYGPATH" = x; then
14559             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14560           fi
14561         else
14562           # Otherwise we believe it is a complete path. Use it as it is.
14563           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14564 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14565           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14566 $as_echo_n "checking for CYGPATH... " >&6; }
14567           if test ! -x "$tool_specified"; then
14568             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14569 $as_echo "not found" >&6; }
14570             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14571           fi
14572           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14573 $as_echo "$tool_specified" >&6; }
14574         fi
14575       fi
14576     fi
14577 
14578   fi
14579 
14580 
14581 
14582 
14583   # Publish this variable in the help.
14584 
14585 
14586   if [ -z "${READLINK+x}" ]; then
14587     # The variable is not set by user, try to locate tool using the code snippet
14588     for ac_prog in greadlink readlink
14589 do
14590   # Extract the first word of "$ac_prog", so it can be a program name with args.
14591 set dummy $ac_prog; ac_word=$2
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14593 $as_echo_n "checking for $ac_word... " >&6; }
14594 if ${ac_cv_path_READLINK+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   case $READLINK in
14598   [\\/]* | ?:[\\/]*)
14599   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14600   ;;
14601   *)
14602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14603 for as_dir in $PATH
14604 do
14605   IFS=$as_save_IFS
14606   test -z "$as_dir" && as_dir=.
14607     for ac_exec_ext in '' $ac_executable_extensions; do
14608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14609     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14611     break 2
14612   fi
14613 done
14614   done
14615 IFS=$as_save_IFS
14616 
14617   ;;
14618 esac
14619 fi
14620 READLINK=$ac_cv_path_READLINK
14621 if test -n "$READLINK"; then
14622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14623 $as_echo "$READLINK" >&6; }
14624 else
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14627 fi
14628 
14629 
14630   test -n "$READLINK" && break
14631 done
14632 
14633   else
14634     # The variable is set, but is it from the command line or the environment?
14635 
14636     # Try to remove the string !READLINK! from our list.
14637     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14638     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14639       # If it failed, the variable was not from the command line. Ignore it,
14640       # but warn the user (except for BASH, which is always set by the calling BASH).
14641       if test "xREADLINK" != xBASH; then
14642         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14643 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14644       fi
14645       # Try to locate tool using the code snippet
14646       for ac_prog in greadlink readlink
14647 do
14648   # Extract the first word of "$ac_prog", so it can be a program name with args.
14649 set dummy $ac_prog; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if ${ac_cv_path_READLINK+:} false; then :
14653   $as_echo_n "(cached) " >&6
14654 else
14655   case $READLINK in
14656   [\\/]* | ?:[\\/]*)
14657   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14658   ;;
14659   *)
14660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661 for as_dir in $PATH
14662 do
14663   IFS=$as_save_IFS
14664   test -z "$as_dir" && as_dir=.
14665     for ac_exec_ext in '' $ac_executable_extensions; do
14666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14669     break 2
14670   fi
14671 done
14672   done
14673 IFS=$as_save_IFS
14674 
14675   ;;
14676 esac
14677 fi
14678 READLINK=$ac_cv_path_READLINK
14679 if test -n "$READLINK"; then
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14681 $as_echo "$READLINK" >&6; }
14682 else
14683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14685 fi
14686 
14687 
14688   test -n "$READLINK" && break
14689 done
14690 
14691     else
14692       # If it succeeded, then it was overridden by the user. We will use it
14693       # for the tool.
14694 
14695       # First remove it from the list of overridden variables, so we can test
14696       # for unknown variables in the end.
14697       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14698 
14699       # Check if we try to supply an empty value
14700       if test "x$READLINK" = x; then
14701         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14702 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14704 $as_echo_n "checking for READLINK... " >&6; }
14705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14706 $as_echo "disabled" >&6; }
14707       else
14708         # Check if the provided tool contains a complete path.
14709         tool_specified="$READLINK"
14710         tool_basename="${tool_specified##*/}"
14711         if test "x$tool_basename" = "x$tool_specified"; then
14712           # A command without a complete path is provided, search $PATH.
14713           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14714 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14715           # Extract the first word of "$tool_basename", so it can be a program name with args.
14716 set dummy $tool_basename; ac_word=$2
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718 $as_echo_n "checking for $ac_word... " >&6; }
14719 if ${ac_cv_path_READLINK+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   case $READLINK in
14723   [\\/]* | ?:[\\/]*)
14724   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14725   ;;
14726   *)
14727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728 for as_dir in $PATH
14729 do
14730   IFS=$as_save_IFS
14731   test -z "$as_dir" && as_dir=.
14732     for ac_exec_ext in '' $ac_executable_extensions; do
14733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14736     break 2
14737   fi
14738 done
14739   done
14740 IFS=$as_save_IFS
14741 
14742   ;;
14743 esac
14744 fi
14745 READLINK=$ac_cv_path_READLINK
14746 if test -n "$READLINK"; then
14747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14748 $as_echo "$READLINK" >&6; }
14749 else
14750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751 $as_echo "no" >&6; }
14752 fi
14753 
14754 
14755           if test "x$READLINK" = x; then
14756             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14757           fi
14758         else
14759           # Otherwise we believe it is a complete path. Use it as it is.
14760           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14761 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14762           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14763 $as_echo_n "checking for READLINK... " >&6; }
14764           if test ! -x "$tool_specified"; then
14765             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14766 $as_echo "not found" >&6; }
14767             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14768           fi
14769           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14770 $as_echo "$tool_specified" >&6; }
14771         fi
14772       fi
14773     fi
14774 
14775   fi
14776 
14777 
14778 
14779 
14780   # Publish this variable in the help.
14781 
14782 
14783   if [ -z "${DF+x}" ]; then
14784     # The variable is not set by user, try to locate tool using the code snippet
14785     for ac_prog in df
14786 do
14787   # Extract the first word of "$ac_prog", so it can be a program name with args.
14788 set dummy $ac_prog; ac_word=$2
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14790 $as_echo_n "checking for $ac_word... " >&6; }
14791 if ${ac_cv_path_DF+:} false; then :
14792   $as_echo_n "(cached) " >&6
14793 else
14794   case $DF in
14795   [\\/]* | ?:[\\/]*)
14796   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14797   ;;
14798   *)
14799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14801 do
14802   IFS=$as_save_IFS
14803   test -z "$as_dir" && as_dir=.
14804     for ac_exec_ext in '' $ac_executable_extensions; do
14805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14808     break 2
14809   fi
14810 done
14811   done
14812 IFS=$as_save_IFS
14813 
14814   ;;
14815 esac
14816 fi
14817 DF=$ac_cv_path_DF
14818 if test -n "$DF"; then
14819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14820 $as_echo "$DF" >&6; }
14821 else
14822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14824 fi
14825 
14826 
14827   test -n "$DF" && break
14828 done
14829 
14830   else
14831     # The variable is set, but is it from the command line or the environment?
14832 
14833     # Try to remove the string !DF! from our list.
14834     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14835     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14836       # If it failed, the variable was not from the command line. Ignore it,
14837       # but warn the user (except for BASH, which is always set by the calling BASH).
14838       if test "xDF" != xBASH; then
14839         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14840 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14841       fi
14842       # Try to locate tool using the code snippet
14843       for ac_prog in df
14844 do
14845   # Extract the first word of "$ac_prog", so it can be a program name with args.
14846 set dummy $ac_prog; ac_word=$2
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14848 $as_echo_n "checking for $ac_word... " >&6; }
14849 if ${ac_cv_path_DF+:} false; then :
14850   $as_echo_n "(cached) " >&6
14851 else
14852   case $DF in
14853   [\\/]* | ?:[\\/]*)
14854   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14855   ;;
14856   *)
14857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14858 for as_dir in $PATH
14859 do
14860   IFS=$as_save_IFS
14861   test -z "$as_dir" && as_dir=.
14862     for ac_exec_ext in '' $ac_executable_extensions; do
14863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14864     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14866     break 2
14867   fi
14868 done
14869   done
14870 IFS=$as_save_IFS
14871 
14872   ;;
14873 esac
14874 fi
14875 DF=$ac_cv_path_DF
14876 if test -n "$DF"; then
14877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14878 $as_echo "$DF" >&6; }
14879 else
14880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14882 fi
14883 
14884 
14885   test -n "$DF" && break
14886 done
14887 
14888     else
14889       # If it succeeded, then it was overridden by the user. We will use it
14890       # for the tool.
14891 
14892       # First remove it from the list of overridden variables, so we can test
14893       # for unknown variables in the end.
14894       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14895 
14896       # Check if we try to supply an empty value
14897       if test "x$DF" = x; then
14898         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14899 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14901 $as_echo_n "checking for DF... " >&6; }
14902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14903 $as_echo "disabled" >&6; }
14904       else
14905         # Check if the provided tool contains a complete path.
14906         tool_specified="$DF"
14907         tool_basename="${tool_specified##*/}"
14908         if test "x$tool_basename" = "x$tool_specified"; then
14909           # A command without a complete path is provided, search $PATH.
14910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14911 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14912           # Extract the first word of "$tool_basename", so it can be a program name with args.
14913 set dummy $tool_basename; ac_word=$2
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14915 $as_echo_n "checking for $ac_word... " >&6; }
14916 if ${ac_cv_path_DF+:} false; then :
14917   $as_echo_n "(cached) " >&6
14918 else
14919   case $DF in
14920   [\\/]* | ?:[\\/]*)
14921   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14922   ;;
14923   *)
14924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14925 for as_dir in $PATH
14926 do
14927   IFS=$as_save_IFS
14928   test -z "$as_dir" && as_dir=.
14929     for ac_exec_ext in '' $ac_executable_extensions; do
14930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14931     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14933     break 2
14934   fi
14935 done
14936   done
14937 IFS=$as_save_IFS
14938 
14939   ;;
14940 esac
14941 fi
14942 DF=$ac_cv_path_DF
14943 if test -n "$DF"; then
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14945 $as_echo "$DF" >&6; }
14946 else
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 fi
14950 
14951 
14952           if test "x$DF" = x; then
14953             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14954           fi
14955         else
14956           # Otherwise we believe it is a complete path. Use it as it is.
14957           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14958 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14959           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14960 $as_echo_n "checking for DF... " >&6; }
14961           if test ! -x "$tool_specified"; then
14962             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14963 $as_echo "not found" >&6; }
14964             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14965           fi
14966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14967 $as_echo "$tool_specified" >&6; }
14968         fi
14969       fi
14970     fi
14971 
14972   fi
14973 
14974 
14975 
14976 
14977   # Publish this variable in the help.
14978 
14979 
14980   if [ -z "${CPIO+x}" ]; then
14981     # The variable is not set by user, try to locate tool using the code snippet
14982     for ac_prog in cpio bsdcpio
14983 do
14984   # Extract the first word of "$ac_prog", so it can be a program name with args.
14985 set dummy $ac_prog; ac_word=$2
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14987 $as_echo_n "checking for $ac_word... " >&6; }
14988 if ${ac_cv_path_CPIO+:} false; then :
14989   $as_echo_n "(cached) " >&6
14990 else
14991   case $CPIO in
14992   [\\/]* | ?:[\\/]*)
14993   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14994   ;;
14995   *)
14996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997 for as_dir in $PATH
14998 do
14999   IFS=$as_save_IFS
15000   test -z "$as_dir" && as_dir=.
15001     for ac_exec_ext in '' $ac_executable_extensions; do
15002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15003     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15005     break 2
15006   fi
15007 done
15008   done
15009 IFS=$as_save_IFS
15010 
15011   ;;
15012 esac
15013 fi
15014 CPIO=$ac_cv_path_CPIO
15015 if test -n "$CPIO"; then
15016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15017 $as_echo "$CPIO" >&6; }
15018 else
15019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020 $as_echo "no" >&6; }
15021 fi
15022 
15023 
15024   test -n "$CPIO" && break
15025 done
15026 
15027   else
15028     # The variable is set, but is it from the command line or the environment?
15029 
15030     # Try to remove the string !CPIO! from our list.
15031     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15032     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15033       # If it failed, the variable was not from the command line. Ignore it,
15034       # but warn the user (except for BASH, which is always set by the calling BASH).
15035       if test "xCPIO" != xBASH; then
15036         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15037 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15038       fi
15039       # Try to locate tool using the code snippet
15040       for ac_prog in cpio bsdcpio
15041 do
15042   # Extract the first word of "$ac_prog", so it can be a program name with args.
15043 set dummy $ac_prog; ac_word=$2
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15045 $as_echo_n "checking for $ac_word... " >&6; }
15046 if ${ac_cv_path_CPIO+:} false; then :
15047   $as_echo_n "(cached) " >&6
15048 else
15049   case $CPIO in
15050   [\\/]* | ?:[\\/]*)
15051   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15052   ;;
15053   *)
15054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15055 for as_dir in $PATH
15056 do
15057   IFS=$as_save_IFS
15058   test -z "$as_dir" && as_dir=.
15059     for ac_exec_ext in '' $ac_executable_extensions; do
15060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15061     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15063     break 2
15064   fi
15065 done
15066   done
15067 IFS=$as_save_IFS
15068 
15069   ;;
15070 esac
15071 fi
15072 CPIO=$ac_cv_path_CPIO
15073 if test -n "$CPIO"; then
15074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15075 $as_echo "$CPIO" >&6; }
15076 else
15077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15079 fi
15080 
15081 
15082   test -n "$CPIO" && break
15083 done
15084 
15085     else
15086       # If it succeeded, then it was overridden by the user. We will use it
15087       # for the tool.
15088 
15089       # First remove it from the list of overridden variables, so we can test
15090       # for unknown variables in the end.
15091       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15092 
15093       # Check if we try to supply an empty value
15094       if test "x$CPIO" = x; then
15095         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15096 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15098 $as_echo_n "checking for CPIO... " >&6; }
15099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15100 $as_echo "disabled" >&6; }
15101       else
15102         # Check if the provided tool contains a complete path.
15103         tool_specified="$CPIO"
15104         tool_basename="${tool_specified##*/}"
15105         if test "x$tool_basename" = "x$tool_specified"; then
15106           # A command without a complete path is provided, search $PATH.
15107           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15108 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15109           # Extract the first word of "$tool_basename", so it can be a program name with args.
15110 set dummy $tool_basename; ac_word=$2
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15112 $as_echo_n "checking for $ac_word... " >&6; }
15113 if ${ac_cv_path_CPIO+:} false; then :
15114   $as_echo_n "(cached) " >&6
15115 else
15116   case $CPIO in
15117   [\\/]* | ?:[\\/]*)
15118   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15119   ;;
15120   *)
15121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15123 do
15124   IFS=$as_save_IFS
15125   test -z "$as_dir" && as_dir=.
15126     for ac_exec_ext in '' $ac_executable_extensions; do
15127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15128     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130     break 2
15131   fi
15132 done
15133   done
15134 IFS=$as_save_IFS
15135 
15136   ;;
15137 esac
15138 fi
15139 CPIO=$ac_cv_path_CPIO
15140 if test -n "$CPIO"; then
15141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15142 $as_echo "$CPIO" >&6; }
15143 else
15144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15145 $as_echo "no" >&6; }
15146 fi
15147 
15148 
15149           if test "x$CPIO" = x; then
15150             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15151           fi
15152         else
15153           # Otherwise we believe it is a complete path. Use it as it is.
15154           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15155 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15157 $as_echo_n "checking for CPIO... " >&6; }
15158           if test ! -x "$tool_specified"; then
15159             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15160 $as_echo "not found" >&6; }
15161             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15162           fi
15163           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15164 $as_echo "$tool_specified" >&6; }
15165         fi
15166       fi
15167     fi
15168 
15169   fi
15170 
15171 
15172 
15173 
15174   # Publish this variable in the help.
15175 
15176 
15177   if [ -z "${NICE+x}" ]; then
15178     # The variable is not set by user, try to locate tool using the code snippet
15179     for ac_prog in nice
15180 do
15181   # Extract the first word of "$ac_prog", so it can be a program name with args.
15182 set dummy $ac_prog; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184 $as_echo_n "checking for $ac_word... " >&6; }
15185 if ${ac_cv_path_NICE+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188   case $NICE in
15189   [\\/]* | ?:[\\/]*)
15190   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15191   ;;
15192   *)
15193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194 for as_dir in $PATH
15195 do
15196   IFS=$as_save_IFS
15197   test -z "$as_dir" && as_dir=.
15198     for ac_exec_ext in '' $ac_executable_extensions; do
15199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15202     break 2
15203   fi
15204 done
15205   done
15206 IFS=$as_save_IFS
15207 
15208   ;;
15209 esac
15210 fi
15211 NICE=$ac_cv_path_NICE
15212 if test -n "$NICE"; then
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15214 $as_echo "$NICE" >&6; }
15215 else
15216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15218 fi
15219 
15220 
15221   test -n "$NICE" && break
15222 done
15223 
15224   else
15225     # The variable is set, but is it from the command line or the environment?
15226 
15227     # Try to remove the string !NICE! from our list.
15228     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15229     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15230       # If it failed, the variable was not from the command line. Ignore it,
15231       # but warn the user (except for BASH, which is always set by the calling BASH).
15232       if test "xNICE" != xBASH; then
15233         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15234 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15235       fi
15236       # Try to locate tool using the code snippet
15237       for ac_prog in nice
15238 do
15239   # Extract the first word of "$ac_prog", so it can be a program name with args.
15240 set dummy $ac_prog; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15242 $as_echo_n "checking for $ac_word... " >&6; }
15243 if ${ac_cv_path_NICE+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   case $NICE in
15247   [\\/]* | ?:[\\/]*)
15248   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15249   ;;
15250   *)
15251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15253 do
15254   IFS=$as_save_IFS
15255   test -z "$as_dir" && as_dir=.
15256     for ac_exec_ext in '' $ac_executable_extensions; do
15257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15260     break 2
15261   fi
15262 done
15263   done
15264 IFS=$as_save_IFS
15265 
15266   ;;
15267 esac
15268 fi
15269 NICE=$ac_cv_path_NICE
15270 if test -n "$NICE"; then
15271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15272 $as_echo "$NICE" >&6; }
15273 else
15274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15276 fi
15277 
15278 
15279   test -n "$NICE" && break
15280 done
15281 
15282     else
15283       # If it succeeded, then it was overridden by the user. We will use it
15284       # for the tool.
15285 
15286       # First remove it from the list of overridden variables, so we can test
15287       # for unknown variables in the end.
15288       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15289 
15290       # Check if we try to supply an empty value
15291       if test "x$NICE" = x; then
15292         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15293 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15295 $as_echo_n "checking for NICE... " >&6; }
15296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15297 $as_echo "disabled" >&6; }
15298       else
15299         # Check if the provided tool contains a complete path.
15300         tool_specified="$NICE"
15301         tool_basename="${tool_specified##*/}"
15302         if test "x$tool_basename" = "x$tool_specified"; then
15303           # A command without a complete path is provided, search $PATH.
15304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15305 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15306           # Extract the first word of "$tool_basename", so it can be a program name with args.
15307 set dummy $tool_basename; ac_word=$2
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15309 $as_echo_n "checking for $ac_word... " >&6; }
15310 if ${ac_cv_path_NICE+:} false; then :
15311   $as_echo_n "(cached) " >&6
15312 else
15313   case $NICE in
15314   [\\/]* | ?:[\\/]*)
15315   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15316   ;;
15317   *)
15318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319 for as_dir in $PATH
15320 do
15321   IFS=$as_save_IFS
15322   test -z "$as_dir" && as_dir=.
15323     for ac_exec_ext in '' $ac_executable_extensions; do
15324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15327     break 2
15328   fi
15329 done
15330   done
15331 IFS=$as_save_IFS
15332 
15333   ;;
15334 esac
15335 fi
15336 NICE=$ac_cv_path_NICE
15337 if test -n "$NICE"; then
15338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15339 $as_echo "$NICE" >&6; }
15340 else
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15343 fi
15344 
15345 
15346           if test "x$NICE" = x; then
15347             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15348           fi
15349         else
15350           # Otherwise we believe it is a complete path. Use it as it is.
15351           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15352 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15354 $as_echo_n "checking for NICE... " >&6; }
15355           if test ! -x "$tool_specified"; then
15356             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15357 $as_echo "not found" >&6; }
15358             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15359           fi
15360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15361 $as_echo "$tool_specified" >&6; }
15362         fi
15363       fi
15364     fi
15365 
15366   fi
15367 
15368 
15369 
15370 
15371 # Now we can determine OpenJDK build and target platforms. This is required to
15372 # have early on.
15373 # Make sure we can run config.sub.
15374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15375   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15376 
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15378 $as_echo_n "checking build system type... " >&6; }
15379 if ${ac_cv_build+:} false; then :
15380   $as_echo_n "(cached) " >&6
15381 else
15382   ac_build_alias=$build_alias
15383 test "x$ac_build_alias" = x &&
15384   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15385 test "x$ac_build_alias" = x &&
15386   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15387 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15388   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15389 
15390 fi
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15392 $as_echo "$ac_cv_build" >&6; }
15393 case $ac_cv_build in
15394 *-*-*) ;;
15395 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15396 esac
15397 build=$ac_cv_build
15398 ac_save_IFS=$IFS; IFS='-'
15399 set x $ac_cv_build
15400 shift
15401 build_cpu=$1
15402 build_vendor=$2
15403 shift; shift
15404 # Remember, the first character of IFS is used to create $*,
15405 # except with old shells:
15406 build_os=$*
15407 IFS=$ac_save_IFS
15408 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15409 
15410 
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15412 $as_echo_n "checking host system type... " >&6; }
15413 if ${ac_cv_host+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   if test "x$host_alias" = x; then
15417   ac_cv_host=$ac_cv_build
15418 else
15419   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15420     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15421 fi
15422 
15423 fi
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15425 $as_echo "$ac_cv_host" >&6; }
15426 case $ac_cv_host in
15427 *-*-*) ;;
15428 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15429 esac
15430 host=$ac_cv_host
15431 ac_save_IFS=$IFS; IFS='-'
15432 set x $ac_cv_host
15433 shift
15434 host_cpu=$1
15435 host_vendor=$2
15436 shift; shift
15437 # Remember, the first character of IFS is used to create $*,
15438 # except with old shells:
15439 host_os=$*
15440 IFS=$ac_save_IFS
15441 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15442 
15443 
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15445 $as_echo_n "checking target system type... " >&6; }
15446 if ${ac_cv_target+:} false; then :
15447   $as_echo_n "(cached) " >&6
15448 else
15449   if test "x$target_alias" = x; then
15450   ac_cv_target=$ac_cv_host
15451 else
15452   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15453     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15454 fi
15455 
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15458 $as_echo "$ac_cv_target" >&6; }
15459 case $ac_cv_target in
15460 *-*-*) ;;
15461 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15462 esac
15463 target=$ac_cv_target
15464 ac_save_IFS=$IFS; IFS='-'
15465 set x $ac_cv_target
15466 shift
15467 target_cpu=$1
15468 target_vendor=$2
15469 shift; shift
15470 # Remember, the first character of IFS is used to create $*,
15471 # except with old shells:
15472 target_os=$*
15473 IFS=$ac_save_IFS
15474 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15475 
15476 
15477 # The aliases save the names the user supplied, while $host etc.
15478 # will get canonicalized.
15479 test -n "$target_alias" &&
15480   test "$program_prefix$program_suffix$program_transform_name" = \
15481     NONENONEs,x,x, &&
15482   program_prefix=${target_alias}-
15483 
15484   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15485   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15486   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15487   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15488   # to use the configure naming style.
15489 
15490 
15491 
15492 
15493 
15494   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15495   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15496   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15497   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15498   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15499   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15500 
15501 
15502 
15503   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15504 
15505   case "$build_os" in
15506     *linux*)
15507       VAR_OS=linux
15508       VAR_OS_TYPE=unix
15509       ;;
15510     *solaris*)
15511       VAR_OS=solaris
15512       VAR_OS_TYPE=unix
15513       ;;
15514     *darwin*)
15515       VAR_OS=macosx
15516       VAR_OS_TYPE=unix
15517       ;;
15518     *bsd*)
15519       VAR_OS=bsd
15520       VAR_OS_TYPE=unix
15521       ;;
15522     *cygwin*)
15523       VAR_OS=windows
15524       VAR_OS_ENV=windows.cygwin
15525       ;;
15526     *mingw*)
15527       VAR_OS=windows
15528       VAR_OS_ENV=windows.msys
15529       ;;
15530     *aix*)
15531       VAR_OS=aix
15532       VAR_OS_TYPE=unix
15533       ;;
15534     *)
15535       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15536       ;;
15537   esac
15538 
15539 
15540   # First argument is the cpu name from the trip/quad
15541   case "$build_cpu" in
15542     x86_64)
15543       VAR_CPU=x86_64
15544       VAR_CPU_ARCH=x86
15545       VAR_CPU_BITS=64
15546       VAR_CPU_ENDIAN=little
15547       ;;
15548     i?86)
15549       VAR_CPU=x86
15550       VAR_CPU_ARCH=x86
15551       VAR_CPU_BITS=32
15552       VAR_CPU_ENDIAN=little
15553       ;;
15554     arm*)
15555       VAR_CPU=arm
15556       VAR_CPU_ARCH=arm
15557       VAR_CPU_BITS=32
15558       VAR_CPU_ENDIAN=little
15559       ;;
15560     aarch64)
15561       VAR_CPU=aarch64
15562       VAR_CPU_ARCH=aarch64
15563       VAR_CPU_BITS=64
15564       VAR_CPU_ENDIAN=little
15565       ;;
15566     powerpc)
15567       VAR_CPU=ppc
15568       VAR_CPU_ARCH=ppc
15569       VAR_CPU_BITS=32
15570       VAR_CPU_ENDIAN=big
15571       ;;
15572     powerpc64)
15573       VAR_CPU=ppc64
15574       VAR_CPU_ARCH=ppc
15575       VAR_CPU_BITS=64
15576       VAR_CPU_ENDIAN=big
15577       ;;
15578     powerpc64le)
15579       VAR_CPU=ppc64le
15580       VAR_CPU_ARCH=ppc
15581       VAR_CPU_BITS=64
15582       VAR_CPU_ENDIAN=little
15583       ;;
15584     s390)
15585       VAR_CPU=s390
15586       VAR_CPU_ARCH=s390
15587       VAR_CPU_BITS=32
15588       VAR_CPU_ENDIAN=big
15589       ;;
15590     s390x)
15591       VAR_CPU=s390x
15592       VAR_CPU_ARCH=s390
15593       VAR_CPU_BITS=64
15594       VAR_CPU_ENDIAN=big
15595       ;;
15596     sparc)
15597       VAR_CPU=sparc
15598       VAR_CPU_ARCH=sparc
15599       VAR_CPU_BITS=32
15600       VAR_CPU_ENDIAN=big
15601       ;;
15602     sparcv9|sparc64)
15603       VAR_CPU=sparcv9
15604       VAR_CPU_ARCH=sparc
15605       VAR_CPU_BITS=64
15606       VAR_CPU_ENDIAN=big
15607       ;;
15608     *)
15609       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15610       ;;
15611   esac
15612 
15613   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15614   OPENJDK_BUILD_OS="$VAR_OS"
15615   if test "x$VAR_OS_TYPE" != x; then
15616     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15617   else
15618     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15619   fi
15620   if test "x$VAR_OS_ENV" != x; then
15621     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15622   else
15623     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15624   fi
15625   OPENJDK_BUILD_CPU="$VAR_CPU"
15626   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15627   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15628   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15629 
15630 
15631 
15632 
15633 
15634 
15635 
15636 
15637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15638 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15640 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15641 
15642   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15643 
15644   case "$host_os" in
15645     *linux*)
15646       VAR_OS=linux
15647       VAR_OS_TYPE=unix
15648       ;;
15649     *solaris*)
15650       VAR_OS=solaris
15651       VAR_OS_TYPE=unix
15652       ;;
15653     *darwin*)
15654       VAR_OS=macosx
15655       VAR_OS_TYPE=unix
15656       ;;
15657     *bsd*)
15658       VAR_OS=bsd
15659       VAR_OS_TYPE=unix
15660       ;;
15661     *cygwin*)
15662       VAR_OS=windows
15663       VAR_OS_ENV=windows.cygwin
15664       ;;
15665     *mingw*)
15666       VAR_OS=windows
15667       VAR_OS_ENV=windows.msys
15668       ;;
15669     *aix*)
15670       VAR_OS=aix
15671       VAR_OS_TYPE=unix
15672       ;;
15673     *)
15674       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15675       ;;
15676   esac
15677 
15678 
15679   # First argument is the cpu name from the trip/quad
15680   case "$host_cpu" in
15681     x86_64)
15682       VAR_CPU=x86_64
15683       VAR_CPU_ARCH=x86
15684       VAR_CPU_BITS=64
15685       VAR_CPU_ENDIAN=little
15686       ;;
15687     i?86)
15688       VAR_CPU=x86
15689       VAR_CPU_ARCH=x86
15690       VAR_CPU_BITS=32
15691       VAR_CPU_ENDIAN=little
15692       ;;
15693     arm*)
15694       VAR_CPU=arm
15695       VAR_CPU_ARCH=arm
15696       VAR_CPU_BITS=32
15697       VAR_CPU_ENDIAN=little
15698       ;;
15699     aarch64)
15700       VAR_CPU=aarch64
15701       VAR_CPU_ARCH=aarch64
15702       VAR_CPU_BITS=64
15703       VAR_CPU_ENDIAN=little
15704       ;;
15705     powerpc)
15706       VAR_CPU=ppc
15707       VAR_CPU_ARCH=ppc
15708       VAR_CPU_BITS=32
15709       VAR_CPU_ENDIAN=big
15710       ;;
15711     powerpc64)
15712       VAR_CPU=ppc64
15713       VAR_CPU_ARCH=ppc
15714       VAR_CPU_BITS=64
15715       VAR_CPU_ENDIAN=big
15716       ;;
15717     powerpc64le)
15718       VAR_CPU=ppc64le
15719       VAR_CPU_ARCH=ppc
15720       VAR_CPU_BITS=64
15721       VAR_CPU_ENDIAN=little
15722       ;;
15723     s390)
15724       VAR_CPU=s390
15725       VAR_CPU_ARCH=s390
15726       VAR_CPU_BITS=32
15727       VAR_CPU_ENDIAN=big
15728       ;;
15729     s390x)
15730       VAR_CPU=s390x
15731       VAR_CPU_ARCH=s390
15732       VAR_CPU_BITS=64
15733       VAR_CPU_ENDIAN=big
15734       ;;
15735     sparc)
15736       VAR_CPU=sparc
15737       VAR_CPU_ARCH=sparc
15738       VAR_CPU_BITS=32
15739       VAR_CPU_ENDIAN=big
15740       ;;
15741     sparcv9|sparc64)
15742       VAR_CPU=sparcv9
15743       VAR_CPU_ARCH=sparc
15744       VAR_CPU_BITS=64
15745       VAR_CPU_ENDIAN=big
15746       ;;
15747     *)
15748       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15749       ;;
15750   esac
15751 
15752   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15753   OPENJDK_TARGET_OS="$VAR_OS"
15754   if test "x$VAR_OS_TYPE" != x; then
15755     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15756   else
15757     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15758   fi
15759   if test "x$VAR_OS_ENV" != x; then
15760     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15761   else
15762     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15763   fi
15764   OPENJDK_TARGET_CPU="$VAR_CPU"
15765   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15766   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15767   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15768 
15769 
15770 
15771 
15772 
15773 
15774 
15775 
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15777 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15779 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15780 
15781 
15782 
15783 # Check whether --with-target-bits was given.
15784 if test "${with_target_bits+set}" = set; then :
15785   withval=$with_target_bits;
15786 fi
15787 
15788 
15789   # We have three types of compiles:
15790   # native  == normal compilation, target system == build system
15791   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15792   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15793   #
15794   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15795     # We're doing a proper cross-compilation
15796     COMPILE_TYPE="cross"
15797   else
15798     COMPILE_TYPE="native"
15799   fi
15800 
15801   if test "x$with_target_bits" != x; then
15802     if test "x$COMPILE_TYPE" = "xcross"; then
15803       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15804     fi
15805 
15806     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15807       # A reduced build is requested
15808       COMPILE_TYPE="reduced"
15809       OPENJDK_TARGET_CPU_BITS=32
15810       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15811         OPENJDK_TARGET_CPU=x86
15812       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15813         OPENJDK_TARGET_CPU=sparc
15814       else
15815         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15816       fi
15817     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15818       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
15819     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15820       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15821 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15822     else
15823       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15824     fi
15825   fi
15826 
15827 
15828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15829 $as_echo_n "checking compilation type... " >&6; }
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15831 $as_echo "$COMPILE_TYPE" >&6; }
15832 
15833 
15834   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15835     REQUIRED_OS_NAME=SunOS
15836     REQUIRED_OS_VERSION=5.10
15837   fi
15838   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15839     REQUIRED_OS_NAME=Linux
15840     REQUIRED_OS_VERSION=2.6
15841   fi
15842   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15843     REQUIRED_OS_NAME=Windows
15844     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15845       REQUIRED_OS_VERSION=5.2
15846     else
15847       REQUIRED_OS_VERSION=5.1
15848     fi
15849   fi
15850   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15851     REQUIRED_OS_NAME=Darwin
15852     REQUIRED_OS_VERSION=11.2
15853   fi
15854   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15855     REQUIRED_OS_NAME=AIX
15856     REQUIRED_OS_VERSION=7.1
15857   fi
15858 
15859 
15860 
15861 
15862 
15863 
15864   # Also store the legacy naming of the cpu.
15865   # Ie i586 and amd64 instead of x86 and x86_64
15866   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15867   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15868     OPENJDK_TARGET_CPU_LEGACY="i586"
15869   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15870     # On all platforms except MacOSX replace x86_64 with amd64.
15871     OPENJDK_TARGET_CPU_LEGACY="amd64"
15872   fi
15873 
15874 
15875   # And the second legacy naming of the cpu.
15876   # Ie i386 and amd64 instead of x86 and x86_64.
15877   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15878   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15879     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15880   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15881     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15882   fi
15883 
15884 
15885   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15886   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15887   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15888   OPENJDK_TARGET_CPU_ISADIR=""
15889   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15890     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15891       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15892     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15893       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15894     fi
15895   fi
15896 
15897 
15898   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15899   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15900   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15901     # On linux only, we replace x86 with i386.
15902     OPENJDK_TARGET_CPU_OSARCH="i386"
15903   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15904     # On all platforms except macosx, we replace x86_64 with amd64.
15905     OPENJDK_TARGET_CPU_OSARCH="amd64"
15906   fi
15907 
15908 
15909   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15910   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15911     OPENJDK_TARGET_CPU_JLI="i386"
15912   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15913     # On all platforms except macosx, we replace x86_64 with amd64.
15914     OPENJDK_TARGET_CPU_JLI="amd64"
15915   fi
15916 
15917   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15918       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15919   else
15920       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15921   fi
15922 
15923 
15924   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15925   # Macosx is osx and x86_64 is x64
15926   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15927     OPENJDK_TARGET_OS_BUNDLE="osx"
15928   else
15929     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15930   fi
15931   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15932     OPENJDK_TARGET_CPU_BUNDLE="x64"
15933   else
15934     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15935   fi
15936   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15937 
15938 
15939 
15940 
15941   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15942     A_LP64="LP64:="
15943     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15944     # unpack200.exe
15945     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15946       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15947     fi
15948   fi
15949   LP64=$A_LP64
15950 
15951 
15952   if test "x$COMPILE_TYPE" = "xcross"; then
15953     # FIXME: ... or should this include reduced builds..?
15954     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15955   else
15956     DEFINE_CROSS_COMPILE_ARCH=""
15957   fi
15958 
15959 
15960   # Convert openjdk platform names to hotspot names
15961 
15962   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15963   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15964     HOTSPOT_TARGET_OS=bsd
15965   fi
15966 
15967 
15968   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15969   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15970     HOTSPOT_TARGET_OS_TYPE=posix
15971   fi
15972 
15973 
15974   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15975   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15976     HOTSPOT_TARGET_CPU=x86_32
15977   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15978     HOTSPOT_TARGET_CPU=sparc
15979   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15980     HOTSPOT_TARGET_CPU=ppc_64
15981   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15982     HOTSPOT_TARGET_CPU=ppc_64
15983   fi
15984 
15985 
15986   # This is identical with OPENJDK_*, but define anyway for consistency.
15987   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15988 
15989 
15990   # Setup HOTSPOT_TARGET_CPU_DEFINE
15991   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15992     HOTSPOT_TARGET_CPU_DEFINE=IA32
15993   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15994     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15995   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15996     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15997   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15998     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15999   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16000     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16001   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16002     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16003 
16004   # The cpu defines below are for zero, we don't support them directly.
16005   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16006     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16007   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16008     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16009   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16010     HOTSPOT_TARGET_CPU_DEFINE=S390
16011   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16012     HOTSPOT_TARGET_CPU_DEFINE=S390
16013   elif test "x$OPENJDK_TARGET_CPU" != x; then
16014     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16015   fi
16016 
16017 
16018 
16019 
16020   # Also store the legacy naming of the cpu.
16021   # Ie i586 and amd64 instead of x86 and x86_64
16022   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16023   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16024     OPENJDK_BUILD_CPU_LEGACY="i586"
16025   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16026     # On all platforms except MacOSX replace x86_64 with amd64.
16027     OPENJDK_BUILD_CPU_LEGACY="amd64"
16028   fi
16029 
16030 
16031   # And the second legacy naming of the cpu.
16032   # Ie i386 and amd64 instead of x86 and x86_64.
16033   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16034   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16035     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16036   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16037     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16038   fi
16039 
16040 
16041   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16042   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16043   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16044   OPENJDK_BUILD_CPU_ISADIR=""
16045   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16046     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16047       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16048     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16049       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16050     fi
16051   fi
16052 
16053 
16054   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16055   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16056   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16057     # On linux only, we replace x86 with i386.
16058     OPENJDK_BUILD_CPU_OSARCH="i386"
16059   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16060     # On all platforms except macosx, we replace x86_64 with amd64.
16061     OPENJDK_BUILD_CPU_OSARCH="amd64"
16062   fi
16063 
16064 
16065   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16066   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16067     OPENJDK_BUILD_CPU_JLI="i386"
16068   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16069     # On all platforms except macosx, we replace x86_64 with amd64.
16070     OPENJDK_BUILD_CPU_JLI="amd64"
16071   fi
16072 
16073   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16074       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16075   else
16076       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16077   fi
16078 
16079 
16080   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16081   # Macosx is osx and x86_64 is x64
16082   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16083     OPENJDK_BUILD_OS_BUNDLE="osx"
16084   else
16085     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16086   fi
16087   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16088     OPENJDK_BUILD_CPU_BUNDLE="x64"
16089   else
16090     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16091   fi
16092   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16093 
16094 
16095 
16096 
16097   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16098     A_LP64="LP64:="
16099     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16100     # unpack200.exe
16101     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16102       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16103     fi
16104   fi
16105   LP64=$A_LP64
16106 
16107 
16108   if test "x$COMPILE_TYPE" = "xcross"; then
16109     # FIXME: ... or should this include reduced builds..?
16110     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16111   else
16112     DEFINE_CROSS_COMPILE_ARCH=""
16113   fi
16114 
16115 
16116   # Convert openjdk platform names to hotspot names
16117 
16118   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16119   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16120     HOTSPOT_BUILD_OS=bsd
16121   fi
16122 
16123 
16124   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16125   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16126     HOTSPOT_BUILD_OS_TYPE=posix
16127   fi
16128 
16129 
16130   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16131   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16132     HOTSPOT_BUILD_CPU=x86_32
16133   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16134     HOTSPOT_BUILD_CPU=sparc
16135   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16136     HOTSPOT_BUILD_CPU=ppc_64
16137   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16138     HOTSPOT_BUILD_CPU=ppc_64
16139   fi
16140 
16141 
16142   # This is identical with OPENJDK_*, but define anyway for consistency.
16143   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16144 
16145 
16146   # Setup HOTSPOT_BUILD_CPU_DEFINE
16147   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16148     HOTSPOT_BUILD_CPU_DEFINE=IA32
16149   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16150     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16151   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16152     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16153   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16154     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16155   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16156     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16157   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16158     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16159 
16160   # The cpu defines below are for zero, we don't support them directly.
16161   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16162     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16163   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16164     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16165   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16166     HOTSPOT_BUILD_CPU_DEFINE=S390
16167   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16168     HOTSPOT_BUILD_CPU_DEFINE=S390
16169   elif test "x$OPENJDK_BUILD_CPU" != x; then
16170     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16171   fi
16172 
16173 
16174 
16175 
16176   # ZERO_ARCHDEF is used to enable architecture-specific code.
16177   # This is used in legacy hotspot build.
16178   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16179 
16180 
16181 
16182 
16183 
16184 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16185 
16186   # Save the current directory this script was started from
16187   CURDIR="$PWD"
16188 
16189   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16190   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16191   # was not available at that time.
16192   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16193   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16194     ORIGINAL_PATH="$REWRITTEN_PATH"
16195     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16196 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16197   fi
16198 
16199   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16200     PATH_SEP=";"
16201 
16202   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16203   if test $SRC_ROOT_LENGTH -gt 100; then
16204     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16205   fi
16206 
16207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16209 $as_echo_n "checking cygwin release... " >&6; }
16210     CYGWIN_VERSION=`$UNAME -r`
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16212 $as_echo "$CYGWIN_VERSION" >&6; }
16213     WINDOWS_ENV_VENDOR='cygwin'
16214     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16215 
16216     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16217     if test "x$CYGWIN_VERSION_OLD" != x; then
16218       { $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
16219 $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;}
16220       as_fn_error $? "Cannot continue" "$LINENO" 5
16221     fi
16222     if test "x$CYGPATH" = x; then
16223       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16224     fi
16225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16226 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16227     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16228     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16229     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16230     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16232 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16233     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16234     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16235     if test "x$test_cygdrive_prefix" = x; then
16236       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16237     fi
16238   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16240 $as_echo_n "checking msys release... " >&6; }
16241     MSYS_VERSION=`$UNAME -r`
16242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16243 $as_echo "$MSYS_VERSION" >&6; }
16244 
16245     WINDOWS_ENV_VENDOR='msys'
16246     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16247 
16248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16249 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16250     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16251     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16252 
16253   windows_path="$MSYS_ROOT_PATH"
16254   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16255     unix_path=`$CYGPATH -u "$windows_path"`
16256     MSYS_ROOT_PATH="$unix_path"
16257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16258     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16259     MSYS_ROOT_PATH="$unix_path"
16260   fi
16261 
16262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16263 $as_echo "$MSYS_ROOT_PATH" >&6; }
16264     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16265   else
16266     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16267   fi
16268 
16269   # Test if windows or unix (cygwin/msys) find is first in path.
16270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16271 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16272   FIND_BINARY_OUTPUT=`find --version 2>&1`
16273   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16275 $as_echo "unix style" >&6; }
16276   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16278 $as_echo "Windows" >&6; }
16279     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16280 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16281     { $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
16282 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16283     as_fn_error $? "Cannot continue" "$LINENO" 5
16284   else
16285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16286 $as_echo "unknown" >&6; }
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16288 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16289   fi
16290 
16291   else
16292     PATH_SEP=":"
16293   fi
16294 
16295 
16296   # We get the top-level directory from the supporting wrappers.
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16298 $as_echo_n "checking for top-level directory... " >&6; }
16299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16300 $as_echo "$TOPDIR" >&6; }
16301 
16302 
16303   # Save the original version of TOPDIR for string comparisons
16304   ORIGINAL_TOPDIR="$TOPDIR"
16305 
16306 
16307   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16308 
16309   # Only process if variable expands to non-empty
16310 
16311   if test "x$CURDIR" != x; then
16312     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16313 
16314   # Input might be given as Windows format, start by converting to
16315   # unix format.
16316   path="$CURDIR"
16317   new_path=`$CYGPATH -u "$path"`
16318 
16319   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16320   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16321   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16322   # "foo.exe" is OK but "foo" is an error.
16323   #
16324   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16325   # It is also a way to make sure we got the proper file name for the real test later on.
16326   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16327   if test "x$test_shortpath" = x; then
16328     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16329 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16330     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16331   fi
16332 
16333   # Call helper function which possibly converts this using DOS-style short mode.
16334   # If so, the updated path is stored in $new_path.
16335 
16336   input_path="$new_path"
16337   # Check if we need to convert this using DOS-style short mode. If the path
16338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16339   # take no chances and rewrite it.
16340   # Note: m4 eats our [], so we need to use [ and ] instead.
16341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16342   if test "x$has_forbidden_chars" != x; then
16343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16344     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16345     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16346     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16347       # Going to short mode and back again did indeed matter. Since short mode is
16348       # case insensitive, let's make it lowercase to improve readability.
16349       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16350       # Now convert it back to Unix-style (cygpath)
16351       input_path=`$CYGPATH -u "$shortmode_path"`
16352       new_path="$input_path"
16353     fi
16354   fi
16355 
16356   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16357   if test "x$test_cygdrive_prefix" = x; then
16358     # As a simple fix, exclude /usr/bin since it's not a real path.
16359     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16360       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16361       # a path prefixed by /cygdrive for fixpath to work.
16362       new_path="$CYGWIN_ROOT_PATH$input_path"
16363     fi
16364   fi
16365 
16366 
16367   if test "x$path" != "x$new_path"; then
16368     CURDIR="$new_path"
16369     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16370 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16371   fi
16372 
16373     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16374 
16375   path="$CURDIR"
16376   has_colon=`$ECHO $path | $GREP ^.:`
16377   new_path="$path"
16378   if test "x$has_colon" = x; then
16379     # Not in mixed or Windows style, start by that.
16380     new_path=`cmd //c echo $path`
16381   fi
16382 
16383 
16384   input_path="$new_path"
16385   # Check if we need to convert this using DOS-style short mode. If the path
16386   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16387   # take no chances and rewrite it.
16388   # Note: m4 eats our [], so we need to use [ and ] instead.
16389   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16390   if test "x$has_forbidden_chars" != x; then
16391     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16392     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16393   fi
16394 
16395 
16396   windows_path="$new_path"
16397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16398     unix_path=`$CYGPATH -u "$windows_path"`
16399     new_path="$unix_path"
16400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16401     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16402     new_path="$unix_path"
16403   fi
16404 
16405   if test "x$path" != "x$new_path"; then
16406     CURDIR="$new_path"
16407     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16408 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16409   fi
16410 
16411   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16412   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16413 
16414     else
16415       # We're on a unix platform. Hooray! :)
16416       path="$CURDIR"
16417       has_space=`$ECHO "$path" | $GREP " "`
16418       if test "x$has_space" != x; then
16419         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16420 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16421         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16422       fi
16423 
16424       # Use eval to expand a potential ~
16425       eval path="$path"
16426       if test ! -f "$path" && test ! -d "$path"; then
16427         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16428       fi
16429 
16430       if test -d "$path"; then
16431         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16432       else
16433         dir="`$DIRNAME "$path"`"
16434         base="`$BASENAME "$path"`"
16435         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16436       fi
16437     fi
16438   fi
16439 
16440 
16441   # Only process if variable expands to non-empty
16442 
16443   if test "x$TOPDIR" != x; then
16444     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16445 
16446   # Input might be given as Windows format, start by converting to
16447   # unix format.
16448   path="$TOPDIR"
16449   new_path=`$CYGPATH -u "$path"`
16450 
16451   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16452   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16453   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16454   # "foo.exe" is OK but "foo" is an error.
16455   #
16456   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16457   # It is also a way to make sure we got the proper file name for the real test later on.
16458   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16459   if test "x$test_shortpath" = x; then
16460     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16461 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16462     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16463   fi
16464 
16465   # Call helper function which possibly converts this using DOS-style short mode.
16466   # If so, the updated path is stored in $new_path.
16467 
16468   input_path="$new_path"
16469   # Check if we need to convert this using DOS-style short mode. If the path
16470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16471   # take no chances and rewrite it.
16472   # Note: m4 eats our [], so we need to use [ and ] instead.
16473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16474   if test "x$has_forbidden_chars" != x; then
16475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16476     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16477     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16478     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16479       # Going to short mode and back again did indeed matter. Since short mode is
16480       # case insensitive, let's make it lowercase to improve readability.
16481       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16482       # Now convert it back to Unix-style (cygpath)
16483       input_path=`$CYGPATH -u "$shortmode_path"`
16484       new_path="$input_path"
16485     fi
16486   fi
16487 
16488   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16489   if test "x$test_cygdrive_prefix" = x; then
16490     # As a simple fix, exclude /usr/bin since it's not a real path.
16491     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16492       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16493       # a path prefixed by /cygdrive for fixpath to work.
16494       new_path="$CYGWIN_ROOT_PATH$input_path"
16495     fi
16496   fi
16497 
16498 
16499   if test "x$path" != "x$new_path"; then
16500     TOPDIR="$new_path"
16501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16502 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16503   fi
16504 
16505     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16506 
16507   path="$TOPDIR"
16508   has_colon=`$ECHO $path | $GREP ^.:`
16509   new_path="$path"
16510   if test "x$has_colon" = x; then
16511     # Not in mixed or Windows style, start by that.
16512     new_path=`cmd //c echo $path`
16513   fi
16514 
16515 
16516   input_path="$new_path"
16517   # Check if we need to convert this using DOS-style short mode. If the path
16518   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16519   # take no chances and rewrite it.
16520   # Note: m4 eats our [], so we need to use [ and ] instead.
16521   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16522   if test "x$has_forbidden_chars" != x; then
16523     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16524     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16525   fi
16526 
16527 
16528   windows_path="$new_path"
16529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16530     unix_path=`$CYGPATH -u "$windows_path"`
16531     new_path="$unix_path"
16532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16534     new_path="$unix_path"
16535   fi
16536 
16537   if test "x$path" != "x$new_path"; then
16538     TOPDIR="$new_path"
16539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16540 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16541   fi
16542 
16543   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16544   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16545 
16546     else
16547       # We're on a unix platform. Hooray! :)
16548       path="$TOPDIR"
16549       has_space=`$ECHO "$path" | $GREP " "`
16550       if test "x$has_space" != x; then
16551         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16552 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16553         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16554       fi
16555 
16556       # Use eval to expand a potential ~
16557       eval path="$path"
16558       if test ! -f "$path" && test ! -d "$path"; then
16559         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16560       fi
16561 
16562       if test -d "$path"; then
16563         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16564       else
16565         dir="`$DIRNAME "$path"`"
16566         base="`$BASENAME "$path"`"
16567         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16568       fi
16569     fi
16570   fi
16571 
16572   # SRC_ROOT is a traditional alias for TOPDIR.
16573   SRC_ROOT=$TOPDIR
16574 
16575   # Calculate a canonical version of TOPDIR for string comparisons
16576   CANONICAL_TOPDIR=$TOPDIR
16577 
16578   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16579     # Follow a chain of symbolic links. Use readlink
16580     # where it exists, else fall back to horribly
16581     # complicated shell code.
16582     if test "x$READLINK_TESTED" != yes; then
16583       # On MacOSX there is a readlink tool with a different
16584       # purpose than the GNU readlink tool. Check the found readlink.
16585       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16586       if test "x$ISGNU" = x; then
16587         # A readlink that we do not know how to use.
16588         # Are there other non-GNU readlinks out there?
16589         READLINK_TESTED=yes
16590         READLINK=
16591       fi
16592     fi
16593 
16594     if test "x$READLINK" != x; then
16595       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16596     else
16597       # Save the current directory for restoring afterwards
16598       STARTDIR=$PWD
16599       COUNTER=0
16600       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16601       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16602       cd $sym_link_dir
16603       # Use -P flag to resolve symlinks in directories.
16604       cd `$THEPWDCMD -P`
16605       sym_link_dir=`$THEPWDCMD -P`
16606       # Resolve file symlinks
16607       while test $COUNTER -lt 20; do
16608         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16609         if test "x$ISLINK" == x; then
16610           # This is not a symbolic link! We are done!
16611           break
16612         fi
16613         # Again resolve directory symlinks since the target of the just found
16614         # link could be in a different directory
16615         cd `$DIRNAME $ISLINK`
16616         sym_link_dir=`$THEPWDCMD -P`
16617         sym_link_file=`$BASENAME $ISLINK`
16618         let COUNTER=COUNTER+1
16619       done
16620       cd $STARTDIR
16621       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16622     fi
16623   fi
16624 
16625 
16626 
16627   # Locate the directory of this script.
16628   AUTOCONF_DIR=$TOPDIR/common/autoconf
16629 
16630   # Setup username (for use in adhoc version strings etc)
16631   # Outer [ ] to quote m4.
16632    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16633 
16634 
16635 
16636 # Check if it's a pure open build or if custom sources are to be used.
16637 
16638   # Check whether --enable-openjdk-only was given.
16639 if test "${enable_openjdk_only+set}" = set; then :
16640   enableval=$enable_openjdk_only;
16641 else
16642   enable_openjdk_only="no"
16643 fi
16644 
16645 
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16647 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16649 $as_echo "$enable_openjdk_only" >&6; }
16650   if test "x$enable_openjdk_only" = "xyes"; then
16651     SUPPRESS_CUSTOM_EXTENSIONS="true"
16652   elif test "x$enable_openjdk_only" = "xno"; then
16653     SUPPRESS_CUSTOM_EXTENSIONS="false"
16654   else
16655     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16656   fi
16657 
16658   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16659   # the IncludeCustomExtension macro.
16660 
16661 
16662 # Check whether --with-custom-make-dir was given.
16663 if test "${with_custom_make_dir+set}" = set; then :
16664   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
16665 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16666 fi
16667 
16668 
16669 
16670 
16671 # These are needed to be able to create a configuration name (and thus the output directory)
16672 
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16674 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16675 
16676 # Check whether --with-jdk-variant was given.
16677 if test "${with_jdk_variant+set}" = set; then :
16678   withval=$with_jdk_variant;
16679 fi
16680 
16681 
16682   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16683     JDK_VARIANT="normal"
16684   else
16685     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16686   fi
16687 
16688 
16689 
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16691 $as_echo "$JDK_VARIANT" >&6; }
16692 
16693 
16694   DEBUG_LEVEL="release"
16695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16696 $as_echo_n "checking which debug level to use... " >&6; }
16697   # Check whether --enable-debug was given.
16698 if test "${enable_debug+set}" = set; then :
16699   enableval=$enable_debug;
16700         ENABLE_DEBUG="${enableval}"
16701         DEBUG_LEVEL="fastdebug"
16702 
16703 else
16704   ENABLE_DEBUG="no"
16705 fi
16706 
16707 
16708 
16709 # Check whether --with-debug-level was given.
16710 if test "${with_debug_level+set}" = set; then :
16711   withval=$with_debug_level;
16712         DEBUG_LEVEL="${withval}"
16713         if test "x$ENABLE_DEBUG" = xyes; then
16714           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16715         fi
16716 
16717 fi
16718 
16719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16720 $as_echo "$DEBUG_LEVEL" >&6; }
16721 
16722   if test "x$DEBUG_LEVEL" != xrelease && \
16723       test "x$DEBUG_LEVEL" != xoptimized && \
16724       test "x$DEBUG_LEVEL" != xfastdebug && \
16725       test "x$DEBUG_LEVEL" != xslowdebug; then
16726     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16727   fi
16728 
16729   # Translate DEBUG_LEVEL to debug level used by Hotspot
16730   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16731   if test "x$DEBUG_LEVEL" = xrelease; then
16732     HOTSPOT_DEBUG_LEVEL="product"
16733   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16734     HOTSPOT_DEBUG_LEVEL="debug"
16735   fi
16736 
16737   if test "x$DEBUG_LEVEL" = xoptimized; then
16738     # The debug level 'optimized' is a little special because it is currently only
16739     # applicable to the HotSpot build where it means to build a completely
16740     # optimized version of the VM without any debugging code (like for the
16741     # 'release' debug level which is called 'product' in the HotSpot build) but
16742     # with the exception that it can contain additional code which is otherwise
16743     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16744     # test new and/or experimental features which are not intended for customer
16745     # shipment. Because these new features need to be tested and benchmarked in
16746     # real world scenarios, we want to build the containing JDK at the 'release'
16747     # debug level.
16748     DEBUG_LEVEL="release"
16749   fi
16750 
16751 
16752 
16753 
16754 
16755 
16756 # Check whether --with-jvm-variants was given.
16757 if test "${with_jvm_variants+set}" = set; then :
16758   withval=$with_jvm_variants;
16759 fi
16760 
16761 
16762 
16763 
16764 # Check whether --with-cpu-port was given.
16765 if test "${with_cpu_port+set}" = set; then :
16766   withval=$with_cpu_port;
16767 fi
16768 
16769 
16770   if test "x$with_cpu_port" != x; then
16771     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16772       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16773     fi
16774     if test "x$with_cpu_port" != xarm64 && \
16775         test "x$with_cpu_port" != xaarch64; then
16776       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16777     fi
16778     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16779   fi
16780 
16781 
16782   if test "x$with_jvm_variants" = x; then
16783     with_jvm_variants="server"
16784   fi
16785   JVM_VARIANTS_OPT="$with_jvm_variants"
16786 
16787   # Has the user listed more than one variant?
16788   # Additional [] needed to keep m4 from mangling shell constructs.
16789   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16790     BUILDING_MULTIPLE_JVM_VARIANTS=true
16791   else
16792     BUILDING_MULTIPLE_JVM_VARIANTS=false
16793   fi
16794   # Replace the commas with AND for use in the build directory name.
16795   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16796 
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16798 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16799   # JVM_VARIANTS is a space-separated list.
16800   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16801   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16803 $as_echo "$JVM_VARIANTS" >&6; }
16804 
16805   # Check that the selected variants are valid
16806 
16807   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16808   # Notice that the original variant failes on SLES 10 and 11
16809   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16810   STACK=${JVM_VARIANTS// /$'\n'}
16811   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16812   if test "x$INVALID_VARIANTS" != x; then
16813     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16814 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16815     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16816   fi
16817 
16818   # All "special" variants share the same output directory ("server")
16819   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16820   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16821   STACK=${JVM_VARIANTS// /$'\n'}
16822   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16823   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16824     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16825   fi
16826 
16827   # The "main" variant is the one used by other libs to link against during the
16828   # build.
16829   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
16830     MAIN_VARIANT_PRIO_ORDER="server client minimal"
16831     for variant in $MAIN_VARIANT_PRIO_ORDER; do
16832       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
16833         JVM_VARIANT_MAIN="$variant"
16834         break
16835       fi
16836     done
16837   else
16838     JVM_VARIANT_MAIN="$JVM_VARIANTS"
16839   fi
16840 
16841 
16842 
16843 
16844 
16845   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16846     # zero behaves as a platform and rewrites these values. This is really weird. :(
16847     # We are guaranteed that we do not build any other variants when building zero.
16848     HOTSPOT_TARGET_CPU=zero
16849     HOTSPOT_TARGET_CPU_ARCH=zero
16850   fi
16851 
16852 
16853 # With basic setup done, call the custom early hook.
16854 
16855 
16856 # Check if we have devkits, extra paths or sysroot set.
16857 
16858 
16859 # Check whether --with-devkit was given.
16860 if test "${with_devkit+set}" = set; then :
16861   withval=$with_devkit;
16862 
16863   # Only process if variable expands to non-empty
16864 
16865   if test "x$with_devkit" != x; then
16866     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16867 
16868   # Input might be given as Windows format, start by converting to
16869   # unix format.
16870   path="$with_devkit"
16871   new_path=`$CYGPATH -u "$path"`
16872 
16873   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16874   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16875   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16876   # "foo.exe" is OK but "foo" is an error.
16877   #
16878   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16879   # It is also a way to make sure we got the proper file name for the real test later on.
16880   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16881   if test "x$test_shortpath" = x; then
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16883 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16884     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16885   fi
16886 
16887   # Call helper function which possibly converts this using DOS-style short mode.
16888   # If so, the updated path is stored in $new_path.
16889 
16890   input_path="$new_path"
16891   # Check if we need to convert this using DOS-style short mode. If the path
16892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16893   # take no chances and rewrite it.
16894   # Note: m4 eats our [], so we need to use [ and ] instead.
16895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16896   if test "x$has_forbidden_chars" != x; then
16897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16898     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16899     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16900     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16901       # Going to short mode and back again did indeed matter. Since short mode is
16902       # case insensitive, let's make it lowercase to improve readability.
16903       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16904       # Now convert it back to Unix-style (cygpath)
16905       input_path=`$CYGPATH -u "$shortmode_path"`
16906       new_path="$input_path"
16907     fi
16908   fi
16909 
16910   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16911   if test "x$test_cygdrive_prefix" = x; then
16912     # As a simple fix, exclude /usr/bin since it's not a real path.
16913     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16914       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16915       # a path prefixed by /cygdrive for fixpath to work.
16916       new_path="$CYGWIN_ROOT_PATH$input_path"
16917     fi
16918   fi
16919 
16920 
16921   if test "x$path" != "x$new_path"; then
16922     with_devkit="$new_path"
16923     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16924 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16925   fi
16926 
16927     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16928 
16929   path="$with_devkit"
16930   has_colon=`$ECHO $path | $GREP ^.:`
16931   new_path="$path"
16932   if test "x$has_colon" = x; then
16933     # Not in mixed or Windows style, start by that.
16934     new_path=`cmd //c echo $path`
16935   fi
16936 
16937 
16938   input_path="$new_path"
16939   # Check if we need to convert this using DOS-style short mode. If the path
16940   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16941   # take no chances and rewrite it.
16942   # Note: m4 eats our [], so we need to use [ and ] instead.
16943   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16944   if test "x$has_forbidden_chars" != x; then
16945     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16946     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16947   fi
16948 
16949 
16950   windows_path="$new_path"
16951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16952     unix_path=`$CYGPATH -u "$windows_path"`
16953     new_path="$unix_path"
16954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16955     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16956     new_path="$unix_path"
16957   fi
16958 
16959   if test "x$path" != "x$new_path"; then
16960     with_devkit="$new_path"
16961     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16962 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16963   fi
16964 
16965   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16966   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16967 
16968     else
16969       # We're on a unix platform. Hooray! :)
16970       path="$with_devkit"
16971       has_space=`$ECHO "$path" | $GREP " "`
16972       if test "x$has_space" != x; then
16973         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16974 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16975         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16976       fi
16977 
16978       # Use eval to expand a potential ~
16979       eval path="$path"
16980       if test ! -f "$path" && test ! -d "$path"; then
16981         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16982       fi
16983 
16984       if test -d "$path"; then
16985         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16986       else
16987         dir="`$DIRNAME "$path"`"
16988         base="`$BASENAME "$path"`"
16989         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16990       fi
16991     fi
16992   fi
16993 
16994         DEVKIT_ROOT="$with_devkit"
16995         # Check for a meta data info file in the root of the devkit
16996         if test -f "$DEVKIT_ROOT/devkit.info"; then
16997           . $DEVKIT_ROOT/devkit.info
16998           # This potentially sets the following:
16999           # A descriptive name of the devkit
17000 
17001   if test "x$DEVKIT_NAME" = x; then
17002     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17003   fi
17004 
17005           # Corresponds to --with-extra-path
17006 
17007   if test "x$DEVKIT_EXTRA_PATH" = x; then
17008     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17009   fi
17010 
17011           # Corresponds to --with-toolchain-path
17012 
17013   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17014     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17015   fi
17016 
17017           # Corresponds to --with-sysroot
17018 
17019   if test "x$DEVKIT_SYSROOT" = x; then
17020     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17021   fi
17022 
17023 
17024           # Identifies the Visual Studio version in the devkit
17025 
17026   if test "x$DEVKIT_VS_VERSION" = x; then
17027     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17028   fi
17029 
17030           # The Visual Studio include environment variable
17031 
17032   if test "x$DEVKIT_VS_INCLUDE" = x; then
17033     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17034   fi
17035 
17036           # The Visual Studio lib environment variable
17037 
17038   if test "x$DEVKIT_VS_LIB" = x; then
17039     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17040   fi
17041 
17042           # Corresponds to --with-msvcr-dll
17043 
17044   if test "x$DEVKIT_MSVCR_DLL" = x; then
17045     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17046   fi
17047 
17048           # Corresponds to --with-msvcp-dll
17049 
17050   if test "x$DEVKIT_MSVCP_DLL" = x; then
17051     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17052   fi
17053 
17054         fi
17055 
17056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17057 $as_echo_n "checking for devkit... " >&6; }
17058         if test "x$DEVKIT_NAME" != x; then
17059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17060 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17061         else
17062           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17063 $as_echo "$DEVKIT_ROOT" >&6; }
17064         fi
17065 
17066 
17067   if test "x$DEVKIT_EXTRA_PATH" != x; then
17068     if test "x$EXTRA_PATH" = x; then
17069       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17070     else
17071       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17072     fi
17073   fi
17074 
17075 
17076         # Fallback default of just /bin if DEVKIT_PATH is not defined
17077         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17078           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17079         fi
17080 
17081   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17082     if test "x$TOOLCHAIN_PATH" = x; then
17083       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17084     else
17085       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17086     fi
17087   fi
17088 
17089 
17090         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17091         # places for backwards compatiblity.
17092         if test "x$DEVKIT_SYSROOT" != x; then
17093           SYSROOT="$DEVKIT_SYSROOT"
17094         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17095           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17096         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17097           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17098         fi
17099 
17100 
17101 fi
17102 
17103 
17104   # You can force the sysroot if the sysroot encoded into the compiler tools
17105   # is not correct.
17106 
17107 # Check whether --with-sys-root was given.
17108 if test "${with_sys_root+set}" = set; then :
17109   withval=$with_sys_root; SYSROOT=$with_sys_root
17110 
17111 fi
17112 
17113 
17114 
17115 # Check whether --with-sysroot was given.
17116 if test "${with_sysroot+set}" = set; then :
17117   withval=$with_sysroot; SYSROOT=$with_sysroot
17118 
17119 fi
17120 
17121 
17122 
17123 # Check whether --with-tools-dir was given.
17124 if test "${with_tools_dir+set}" = set; then :
17125   withval=$with_tools_dir;
17126   if test "x$with_tools_dir" != x; then
17127     if test "x$TOOLCHAIN_PATH" = x; then
17128       TOOLCHAIN_PATH="$with_tools_dir"
17129     else
17130       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17131     fi
17132   fi
17133 
17134 
17135 fi
17136 
17137 
17138 
17139 # Check whether --with-toolchain-path was given.
17140 if test "${with_toolchain_path+set}" = set; then :
17141   withval=$with_toolchain_path;
17142   if test "x$with_toolchain_path" != x; then
17143     if test "x$TOOLCHAIN_PATH" = x; then
17144       TOOLCHAIN_PATH="$with_toolchain_path"
17145     else
17146       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17147     fi
17148   fi
17149 
17150 
17151 fi
17152 
17153 
17154 
17155 # Check whether --with-extra-path was given.
17156 if test "${with_extra_path+set}" = set; then :
17157   withval=$with_extra_path;
17158   if test "x$with_extra_path" != x; then
17159     if test "x$EXTRA_PATH" = x; then
17160       EXTRA_PATH="$with_extra_path"
17161     else
17162       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17163     fi
17164   fi
17165 
17166 
17167 fi
17168 
17169 
17170   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17171     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17172     # If not, detect if Xcode is installed by running xcodebuild -version
17173     # if no Xcode installed, xcodebuild exits with 1
17174     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17175     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17176       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17177       # fall back on the stub binary in /usr/bin/xcodebuild
17178       # Extract the first word of "xcodebuild", so it can be a program name with args.
17179 set dummy xcodebuild; ac_word=$2
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17181 $as_echo_n "checking for $ac_word... " >&6; }
17182 if ${ac_cv_path_XCODEBUILD+:} false; then :
17183   $as_echo_n "(cached) " >&6
17184 else
17185   case $XCODEBUILD in
17186   [\\/]* | ?:[\\/]*)
17187   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17188   ;;
17189   *)
17190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191 for as_dir in $TOOLCHAIN_PATH
17192 do
17193   IFS=$as_save_IFS
17194   test -z "$as_dir" && as_dir=.
17195     for ac_exec_ext in '' $ac_executable_extensions; do
17196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17197     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17199     break 2
17200   fi
17201 done
17202   done
17203 IFS=$as_save_IFS
17204 
17205   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17206   ;;
17207 esac
17208 fi
17209 XCODEBUILD=$ac_cv_path_XCODEBUILD
17210 if test -n "$XCODEBUILD"; then
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17212 $as_echo "$XCODEBUILD" >&6; }
17213 else
17214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17216 fi
17217 
17218 
17219     else
17220       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17221       # when only the command line tools are installed there are no SDKs, so headers
17222       # are copied into the system frameworks
17223       XCODEBUILD=
17224 
17225     fi
17226 
17227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17228 $as_echo_n "checking for sdk name... " >&6; }
17229 
17230 # Check whether --with-sdk-name was given.
17231 if test "${with_sdk_name+set}" = set; then :
17232   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17233 
17234 fi
17235 
17236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17237 $as_echo "$SDKNAME" >&6; }
17238 
17239     # if toolchain path is specified then don't rely on system headers, they may not compile
17240     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17241     test -z "$TOOLCHAIN_PATH" && \
17242       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17243 
17244     if test -z "$SYSROOT"; then
17245       if test -n "$XCODEBUILD"; then
17246         # if we don't have system headers, use default SDK name (last resort)
17247         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17248           SDKNAME=${SDKNAME:-macosx}
17249         fi
17250 
17251         if test -n "$SDKNAME"; then
17252           # Call xcodebuild to determine SYSROOT
17253           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17254         fi
17255       else
17256         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17257           as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5
17258         fi
17259       fi
17260     else
17261       # warn user if --with-sdk-name was also set
17262       if test -n "$with_sdk_name"; then
17263         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17264 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17265       fi
17266     fi
17267 
17268     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17269       # If no system framework headers, then SYSROOT must be set, or we won't build
17270       as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5
17271     fi
17272 
17273     # Perform a basic sanity test
17274     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17275       if test -z "$SYSROOT"; then
17276         as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5
17277       else
17278         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17279       fi
17280     fi
17281 
17282     # set SDKROOT too, Xcode tools will pick it up
17283     SDKROOT=$SYSROOT
17284 
17285   fi
17286 
17287   # Prepend the extra path to the global path
17288 
17289   if test "x$EXTRA_PATH" != x; then
17290     if test "x$PATH" = x; then
17291       PATH="$EXTRA_PATH"
17292     else
17293       PATH="$EXTRA_PATH:$PATH"
17294     fi
17295   fi
17296 
17297 
17298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17299 $as_echo_n "checking for sysroot... " >&6; }
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17301 $as_echo "$SYSROOT" >&6; }
17302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17303 $as_echo_n "checking for toolchain path... " >&6; }
17304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17305 $as_echo "$TOOLCHAIN_PATH" >&6; }
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17307 $as_echo_n "checking for extra path... " >&6; }
17308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17309 $as_echo "$EXTRA_PATH" >&6; }
17310 
17311 
17312 # To properly create a configuration name, we need to have the OpenJDK target
17313 # and options (variants and debug level) parsed.
17314 
17315 
17316 
17317 # Check whether --with-conf-name was given.
17318 if test "${with_conf_name+set}" = set; then :
17319   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17320 fi
17321 
17322 
17323   # Test from where we are running configure, in or outside of src root.
17324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17325 $as_echo_n "checking where to store configuration... " >&6; }
17326   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17327       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17328       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17329     # We are running configure from the src root.
17330     # Create a default ./build/target-variant-debuglevel output root.
17331     if test "x${CONF_NAME}" = x; then
17332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17333 $as_echo "in default location" >&6; }
17334       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17335     else
17336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17337 $as_echo "in build directory with custom name" >&6; }
17338     fi
17339     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17340     $MKDIR -p "$OUTPUT_ROOT"
17341     if test ! -d "$OUTPUT_ROOT"; then
17342       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17343     fi
17344   else
17345     # We are running configure from outside of the src dir.
17346     # Then use the current directory as output dir!
17347     # If configuration is situated in normal build directory, just use the build
17348     # directory name as configuration name, otherwise use the complete path.
17349     if test "x${CONF_NAME}" = x; then
17350       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17351     fi
17352     OUTPUT_ROOT="$CURDIR"
17353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17354 $as_echo "in current directory" >&6; }
17355 
17356     # WARNING: This might be a bad thing to do. You need to be sure you want to
17357     # have a configuration in this directory. Do some sanity checks!
17358 
17359     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17360       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17361       # other files
17362       files_present=`$LS $OUTPUT_ROOT`
17363       # Configure has already touched config.log and confdefs.h in the current dir when this check
17364       # is performed.
17365       filtered_files=`$ECHO "$files_present" \
17366           | $SED -e 's/config.log//g' \
17367               -e 's/configure.log//g' \
17368               -e 's/confdefs.h//g' \
17369               -e 's/ //g' \
17370           | $TR -d '\n'`
17371       if test "x$filtered_files" != x; then
17372         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17373 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17374         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17375 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17376         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17377 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17378         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17379 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17380         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17381 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17382         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17383 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17384         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17385 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17386         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17387       fi
17388     fi
17389   fi
17390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17391 $as_echo_n "checking what configuration name to use... " >&6; }
17392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17393 $as_echo "$CONF_NAME" >&6; }
17394 
17395 
17396   # Only process if variable expands to non-empty
17397 
17398   if test "x$OUTPUT_ROOT" != x; then
17399     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17400 
17401   # Input might be given as Windows format, start by converting to
17402   # unix format.
17403   path="$OUTPUT_ROOT"
17404   new_path=`$CYGPATH -u "$path"`
17405 
17406   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17407   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17408   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17409   # "foo.exe" is OK but "foo" is an error.
17410   #
17411   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17412   # It is also a way to make sure we got the proper file name for the real test later on.
17413   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17414   if test "x$test_shortpath" = x; then
17415     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17416 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17417     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17418   fi
17419 
17420   # Call helper function which possibly converts this using DOS-style short mode.
17421   # If so, the updated path is stored in $new_path.
17422 
17423   input_path="$new_path"
17424   # Check if we need to convert this using DOS-style short mode. If the path
17425   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17426   # take no chances and rewrite it.
17427   # Note: m4 eats our [], so we need to use [ and ] instead.
17428   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17429   if test "x$has_forbidden_chars" != x; then
17430     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17431     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17432     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17433     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17434       # Going to short mode and back again did indeed matter. Since short mode is
17435       # case insensitive, let's make it lowercase to improve readability.
17436       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17437       # Now convert it back to Unix-style (cygpath)
17438       input_path=`$CYGPATH -u "$shortmode_path"`
17439       new_path="$input_path"
17440     fi
17441   fi
17442 
17443   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17444   if test "x$test_cygdrive_prefix" = x; then
17445     # As a simple fix, exclude /usr/bin since it's not a real path.
17446     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17447       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17448       # a path prefixed by /cygdrive for fixpath to work.
17449       new_path="$CYGWIN_ROOT_PATH$input_path"
17450     fi
17451   fi
17452 
17453 
17454   if test "x$path" != "x$new_path"; then
17455     OUTPUT_ROOT="$new_path"
17456     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17457 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17458   fi
17459 
17460     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17461 
17462   path="$OUTPUT_ROOT"
17463   has_colon=`$ECHO $path | $GREP ^.:`
17464   new_path="$path"
17465   if test "x$has_colon" = x; then
17466     # Not in mixed or Windows style, start by that.
17467     new_path=`cmd //c echo $path`
17468   fi
17469 
17470 
17471   input_path="$new_path"
17472   # Check if we need to convert this using DOS-style short mode. If the path
17473   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17474   # take no chances and rewrite it.
17475   # Note: m4 eats our [], so we need to use [ and ] instead.
17476   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17477   if test "x$has_forbidden_chars" != x; then
17478     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17479     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17480   fi
17481 
17482 
17483   windows_path="$new_path"
17484   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17485     unix_path=`$CYGPATH -u "$windows_path"`
17486     new_path="$unix_path"
17487   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17488     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17489     new_path="$unix_path"
17490   fi
17491 
17492   if test "x$path" != "x$new_path"; then
17493     OUTPUT_ROOT="$new_path"
17494     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17495 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17496   fi
17497 
17498   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17499   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17500 
17501     else
17502       # We're on a unix platform. Hooray! :)
17503       path="$OUTPUT_ROOT"
17504       has_space=`$ECHO "$path" | $GREP " "`
17505       if test "x$has_space" != x; then
17506         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17507 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17508         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17509       fi
17510 
17511       # Use eval to expand a potential ~
17512       eval path="$path"
17513       if test ! -f "$path" && test ! -d "$path"; then
17514         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17515       fi
17516 
17517       if test -d "$path"; then
17518         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17519       else
17520         dir="`$DIRNAME "$path"`"
17521         base="`$BASENAME "$path"`"
17522         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17523       fi
17524     fi
17525   fi
17526 
17527 
17528   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17529   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17530 
17531   SPEC=$OUTPUT_ROOT/spec.gmk
17532 
17533   CONF_NAME=$CONF_NAME
17534 
17535   OUTPUT_ROOT=$OUTPUT_ROOT
17536 
17537 
17538 
17539   # The spec.gmk file contains all variables for the make system.
17540   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17541 
17542   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17543   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17544 
17545   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17546   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17547 
17548   # The compare.sh is used to compare the build output to other builds.
17549   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17550 
17551   # The generated Makefile knows where the spec.gmk is and where the source is.
17552   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17553   # which will look for generated configurations
17554   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17555 
17556 
17557 
17558 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17559 
17560   for ac_prog in apt-get yum brew port pkgutil pkgadd
17561 do
17562   # Extract the first word of "$ac_prog", so it can be a program name with args.
17563 set dummy $ac_prog; ac_word=$2
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17565 $as_echo_n "checking for $ac_word... " >&6; }
17566 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17567   $as_echo_n "(cached) " >&6
17568 else
17569   if test -n "$PKGHANDLER"; then
17570   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17571 else
17572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17573 for as_dir in $PATH
17574 do
17575   IFS=$as_save_IFS
17576   test -z "$as_dir" && as_dir=.
17577     for ac_exec_ext in '' $ac_executable_extensions; do
17578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17579     ac_cv_prog_PKGHANDLER="$ac_prog"
17580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17581     break 2
17582   fi
17583 done
17584   done
17585 IFS=$as_save_IFS
17586 
17587 fi
17588 fi
17589 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17590 if test -n "$PKGHANDLER"; then
17591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17592 $as_echo "$PKGHANDLER" >&6; }
17593 else
17594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595 $as_echo "no" >&6; }
17596 fi
17597 
17598 
17599   test -n "$PKGHANDLER" && break
17600 done
17601 
17602 
17603 
17604 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17605 
17606 
17607 
17608   # Publish this variable in the help.
17609 
17610 
17611   if [ -z "${MAKE+x}" ]; then
17612     # The variable is not set by user, try to locate tool using the code snippet
17613 
17614     # Try our hardest to locate a correct version of GNU make
17615     for ac_prog in gmake
17616 do
17617   # Extract the first word of "$ac_prog", so it can be a program name with args.
17618 set dummy $ac_prog; ac_word=$2
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17620 $as_echo_n "checking for $ac_word... " >&6; }
17621 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17622   $as_echo_n "(cached) " >&6
17623 else
17624   case $CHECK_GMAKE in
17625   [\\/]* | ?:[\\/]*)
17626   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17627   ;;
17628   *)
17629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17630 for as_dir in $PATH
17631 do
17632   IFS=$as_save_IFS
17633   test -z "$as_dir" && as_dir=.
17634     for ac_exec_ext in '' $ac_executable_extensions; do
17635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17636     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17638     break 2
17639   fi
17640 done
17641   done
17642 IFS=$as_save_IFS
17643 
17644   ;;
17645 esac
17646 fi
17647 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17648 if test -n "$CHECK_GMAKE"; then
17649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17650 $as_echo "$CHECK_GMAKE" >&6; }
17651 else
17652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17653 $as_echo "no" >&6; }
17654 fi
17655 
17656 
17657   test -n "$CHECK_GMAKE" && break
17658 done
17659 
17660 
17661   MAKE_CANDIDATE=""$CHECK_GMAKE""
17662   DESCRIPTION="gmake in PATH"
17663 
17664   # On Cygwin, we require a newer version of make than on other platforms
17665   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17666     MAKE_VERSION_EXPR="-e 4\."
17667     MAKE_REQUIRED_VERSION="4.0"
17668    else
17669     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17670     MAKE_REQUIRED_VERSION="3.81"
17671   fi
17672 
17673   if test "x$MAKE_CANDIDATE" != x; then
17674     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17675 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17676     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17677     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17678     if test "x$IS_GNU_MAKE" = x; then
17679       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17680 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17681     else
17682       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17683       if test "x$IS_MODERN_MAKE" = x; then
17684         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17685 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17686       else
17687         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17688           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17689             MAKE_EXPECTED_ENV='cygwin'
17690           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17691             MAKE_EXPECTED_ENV='msys'
17692           else
17693             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17694           fi
17695           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17696           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17697         else
17698           # Not relevant for non-Windows
17699           IS_MAKE_CORRECT_ENV=true
17700         fi
17701         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17702           { $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
17703 $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;}
17704         else
17705           FOUND_MAKE=$MAKE_CANDIDATE
17706 
17707   # Only process if variable expands to non-empty
17708 
17709   if test "x$FOUND_MAKE" != x; then
17710     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17711 
17712   # First separate the path from the arguments. This will split at the first
17713   # space.
17714   complete="$FOUND_MAKE"
17715   path="${complete%% *}"
17716   tmp="$complete EOL"
17717   arguments="${tmp#* }"
17718 
17719   # Input might be given as Windows format, start by converting to
17720   # unix format.
17721   new_path=`$CYGPATH -u "$path"`
17722 
17723   # Now try to locate executable using which
17724   new_path=`$WHICH "$new_path" 2> /dev/null`
17725   # bat and cmd files are not always considered executable in cygwin causing which
17726   # to not find them
17727   if test "x$new_path" = x \
17728       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17729       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17730     new_path=`$CYGPATH -u "$path"`
17731   fi
17732   if test "x$new_path" = x; then
17733     # Oops. Which didn't find the executable.
17734     # The splitting of arguments from the executable at a space might have been incorrect,
17735     # since paths with space are more likely in Windows. Give it another try with the whole
17736     # argument.
17737     path="$complete"
17738     arguments="EOL"
17739     new_path=`$CYGPATH -u "$path"`
17740     new_path=`$WHICH "$new_path" 2> /dev/null`
17741     # bat and cmd files are not always considered executable in cygwin causing which
17742     # to not find them
17743     if test "x$new_path" = x \
17744         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17745         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17746       new_path=`$CYGPATH -u "$path"`
17747     fi
17748     if test "x$new_path" = x; then
17749       # It's still not found. Now this is an unrecoverable error.
17750       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17751 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17752       has_space=`$ECHO "$complete" | $GREP " "`
17753       if test "x$has_space" != x; then
17754         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17755 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17756       fi
17757       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17758     fi
17759   fi
17760 
17761   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17762   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17763   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17764   # "foo.exe" is OK but "foo" is an error.
17765   #
17766   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17767   # It is also a way to make sure we got the proper file name for the real test later on.
17768   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17769   if test "x$test_shortpath" = x; then
17770     # Short path failed, file does not exist as specified.
17771     # Try adding .exe or .cmd
17772     if test -f "${new_path}.exe"; then
17773       input_to_shortpath="${new_path}.exe"
17774     elif test -f "${new_path}.cmd"; then
17775       input_to_shortpath="${new_path}.cmd"
17776     else
17777       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17778 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17779       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17780 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17781       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17782     fi
17783   else
17784     input_to_shortpath="$new_path"
17785   fi
17786 
17787   # Call helper function which possibly converts this using DOS-style short mode.
17788   # If so, the updated path is stored in $new_path.
17789   new_path="$input_to_shortpath"
17790 
17791   input_path="$input_to_shortpath"
17792   # Check if we need to convert this using DOS-style short mode. If the path
17793   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17794   # take no chances and rewrite it.
17795   # Note: m4 eats our [], so we need to use [ and ] instead.
17796   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17797   if test "x$has_forbidden_chars" != x; then
17798     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17799     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17800     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17801     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17802       # Going to short mode and back again did indeed matter. Since short mode is
17803       # case insensitive, let's make it lowercase to improve readability.
17804       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17805       # Now convert it back to Unix-style (cygpath)
17806       input_path=`$CYGPATH -u "$shortmode_path"`
17807       new_path="$input_path"
17808     fi
17809   fi
17810 
17811   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17812   if test "x$test_cygdrive_prefix" = x; then
17813     # As a simple fix, exclude /usr/bin since it's not a real path.
17814     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17815       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17816       # a path prefixed by /cygdrive for fixpath to work.
17817       new_path="$CYGWIN_ROOT_PATH$input_path"
17818     fi
17819   fi
17820 
17821   # remove trailing .exe if any
17822   new_path="${new_path/%.exe/}"
17823 
17824     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17825 
17826   # First separate the path from the arguments. This will split at the first
17827   # space.
17828   complete="$FOUND_MAKE"
17829   path="${complete%% *}"
17830   tmp="$complete EOL"
17831   arguments="${tmp#* }"
17832 
17833   # Input might be given as Windows format, start by converting to
17834   # unix format.
17835   new_path="$path"
17836 
17837   windows_path="$new_path"
17838   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17839     unix_path=`$CYGPATH -u "$windows_path"`
17840     new_path="$unix_path"
17841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17842     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17843     new_path="$unix_path"
17844   fi
17845 
17846 
17847   # Now try to locate executable using which
17848   new_path=`$WHICH "$new_path" 2> /dev/null`
17849 
17850   if test "x$new_path" = x; then
17851     # Oops. Which didn't find the executable.
17852     # The splitting of arguments from the executable at a space might have been incorrect,
17853     # since paths with space are more likely in Windows. Give it another try with the whole
17854     # argument.
17855     path="$complete"
17856     arguments="EOL"
17857     new_path="$path"
17858 
17859   windows_path="$new_path"
17860   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17861     unix_path=`$CYGPATH -u "$windows_path"`
17862     new_path="$unix_path"
17863   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17864     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17865     new_path="$unix_path"
17866   fi
17867 
17868 
17869     new_path=`$WHICH "$new_path" 2> /dev/null`
17870     # bat and cmd files are not always considered executable in MSYS causing which
17871     # to not find them
17872     if test "x$new_path" = x \
17873         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17874         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17875       new_path="$path"
17876 
17877   windows_path="$new_path"
17878   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17879     unix_path=`$CYGPATH -u "$windows_path"`
17880     new_path="$unix_path"
17881   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17882     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17883     new_path="$unix_path"
17884   fi
17885 
17886     fi
17887 
17888     if test "x$new_path" = x; then
17889       # It's still not found. Now this is an unrecoverable error.
17890       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17891 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17892       has_space=`$ECHO "$complete" | $GREP " "`
17893       if test "x$has_space" != x; then
17894         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17895 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17896       fi
17897       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17898     fi
17899   fi
17900 
17901   # Now new_path has a complete unix path to the binary
17902   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17903     # Keep paths in /bin as-is, but remove trailing .exe if any
17904     new_path="${new_path/%.exe/}"
17905     # Do not save /bin paths to all_fixpath_prefixes!
17906   else
17907     # Not in mixed or Windows style, start by that.
17908     new_path=`cmd //c echo $new_path`
17909 
17910   input_path="$new_path"
17911   # Check if we need to convert this using DOS-style short mode. If the path
17912   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17913   # take no chances and rewrite it.
17914   # Note: m4 eats our [], so we need to use [ and ] instead.
17915   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17916   if test "x$has_forbidden_chars" != x; then
17917     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17918     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17919   fi
17920 
17921     # Output is in $new_path
17922 
17923   windows_path="$new_path"
17924   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17925     unix_path=`$CYGPATH -u "$windows_path"`
17926     new_path="$unix_path"
17927   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17928     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17929     new_path="$unix_path"
17930   fi
17931 
17932     # remove trailing .exe if any
17933     new_path="${new_path/%.exe/}"
17934 
17935     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17936     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17937   fi
17938 
17939     else
17940       # We're on a unix platform. Hooray! :)
17941       # First separate the path from the arguments. This will split at the first
17942       # space.
17943       complete="$FOUND_MAKE"
17944       path="${complete%% *}"
17945       tmp="$complete EOL"
17946       arguments="${tmp#* }"
17947 
17948       # Cannot rely on the command "which" here since it doesn't always work.
17949       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17950       if test -z "$is_absolute_path"; then
17951         # Path to executable is not absolute. Find it.
17952         IFS_save="$IFS"
17953         IFS=:
17954         for p in $PATH; do
17955           if test -f "$p/$path" && test -x "$p/$path"; then
17956             new_path="$p/$path"
17957             break
17958           fi
17959         done
17960         IFS="$IFS_save"
17961       else
17962         # This is an absolute path, we can use it without further modifications.
17963         new_path="$path"
17964       fi
17965 
17966       if test "x$new_path" = x; then
17967         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17968 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17969         has_space=`$ECHO "$complete" | $GREP " "`
17970         if test "x$has_space" != x; then
17971           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17972 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17973         fi
17974         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17975       fi
17976     fi
17977 
17978     # Now join together the path and the arguments once again
17979     if test "x$arguments" != xEOL; then
17980       new_complete="$new_path ${arguments% *}"
17981     else
17982       new_complete="$new_path"
17983     fi
17984 
17985     if test "x$complete" != "x$new_complete"; then
17986       FOUND_MAKE="$new_complete"
17987       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17988 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17989     fi
17990   fi
17991 
17992         fi
17993       fi
17994     fi
17995   fi
17996 
17997 
17998     if test "x$FOUND_MAKE" = x; then
17999       for ac_prog in make
18000 do
18001   # Extract the first word of "$ac_prog", so it can be a program name with args.
18002 set dummy $ac_prog; ac_word=$2
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18004 $as_echo_n "checking for $ac_word... " >&6; }
18005 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18006   $as_echo_n "(cached) " >&6
18007 else
18008   case $CHECK_MAKE in
18009   [\\/]* | ?:[\\/]*)
18010   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18011   ;;
18012   *)
18013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18014 for as_dir in $PATH
18015 do
18016   IFS=$as_save_IFS
18017   test -z "$as_dir" && as_dir=.
18018     for ac_exec_ext in '' $ac_executable_extensions; do
18019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18020     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18022     break 2
18023   fi
18024 done
18025   done
18026 IFS=$as_save_IFS
18027 
18028   ;;
18029 esac
18030 fi
18031 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18032 if test -n "$CHECK_MAKE"; then
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18034 $as_echo "$CHECK_MAKE" >&6; }
18035 else
18036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037 $as_echo "no" >&6; }
18038 fi
18039 
18040 
18041   test -n "$CHECK_MAKE" && break
18042 done
18043 
18044 
18045   MAKE_CANDIDATE=""$CHECK_MAKE""
18046   DESCRIPTION="make in PATH"
18047 
18048   # On Cygwin, we require a newer version of make than on other platforms
18049   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18050     MAKE_VERSION_EXPR="-e 4\."
18051     MAKE_REQUIRED_VERSION="4.0"
18052    else
18053     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18054     MAKE_REQUIRED_VERSION="3.81"
18055   fi
18056 
18057   if test "x$MAKE_CANDIDATE" != x; then
18058     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18059 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18060     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18061     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18062     if test "x$IS_GNU_MAKE" = x; then
18063       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18064 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18065     else
18066       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18067       if test "x$IS_MODERN_MAKE" = x; then
18068         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18069 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18070       else
18071         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18072           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18073             MAKE_EXPECTED_ENV='cygwin'
18074           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18075             MAKE_EXPECTED_ENV='msys'
18076           else
18077             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18078           fi
18079           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18080           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18081         else
18082           # Not relevant for non-Windows
18083           IS_MAKE_CORRECT_ENV=true
18084         fi
18085         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18086           { $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
18087 $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;}
18088         else
18089           FOUND_MAKE=$MAKE_CANDIDATE
18090 
18091   # Only process if variable expands to non-empty
18092 
18093   if test "x$FOUND_MAKE" != x; then
18094     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18095 
18096   # First separate the path from the arguments. This will split at the first
18097   # space.
18098   complete="$FOUND_MAKE"
18099   path="${complete%% *}"
18100   tmp="$complete EOL"
18101   arguments="${tmp#* }"
18102 
18103   # Input might be given as Windows format, start by converting to
18104   # unix format.
18105   new_path=`$CYGPATH -u "$path"`
18106 
18107   # Now try to locate executable using which
18108   new_path=`$WHICH "$new_path" 2> /dev/null`
18109   # bat and cmd files are not always considered executable in cygwin causing which
18110   # to not find them
18111   if test "x$new_path" = x \
18112       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18113       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18114     new_path=`$CYGPATH -u "$path"`
18115   fi
18116   if test "x$new_path" = x; then
18117     # Oops. Which didn't find the executable.
18118     # The splitting of arguments from the executable at a space might have been incorrect,
18119     # since paths with space are more likely in Windows. Give it another try with the whole
18120     # argument.
18121     path="$complete"
18122     arguments="EOL"
18123     new_path=`$CYGPATH -u "$path"`
18124     new_path=`$WHICH "$new_path" 2> /dev/null`
18125     # bat and cmd files are not always considered executable in cygwin causing which
18126     # to not find them
18127     if test "x$new_path" = x \
18128         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18129         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18130       new_path=`$CYGPATH -u "$path"`
18131     fi
18132     if test "x$new_path" = x; then
18133       # It's still not found. Now this is an unrecoverable error.
18134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18135 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18136       has_space=`$ECHO "$complete" | $GREP " "`
18137       if test "x$has_space" != x; then
18138         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18140       fi
18141       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18142     fi
18143   fi
18144 
18145   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18146   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18147   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18148   # "foo.exe" is OK but "foo" is an error.
18149   #
18150   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18151   # It is also a way to make sure we got the proper file name for the real test later on.
18152   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18153   if test "x$test_shortpath" = x; then
18154     # Short path failed, file does not exist as specified.
18155     # Try adding .exe or .cmd
18156     if test -f "${new_path}.exe"; then
18157       input_to_shortpath="${new_path}.exe"
18158     elif test -f "${new_path}.cmd"; then
18159       input_to_shortpath="${new_path}.cmd"
18160     else
18161       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18162 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18163       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18164 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18165       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18166     fi
18167   else
18168     input_to_shortpath="$new_path"
18169   fi
18170 
18171   # Call helper function which possibly converts this using DOS-style short mode.
18172   # If so, the updated path is stored in $new_path.
18173   new_path="$input_to_shortpath"
18174 
18175   input_path="$input_to_shortpath"
18176   # Check if we need to convert this using DOS-style short mode. If the path
18177   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18178   # take no chances and rewrite it.
18179   # Note: m4 eats our [], so we need to use [ and ] instead.
18180   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18181   if test "x$has_forbidden_chars" != x; then
18182     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18183     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18184     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18185     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18186       # Going to short mode and back again did indeed matter. Since short mode is
18187       # case insensitive, let's make it lowercase to improve readability.
18188       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18189       # Now convert it back to Unix-style (cygpath)
18190       input_path=`$CYGPATH -u "$shortmode_path"`
18191       new_path="$input_path"
18192     fi
18193   fi
18194 
18195   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18196   if test "x$test_cygdrive_prefix" = x; then
18197     # As a simple fix, exclude /usr/bin since it's not a real path.
18198     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18199       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18200       # a path prefixed by /cygdrive for fixpath to work.
18201       new_path="$CYGWIN_ROOT_PATH$input_path"
18202     fi
18203   fi
18204 
18205   # remove trailing .exe if any
18206   new_path="${new_path/%.exe/}"
18207 
18208     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18209 
18210   # First separate the path from the arguments. This will split at the first
18211   # space.
18212   complete="$FOUND_MAKE"
18213   path="${complete%% *}"
18214   tmp="$complete EOL"
18215   arguments="${tmp#* }"
18216 
18217   # Input might be given as Windows format, start by converting to
18218   # unix format.
18219   new_path="$path"
18220 
18221   windows_path="$new_path"
18222   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18223     unix_path=`$CYGPATH -u "$windows_path"`
18224     new_path="$unix_path"
18225   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18226     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18227     new_path="$unix_path"
18228   fi
18229 
18230 
18231   # Now try to locate executable using which
18232   new_path=`$WHICH "$new_path" 2> /dev/null`
18233 
18234   if test "x$new_path" = x; then
18235     # Oops. Which didn't find the executable.
18236     # The splitting of arguments from the executable at a space might have been incorrect,
18237     # since paths with space are more likely in Windows. Give it another try with the whole
18238     # argument.
18239     path="$complete"
18240     arguments="EOL"
18241     new_path="$path"
18242 
18243   windows_path="$new_path"
18244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18245     unix_path=`$CYGPATH -u "$windows_path"`
18246     new_path="$unix_path"
18247   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18248     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18249     new_path="$unix_path"
18250   fi
18251 
18252 
18253     new_path=`$WHICH "$new_path" 2> /dev/null`
18254     # bat and cmd files are not always considered executable in MSYS causing which
18255     # to not find them
18256     if test "x$new_path" = x \
18257         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18258         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18259       new_path="$path"
18260 
18261   windows_path="$new_path"
18262   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18263     unix_path=`$CYGPATH -u "$windows_path"`
18264     new_path="$unix_path"
18265   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18266     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18267     new_path="$unix_path"
18268   fi
18269 
18270     fi
18271 
18272     if test "x$new_path" = x; then
18273       # It's still not found. Now this is an unrecoverable error.
18274       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18275 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18276       has_space=`$ECHO "$complete" | $GREP " "`
18277       if test "x$has_space" != x; then
18278         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18279 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18280       fi
18281       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18282     fi
18283   fi
18284 
18285   # Now new_path has a complete unix path to the binary
18286   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18287     # Keep paths in /bin as-is, but remove trailing .exe if any
18288     new_path="${new_path/%.exe/}"
18289     # Do not save /bin paths to all_fixpath_prefixes!
18290   else
18291     # Not in mixed or Windows style, start by that.
18292     new_path=`cmd //c echo $new_path`
18293 
18294   input_path="$new_path"
18295   # Check if we need to convert this using DOS-style short mode. If the path
18296   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18297   # take no chances and rewrite it.
18298   # Note: m4 eats our [], so we need to use [ and ] instead.
18299   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18300   if test "x$has_forbidden_chars" != x; then
18301     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18302     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18303   fi
18304 
18305     # Output is in $new_path
18306 
18307   windows_path="$new_path"
18308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18309     unix_path=`$CYGPATH -u "$windows_path"`
18310     new_path="$unix_path"
18311   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18312     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18313     new_path="$unix_path"
18314   fi
18315 
18316     # remove trailing .exe if any
18317     new_path="${new_path/%.exe/}"
18318 
18319     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18320     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18321   fi
18322 
18323     else
18324       # We're on a unix platform. Hooray! :)
18325       # First separate the path from the arguments. This will split at the first
18326       # space.
18327       complete="$FOUND_MAKE"
18328       path="${complete%% *}"
18329       tmp="$complete EOL"
18330       arguments="${tmp#* }"
18331 
18332       # Cannot rely on the command "which" here since it doesn't always work.
18333       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18334       if test -z "$is_absolute_path"; then
18335         # Path to executable is not absolute. Find it.
18336         IFS_save="$IFS"
18337         IFS=:
18338         for p in $PATH; do
18339           if test -f "$p/$path" && test -x "$p/$path"; then
18340             new_path="$p/$path"
18341             break
18342           fi
18343         done
18344         IFS="$IFS_save"
18345       else
18346         # This is an absolute path, we can use it without further modifications.
18347         new_path="$path"
18348       fi
18349 
18350       if test "x$new_path" = x; then
18351         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18352 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18353         has_space=`$ECHO "$complete" | $GREP " "`
18354         if test "x$has_space" != x; then
18355           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18356 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18357         fi
18358         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18359       fi
18360     fi
18361 
18362     # Now join together the path and the arguments once again
18363     if test "x$arguments" != xEOL; then
18364       new_complete="$new_path ${arguments% *}"
18365     else
18366       new_complete="$new_path"
18367     fi
18368 
18369     if test "x$complete" != "x$new_complete"; then
18370       FOUND_MAKE="$new_complete"
18371       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18372 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18373     fi
18374   fi
18375 
18376         fi
18377       fi
18378     fi
18379   fi
18380 
18381     fi
18382 
18383     if test "x$FOUND_MAKE" = x; then
18384       if test "x$TOOLCHAIN_PATH" != x; then
18385         # We have a toolchain path, check that as well before giving up.
18386         OLD_PATH=$PATH
18387         PATH=$TOOLCHAIN_PATH:$PATH
18388         for ac_prog in gmake
18389 do
18390   # Extract the first word of "$ac_prog", so it can be a program name with args.
18391 set dummy $ac_prog; ac_word=$2
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18393 $as_echo_n "checking for $ac_word... " >&6; }
18394 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18395   $as_echo_n "(cached) " >&6
18396 else
18397   case $CHECK_TOOLSDIR_GMAKE in
18398   [\\/]* | ?:[\\/]*)
18399   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18400   ;;
18401   *)
18402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18403 for as_dir in $PATH
18404 do
18405   IFS=$as_save_IFS
18406   test -z "$as_dir" && as_dir=.
18407     for ac_exec_ext in '' $ac_executable_extensions; do
18408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18409     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18411     break 2
18412   fi
18413 done
18414   done
18415 IFS=$as_save_IFS
18416 
18417   ;;
18418 esac
18419 fi
18420 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18421 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18423 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18424 else
18425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426 $as_echo "no" >&6; }
18427 fi
18428 
18429 
18430   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18431 done
18432 
18433 
18434   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18435   DESCRIPTION="gmake in tools-dir"
18436 
18437   # On Cygwin, we require a newer version of make than on other platforms
18438   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18439     MAKE_VERSION_EXPR="-e 4\."
18440     MAKE_REQUIRED_VERSION="4.0"
18441    else
18442     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18443     MAKE_REQUIRED_VERSION="3.81"
18444   fi
18445 
18446   if test "x$MAKE_CANDIDATE" != x; then
18447     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18448 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18449     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18450     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18451     if test "x$IS_GNU_MAKE" = x; then
18452       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18453 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18454     else
18455       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18456       if test "x$IS_MODERN_MAKE" = x; then
18457         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18458 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18459       else
18460         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18461           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18462             MAKE_EXPECTED_ENV='cygwin'
18463           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18464             MAKE_EXPECTED_ENV='msys'
18465           else
18466             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18467           fi
18468           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18469           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18470         else
18471           # Not relevant for non-Windows
18472           IS_MAKE_CORRECT_ENV=true
18473         fi
18474         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18475           { $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
18476 $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;}
18477         else
18478           FOUND_MAKE=$MAKE_CANDIDATE
18479 
18480   # Only process if variable expands to non-empty
18481 
18482   if test "x$FOUND_MAKE" != x; then
18483     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18484 
18485   # First separate the path from the arguments. This will split at the first
18486   # space.
18487   complete="$FOUND_MAKE"
18488   path="${complete%% *}"
18489   tmp="$complete EOL"
18490   arguments="${tmp#* }"
18491 
18492   # Input might be given as Windows format, start by converting to
18493   # unix format.
18494   new_path=`$CYGPATH -u "$path"`
18495 
18496   # Now try to locate executable using which
18497   new_path=`$WHICH "$new_path" 2> /dev/null`
18498   # bat and cmd files are not always considered executable in cygwin causing which
18499   # to not find them
18500   if test "x$new_path" = x \
18501       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18502       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18503     new_path=`$CYGPATH -u "$path"`
18504   fi
18505   if test "x$new_path" = x; then
18506     # Oops. Which didn't find the executable.
18507     # The splitting of arguments from the executable at a space might have been incorrect,
18508     # since paths with space are more likely in Windows. Give it another try with the whole
18509     # argument.
18510     path="$complete"
18511     arguments="EOL"
18512     new_path=`$CYGPATH -u "$path"`
18513     new_path=`$WHICH "$new_path" 2> /dev/null`
18514     # bat and cmd files are not always considered executable in cygwin causing which
18515     # to not find them
18516     if test "x$new_path" = x \
18517         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18518         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18519       new_path=`$CYGPATH -u "$path"`
18520     fi
18521     if test "x$new_path" = x; then
18522       # It's still not found. Now this is an unrecoverable error.
18523       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18524 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18525       has_space=`$ECHO "$complete" | $GREP " "`
18526       if test "x$has_space" != x; then
18527         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18528 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18529       fi
18530       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18531     fi
18532   fi
18533 
18534   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18535   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18536   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18537   # "foo.exe" is OK but "foo" is an error.
18538   #
18539   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18540   # It is also a way to make sure we got the proper file name for the real test later on.
18541   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18542   if test "x$test_shortpath" = x; then
18543     # Short path failed, file does not exist as specified.
18544     # Try adding .exe or .cmd
18545     if test -f "${new_path}.exe"; then
18546       input_to_shortpath="${new_path}.exe"
18547     elif test -f "${new_path}.cmd"; then
18548       input_to_shortpath="${new_path}.cmd"
18549     else
18550       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18551 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18552       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18553 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18554       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18555     fi
18556   else
18557     input_to_shortpath="$new_path"
18558   fi
18559 
18560   # Call helper function which possibly converts this using DOS-style short mode.
18561   # If so, the updated path is stored in $new_path.
18562   new_path="$input_to_shortpath"
18563 
18564   input_path="$input_to_shortpath"
18565   # Check if we need to convert this using DOS-style short mode. If the path
18566   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18567   # take no chances and rewrite it.
18568   # Note: m4 eats our [], so we need to use [ and ] instead.
18569   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18570   if test "x$has_forbidden_chars" != x; then
18571     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18572     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18573     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18574     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18575       # Going to short mode and back again did indeed matter. Since short mode is
18576       # case insensitive, let's make it lowercase to improve readability.
18577       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18578       # Now convert it back to Unix-style (cygpath)
18579       input_path=`$CYGPATH -u "$shortmode_path"`
18580       new_path="$input_path"
18581     fi
18582   fi
18583 
18584   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18585   if test "x$test_cygdrive_prefix" = x; then
18586     # As a simple fix, exclude /usr/bin since it's not a real path.
18587     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18588       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18589       # a path prefixed by /cygdrive for fixpath to work.
18590       new_path="$CYGWIN_ROOT_PATH$input_path"
18591     fi
18592   fi
18593 
18594   # remove trailing .exe if any
18595   new_path="${new_path/%.exe/}"
18596 
18597     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18598 
18599   # First separate the path from the arguments. This will split at the first
18600   # space.
18601   complete="$FOUND_MAKE"
18602   path="${complete%% *}"
18603   tmp="$complete EOL"
18604   arguments="${tmp#* }"
18605 
18606   # Input might be given as Windows format, start by converting to
18607   # unix format.
18608   new_path="$path"
18609 
18610   windows_path="$new_path"
18611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18612     unix_path=`$CYGPATH -u "$windows_path"`
18613     new_path="$unix_path"
18614   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18615     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18616     new_path="$unix_path"
18617   fi
18618 
18619 
18620   # Now try to locate executable using which
18621   new_path=`$WHICH "$new_path" 2> /dev/null`
18622 
18623   if test "x$new_path" = x; then
18624     # Oops. Which didn't find the executable.
18625     # The splitting of arguments from the executable at a space might have been incorrect,
18626     # since paths with space are more likely in Windows. Give it another try with the whole
18627     # argument.
18628     path="$complete"
18629     arguments="EOL"
18630     new_path="$path"
18631 
18632   windows_path="$new_path"
18633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18634     unix_path=`$CYGPATH -u "$windows_path"`
18635     new_path="$unix_path"
18636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18637     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18638     new_path="$unix_path"
18639   fi
18640 
18641 
18642     new_path=`$WHICH "$new_path" 2> /dev/null`
18643     # bat and cmd files are not always considered executable in MSYS causing which
18644     # to not find them
18645     if test "x$new_path" = x \
18646         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18647         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18648       new_path="$path"
18649 
18650   windows_path="$new_path"
18651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18652     unix_path=`$CYGPATH -u "$windows_path"`
18653     new_path="$unix_path"
18654   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18655     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18656     new_path="$unix_path"
18657   fi
18658 
18659     fi
18660 
18661     if test "x$new_path" = x; then
18662       # It's still not found. Now this is an unrecoverable error.
18663       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18664 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18665       has_space=`$ECHO "$complete" | $GREP " "`
18666       if test "x$has_space" != x; then
18667         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18668 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18669       fi
18670       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18671     fi
18672   fi
18673 
18674   # Now new_path has a complete unix path to the binary
18675   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18676     # Keep paths in /bin as-is, but remove trailing .exe if any
18677     new_path="${new_path/%.exe/}"
18678     # Do not save /bin paths to all_fixpath_prefixes!
18679   else
18680     # Not in mixed or Windows style, start by that.
18681     new_path=`cmd //c echo $new_path`
18682 
18683   input_path="$new_path"
18684   # Check if we need to convert this using DOS-style short mode. If the path
18685   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18686   # take no chances and rewrite it.
18687   # Note: m4 eats our [], so we need to use [ and ] instead.
18688   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18689   if test "x$has_forbidden_chars" != x; then
18690     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18691     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18692   fi
18693 
18694     # Output is in $new_path
18695 
18696   windows_path="$new_path"
18697   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18698     unix_path=`$CYGPATH -u "$windows_path"`
18699     new_path="$unix_path"
18700   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18701     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18702     new_path="$unix_path"
18703   fi
18704 
18705     # remove trailing .exe if any
18706     new_path="${new_path/%.exe/}"
18707 
18708     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18709     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18710   fi
18711 
18712     else
18713       # We're on a unix platform. Hooray! :)
18714       # First separate the path from the arguments. This will split at the first
18715       # space.
18716       complete="$FOUND_MAKE"
18717       path="${complete%% *}"
18718       tmp="$complete EOL"
18719       arguments="${tmp#* }"
18720 
18721       # Cannot rely on the command "which" here since it doesn't always work.
18722       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18723       if test -z "$is_absolute_path"; then
18724         # Path to executable is not absolute. Find it.
18725         IFS_save="$IFS"
18726         IFS=:
18727         for p in $PATH; do
18728           if test -f "$p/$path" && test -x "$p/$path"; then
18729             new_path="$p/$path"
18730             break
18731           fi
18732         done
18733         IFS="$IFS_save"
18734       else
18735         # This is an absolute path, we can use it without further modifications.
18736         new_path="$path"
18737       fi
18738 
18739       if test "x$new_path" = x; then
18740         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18741 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18742         has_space=`$ECHO "$complete" | $GREP " "`
18743         if test "x$has_space" != x; then
18744           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18745 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18746         fi
18747         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18748       fi
18749     fi
18750 
18751     # Now join together the path and the arguments once again
18752     if test "x$arguments" != xEOL; then
18753       new_complete="$new_path ${arguments% *}"
18754     else
18755       new_complete="$new_path"
18756     fi
18757 
18758     if test "x$complete" != "x$new_complete"; then
18759       FOUND_MAKE="$new_complete"
18760       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18761 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18762     fi
18763   fi
18764 
18765         fi
18766       fi
18767     fi
18768   fi
18769 
18770         if test "x$FOUND_MAKE" = x; then
18771           for ac_prog in make
18772 do
18773   # Extract the first word of "$ac_prog", so it can be a program name with args.
18774 set dummy $ac_prog; ac_word=$2
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18776 $as_echo_n "checking for $ac_word... " >&6; }
18777 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18778   $as_echo_n "(cached) " >&6
18779 else
18780   case $CHECK_TOOLSDIR_MAKE in
18781   [\\/]* | ?:[\\/]*)
18782   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18783   ;;
18784   *)
18785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18786 for as_dir in $PATH
18787 do
18788   IFS=$as_save_IFS
18789   test -z "$as_dir" && as_dir=.
18790     for ac_exec_ext in '' $ac_executable_extensions; do
18791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18792     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18794     break 2
18795   fi
18796 done
18797   done
18798 IFS=$as_save_IFS
18799 
18800   ;;
18801 esac
18802 fi
18803 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18804 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18806 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18807 else
18808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18809 $as_echo "no" >&6; }
18810 fi
18811 
18812 
18813   test -n "$CHECK_TOOLSDIR_MAKE" && break
18814 done
18815 
18816 
18817   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18818   DESCRIPTION="make in tools-dir"
18819 
18820   # On Cygwin, we require a newer version of make than on other platforms
18821   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18822     MAKE_VERSION_EXPR="-e 4\."
18823     MAKE_REQUIRED_VERSION="4.0"
18824    else
18825     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18826     MAKE_REQUIRED_VERSION="3.81"
18827   fi
18828 
18829   if test "x$MAKE_CANDIDATE" != x; then
18830     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18831 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18832     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18833     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18834     if test "x$IS_GNU_MAKE" = x; then
18835       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18836 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18837     else
18838       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18839       if test "x$IS_MODERN_MAKE" = x; then
18840         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18841 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18842       else
18843         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18844           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18845             MAKE_EXPECTED_ENV='cygwin'
18846           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18847             MAKE_EXPECTED_ENV='msys'
18848           else
18849             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18850           fi
18851           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18852           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18853         else
18854           # Not relevant for non-Windows
18855           IS_MAKE_CORRECT_ENV=true
18856         fi
18857         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18858           { $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
18859 $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;}
18860         else
18861           FOUND_MAKE=$MAKE_CANDIDATE
18862 
18863   # Only process if variable expands to non-empty
18864 
18865   if test "x$FOUND_MAKE" != x; then
18866     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18867 
18868   # First separate the path from the arguments. This will split at the first
18869   # space.
18870   complete="$FOUND_MAKE"
18871   path="${complete%% *}"
18872   tmp="$complete EOL"
18873   arguments="${tmp#* }"
18874 
18875   # Input might be given as Windows format, start by converting to
18876   # unix format.
18877   new_path=`$CYGPATH -u "$path"`
18878 
18879   # Now try to locate executable using which
18880   new_path=`$WHICH "$new_path" 2> /dev/null`
18881   # bat and cmd files are not always considered executable in cygwin causing which
18882   # to not find them
18883   if test "x$new_path" = x \
18884       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18885       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18886     new_path=`$CYGPATH -u "$path"`
18887   fi
18888   if test "x$new_path" = x; then
18889     # Oops. Which didn't find the executable.
18890     # The splitting of arguments from the executable at a space might have been incorrect,
18891     # since paths with space are more likely in Windows. Give it another try with the whole
18892     # argument.
18893     path="$complete"
18894     arguments="EOL"
18895     new_path=`$CYGPATH -u "$path"`
18896     new_path=`$WHICH "$new_path" 2> /dev/null`
18897     # bat and cmd files are not always considered executable in cygwin causing which
18898     # to not find them
18899     if test "x$new_path" = x \
18900         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18901         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18902       new_path=`$CYGPATH -u "$path"`
18903     fi
18904     if test "x$new_path" = x; then
18905       # It's still not found. Now this is an unrecoverable error.
18906       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18908       has_space=`$ECHO "$complete" | $GREP " "`
18909       if test "x$has_space" != x; then
18910         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18912       fi
18913       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18914     fi
18915   fi
18916 
18917   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18918   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18919   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18920   # "foo.exe" is OK but "foo" is an error.
18921   #
18922   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18923   # It is also a way to make sure we got the proper file name for the real test later on.
18924   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18925   if test "x$test_shortpath" = x; then
18926     # Short path failed, file does not exist as specified.
18927     # Try adding .exe or .cmd
18928     if test -f "${new_path}.exe"; then
18929       input_to_shortpath="${new_path}.exe"
18930     elif test -f "${new_path}.cmd"; then
18931       input_to_shortpath="${new_path}.cmd"
18932     else
18933       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18934 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18935       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18936 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18937       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18938     fi
18939   else
18940     input_to_shortpath="$new_path"
18941   fi
18942 
18943   # Call helper function which possibly converts this using DOS-style short mode.
18944   # If so, the updated path is stored in $new_path.
18945   new_path="$input_to_shortpath"
18946 
18947   input_path="$input_to_shortpath"
18948   # Check if we need to convert this using DOS-style short mode. If the path
18949   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18950   # take no chances and rewrite it.
18951   # Note: m4 eats our [], so we need to use [ and ] instead.
18952   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18953   if test "x$has_forbidden_chars" != x; then
18954     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18955     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18956     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18957     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18958       # Going to short mode and back again did indeed matter. Since short mode is
18959       # case insensitive, let's make it lowercase to improve readability.
18960       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18961       # Now convert it back to Unix-style (cygpath)
18962       input_path=`$CYGPATH -u "$shortmode_path"`
18963       new_path="$input_path"
18964     fi
18965   fi
18966 
18967   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18968   if test "x$test_cygdrive_prefix" = x; then
18969     # As a simple fix, exclude /usr/bin since it's not a real path.
18970     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18971       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18972       # a path prefixed by /cygdrive for fixpath to work.
18973       new_path="$CYGWIN_ROOT_PATH$input_path"
18974     fi
18975   fi
18976 
18977   # remove trailing .exe if any
18978   new_path="${new_path/%.exe/}"
18979 
18980     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18981 
18982   # First separate the path from the arguments. This will split at the first
18983   # space.
18984   complete="$FOUND_MAKE"
18985   path="${complete%% *}"
18986   tmp="$complete EOL"
18987   arguments="${tmp#* }"
18988 
18989   # Input might be given as Windows format, start by converting to
18990   # unix format.
18991   new_path="$path"
18992 
18993   windows_path="$new_path"
18994   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18995     unix_path=`$CYGPATH -u "$windows_path"`
18996     new_path="$unix_path"
18997   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18998     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18999     new_path="$unix_path"
19000   fi
19001 
19002 
19003   # Now try to locate executable using which
19004   new_path=`$WHICH "$new_path" 2> /dev/null`
19005 
19006   if test "x$new_path" = x; then
19007     # Oops. Which didn't find the executable.
19008     # The splitting of arguments from the executable at a space might have been incorrect,
19009     # since paths with space are more likely in Windows. Give it another try with the whole
19010     # argument.
19011     path="$complete"
19012     arguments="EOL"
19013     new_path="$path"
19014 
19015   windows_path="$new_path"
19016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19017     unix_path=`$CYGPATH -u "$windows_path"`
19018     new_path="$unix_path"
19019   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19020     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19021     new_path="$unix_path"
19022   fi
19023 
19024 
19025     new_path=`$WHICH "$new_path" 2> /dev/null`
19026     # bat and cmd files are not always considered executable in MSYS causing which
19027     # to not find them
19028     if test "x$new_path" = x \
19029         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19030         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19031       new_path="$path"
19032 
19033   windows_path="$new_path"
19034   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19035     unix_path=`$CYGPATH -u "$windows_path"`
19036     new_path="$unix_path"
19037   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19038     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19039     new_path="$unix_path"
19040   fi
19041 
19042     fi
19043 
19044     if test "x$new_path" = x; then
19045       # It's still not found. Now this is an unrecoverable error.
19046       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19047 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19048       has_space=`$ECHO "$complete" | $GREP " "`
19049       if test "x$has_space" != x; then
19050         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19051 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19052       fi
19053       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19054     fi
19055   fi
19056 
19057   # Now new_path has a complete unix path to the binary
19058   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19059     # Keep paths in /bin as-is, but remove trailing .exe if any
19060     new_path="${new_path/%.exe/}"
19061     # Do not save /bin paths to all_fixpath_prefixes!
19062   else
19063     # Not in mixed or Windows style, start by that.
19064     new_path=`cmd //c echo $new_path`
19065 
19066   input_path="$new_path"
19067   # Check if we need to convert this using DOS-style short mode. If the path
19068   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19069   # take no chances and rewrite it.
19070   # Note: m4 eats our [], so we need to use [ and ] instead.
19071   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19072   if test "x$has_forbidden_chars" != x; then
19073     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19074     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19075   fi
19076 
19077     # Output is in $new_path
19078 
19079   windows_path="$new_path"
19080   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19081     unix_path=`$CYGPATH -u "$windows_path"`
19082     new_path="$unix_path"
19083   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19084     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19085     new_path="$unix_path"
19086   fi
19087 
19088     # remove trailing .exe if any
19089     new_path="${new_path/%.exe/}"
19090 
19091     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19092     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19093   fi
19094 
19095     else
19096       # We're on a unix platform. Hooray! :)
19097       # First separate the path from the arguments. This will split at the first
19098       # space.
19099       complete="$FOUND_MAKE"
19100       path="${complete%% *}"
19101       tmp="$complete EOL"
19102       arguments="${tmp#* }"
19103 
19104       # Cannot rely on the command "which" here since it doesn't always work.
19105       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19106       if test -z "$is_absolute_path"; then
19107         # Path to executable is not absolute. Find it.
19108         IFS_save="$IFS"
19109         IFS=:
19110         for p in $PATH; do
19111           if test -f "$p/$path" && test -x "$p/$path"; then
19112             new_path="$p/$path"
19113             break
19114           fi
19115         done
19116         IFS="$IFS_save"
19117       else
19118         # This is an absolute path, we can use it without further modifications.
19119         new_path="$path"
19120       fi
19121 
19122       if test "x$new_path" = x; then
19123         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19124 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19125         has_space=`$ECHO "$complete" | $GREP " "`
19126         if test "x$has_space" != x; then
19127           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19128 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19129         fi
19130         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19131       fi
19132     fi
19133 
19134     # Now join together the path and the arguments once again
19135     if test "x$arguments" != xEOL; then
19136       new_complete="$new_path ${arguments% *}"
19137     else
19138       new_complete="$new_path"
19139     fi
19140 
19141     if test "x$complete" != "x$new_complete"; then
19142       FOUND_MAKE="$new_complete"
19143       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19144 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19145     fi
19146   fi
19147 
19148         fi
19149       fi
19150     fi
19151   fi
19152 
19153         fi
19154         PATH=$OLD_PATH
19155       fi
19156     fi
19157 
19158     if test "x$FOUND_MAKE" = x; then
19159       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
19160     fi
19161 
19162   else
19163     # The variable is set, but is it from the command line or the environment?
19164 
19165     # Try to remove the string !MAKE! from our list.
19166     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19167     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19168       # If it failed, the variable was not from the command line. Ignore it,
19169       # but warn the user (except for BASH, which is always set by the calling BASH).
19170       if test "xMAKE" != xBASH; then
19171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19172 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19173       fi
19174       # Try to locate tool using the code snippet
19175 
19176     # Try our hardest to locate a correct version of GNU make
19177     for ac_prog in gmake
19178 do
19179   # Extract the first word of "$ac_prog", so it can be a program name with args.
19180 set dummy $ac_prog; ac_word=$2
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19182 $as_echo_n "checking for $ac_word... " >&6; }
19183 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19184   $as_echo_n "(cached) " >&6
19185 else
19186   case $CHECK_GMAKE in
19187   [\\/]* | ?:[\\/]*)
19188   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19189   ;;
19190   *)
19191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19192 for as_dir in $PATH
19193 do
19194   IFS=$as_save_IFS
19195   test -z "$as_dir" && as_dir=.
19196     for ac_exec_ext in '' $ac_executable_extensions; do
19197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19198     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19200     break 2
19201   fi
19202 done
19203   done
19204 IFS=$as_save_IFS
19205 
19206   ;;
19207 esac
19208 fi
19209 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19210 if test -n "$CHECK_GMAKE"; then
19211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19212 $as_echo "$CHECK_GMAKE" >&6; }
19213 else
19214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215 $as_echo "no" >&6; }
19216 fi
19217 
19218 
19219   test -n "$CHECK_GMAKE" && break
19220 done
19221 
19222 
19223   MAKE_CANDIDATE=""$CHECK_GMAKE""
19224   DESCRIPTION="gmake in PATH"
19225 
19226   # On Cygwin, we require a newer version of make than on other platforms
19227   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19228     MAKE_VERSION_EXPR="-e 4\."
19229     MAKE_REQUIRED_VERSION="4.0"
19230    else
19231     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19232     MAKE_REQUIRED_VERSION="3.81"
19233   fi
19234 
19235   if test "x$MAKE_CANDIDATE" != x; then
19236     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19237 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19238     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19239     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19240     if test "x$IS_GNU_MAKE" = x; then
19241       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19242 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19243     else
19244       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19245       if test "x$IS_MODERN_MAKE" = x; then
19246         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19247 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19248       else
19249         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19250           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19251             MAKE_EXPECTED_ENV='cygwin'
19252           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19253             MAKE_EXPECTED_ENV='msys'
19254           else
19255             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19256           fi
19257           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19258           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19259         else
19260           # Not relevant for non-Windows
19261           IS_MAKE_CORRECT_ENV=true
19262         fi
19263         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19264           { $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
19265 $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;}
19266         else
19267           FOUND_MAKE=$MAKE_CANDIDATE
19268 
19269   # Only process if variable expands to non-empty
19270 
19271   if test "x$FOUND_MAKE" != x; then
19272     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19273 
19274   # First separate the path from the arguments. This will split at the first
19275   # space.
19276   complete="$FOUND_MAKE"
19277   path="${complete%% *}"
19278   tmp="$complete EOL"
19279   arguments="${tmp#* }"
19280 
19281   # Input might be given as Windows format, start by converting to
19282   # unix format.
19283   new_path=`$CYGPATH -u "$path"`
19284 
19285   # Now try to locate executable using which
19286   new_path=`$WHICH "$new_path" 2> /dev/null`
19287   # bat and cmd files are not always considered executable in cygwin causing which
19288   # to not find them
19289   if test "x$new_path" = x \
19290       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19291       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19292     new_path=`$CYGPATH -u "$path"`
19293   fi
19294   if test "x$new_path" = x; then
19295     # Oops. Which didn't find the executable.
19296     # The splitting of arguments from the executable at a space might have been incorrect,
19297     # since paths with space are more likely in Windows. Give it another try with the whole
19298     # argument.
19299     path="$complete"
19300     arguments="EOL"
19301     new_path=`$CYGPATH -u "$path"`
19302     new_path=`$WHICH "$new_path" 2> /dev/null`
19303     # bat and cmd files are not always considered executable in cygwin causing which
19304     # to not find them
19305     if test "x$new_path" = x \
19306         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19307         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19308       new_path=`$CYGPATH -u "$path"`
19309     fi
19310     if test "x$new_path" = x; then
19311       # It's still not found. Now this is an unrecoverable error.
19312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19313 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19314       has_space=`$ECHO "$complete" | $GREP " "`
19315       if test "x$has_space" != x; then
19316         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19317 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19318       fi
19319       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19320     fi
19321   fi
19322 
19323   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19324   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19325   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19326   # "foo.exe" is OK but "foo" is an error.
19327   #
19328   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19329   # It is also a way to make sure we got the proper file name for the real test later on.
19330   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19331   if test "x$test_shortpath" = x; then
19332     # Short path failed, file does not exist as specified.
19333     # Try adding .exe or .cmd
19334     if test -f "${new_path}.exe"; then
19335       input_to_shortpath="${new_path}.exe"
19336     elif test -f "${new_path}.cmd"; then
19337       input_to_shortpath="${new_path}.cmd"
19338     else
19339       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19340 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19341       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19342 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19343       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19344     fi
19345   else
19346     input_to_shortpath="$new_path"
19347   fi
19348 
19349   # Call helper function which possibly converts this using DOS-style short mode.
19350   # If so, the updated path is stored in $new_path.
19351   new_path="$input_to_shortpath"
19352 
19353   input_path="$input_to_shortpath"
19354   # Check if we need to convert this using DOS-style short mode. If the path
19355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19356   # take no chances and rewrite it.
19357   # Note: m4 eats our [], so we need to use [ and ] instead.
19358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19359   if test "x$has_forbidden_chars" != x; then
19360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19361     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19362     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19363     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19364       # Going to short mode and back again did indeed matter. Since short mode is
19365       # case insensitive, let's make it lowercase to improve readability.
19366       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19367       # Now convert it back to Unix-style (cygpath)
19368       input_path=`$CYGPATH -u "$shortmode_path"`
19369       new_path="$input_path"
19370     fi
19371   fi
19372 
19373   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19374   if test "x$test_cygdrive_prefix" = x; then
19375     # As a simple fix, exclude /usr/bin since it's not a real path.
19376     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19377       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19378       # a path prefixed by /cygdrive for fixpath to work.
19379       new_path="$CYGWIN_ROOT_PATH$input_path"
19380     fi
19381   fi
19382 
19383   # remove trailing .exe if any
19384   new_path="${new_path/%.exe/}"
19385 
19386     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19387 
19388   # First separate the path from the arguments. This will split at the first
19389   # space.
19390   complete="$FOUND_MAKE"
19391   path="${complete%% *}"
19392   tmp="$complete EOL"
19393   arguments="${tmp#* }"
19394 
19395   # Input might be given as Windows format, start by converting to
19396   # unix format.
19397   new_path="$path"
19398 
19399   windows_path="$new_path"
19400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19401     unix_path=`$CYGPATH -u "$windows_path"`
19402     new_path="$unix_path"
19403   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19404     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19405     new_path="$unix_path"
19406   fi
19407 
19408 
19409   # Now try to locate executable using which
19410   new_path=`$WHICH "$new_path" 2> /dev/null`
19411 
19412   if test "x$new_path" = x; then
19413     # Oops. Which didn't find the executable.
19414     # The splitting of arguments from the executable at a space might have been incorrect,
19415     # since paths with space are more likely in Windows. Give it another try with the whole
19416     # argument.
19417     path="$complete"
19418     arguments="EOL"
19419     new_path="$path"
19420 
19421   windows_path="$new_path"
19422   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19423     unix_path=`$CYGPATH -u "$windows_path"`
19424     new_path="$unix_path"
19425   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19426     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19427     new_path="$unix_path"
19428   fi
19429 
19430 
19431     new_path=`$WHICH "$new_path" 2> /dev/null`
19432     # bat and cmd files are not always considered executable in MSYS causing which
19433     # to not find them
19434     if test "x$new_path" = x \
19435         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19436         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19437       new_path="$path"
19438 
19439   windows_path="$new_path"
19440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19441     unix_path=`$CYGPATH -u "$windows_path"`
19442     new_path="$unix_path"
19443   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19444     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19445     new_path="$unix_path"
19446   fi
19447 
19448     fi
19449 
19450     if test "x$new_path" = x; then
19451       # It's still not found. Now this is an unrecoverable error.
19452       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19453 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19454       has_space=`$ECHO "$complete" | $GREP " "`
19455       if test "x$has_space" != x; then
19456         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19457 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19458       fi
19459       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19460     fi
19461   fi
19462 
19463   # Now new_path has a complete unix path to the binary
19464   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19465     # Keep paths in /bin as-is, but remove trailing .exe if any
19466     new_path="${new_path/%.exe/}"
19467     # Do not save /bin paths to all_fixpath_prefixes!
19468   else
19469     # Not in mixed or Windows style, start by that.
19470     new_path=`cmd //c echo $new_path`
19471 
19472   input_path="$new_path"
19473   # Check if we need to convert this using DOS-style short mode. If the path
19474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19475   # take no chances and rewrite it.
19476   # Note: m4 eats our [], so we need to use [ and ] instead.
19477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19478   if test "x$has_forbidden_chars" != x; then
19479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19480     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19481   fi
19482 
19483     # Output is in $new_path
19484 
19485   windows_path="$new_path"
19486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19487     unix_path=`$CYGPATH -u "$windows_path"`
19488     new_path="$unix_path"
19489   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19490     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19491     new_path="$unix_path"
19492   fi
19493 
19494     # remove trailing .exe if any
19495     new_path="${new_path/%.exe/}"
19496 
19497     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19498     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19499   fi
19500 
19501     else
19502       # We're on a unix platform. Hooray! :)
19503       # First separate the path from the arguments. This will split at the first
19504       # space.
19505       complete="$FOUND_MAKE"
19506       path="${complete%% *}"
19507       tmp="$complete EOL"
19508       arguments="${tmp#* }"
19509 
19510       # Cannot rely on the command "which" here since it doesn't always work.
19511       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19512       if test -z "$is_absolute_path"; then
19513         # Path to executable is not absolute. Find it.
19514         IFS_save="$IFS"
19515         IFS=:
19516         for p in $PATH; do
19517           if test -f "$p/$path" && test -x "$p/$path"; then
19518             new_path="$p/$path"
19519             break
19520           fi
19521         done
19522         IFS="$IFS_save"
19523       else
19524         # This is an absolute path, we can use it without further modifications.
19525         new_path="$path"
19526       fi
19527 
19528       if test "x$new_path" = x; then
19529         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19530 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19531         has_space=`$ECHO "$complete" | $GREP " "`
19532         if test "x$has_space" != x; then
19533           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19534 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19535         fi
19536         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19537       fi
19538     fi
19539 
19540     # Now join together the path and the arguments once again
19541     if test "x$arguments" != xEOL; then
19542       new_complete="$new_path ${arguments% *}"
19543     else
19544       new_complete="$new_path"
19545     fi
19546 
19547     if test "x$complete" != "x$new_complete"; then
19548       FOUND_MAKE="$new_complete"
19549       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19550 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19551     fi
19552   fi
19553 
19554         fi
19555       fi
19556     fi
19557   fi
19558 
19559 
19560     if test "x$FOUND_MAKE" = x; then
19561       for ac_prog in make
19562 do
19563   # Extract the first word of "$ac_prog", so it can be a program name with args.
19564 set dummy $ac_prog; ac_word=$2
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19566 $as_echo_n "checking for $ac_word... " >&6; }
19567 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19568   $as_echo_n "(cached) " >&6
19569 else
19570   case $CHECK_MAKE in
19571   [\\/]* | ?:[\\/]*)
19572   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19573   ;;
19574   *)
19575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19576 for as_dir in $PATH
19577 do
19578   IFS=$as_save_IFS
19579   test -z "$as_dir" && as_dir=.
19580     for ac_exec_ext in '' $ac_executable_extensions; do
19581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19582     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19584     break 2
19585   fi
19586 done
19587   done
19588 IFS=$as_save_IFS
19589 
19590   ;;
19591 esac
19592 fi
19593 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19594 if test -n "$CHECK_MAKE"; then
19595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19596 $as_echo "$CHECK_MAKE" >&6; }
19597 else
19598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19599 $as_echo "no" >&6; }
19600 fi
19601 
19602 
19603   test -n "$CHECK_MAKE" && break
19604 done
19605 
19606 
19607   MAKE_CANDIDATE=""$CHECK_MAKE""
19608   DESCRIPTION="make in PATH"
19609 
19610   # On Cygwin, we require a newer version of make than on other platforms
19611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19612     MAKE_VERSION_EXPR="-e 4\."
19613     MAKE_REQUIRED_VERSION="4.0"
19614    else
19615     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19616     MAKE_REQUIRED_VERSION="3.81"
19617   fi
19618 
19619   if test "x$MAKE_CANDIDATE" != x; then
19620     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19621 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19622     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19623     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19624     if test "x$IS_GNU_MAKE" = x; then
19625       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19626 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19627     else
19628       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19629       if test "x$IS_MODERN_MAKE" = x; then
19630         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19631 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19632       else
19633         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19634           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19635             MAKE_EXPECTED_ENV='cygwin'
19636           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19637             MAKE_EXPECTED_ENV='msys'
19638           else
19639             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19640           fi
19641           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19642           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19643         else
19644           # Not relevant for non-Windows
19645           IS_MAKE_CORRECT_ENV=true
19646         fi
19647         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19648           { $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
19649 $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;}
19650         else
19651           FOUND_MAKE=$MAKE_CANDIDATE
19652 
19653   # Only process if variable expands to non-empty
19654 
19655   if test "x$FOUND_MAKE" != x; then
19656     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19657 
19658   # First separate the path from the arguments. This will split at the first
19659   # space.
19660   complete="$FOUND_MAKE"
19661   path="${complete%% *}"
19662   tmp="$complete EOL"
19663   arguments="${tmp#* }"
19664 
19665   # Input might be given as Windows format, start by converting to
19666   # unix format.
19667   new_path=`$CYGPATH -u "$path"`
19668 
19669   # Now try to locate executable using which
19670   new_path=`$WHICH "$new_path" 2> /dev/null`
19671   # bat and cmd files are not always considered executable in cygwin causing which
19672   # to not find them
19673   if test "x$new_path" = x \
19674       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19675       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19676     new_path=`$CYGPATH -u "$path"`
19677   fi
19678   if test "x$new_path" = x; then
19679     # Oops. Which didn't find the executable.
19680     # The splitting of arguments from the executable at a space might have been incorrect,
19681     # since paths with space are more likely in Windows. Give it another try with the whole
19682     # argument.
19683     path="$complete"
19684     arguments="EOL"
19685     new_path=`$CYGPATH -u "$path"`
19686     new_path=`$WHICH "$new_path" 2> /dev/null`
19687     # bat and cmd files are not always considered executable in cygwin causing which
19688     # to not find them
19689     if test "x$new_path" = x \
19690         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19691         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19692       new_path=`$CYGPATH -u "$path"`
19693     fi
19694     if test "x$new_path" = x; then
19695       # It's still not found. Now this is an unrecoverable error.
19696       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19698       has_space=`$ECHO "$complete" | $GREP " "`
19699       if test "x$has_space" != x; then
19700         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19702       fi
19703       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19704     fi
19705   fi
19706 
19707   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19708   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19709   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19710   # "foo.exe" is OK but "foo" is an error.
19711   #
19712   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19713   # It is also a way to make sure we got the proper file name for the real test later on.
19714   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19715   if test "x$test_shortpath" = x; then
19716     # Short path failed, file does not exist as specified.
19717     # Try adding .exe or .cmd
19718     if test -f "${new_path}.exe"; then
19719       input_to_shortpath="${new_path}.exe"
19720     elif test -f "${new_path}.cmd"; then
19721       input_to_shortpath="${new_path}.cmd"
19722     else
19723       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19724 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19725       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19726 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19727       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19728     fi
19729   else
19730     input_to_shortpath="$new_path"
19731   fi
19732 
19733   # Call helper function which possibly converts this using DOS-style short mode.
19734   # If so, the updated path is stored in $new_path.
19735   new_path="$input_to_shortpath"
19736 
19737   input_path="$input_to_shortpath"
19738   # Check if we need to convert this using DOS-style short mode. If the path
19739   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19740   # take no chances and rewrite it.
19741   # Note: m4 eats our [], so we need to use [ and ] instead.
19742   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19743   if test "x$has_forbidden_chars" != x; then
19744     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19745     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19746     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19747     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19748       # Going to short mode and back again did indeed matter. Since short mode is
19749       # case insensitive, let's make it lowercase to improve readability.
19750       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19751       # Now convert it back to Unix-style (cygpath)
19752       input_path=`$CYGPATH -u "$shortmode_path"`
19753       new_path="$input_path"
19754     fi
19755   fi
19756 
19757   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19758   if test "x$test_cygdrive_prefix" = x; then
19759     # As a simple fix, exclude /usr/bin since it's not a real path.
19760     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19761       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19762       # a path prefixed by /cygdrive for fixpath to work.
19763       new_path="$CYGWIN_ROOT_PATH$input_path"
19764     fi
19765   fi
19766 
19767   # remove trailing .exe if any
19768   new_path="${new_path/%.exe/}"
19769 
19770     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19771 
19772   # First separate the path from the arguments. This will split at the first
19773   # space.
19774   complete="$FOUND_MAKE"
19775   path="${complete%% *}"
19776   tmp="$complete EOL"
19777   arguments="${tmp#* }"
19778 
19779   # Input might be given as Windows format, start by converting to
19780   # unix format.
19781   new_path="$path"
19782 
19783   windows_path="$new_path"
19784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19785     unix_path=`$CYGPATH -u "$windows_path"`
19786     new_path="$unix_path"
19787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19788     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19789     new_path="$unix_path"
19790   fi
19791 
19792 
19793   # Now try to locate executable using which
19794   new_path=`$WHICH "$new_path" 2> /dev/null`
19795 
19796   if test "x$new_path" = x; then
19797     # Oops. Which didn't find the executable.
19798     # The splitting of arguments from the executable at a space might have been incorrect,
19799     # since paths with space are more likely in Windows. Give it another try with the whole
19800     # argument.
19801     path="$complete"
19802     arguments="EOL"
19803     new_path="$path"
19804 
19805   windows_path="$new_path"
19806   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19807     unix_path=`$CYGPATH -u "$windows_path"`
19808     new_path="$unix_path"
19809   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19810     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19811     new_path="$unix_path"
19812   fi
19813 
19814 
19815     new_path=`$WHICH "$new_path" 2> /dev/null`
19816     # bat and cmd files are not always considered executable in MSYS causing which
19817     # to not find them
19818     if test "x$new_path" = x \
19819         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19820         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19821       new_path="$path"
19822 
19823   windows_path="$new_path"
19824   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19825     unix_path=`$CYGPATH -u "$windows_path"`
19826     new_path="$unix_path"
19827   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19828     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19829     new_path="$unix_path"
19830   fi
19831 
19832     fi
19833 
19834     if test "x$new_path" = x; then
19835       # It's still not found. Now this is an unrecoverable error.
19836       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19837 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19838       has_space=`$ECHO "$complete" | $GREP " "`
19839       if test "x$has_space" != x; then
19840         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19841 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19842       fi
19843       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19844     fi
19845   fi
19846 
19847   # Now new_path has a complete unix path to the binary
19848   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19849     # Keep paths in /bin as-is, but remove trailing .exe if any
19850     new_path="${new_path/%.exe/}"
19851     # Do not save /bin paths to all_fixpath_prefixes!
19852   else
19853     # Not in mixed or Windows style, start by that.
19854     new_path=`cmd //c echo $new_path`
19855 
19856   input_path="$new_path"
19857   # Check if we need to convert this using DOS-style short mode. If the path
19858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19859   # take no chances and rewrite it.
19860   # Note: m4 eats our [], so we need to use [ and ] instead.
19861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19862   if test "x$has_forbidden_chars" != x; then
19863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19864     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19865   fi
19866 
19867     # Output is in $new_path
19868 
19869   windows_path="$new_path"
19870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19871     unix_path=`$CYGPATH -u "$windows_path"`
19872     new_path="$unix_path"
19873   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19874     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19875     new_path="$unix_path"
19876   fi
19877 
19878     # remove trailing .exe if any
19879     new_path="${new_path/%.exe/}"
19880 
19881     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19882     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19883   fi
19884 
19885     else
19886       # We're on a unix platform. Hooray! :)
19887       # First separate the path from the arguments. This will split at the first
19888       # space.
19889       complete="$FOUND_MAKE"
19890       path="${complete%% *}"
19891       tmp="$complete EOL"
19892       arguments="${tmp#* }"
19893 
19894       # Cannot rely on the command "which" here since it doesn't always work.
19895       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19896       if test -z "$is_absolute_path"; then
19897         # Path to executable is not absolute. Find it.
19898         IFS_save="$IFS"
19899         IFS=:
19900         for p in $PATH; do
19901           if test -f "$p/$path" && test -x "$p/$path"; then
19902             new_path="$p/$path"
19903             break
19904           fi
19905         done
19906         IFS="$IFS_save"
19907       else
19908         # This is an absolute path, we can use it without further modifications.
19909         new_path="$path"
19910       fi
19911 
19912       if test "x$new_path" = x; then
19913         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19914 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19915         has_space=`$ECHO "$complete" | $GREP " "`
19916         if test "x$has_space" != x; then
19917           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19918 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19919         fi
19920         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19921       fi
19922     fi
19923 
19924     # Now join together the path and the arguments once again
19925     if test "x$arguments" != xEOL; then
19926       new_complete="$new_path ${arguments% *}"
19927     else
19928       new_complete="$new_path"
19929     fi
19930 
19931     if test "x$complete" != "x$new_complete"; then
19932       FOUND_MAKE="$new_complete"
19933       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19934 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19935     fi
19936   fi
19937 
19938         fi
19939       fi
19940     fi
19941   fi
19942 
19943     fi
19944 
19945     if test "x$FOUND_MAKE" = x; then
19946       if test "x$TOOLCHAIN_PATH" != x; then
19947         # We have a toolchain path, check that as well before giving up.
19948         OLD_PATH=$PATH
19949         PATH=$TOOLCHAIN_PATH:$PATH
19950         for ac_prog in gmake
19951 do
19952   # Extract the first word of "$ac_prog", so it can be a program name with args.
19953 set dummy $ac_prog; ac_word=$2
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19955 $as_echo_n "checking for $ac_word... " >&6; }
19956 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19957   $as_echo_n "(cached) " >&6
19958 else
19959   case $CHECK_TOOLSDIR_GMAKE in
19960   [\\/]* | ?:[\\/]*)
19961   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19962   ;;
19963   *)
19964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19965 for as_dir in $PATH
19966 do
19967   IFS=$as_save_IFS
19968   test -z "$as_dir" && as_dir=.
19969     for ac_exec_ext in '' $ac_executable_extensions; do
19970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19971     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19973     break 2
19974   fi
19975 done
19976   done
19977 IFS=$as_save_IFS
19978 
19979   ;;
19980 esac
19981 fi
19982 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19983 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19985 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19986 else
19987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19988 $as_echo "no" >&6; }
19989 fi
19990 
19991 
19992   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19993 done
19994 
19995 
19996   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19997   DESCRIPTION="gmake in tools-dir"
19998 
19999   # On Cygwin, we require a newer version of make than on other platforms
20000   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20001     MAKE_VERSION_EXPR="-e 4\."
20002     MAKE_REQUIRED_VERSION="4.0"
20003    else
20004     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20005     MAKE_REQUIRED_VERSION="3.81"
20006   fi
20007 
20008   if test "x$MAKE_CANDIDATE" != x; then
20009     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20010 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20011     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20012     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20013     if test "x$IS_GNU_MAKE" = x; then
20014       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20015 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20016     else
20017       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20018       if test "x$IS_MODERN_MAKE" = x; then
20019         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
20020 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
20021       else
20022         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20023           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20024             MAKE_EXPECTED_ENV='cygwin'
20025           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20026             MAKE_EXPECTED_ENV='msys'
20027           else
20028             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20029           fi
20030           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20031           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20032         else
20033           # Not relevant for non-Windows
20034           IS_MAKE_CORRECT_ENV=true
20035         fi
20036         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20037           { $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
20038 $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;}
20039         else
20040           FOUND_MAKE=$MAKE_CANDIDATE
20041 
20042   # Only process if variable expands to non-empty
20043 
20044   if test "x$FOUND_MAKE" != x; then
20045     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20046 
20047   # First separate the path from the arguments. This will split at the first
20048   # space.
20049   complete="$FOUND_MAKE"
20050   path="${complete%% *}"
20051   tmp="$complete EOL"
20052   arguments="${tmp#* }"
20053 
20054   # Input might be given as Windows format, start by converting to
20055   # unix format.
20056   new_path=`$CYGPATH -u "$path"`
20057 
20058   # Now try to locate executable using which
20059   new_path=`$WHICH "$new_path" 2> /dev/null`
20060   # bat and cmd files are not always considered executable in cygwin causing which
20061   # to not find them
20062   if test "x$new_path" = x \
20063       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20064       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20065     new_path=`$CYGPATH -u "$path"`
20066   fi
20067   if test "x$new_path" = x; then
20068     # Oops. Which didn't find the executable.
20069     # The splitting of arguments from the executable at a space might have been incorrect,
20070     # since paths with space are more likely in Windows. Give it another try with the whole
20071     # argument.
20072     path="$complete"
20073     arguments="EOL"
20074     new_path=`$CYGPATH -u "$path"`
20075     new_path=`$WHICH "$new_path" 2> /dev/null`
20076     # bat and cmd files are not always considered executable in cygwin causing which
20077     # to not find them
20078     if test "x$new_path" = x \
20079         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20080         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20081       new_path=`$CYGPATH -u "$path"`
20082     fi
20083     if test "x$new_path" = x; then
20084       # It's still not found. Now this is an unrecoverable error.
20085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20086 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20087       has_space=`$ECHO "$complete" | $GREP " "`
20088       if test "x$has_space" != x; then
20089         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20090 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20091       fi
20092       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20093     fi
20094   fi
20095 
20096   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20097   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20098   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20099   # "foo.exe" is OK but "foo" is an error.
20100   #
20101   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20102   # It is also a way to make sure we got the proper file name for the real test later on.
20103   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20104   if test "x$test_shortpath" = x; then
20105     # Short path failed, file does not exist as specified.
20106     # Try adding .exe or .cmd
20107     if test -f "${new_path}.exe"; then
20108       input_to_shortpath="${new_path}.exe"
20109     elif test -f "${new_path}.cmd"; then
20110       input_to_shortpath="${new_path}.cmd"
20111     else
20112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20113 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20114       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20115 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20116       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20117     fi
20118   else
20119     input_to_shortpath="$new_path"
20120   fi
20121 
20122   # Call helper function which possibly converts this using DOS-style short mode.
20123   # If so, the updated path is stored in $new_path.
20124   new_path="$input_to_shortpath"
20125 
20126   input_path="$input_to_shortpath"
20127   # Check if we need to convert this using DOS-style short mode. If the path
20128   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20129   # take no chances and rewrite it.
20130   # Note: m4 eats our [], so we need to use [ and ] instead.
20131   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20132   if test "x$has_forbidden_chars" != x; then
20133     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20134     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20135     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20136     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20137       # Going to short mode and back again did indeed matter. Since short mode is
20138       # case insensitive, let's make it lowercase to improve readability.
20139       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20140       # Now convert it back to Unix-style (cygpath)
20141       input_path=`$CYGPATH -u "$shortmode_path"`
20142       new_path="$input_path"
20143     fi
20144   fi
20145 
20146   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20147   if test "x$test_cygdrive_prefix" = x; then
20148     # As a simple fix, exclude /usr/bin since it's not a real path.
20149     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20150       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20151       # a path prefixed by /cygdrive for fixpath to work.
20152       new_path="$CYGWIN_ROOT_PATH$input_path"
20153     fi
20154   fi
20155 
20156   # remove trailing .exe if any
20157   new_path="${new_path/%.exe/}"
20158 
20159     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20160 
20161   # First separate the path from the arguments. This will split at the first
20162   # space.
20163   complete="$FOUND_MAKE"
20164   path="${complete%% *}"
20165   tmp="$complete EOL"
20166   arguments="${tmp#* }"
20167 
20168   # Input might be given as Windows format, start by converting to
20169   # unix format.
20170   new_path="$path"
20171 
20172   windows_path="$new_path"
20173   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20174     unix_path=`$CYGPATH -u "$windows_path"`
20175     new_path="$unix_path"
20176   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20177     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20178     new_path="$unix_path"
20179   fi
20180 
20181 
20182   # Now try to locate executable using which
20183   new_path=`$WHICH "$new_path" 2> /dev/null`
20184 
20185   if test "x$new_path" = x; then
20186     # Oops. Which didn't find the executable.
20187     # The splitting of arguments from the executable at a space might have been incorrect,
20188     # since paths with space are more likely in Windows. Give it another try with the whole
20189     # argument.
20190     path="$complete"
20191     arguments="EOL"
20192     new_path="$path"
20193 
20194   windows_path="$new_path"
20195   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20196     unix_path=`$CYGPATH -u "$windows_path"`
20197     new_path="$unix_path"
20198   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20199     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20200     new_path="$unix_path"
20201   fi
20202 
20203 
20204     new_path=`$WHICH "$new_path" 2> /dev/null`
20205     # bat and cmd files are not always considered executable in MSYS causing which
20206     # to not find them
20207     if test "x$new_path" = x \
20208         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20209         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20210       new_path="$path"
20211 
20212   windows_path="$new_path"
20213   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20214     unix_path=`$CYGPATH -u "$windows_path"`
20215     new_path="$unix_path"
20216   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20217     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20218     new_path="$unix_path"
20219   fi
20220 
20221     fi
20222 
20223     if test "x$new_path" = x; then
20224       # It's still not found. Now this is an unrecoverable error.
20225       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20227       has_space=`$ECHO "$complete" | $GREP " "`
20228       if test "x$has_space" != x; then
20229         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20230 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20231       fi
20232       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20233     fi
20234   fi
20235 
20236   # Now new_path has a complete unix path to the binary
20237   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20238     # Keep paths in /bin as-is, but remove trailing .exe if any
20239     new_path="${new_path/%.exe/}"
20240     # Do not save /bin paths to all_fixpath_prefixes!
20241   else
20242     # Not in mixed or Windows style, start by that.
20243     new_path=`cmd //c echo $new_path`
20244 
20245   input_path="$new_path"
20246   # Check if we need to convert this using DOS-style short mode. If the path
20247   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20248   # take no chances and rewrite it.
20249   # Note: m4 eats our [], so we need to use [ and ] instead.
20250   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20251   if test "x$has_forbidden_chars" != x; then
20252     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20253     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20254   fi
20255 
20256     # Output is in $new_path
20257 
20258   windows_path="$new_path"
20259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20260     unix_path=`$CYGPATH -u "$windows_path"`
20261     new_path="$unix_path"
20262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20263     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20264     new_path="$unix_path"
20265   fi
20266 
20267     # remove trailing .exe if any
20268     new_path="${new_path/%.exe/}"
20269 
20270     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20271     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20272   fi
20273 
20274     else
20275       # We're on a unix platform. Hooray! :)
20276       # First separate the path from the arguments. This will split at the first
20277       # space.
20278       complete="$FOUND_MAKE"
20279       path="${complete%% *}"
20280       tmp="$complete EOL"
20281       arguments="${tmp#* }"
20282 
20283       # Cannot rely on the command "which" here since it doesn't always work.
20284       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20285       if test -z "$is_absolute_path"; then
20286         # Path to executable is not absolute. Find it.
20287         IFS_save="$IFS"
20288         IFS=:
20289         for p in $PATH; do
20290           if test -f "$p/$path" && test -x "$p/$path"; then
20291             new_path="$p/$path"
20292             break
20293           fi
20294         done
20295         IFS="$IFS_save"
20296       else
20297         # This is an absolute path, we can use it without further modifications.
20298         new_path="$path"
20299       fi
20300 
20301       if test "x$new_path" = x; then
20302         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20303 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20304         has_space=`$ECHO "$complete" | $GREP " "`
20305         if test "x$has_space" != x; then
20306           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20307 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20308         fi
20309         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20310       fi
20311     fi
20312 
20313     # Now join together the path and the arguments once again
20314     if test "x$arguments" != xEOL; then
20315       new_complete="$new_path ${arguments% *}"
20316     else
20317       new_complete="$new_path"
20318     fi
20319 
20320     if test "x$complete" != "x$new_complete"; then
20321       FOUND_MAKE="$new_complete"
20322       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20323 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20324     fi
20325   fi
20326 
20327         fi
20328       fi
20329     fi
20330   fi
20331 
20332         if test "x$FOUND_MAKE" = x; then
20333           for ac_prog in make
20334 do
20335   # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20338 $as_echo_n "checking for $ac_word... " >&6; }
20339 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20340   $as_echo_n "(cached) " >&6
20341 else
20342   case $CHECK_TOOLSDIR_MAKE in
20343   [\\/]* | ?:[\\/]*)
20344   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20345   ;;
20346   *)
20347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20348 for as_dir in $PATH
20349 do
20350   IFS=$as_save_IFS
20351   test -z "$as_dir" && as_dir=.
20352     for ac_exec_ext in '' $ac_executable_extensions; do
20353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20354     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20356     break 2
20357   fi
20358 done
20359   done
20360 IFS=$as_save_IFS
20361 
20362   ;;
20363 esac
20364 fi
20365 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20366 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20368 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20369 else
20370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20371 $as_echo "no" >&6; }
20372 fi
20373 
20374 
20375   test -n "$CHECK_TOOLSDIR_MAKE" && break
20376 done
20377 
20378 
20379   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20380   DESCRIPTION="make in tools-dir"
20381 
20382   # On Cygwin, we require a newer version of make than on other platforms
20383   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20384     MAKE_VERSION_EXPR="-e 4\."
20385     MAKE_REQUIRED_VERSION="4.0"
20386    else
20387     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20388     MAKE_REQUIRED_VERSION="3.81"
20389   fi
20390 
20391   if test "x$MAKE_CANDIDATE" != x; then
20392     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20393 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20394     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20395     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20396     if test "x$IS_GNU_MAKE" = x; then
20397       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20398 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20399     else
20400       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20401       if test "x$IS_MODERN_MAKE" = x; then
20402         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
20403 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
20404       else
20405         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20406           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20407             MAKE_EXPECTED_ENV='cygwin'
20408           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20409             MAKE_EXPECTED_ENV='msys'
20410           else
20411             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20412           fi
20413           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20414           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20415         else
20416           # Not relevant for non-Windows
20417           IS_MAKE_CORRECT_ENV=true
20418         fi
20419         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20420           { $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
20421 $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;}
20422         else
20423           FOUND_MAKE=$MAKE_CANDIDATE
20424 
20425   # Only process if variable expands to non-empty
20426 
20427   if test "x$FOUND_MAKE" != x; then
20428     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20429 
20430   # First separate the path from the arguments. This will split at the first
20431   # space.
20432   complete="$FOUND_MAKE"
20433   path="${complete%% *}"
20434   tmp="$complete EOL"
20435   arguments="${tmp#* }"
20436 
20437   # Input might be given as Windows format, start by converting to
20438   # unix format.
20439   new_path=`$CYGPATH -u "$path"`
20440 
20441   # Now try to locate executable using which
20442   new_path=`$WHICH "$new_path" 2> /dev/null`
20443   # bat and cmd files are not always considered executable in cygwin causing which
20444   # to not find them
20445   if test "x$new_path" = x \
20446       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20447       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20448     new_path=`$CYGPATH -u "$path"`
20449   fi
20450   if test "x$new_path" = x; then
20451     # Oops. Which didn't find the executable.
20452     # The splitting of arguments from the executable at a space might have been incorrect,
20453     # since paths with space are more likely in Windows. Give it another try with the whole
20454     # argument.
20455     path="$complete"
20456     arguments="EOL"
20457     new_path=`$CYGPATH -u "$path"`
20458     new_path=`$WHICH "$new_path" 2> /dev/null`
20459     # bat and cmd files are not always considered executable in cygwin causing which
20460     # to not find them
20461     if test "x$new_path" = x \
20462         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20463         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20464       new_path=`$CYGPATH -u "$path"`
20465     fi
20466     if test "x$new_path" = x; then
20467       # It's still not found. Now this is an unrecoverable error.
20468       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20469 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20470       has_space=`$ECHO "$complete" | $GREP " "`
20471       if test "x$has_space" != x; then
20472         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20474       fi
20475       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20476     fi
20477   fi
20478 
20479   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20480   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20481   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20482   # "foo.exe" is OK but "foo" is an error.
20483   #
20484   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20485   # It is also a way to make sure we got the proper file name for the real test later on.
20486   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20487   if test "x$test_shortpath" = x; then
20488     # Short path failed, file does not exist as specified.
20489     # Try adding .exe or .cmd
20490     if test -f "${new_path}.exe"; then
20491       input_to_shortpath="${new_path}.exe"
20492     elif test -f "${new_path}.cmd"; then
20493       input_to_shortpath="${new_path}.cmd"
20494     else
20495       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20496 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20497       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20498 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20499       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20500     fi
20501   else
20502     input_to_shortpath="$new_path"
20503   fi
20504 
20505   # Call helper function which possibly converts this using DOS-style short mode.
20506   # If so, the updated path is stored in $new_path.
20507   new_path="$input_to_shortpath"
20508 
20509   input_path="$input_to_shortpath"
20510   # Check if we need to convert this using DOS-style short mode. If the path
20511   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20512   # take no chances and rewrite it.
20513   # Note: m4 eats our [], so we need to use [ and ] instead.
20514   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20515   if test "x$has_forbidden_chars" != x; then
20516     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20517     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20518     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20519     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20520       # Going to short mode and back again did indeed matter. Since short mode is
20521       # case insensitive, let's make it lowercase to improve readability.
20522       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20523       # Now convert it back to Unix-style (cygpath)
20524       input_path=`$CYGPATH -u "$shortmode_path"`
20525       new_path="$input_path"
20526     fi
20527   fi
20528 
20529   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20530   if test "x$test_cygdrive_prefix" = x; then
20531     # As a simple fix, exclude /usr/bin since it's not a real path.
20532     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20533       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20534       # a path prefixed by /cygdrive for fixpath to work.
20535       new_path="$CYGWIN_ROOT_PATH$input_path"
20536     fi
20537   fi
20538 
20539   # remove trailing .exe if any
20540   new_path="${new_path/%.exe/}"
20541 
20542     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20543 
20544   # First separate the path from the arguments. This will split at the first
20545   # space.
20546   complete="$FOUND_MAKE"
20547   path="${complete%% *}"
20548   tmp="$complete EOL"
20549   arguments="${tmp#* }"
20550 
20551   # Input might be given as Windows format, start by converting to
20552   # unix format.
20553   new_path="$path"
20554 
20555   windows_path="$new_path"
20556   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20557     unix_path=`$CYGPATH -u "$windows_path"`
20558     new_path="$unix_path"
20559   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20560     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20561     new_path="$unix_path"
20562   fi
20563 
20564 
20565   # Now try to locate executable using which
20566   new_path=`$WHICH "$new_path" 2> /dev/null`
20567 
20568   if test "x$new_path" = x; then
20569     # Oops. Which didn't find the executable.
20570     # The splitting of arguments from the executable at a space might have been incorrect,
20571     # since paths with space are more likely in Windows. Give it another try with the whole
20572     # argument.
20573     path="$complete"
20574     arguments="EOL"
20575     new_path="$path"
20576 
20577   windows_path="$new_path"
20578   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20579     unix_path=`$CYGPATH -u "$windows_path"`
20580     new_path="$unix_path"
20581   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20582     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20583     new_path="$unix_path"
20584   fi
20585 
20586 
20587     new_path=`$WHICH "$new_path" 2> /dev/null`
20588     # bat and cmd files are not always considered executable in MSYS causing which
20589     # to not find them
20590     if test "x$new_path" = x \
20591         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20592         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20593       new_path="$path"
20594 
20595   windows_path="$new_path"
20596   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20597     unix_path=`$CYGPATH -u "$windows_path"`
20598     new_path="$unix_path"
20599   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20600     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20601     new_path="$unix_path"
20602   fi
20603 
20604     fi
20605 
20606     if test "x$new_path" = x; then
20607       # It's still not found. Now this is an unrecoverable error.
20608       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20610       has_space=`$ECHO "$complete" | $GREP " "`
20611       if test "x$has_space" != x; then
20612         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20614       fi
20615       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20616     fi
20617   fi
20618 
20619   # Now new_path has a complete unix path to the binary
20620   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20621     # Keep paths in /bin as-is, but remove trailing .exe if any
20622     new_path="${new_path/%.exe/}"
20623     # Do not save /bin paths to all_fixpath_prefixes!
20624   else
20625     # Not in mixed or Windows style, start by that.
20626     new_path=`cmd //c echo $new_path`
20627 
20628   input_path="$new_path"
20629   # Check if we need to convert this using DOS-style short mode. If the path
20630   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20631   # take no chances and rewrite it.
20632   # Note: m4 eats our [], so we need to use [ and ] instead.
20633   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20634   if test "x$has_forbidden_chars" != x; then
20635     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20636     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20637   fi
20638 
20639     # Output is in $new_path
20640 
20641   windows_path="$new_path"
20642   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20643     unix_path=`$CYGPATH -u "$windows_path"`
20644     new_path="$unix_path"
20645   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20646     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20647     new_path="$unix_path"
20648   fi
20649 
20650     # remove trailing .exe if any
20651     new_path="${new_path/%.exe/}"
20652 
20653     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20654     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20655   fi
20656 
20657     else
20658       # We're on a unix platform. Hooray! :)
20659       # First separate the path from the arguments. This will split at the first
20660       # space.
20661       complete="$FOUND_MAKE"
20662       path="${complete%% *}"
20663       tmp="$complete EOL"
20664       arguments="${tmp#* }"
20665 
20666       # Cannot rely on the command "which" here since it doesn't always work.
20667       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20668       if test -z "$is_absolute_path"; then
20669         # Path to executable is not absolute. Find it.
20670         IFS_save="$IFS"
20671         IFS=:
20672         for p in $PATH; do
20673           if test -f "$p/$path" && test -x "$p/$path"; then
20674             new_path="$p/$path"
20675             break
20676           fi
20677         done
20678         IFS="$IFS_save"
20679       else
20680         # This is an absolute path, we can use it without further modifications.
20681         new_path="$path"
20682       fi
20683 
20684       if test "x$new_path" = x; then
20685         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20687         has_space=`$ECHO "$complete" | $GREP " "`
20688         if test "x$has_space" != x; then
20689           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20690 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20691         fi
20692         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20693       fi
20694     fi
20695 
20696     # Now join together the path and the arguments once again
20697     if test "x$arguments" != xEOL; then
20698       new_complete="$new_path ${arguments% *}"
20699     else
20700       new_complete="$new_path"
20701     fi
20702 
20703     if test "x$complete" != "x$new_complete"; then
20704       FOUND_MAKE="$new_complete"
20705       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20706 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20707     fi
20708   fi
20709 
20710         fi
20711       fi
20712     fi
20713   fi
20714 
20715         fi
20716         PATH=$OLD_PATH
20717       fi
20718     fi
20719 
20720     if test "x$FOUND_MAKE" = x; then
20721       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
20722     fi
20723 
20724     else
20725       # If it succeeded, then it was overridden by the user. We will use it
20726       # for the tool.
20727 
20728       # First remove it from the list of overridden variables, so we can test
20729       # for unknown variables in the end.
20730       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20731 
20732       # Check if we try to supply an empty value
20733       if test "x$MAKE" = x; then
20734         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20735 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20737 $as_echo_n "checking for MAKE... " >&6; }
20738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20739 $as_echo "disabled" >&6; }
20740       else
20741         # Check if the provided tool contains a complete path.
20742         tool_specified="$MAKE"
20743         tool_basename="${tool_specified##*/}"
20744         if test "x$tool_basename" = "x$tool_specified"; then
20745           # A command without a complete path is provided, search $PATH.
20746           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20747 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20748           # Extract the first word of "$tool_basename", so it can be a program name with args.
20749 set dummy $tool_basename; ac_word=$2
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20751 $as_echo_n "checking for $ac_word... " >&6; }
20752 if ${ac_cv_path_MAKE+:} false; then :
20753   $as_echo_n "(cached) " >&6
20754 else
20755   case $MAKE in
20756   [\\/]* | ?:[\\/]*)
20757   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20758   ;;
20759   *)
20760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20762 do
20763   IFS=$as_save_IFS
20764   test -z "$as_dir" && as_dir=.
20765     for ac_exec_ext in '' $ac_executable_extensions; do
20766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20767     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20769     break 2
20770   fi
20771 done
20772   done
20773 IFS=$as_save_IFS
20774 
20775   ;;
20776 esac
20777 fi
20778 MAKE=$ac_cv_path_MAKE
20779 if test -n "$MAKE"; then
20780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20781 $as_echo "$MAKE" >&6; }
20782 else
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20785 fi
20786 
20787 
20788           if test "x$MAKE" = x; then
20789             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20790           fi
20791         else
20792           # Otherwise we believe it is a complete path. Use it as it is.
20793           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20794 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20795           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20796 $as_echo_n "checking for MAKE... " >&6; }
20797           if test ! -x "$tool_specified"; then
20798             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20799 $as_echo "not found" >&6; }
20800             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20801           fi
20802           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20803 $as_echo "$tool_specified" >&6; }
20804         fi
20805       fi
20806     fi
20807 
20808     # If MAKE was set by user, verify the version
20809 
20810   MAKE_CANDIDATE=""$MAKE""
20811   DESCRIPTION="user supplied MAKE=$MAKE"
20812 
20813   # On Cygwin, we require a newer version of make than on other platforms
20814   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20815     MAKE_VERSION_EXPR="-e 4\."
20816     MAKE_REQUIRED_VERSION="4.0"
20817    else
20818     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20819     MAKE_REQUIRED_VERSION="3.81"
20820   fi
20821 
20822   if test "x$MAKE_CANDIDATE" != x; then
20823     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20824 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20825     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20826     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20827     if test "x$IS_GNU_MAKE" = x; then
20828       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20829 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20830     else
20831       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20832       if test "x$IS_MODERN_MAKE" = x; then
20833         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
20834 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
20835       else
20836         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20837           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20838             MAKE_EXPECTED_ENV='cygwin'
20839           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20840             MAKE_EXPECTED_ENV='msys'
20841           else
20842             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20843           fi
20844           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20845           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20846         else
20847           # Not relevant for non-Windows
20848           IS_MAKE_CORRECT_ENV=true
20849         fi
20850         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20851           { $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
20852 $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;}
20853         else
20854           FOUND_MAKE=$MAKE_CANDIDATE
20855 
20856   # Only process if variable expands to non-empty
20857 
20858   if test "x$FOUND_MAKE" != x; then
20859     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20860 
20861   # First separate the path from the arguments. This will split at the first
20862   # space.
20863   complete="$FOUND_MAKE"
20864   path="${complete%% *}"
20865   tmp="$complete EOL"
20866   arguments="${tmp#* }"
20867 
20868   # Input might be given as Windows format, start by converting to
20869   # unix format.
20870   new_path=`$CYGPATH -u "$path"`
20871 
20872   # Now try to locate executable using which
20873   new_path=`$WHICH "$new_path" 2> /dev/null`
20874   # bat and cmd files are not always considered executable in cygwin causing which
20875   # to not find them
20876   if test "x$new_path" = x \
20877       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20878       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20879     new_path=`$CYGPATH -u "$path"`
20880   fi
20881   if test "x$new_path" = x; then
20882     # Oops. Which didn't find the executable.
20883     # The splitting of arguments from the executable at a space might have been incorrect,
20884     # since paths with space are more likely in Windows. Give it another try with the whole
20885     # argument.
20886     path="$complete"
20887     arguments="EOL"
20888     new_path=`$CYGPATH -u "$path"`
20889     new_path=`$WHICH "$new_path" 2> /dev/null`
20890     # bat and cmd files are not always considered executable in cygwin causing which
20891     # to not find them
20892     if test "x$new_path" = x \
20893         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20894         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20895       new_path=`$CYGPATH -u "$path"`
20896     fi
20897     if test "x$new_path" = x; then
20898       # It's still not found. Now this is an unrecoverable error.
20899       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20900 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20901       has_space=`$ECHO "$complete" | $GREP " "`
20902       if test "x$has_space" != x; then
20903         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20904 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20905       fi
20906       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20907     fi
20908   fi
20909 
20910   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20911   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20912   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20913   # "foo.exe" is OK but "foo" is an error.
20914   #
20915   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20916   # It is also a way to make sure we got the proper file name for the real test later on.
20917   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20918   if test "x$test_shortpath" = x; then
20919     # Short path failed, file does not exist as specified.
20920     # Try adding .exe or .cmd
20921     if test -f "${new_path}.exe"; then
20922       input_to_shortpath="${new_path}.exe"
20923     elif test -f "${new_path}.cmd"; then
20924       input_to_shortpath="${new_path}.cmd"
20925     else
20926       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20927 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20928       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20929 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20930       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20931     fi
20932   else
20933     input_to_shortpath="$new_path"
20934   fi
20935 
20936   # Call helper function which possibly converts this using DOS-style short mode.
20937   # If so, the updated path is stored in $new_path.
20938   new_path="$input_to_shortpath"
20939 
20940   input_path="$input_to_shortpath"
20941   # Check if we need to convert this using DOS-style short mode. If the path
20942   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20943   # take no chances and rewrite it.
20944   # Note: m4 eats our [], so we need to use [ and ] instead.
20945   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20946   if test "x$has_forbidden_chars" != x; then
20947     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20948     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20949     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20950     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20951       # Going to short mode and back again did indeed matter. Since short mode is
20952       # case insensitive, let's make it lowercase to improve readability.
20953       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20954       # Now convert it back to Unix-style (cygpath)
20955       input_path=`$CYGPATH -u "$shortmode_path"`
20956       new_path="$input_path"
20957     fi
20958   fi
20959 
20960   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20961   if test "x$test_cygdrive_prefix" = x; then
20962     # As a simple fix, exclude /usr/bin since it's not a real path.
20963     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20964       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20965       # a path prefixed by /cygdrive for fixpath to work.
20966       new_path="$CYGWIN_ROOT_PATH$input_path"
20967     fi
20968   fi
20969 
20970   # remove trailing .exe if any
20971   new_path="${new_path/%.exe/}"
20972 
20973     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20974 
20975   # First separate the path from the arguments. This will split at the first
20976   # space.
20977   complete="$FOUND_MAKE"
20978   path="${complete%% *}"
20979   tmp="$complete EOL"
20980   arguments="${tmp#* }"
20981 
20982   # Input might be given as Windows format, start by converting to
20983   # unix format.
20984   new_path="$path"
20985 
20986   windows_path="$new_path"
20987   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20988     unix_path=`$CYGPATH -u "$windows_path"`
20989     new_path="$unix_path"
20990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20991     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20992     new_path="$unix_path"
20993   fi
20994 
20995 
20996   # Now try to locate executable using which
20997   new_path=`$WHICH "$new_path" 2> /dev/null`
20998 
20999   if test "x$new_path" = x; then
21000     # Oops. Which didn't find the executable.
21001     # The splitting of arguments from the executable at a space might have been incorrect,
21002     # since paths with space are more likely in Windows. Give it another try with the whole
21003     # argument.
21004     path="$complete"
21005     arguments="EOL"
21006     new_path="$path"
21007 
21008   windows_path="$new_path"
21009   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21010     unix_path=`$CYGPATH -u "$windows_path"`
21011     new_path="$unix_path"
21012   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21013     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21014     new_path="$unix_path"
21015   fi
21016 
21017 
21018     new_path=`$WHICH "$new_path" 2> /dev/null`
21019     # bat and cmd files are not always considered executable in MSYS causing which
21020     # to not find them
21021     if test "x$new_path" = x \
21022         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21023         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21024       new_path="$path"
21025 
21026   windows_path="$new_path"
21027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21028     unix_path=`$CYGPATH -u "$windows_path"`
21029     new_path="$unix_path"
21030   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21031     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21032     new_path="$unix_path"
21033   fi
21034 
21035     fi
21036 
21037     if test "x$new_path" = x; then
21038       # It's still not found. Now this is an unrecoverable error.
21039       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21040 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21041       has_space=`$ECHO "$complete" | $GREP " "`
21042       if test "x$has_space" != x; then
21043         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21044 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21045       fi
21046       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21047     fi
21048   fi
21049 
21050   # Now new_path has a complete unix path to the binary
21051   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21052     # Keep paths in /bin as-is, but remove trailing .exe if any
21053     new_path="${new_path/%.exe/}"
21054     # Do not save /bin paths to all_fixpath_prefixes!
21055   else
21056     # Not in mixed or Windows style, start by that.
21057     new_path=`cmd //c echo $new_path`
21058 
21059   input_path="$new_path"
21060   # Check if we need to convert this using DOS-style short mode. If the path
21061   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21062   # take no chances and rewrite it.
21063   # Note: m4 eats our [], so we need to use [ and ] instead.
21064   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21065   if test "x$has_forbidden_chars" != x; then
21066     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21067     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21068   fi
21069 
21070     # Output is in $new_path
21071 
21072   windows_path="$new_path"
21073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21074     unix_path=`$CYGPATH -u "$windows_path"`
21075     new_path="$unix_path"
21076   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21077     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21078     new_path="$unix_path"
21079   fi
21080 
21081     # remove trailing .exe if any
21082     new_path="${new_path/%.exe/}"
21083 
21084     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21085     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21086   fi
21087 
21088     else
21089       # We're on a unix platform. Hooray! :)
21090       # First separate the path from the arguments. This will split at the first
21091       # space.
21092       complete="$FOUND_MAKE"
21093       path="${complete%% *}"
21094       tmp="$complete EOL"
21095       arguments="${tmp#* }"
21096 
21097       # Cannot rely on the command "which" here since it doesn't always work.
21098       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21099       if test -z "$is_absolute_path"; then
21100         # Path to executable is not absolute. Find it.
21101         IFS_save="$IFS"
21102         IFS=:
21103         for p in $PATH; do
21104           if test -f "$p/$path" && test -x "$p/$path"; then
21105             new_path="$p/$path"
21106             break
21107           fi
21108         done
21109         IFS="$IFS_save"
21110       else
21111         # This is an absolute path, we can use it without further modifications.
21112         new_path="$path"
21113       fi
21114 
21115       if test "x$new_path" = x; then
21116         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21117 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21118         has_space=`$ECHO "$complete" | $GREP " "`
21119         if test "x$has_space" != x; then
21120           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21121 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21122         fi
21123         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21124       fi
21125     fi
21126 
21127     # Now join together the path and the arguments once again
21128     if test "x$arguments" != xEOL; then
21129       new_complete="$new_path ${arguments% *}"
21130     else
21131       new_complete="$new_path"
21132     fi
21133 
21134     if test "x$complete" != "x$new_complete"; then
21135       FOUND_MAKE="$new_complete"
21136       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21137 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21138     fi
21139   fi
21140 
21141         fi
21142       fi
21143     fi
21144   fi
21145 
21146     if test "x$FOUND_MAKE" = x; then
21147       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21148     fi
21149 
21150   fi
21151 
21152 
21153   MAKE=$FOUND_MAKE
21154 
21155   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21156 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21157 
21158 
21159   # Check if make supports the output sync option and if so, setup using it.
21160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21161 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21162   if $MAKE --version -O > /dev/null 2>&1; then
21163     OUTPUT_SYNC_SUPPORTED=true
21164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21165 $as_echo "yes" >&6; }
21166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21167 $as_echo_n "checking for output-sync value... " >&6; }
21168 
21169 # Check whether --with-output-sync was given.
21170 if test "${with_output_sync+set}" = set; then :
21171   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21172 fi
21173 
21174     if test "x$OUTPUT_SYNC" = "x"; then
21175       OUTPUT_SYNC=none
21176     fi
21177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21178 $as_echo "$OUTPUT_SYNC" >&6; }
21179     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21180       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21181     fi
21182   else
21183     OUTPUT_SYNC_SUPPORTED=false
21184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21185 $as_echo "no" >&6; }
21186   fi
21187 
21188 
21189 
21190 
21191 
21192 
21193   # Test if find supports -delete
21194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21195 $as_echo_n "checking if find supports -delete... " >&6; }
21196   FIND_DELETE="-delete"
21197 
21198   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21199 
21200   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21201 
21202   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21203   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21204     # No, it does not.
21205     $RM $DELETEDIR/TestIfFindSupportsDelete
21206     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21207       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21208       FIND_DELETE="-print | $XARGS $RM"
21209     else
21210       FIND_DELETE="-exec $RM \{\} \+"
21211     fi
21212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214   else
21215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21216 $as_echo "yes" >&6; }
21217   fi
21218   $RMDIR $DELETEDIR
21219 
21220 
21221 
21222   # Test which kind of tar was found
21223   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21224     TAR_TYPE="gnu"
21225   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21226     TAR_TYPE="bsd"
21227   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21228     TAR_TYPE="bsd"
21229   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21230     TAR_TYPE="solaris"
21231   fi
21232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21233 $as_echo_n "checking what type of tar was found... " >&6; }
21234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21235 $as_echo "$TAR_TYPE" >&6; }
21236 
21237   TAR_CREATE_FILE_PARAM=""
21238 
21239   if test "x$TAR_TYPE" = "xgnu"; then
21240     TAR_INCLUDE_PARAM="T"
21241     TAR_SUPPORTS_TRANSFORM="true"
21242     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21243       # When using gnu tar for Solaris targets, need to use compatibility mode
21244       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21245     fi
21246   else
21247     TAR_INCLUDE_PARAM="I"
21248     TAR_SUPPORTS_TRANSFORM="false"
21249   fi
21250 
21251 
21252 
21253 
21254 
21255 
21256   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21257   # This is a problem for the grep resident on AIX.
21258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21259 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21260   # Multiple subsequent spaces..
21261   STACK_SPACES='aaa   bbb   ccc'
21262   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21263   # patterns in it.
21264   STACK_LIST=${STACK_SPACES// /$'\n'}
21265   NEEDLE_SPACES='ccc bbb aaa'
21266   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21267   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21268   if test "x$RESULT" == "x"; then
21269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21270 $as_echo "yes" >&6; }
21271   else
21272     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21273       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21274     fi
21275     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21276   fi
21277 
21278 
21279   # These tools might not be installed by default,
21280   # need hint on how to install them.
21281 
21282 
21283 
21284   # Publish this variable in the help.
21285 
21286 
21287   if [ -z "${UNZIP+x}" ]; then
21288     # The variable is not set by user, try to locate tool using the code snippet
21289     for ac_prog in unzip
21290 do
21291   # Extract the first word of "$ac_prog", so it can be a program name with args.
21292 set dummy $ac_prog; ac_word=$2
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21294 $as_echo_n "checking for $ac_word... " >&6; }
21295 if ${ac_cv_path_UNZIP+:} false; then :
21296   $as_echo_n "(cached) " >&6
21297 else
21298   case $UNZIP in
21299   [\\/]* | ?:[\\/]*)
21300   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21301   ;;
21302   *)
21303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304 for as_dir in $PATH
21305 do
21306   IFS=$as_save_IFS
21307   test -z "$as_dir" && as_dir=.
21308     for ac_exec_ext in '' $ac_executable_extensions; do
21309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21310     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21312     break 2
21313   fi
21314 done
21315   done
21316 IFS=$as_save_IFS
21317 
21318   ;;
21319 esac
21320 fi
21321 UNZIP=$ac_cv_path_UNZIP
21322 if test -n "$UNZIP"; then
21323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21324 $as_echo "$UNZIP" >&6; }
21325 else
21326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21327 $as_echo "no" >&6; }
21328 fi
21329 
21330 
21331   test -n "$UNZIP" && break
21332 done
21333 
21334   else
21335     # The variable is set, but is it from the command line or the environment?
21336 
21337     # Try to remove the string !UNZIP! from our list.
21338     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21339     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21340       # If it failed, the variable was not from the command line. Ignore it,
21341       # but warn the user (except for BASH, which is always set by the calling BASH).
21342       if test "xUNZIP" != xBASH; then
21343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21344 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21345       fi
21346       # Try to locate tool using the code snippet
21347       for ac_prog in unzip
21348 do
21349   # Extract the first word of "$ac_prog", so it can be a program name with args.
21350 set dummy $ac_prog; ac_word=$2
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21352 $as_echo_n "checking for $ac_word... " >&6; }
21353 if ${ac_cv_path_UNZIP+:} false; then :
21354   $as_echo_n "(cached) " >&6
21355 else
21356   case $UNZIP in
21357   [\\/]* | ?:[\\/]*)
21358   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21359   ;;
21360   *)
21361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362 for as_dir in $PATH
21363 do
21364   IFS=$as_save_IFS
21365   test -z "$as_dir" && as_dir=.
21366     for ac_exec_ext in '' $ac_executable_extensions; do
21367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21368     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21370     break 2
21371   fi
21372 done
21373   done
21374 IFS=$as_save_IFS
21375 
21376   ;;
21377 esac
21378 fi
21379 UNZIP=$ac_cv_path_UNZIP
21380 if test -n "$UNZIP"; then
21381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21382 $as_echo "$UNZIP" >&6; }
21383 else
21384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21385 $as_echo "no" >&6; }
21386 fi
21387 
21388 
21389   test -n "$UNZIP" && break
21390 done
21391 
21392     else
21393       # If it succeeded, then it was overridden by the user. We will use it
21394       # for the tool.
21395 
21396       # First remove it from the list of overridden variables, so we can test
21397       # for unknown variables in the end.
21398       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21399 
21400       # Check if we try to supply an empty value
21401       if test "x$UNZIP" = x; then
21402         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21403 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21405 $as_echo_n "checking for UNZIP... " >&6; }
21406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21407 $as_echo "disabled" >&6; }
21408       else
21409         # Check if the provided tool contains a complete path.
21410         tool_specified="$UNZIP"
21411         tool_basename="${tool_specified##*/}"
21412         if test "x$tool_basename" = "x$tool_specified"; then
21413           # A command without a complete path is provided, search $PATH.
21414           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21415 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21416           # Extract the first word of "$tool_basename", so it can be a program name with args.
21417 set dummy $tool_basename; ac_word=$2
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21419 $as_echo_n "checking for $ac_word... " >&6; }
21420 if ${ac_cv_path_UNZIP+:} false; then :
21421   $as_echo_n "(cached) " >&6
21422 else
21423   case $UNZIP in
21424   [\\/]* | ?:[\\/]*)
21425   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21426   ;;
21427   *)
21428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21429 for as_dir in $PATH
21430 do
21431   IFS=$as_save_IFS
21432   test -z "$as_dir" && as_dir=.
21433     for ac_exec_ext in '' $ac_executable_extensions; do
21434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21435     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21437     break 2
21438   fi
21439 done
21440   done
21441 IFS=$as_save_IFS
21442 
21443   ;;
21444 esac
21445 fi
21446 UNZIP=$ac_cv_path_UNZIP
21447 if test -n "$UNZIP"; then
21448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21449 $as_echo "$UNZIP" >&6; }
21450 else
21451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21453 fi
21454 
21455 
21456           if test "x$UNZIP" = x; then
21457             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21458           fi
21459         else
21460           # Otherwise we believe it is a complete path. Use it as it is.
21461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21462 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21463           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21464 $as_echo_n "checking for UNZIP... " >&6; }
21465           if test ! -x "$tool_specified"; then
21466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21467 $as_echo "not found" >&6; }
21468             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21469           fi
21470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21471 $as_echo "$tool_specified" >&6; }
21472         fi
21473       fi
21474     fi
21475 
21476   fi
21477 
21478 
21479 
21480   if test "x$UNZIP" = x; then
21481     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21482   fi
21483 
21484 
21485   # Since zip uses "ZIP" as a environment variable for passing options, we need
21486   # to name our variable differently, hence ZIPEXE.
21487 
21488 
21489 
21490   # Publish this variable in the help.
21491 
21492 
21493   if [ -z "${ZIPEXE+x}" ]; then
21494     # The variable is not set by user, try to locate tool using the code snippet
21495     for ac_prog in zip
21496 do
21497   # Extract the first word of "$ac_prog", so it can be a program name with args.
21498 set dummy $ac_prog; ac_word=$2
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21500 $as_echo_n "checking for $ac_word... " >&6; }
21501 if ${ac_cv_path_ZIPEXE+:} false; then :
21502   $as_echo_n "(cached) " >&6
21503 else
21504   case $ZIPEXE in
21505   [\\/]* | ?:[\\/]*)
21506   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21507   ;;
21508   *)
21509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21510 for as_dir in $PATH
21511 do
21512   IFS=$as_save_IFS
21513   test -z "$as_dir" && as_dir=.
21514     for ac_exec_ext in '' $ac_executable_extensions; do
21515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21516     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21518     break 2
21519   fi
21520 done
21521   done
21522 IFS=$as_save_IFS
21523 
21524   ;;
21525 esac
21526 fi
21527 ZIPEXE=$ac_cv_path_ZIPEXE
21528 if test -n "$ZIPEXE"; then
21529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21530 $as_echo "$ZIPEXE" >&6; }
21531 else
21532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533 $as_echo "no" >&6; }
21534 fi
21535 
21536 
21537   test -n "$ZIPEXE" && break
21538 done
21539 
21540   else
21541     # The variable is set, but is it from the command line or the environment?
21542 
21543     # Try to remove the string !ZIPEXE! from our list.
21544     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21545     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21546       # If it failed, the variable was not from the command line. Ignore it,
21547       # but warn the user (except for BASH, which is always set by the calling BASH).
21548       if test "xZIPEXE" != xBASH; then
21549         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21550 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21551       fi
21552       # Try to locate tool using the code snippet
21553       for ac_prog in zip
21554 do
21555   # Extract the first word of "$ac_prog", so it can be a program name with args.
21556 set dummy $ac_prog; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if ${ac_cv_path_ZIPEXE+:} false; then :
21560   $as_echo_n "(cached) " >&6
21561 else
21562   case $ZIPEXE in
21563   [\\/]* | ?:[\\/]*)
21564   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21565   ;;
21566   *)
21567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21569 do
21570   IFS=$as_save_IFS
21571   test -z "$as_dir" && as_dir=.
21572     for ac_exec_ext in '' $ac_executable_extensions; do
21573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21574     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21576     break 2
21577   fi
21578 done
21579   done
21580 IFS=$as_save_IFS
21581 
21582   ;;
21583 esac
21584 fi
21585 ZIPEXE=$ac_cv_path_ZIPEXE
21586 if test -n "$ZIPEXE"; then
21587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21588 $as_echo "$ZIPEXE" >&6; }
21589 else
21590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592 fi
21593 
21594 
21595   test -n "$ZIPEXE" && break
21596 done
21597 
21598     else
21599       # If it succeeded, then it was overridden by the user. We will use it
21600       # for the tool.
21601 
21602       # First remove it from the list of overridden variables, so we can test
21603       # for unknown variables in the end.
21604       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21605 
21606       # Check if we try to supply an empty value
21607       if test "x$ZIPEXE" = x; then
21608         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21609 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21611 $as_echo_n "checking for ZIPEXE... " >&6; }
21612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21613 $as_echo "disabled" >&6; }
21614       else
21615         # Check if the provided tool contains a complete path.
21616         tool_specified="$ZIPEXE"
21617         tool_basename="${tool_specified##*/}"
21618         if test "x$tool_basename" = "x$tool_specified"; then
21619           # A command without a complete path is provided, search $PATH.
21620           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21621 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21622           # Extract the first word of "$tool_basename", so it can be a program name with args.
21623 set dummy $tool_basename; ac_word=$2
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21625 $as_echo_n "checking for $ac_word... " >&6; }
21626 if ${ac_cv_path_ZIPEXE+:} false; then :
21627   $as_echo_n "(cached) " >&6
21628 else
21629   case $ZIPEXE in
21630   [\\/]* | ?:[\\/]*)
21631   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21632   ;;
21633   *)
21634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21635 for as_dir in $PATH
21636 do
21637   IFS=$as_save_IFS
21638   test -z "$as_dir" && as_dir=.
21639     for ac_exec_ext in '' $ac_executable_extensions; do
21640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21641     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21643     break 2
21644   fi
21645 done
21646   done
21647 IFS=$as_save_IFS
21648 
21649   ;;
21650 esac
21651 fi
21652 ZIPEXE=$ac_cv_path_ZIPEXE
21653 if test -n "$ZIPEXE"; then
21654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21655 $as_echo "$ZIPEXE" >&6; }
21656 else
21657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21658 $as_echo "no" >&6; }
21659 fi
21660 
21661 
21662           if test "x$ZIPEXE" = x; then
21663             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21664           fi
21665         else
21666           # Otherwise we believe it is a complete path. Use it as it is.
21667           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21668 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21669           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21670 $as_echo_n "checking for ZIPEXE... " >&6; }
21671           if test ! -x "$tool_specified"; then
21672             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21673 $as_echo "not found" >&6; }
21674             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21675           fi
21676           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21677 $as_echo "$tool_specified" >&6; }
21678         fi
21679       fi
21680     fi
21681 
21682   fi
21683 
21684 
21685 
21686   if test "x$ZIPEXE" = x; then
21687     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21688   fi
21689 
21690 
21691 
21692   # Non-required basic tools
21693 
21694 
21695 
21696   # Publish this variable in the help.
21697 
21698 
21699   if [ -z "${LDD+x}" ]; then
21700     # The variable is not set by user, try to locate tool using the code snippet
21701     for ac_prog in ldd
21702 do
21703   # Extract the first word of "$ac_prog", so it can be a program name with args.
21704 set dummy $ac_prog; ac_word=$2
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21706 $as_echo_n "checking for $ac_word... " >&6; }
21707 if ${ac_cv_path_LDD+:} false; then :
21708   $as_echo_n "(cached) " >&6
21709 else
21710   case $LDD in
21711   [\\/]* | ?:[\\/]*)
21712   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21713   ;;
21714   *)
21715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21716 for as_dir in $PATH
21717 do
21718   IFS=$as_save_IFS
21719   test -z "$as_dir" && as_dir=.
21720     for ac_exec_ext in '' $ac_executable_extensions; do
21721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21722     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21724     break 2
21725   fi
21726 done
21727   done
21728 IFS=$as_save_IFS
21729 
21730   ;;
21731 esac
21732 fi
21733 LDD=$ac_cv_path_LDD
21734 if test -n "$LDD"; then
21735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21736 $as_echo "$LDD" >&6; }
21737 else
21738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739 $as_echo "no" >&6; }
21740 fi
21741 
21742 
21743   test -n "$LDD" && break
21744 done
21745 
21746   else
21747     # The variable is set, but is it from the command line or the environment?
21748 
21749     # Try to remove the string !LDD! from our list.
21750     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21751     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21752       # If it failed, the variable was not from the command line. Ignore it,
21753       # but warn the user (except for BASH, which is always set by the calling BASH).
21754       if test "xLDD" != xBASH; then
21755         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21756 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21757       fi
21758       # Try to locate tool using the code snippet
21759       for ac_prog in ldd
21760 do
21761   # Extract the first word of "$ac_prog", so it can be a program name with args.
21762 set dummy $ac_prog; ac_word=$2
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21764 $as_echo_n "checking for $ac_word... " >&6; }
21765 if ${ac_cv_path_LDD+:} false; then :
21766   $as_echo_n "(cached) " >&6
21767 else
21768   case $LDD in
21769   [\\/]* | ?:[\\/]*)
21770   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21771   ;;
21772   *)
21773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21774 for as_dir in $PATH
21775 do
21776   IFS=$as_save_IFS
21777   test -z "$as_dir" && as_dir=.
21778     for ac_exec_ext in '' $ac_executable_extensions; do
21779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21780     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21782     break 2
21783   fi
21784 done
21785   done
21786 IFS=$as_save_IFS
21787 
21788   ;;
21789 esac
21790 fi
21791 LDD=$ac_cv_path_LDD
21792 if test -n "$LDD"; then
21793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21794 $as_echo "$LDD" >&6; }
21795 else
21796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21797 $as_echo "no" >&6; }
21798 fi
21799 
21800 
21801   test -n "$LDD" && break
21802 done
21803 
21804     else
21805       # If it succeeded, then it was overridden by the user. We will use it
21806       # for the tool.
21807 
21808       # First remove it from the list of overridden variables, so we can test
21809       # for unknown variables in the end.
21810       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21811 
21812       # Check if we try to supply an empty value
21813       if test "x$LDD" = x; then
21814         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21815 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21817 $as_echo_n "checking for LDD... " >&6; }
21818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21819 $as_echo "disabled" >&6; }
21820       else
21821         # Check if the provided tool contains a complete path.
21822         tool_specified="$LDD"
21823         tool_basename="${tool_specified##*/}"
21824         if test "x$tool_basename" = "x$tool_specified"; then
21825           # A command without a complete path is provided, search $PATH.
21826           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21827 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21828           # Extract the first word of "$tool_basename", so it can be a program name with args.
21829 set dummy $tool_basename; ac_word=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if ${ac_cv_path_LDD+:} false; then :
21833   $as_echo_n "(cached) " >&6
21834 else
21835   case $LDD in
21836   [\\/]* | ?:[\\/]*)
21837   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21838   ;;
21839   *)
21840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21841 for as_dir in $PATH
21842 do
21843   IFS=$as_save_IFS
21844   test -z "$as_dir" && as_dir=.
21845     for ac_exec_ext in '' $ac_executable_extensions; do
21846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21847     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21849     break 2
21850   fi
21851 done
21852   done
21853 IFS=$as_save_IFS
21854 
21855   ;;
21856 esac
21857 fi
21858 LDD=$ac_cv_path_LDD
21859 if test -n "$LDD"; then
21860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21861 $as_echo "$LDD" >&6; }
21862 else
21863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21865 fi
21866 
21867 
21868           if test "x$LDD" = x; then
21869             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21870           fi
21871         else
21872           # Otherwise we believe it is a complete path. Use it as it is.
21873           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21874 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21875           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21876 $as_echo_n "checking for LDD... " >&6; }
21877           if test ! -x "$tool_specified"; then
21878             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21879 $as_echo "not found" >&6; }
21880             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21881           fi
21882           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21883 $as_echo "$tool_specified" >&6; }
21884         fi
21885       fi
21886     fi
21887 
21888   fi
21889 
21890 
21891   if test "x$LDD" = "x"; then
21892     # List shared lib dependencies is used for
21893     # debug output and checking for forbidden dependencies.
21894     # We can build without it.
21895     LDD="true"
21896   fi
21897 
21898 
21899   # Publish this variable in the help.
21900 
21901 
21902   if [ -z "${OTOOL+x}" ]; then
21903     # The variable is not set by user, try to locate tool using the code snippet
21904     for ac_prog in otool
21905 do
21906   # Extract the first word of "$ac_prog", so it can be a program name with args.
21907 set dummy $ac_prog; ac_word=$2
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21909 $as_echo_n "checking for $ac_word... " >&6; }
21910 if ${ac_cv_path_OTOOL+:} false; then :
21911   $as_echo_n "(cached) " >&6
21912 else
21913   case $OTOOL in
21914   [\\/]* | ?:[\\/]*)
21915   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21916   ;;
21917   *)
21918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in $PATH
21920 do
21921   IFS=$as_save_IFS
21922   test -z "$as_dir" && as_dir=.
21923     for ac_exec_ext in '' $ac_executable_extensions; do
21924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21925     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21927     break 2
21928   fi
21929 done
21930   done
21931 IFS=$as_save_IFS
21932 
21933   ;;
21934 esac
21935 fi
21936 OTOOL=$ac_cv_path_OTOOL
21937 if test -n "$OTOOL"; then
21938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21939 $as_echo "$OTOOL" >&6; }
21940 else
21941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943 fi
21944 
21945 
21946   test -n "$OTOOL" && break
21947 done
21948 
21949   else
21950     # The variable is set, but is it from the command line or the environment?
21951 
21952     # Try to remove the string !OTOOL! from our list.
21953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21955       # If it failed, the variable was not from the command line. Ignore it,
21956       # but warn the user (except for BASH, which is always set by the calling BASH).
21957       if test "xOTOOL" != xBASH; then
21958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21959 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21960       fi
21961       # Try to locate tool using the code snippet
21962       for ac_prog in otool
21963 do
21964   # Extract the first word of "$ac_prog", so it can be a program name with args.
21965 set dummy $ac_prog; ac_word=$2
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967 $as_echo_n "checking for $ac_word... " >&6; }
21968 if ${ac_cv_path_OTOOL+:} false; then :
21969   $as_echo_n "(cached) " >&6
21970 else
21971   case $OTOOL in
21972   [\\/]* | ?:[\\/]*)
21973   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21974   ;;
21975   *)
21976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977 for as_dir in $PATH
21978 do
21979   IFS=$as_save_IFS
21980   test -z "$as_dir" && as_dir=.
21981     for ac_exec_ext in '' $ac_executable_extensions; do
21982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21983     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21985     break 2
21986   fi
21987 done
21988   done
21989 IFS=$as_save_IFS
21990 
21991   ;;
21992 esac
21993 fi
21994 OTOOL=$ac_cv_path_OTOOL
21995 if test -n "$OTOOL"; then
21996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21997 $as_echo "$OTOOL" >&6; }
21998 else
21999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22001 fi
22002 
22003 
22004   test -n "$OTOOL" && break
22005 done
22006 
22007     else
22008       # If it succeeded, then it was overridden by the user. We will use it
22009       # for the tool.
22010 
22011       # First remove it from the list of overridden variables, so we can test
22012       # for unknown variables in the end.
22013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22014 
22015       # Check if we try to supply an empty value
22016       if test "x$OTOOL" = x; then
22017         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
22018 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
22019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22020 $as_echo_n "checking for OTOOL... " >&6; }
22021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22022 $as_echo "disabled" >&6; }
22023       else
22024         # Check if the provided tool contains a complete path.
22025         tool_specified="$OTOOL"
22026         tool_basename="${tool_specified##*/}"
22027         if test "x$tool_basename" = "x$tool_specified"; then
22028           # A command without a complete path is provided, search $PATH.
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
22030 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
22031           # Extract the first word of "$tool_basename", so it can be a program name with args.
22032 set dummy $tool_basename; ac_word=$2
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22034 $as_echo_n "checking for $ac_word... " >&6; }
22035 if ${ac_cv_path_OTOOL+:} false; then :
22036   $as_echo_n "(cached) " >&6
22037 else
22038   case $OTOOL in
22039   [\\/]* | ?:[\\/]*)
22040   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22041   ;;
22042   *)
22043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22044 for as_dir in $PATH
22045 do
22046   IFS=$as_save_IFS
22047   test -z "$as_dir" && as_dir=.
22048     for ac_exec_ext in '' $ac_executable_extensions; do
22049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22050     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22052     break 2
22053   fi
22054 done
22055   done
22056 IFS=$as_save_IFS
22057 
22058   ;;
22059 esac
22060 fi
22061 OTOOL=$ac_cv_path_OTOOL
22062 if test -n "$OTOOL"; then
22063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22064 $as_echo "$OTOOL" >&6; }
22065 else
22066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22067 $as_echo "no" >&6; }
22068 fi
22069 
22070 
22071           if test "x$OTOOL" = x; then
22072             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22073           fi
22074         else
22075           # Otherwise we believe it is a complete path. Use it as it is.
22076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22077 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22078           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22079 $as_echo_n "checking for OTOOL... " >&6; }
22080           if test ! -x "$tool_specified"; then
22081             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22082 $as_echo "not found" >&6; }
22083             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22084           fi
22085           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22086 $as_echo "$tool_specified" >&6; }
22087         fi
22088       fi
22089     fi
22090 
22091   fi
22092 
22093 
22094   if test "x$OTOOL" = "x"; then
22095     OTOOL="true"
22096   fi
22097 
22098 
22099   # Publish this variable in the help.
22100 
22101 
22102   if [ -z "${READELF+x}" ]; then
22103     # The variable is not set by user, try to locate tool using the code snippet
22104     for ac_prog in greadelf readelf
22105 do
22106   # Extract the first word of "$ac_prog", so it can be a program name with args.
22107 set dummy $ac_prog; ac_word=$2
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22109 $as_echo_n "checking for $ac_word... " >&6; }
22110 if ${ac_cv_path_READELF+:} false; then :
22111   $as_echo_n "(cached) " >&6
22112 else
22113   case $READELF in
22114   [\\/]* | ?:[\\/]*)
22115   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22116   ;;
22117   *)
22118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22119 for as_dir in $PATH
22120 do
22121   IFS=$as_save_IFS
22122   test -z "$as_dir" && as_dir=.
22123     for ac_exec_ext in '' $ac_executable_extensions; do
22124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22125     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22127     break 2
22128   fi
22129 done
22130   done
22131 IFS=$as_save_IFS
22132 
22133   ;;
22134 esac
22135 fi
22136 READELF=$ac_cv_path_READELF
22137 if test -n "$READELF"; then
22138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22139 $as_echo "$READELF" >&6; }
22140 else
22141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22143 fi
22144 
22145 
22146   test -n "$READELF" && break
22147 done
22148 
22149   else
22150     # The variable is set, but is it from the command line or the environment?
22151 
22152     # Try to remove the string !READELF! from our list.
22153     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22154     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22155       # If it failed, the variable was not from the command line. Ignore it,
22156       # but warn the user (except for BASH, which is always set by the calling BASH).
22157       if test "xREADELF" != xBASH; then
22158         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22159 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22160       fi
22161       # Try to locate tool using the code snippet
22162       for ac_prog in greadelf readelf
22163 do
22164   # Extract the first word of "$ac_prog", so it can be a program name with args.
22165 set dummy $ac_prog; ac_word=$2
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22167 $as_echo_n "checking for $ac_word... " >&6; }
22168 if ${ac_cv_path_READELF+:} false; then :
22169   $as_echo_n "(cached) " >&6
22170 else
22171   case $READELF in
22172   [\\/]* | ?:[\\/]*)
22173   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22174   ;;
22175   *)
22176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22177 for as_dir in $PATH
22178 do
22179   IFS=$as_save_IFS
22180   test -z "$as_dir" && as_dir=.
22181     for ac_exec_ext in '' $ac_executable_extensions; do
22182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22183     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22185     break 2
22186   fi
22187 done
22188   done
22189 IFS=$as_save_IFS
22190 
22191   ;;
22192 esac
22193 fi
22194 READELF=$ac_cv_path_READELF
22195 if test -n "$READELF"; then
22196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22197 $as_echo "$READELF" >&6; }
22198 else
22199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22200 $as_echo "no" >&6; }
22201 fi
22202 
22203 
22204   test -n "$READELF" && break
22205 done
22206 
22207     else
22208       # If it succeeded, then it was overridden by the user. We will use it
22209       # for the tool.
22210 
22211       # First remove it from the list of overridden variables, so we can test
22212       # for unknown variables in the end.
22213       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22214 
22215       # Check if we try to supply an empty value
22216       if test "x$READELF" = x; then
22217         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22218 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22220 $as_echo_n "checking for READELF... " >&6; }
22221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22222 $as_echo "disabled" >&6; }
22223       else
22224         # Check if the provided tool contains a complete path.
22225         tool_specified="$READELF"
22226         tool_basename="${tool_specified##*/}"
22227         if test "x$tool_basename" = "x$tool_specified"; then
22228           # A command without a complete path is provided, search $PATH.
22229           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22230 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22231           # Extract the first word of "$tool_basename", so it can be a program name with args.
22232 set dummy $tool_basename; ac_word=$2
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22234 $as_echo_n "checking for $ac_word... " >&6; }
22235 if ${ac_cv_path_READELF+:} false; then :
22236   $as_echo_n "(cached) " >&6
22237 else
22238   case $READELF in
22239   [\\/]* | ?:[\\/]*)
22240   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22241   ;;
22242   *)
22243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22244 for as_dir in $PATH
22245 do
22246   IFS=$as_save_IFS
22247   test -z "$as_dir" && as_dir=.
22248     for ac_exec_ext in '' $ac_executable_extensions; do
22249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22250     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22252     break 2
22253   fi
22254 done
22255   done
22256 IFS=$as_save_IFS
22257 
22258   ;;
22259 esac
22260 fi
22261 READELF=$ac_cv_path_READELF
22262 if test -n "$READELF"; then
22263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22264 $as_echo "$READELF" >&6; }
22265 else
22266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22267 $as_echo "no" >&6; }
22268 fi
22269 
22270 
22271           if test "x$READELF" = x; then
22272             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22273           fi
22274         else
22275           # Otherwise we believe it is a complete path. Use it as it is.
22276           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22277 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22278           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22279 $as_echo_n "checking for READELF... " >&6; }
22280           if test ! -x "$tool_specified"; then
22281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22282 $as_echo "not found" >&6; }
22283             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22284           fi
22285           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22286 $as_echo "$tool_specified" >&6; }
22287         fi
22288       fi
22289     fi
22290 
22291   fi
22292 
22293 
22294 
22295 
22296   # Publish this variable in the help.
22297 
22298 
22299   if [ -z "${HG+x}" ]; then
22300     # The variable is not set by user, try to locate tool using the code snippet
22301     for ac_prog in hg
22302 do
22303   # Extract the first word of "$ac_prog", so it can be a program name with args.
22304 set dummy $ac_prog; ac_word=$2
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22306 $as_echo_n "checking for $ac_word... " >&6; }
22307 if ${ac_cv_path_HG+:} false; then :
22308   $as_echo_n "(cached) " >&6
22309 else
22310   case $HG in
22311   [\\/]* | ?:[\\/]*)
22312   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22313   ;;
22314   *)
22315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $PATH
22317 do
22318   IFS=$as_save_IFS
22319   test -z "$as_dir" && as_dir=.
22320     for ac_exec_ext in '' $ac_executable_extensions; do
22321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22322     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22324     break 2
22325   fi
22326 done
22327   done
22328 IFS=$as_save_IFS
22329 
22330   ;;
22331 esac
22332 fi
22333 HG=$ac_cv_path_HG
22334 if test -n "$HG"; then
22335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22336 $as_echo "$HG" >&6; }
22337 else
22338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22339 $as_echo "no" >&6; }
22340 fi
22341 
22342 
22343   test -n "$HG" && break
22344 done
22345 
22346   else
22347     # The variable is set, but is it from the command line or the environment?
22348 
22349     # Try to remove the string !HG! from our list.
22350     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22351     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22352       # If it failed, the variable was not from the command line. Ignore it,
22353       # but warn the user (except for BASH, which is always set by the calling BASH).
22354       if test "xHG" != xBASH; then
22355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22356 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22357       fi
22358       # Try to locate tool using the code snippet
22359       for ac_prog in hg
22360 do
22361   # Extract the first word of "$ac_prog", so it can be a program name with args.
22362 set dummy $ac_prog; ac_word=$2
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22364 $as_echo_n "checking for $ac_word... " >&6; }
22365 if ${ac_cv_path_HG+:} false; then :
22366   $as_echo_n "(cached) " >&6
22367 else
22368   case $HG in
22369   [\\/]* | ?:[\\/]*)
22370   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22371   ;;
22372   *)
22373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22374 for as_dir in $PATH
22375 do
22376   IFS=$as_save_IFS
22377   test -z "$as_dir" && as_dir=.
22378     for ac_exec_ext in '' $ac_executable_extensions; do
22379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22380     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22382     break 2
22383   fi
22384 done
22385   done
22386 IFS=$as_save_IFS
22387 
22388   ;;
22389 esac
22390 fi
22391 HG=$ac_cv_path_HG
22392 if test -n "$HG"; then
22393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22394 $as_echo "$HG" >&6; }
22395 else
22396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22397 $as_echo "no" >&6; }
22398 fi
22399 
22400 
22401   test -n "$HG" && break
22402 done
22403 
22404     else
22405       # If it succeeded, then it was overridden by the user. We will use it
22406       # for the tool.
22407 
22408       # First remove it from the list of overridden variables, so we can test
22409       # for unknown variables in the end.
22410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22411 
22412       # Check if we try to supply an empty value
22413       if test "x$HG" = x; then
22414         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22415 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22417 $as_echo_n "checking for HG... " >&6; }
22418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22419 $as_echo "disabled" >&6; }
22420       else
22421         # Check if the provided tool contains a complete path.
22422         tool_specified="$HG"
22423         tool_basename="${tool_specified##*/}"
22424         if test "x$tool_basename" = "x$tool_specified"; then
22425           # A command without a complete path is provided, search $PATH.
22426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22427 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22428           # Extract the first word of "$tool_basename", so it can be a program name with args.
22429 set dummy $tool_basename; ac_word=$2
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22431 $as_echo_n "checking for $ac_word... " >&6; }
22432 if ${ac_cv_path_HG+:} false; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   case $HG in
22436   [\\/]* | ?:[\\/]*)
22437   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22438   ;;
22439   *)
22440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22441 for as_dir in $PATH
22442 do
22443   IFS=$as_save_IFS
22444   test -z "$as_dir" && as_dir=.
22445     for ac_exec_ext in '' $ac_executable_extensions; do
22446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22447     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22449     break 2
22450   fi
22451 done
22452   done
22453 IFS=$as_save_IFS
22454 
22455   ;;
22456 esac
22457 fi
22458 HG=$ac_cv_path_HG
22459 if test -n "$HG"; then
22460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22461 $as_echo "$HG" >&6; }
22462 else
22463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22464 $as_echo "no" >&6; }
22465 fi
22466 
22467 
22468           if test "x$HG" = x; then
22469             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22470           fi
22471         else
22472           # Otherwise we believe it is a complete path. Use it as it is.
22473           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22474 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22475           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22476 $as_echo_n "checking for HG... " >&6; }
22477           if test ! -x "$tool_specified"; then
22478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22479 $as_echo "not found" >&6; }
22480             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22481           fi
22482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22483 $as_echo "$tool_specified" >&6; }
22484         fi
22485       fi
22486     fi
22487 
22488   fi
22489 
22490 
22491 
22492 
22493   # Publish this variable in the help.
22494 
22495 
22496   if [ -z "${STAT+x}" ]; then
22497     # The variable is not set by user, try to locate tool using the code snippet
22498     for ac_prog in stat
22499 do
22500   # Extract the first word of "$ac_prog", so it can be a program name with args.
22501 set dummy $ac_prog; ac_word=$2
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22503 $as_echo_n "checking for $ac_word... " >&6; }
22504 if ${ac_cv_path_STAT+:} false; then :
22505   $as_echo_n "(cached) " >&6
22506 else
22507   case $STAT in
22508   [\\/]* | ?:[\\/]*)
22509   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22510   ;;
22511   *)
22512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22513 for as_dir in $PATH
22514 do
22515   IFS=$as_save_IFS
22516   test -z "$as_dir" && as_dir=.
22517     for ac_exec_ext in '' $ac_executable_extensions; do
22518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22519     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22521     break 2
22522   fi
22523 done
22524   done
22525 IFS=$as_save_IFS
22526 
22527   ;;
22528 esac
22529 fi
22530 STAT=$ac_cv_path_STAT
22531 if test -n "$STAT"; then
22532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22533 $as_echo "$STAT" >&6; }
22534 else
22535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22536 $as_echo "no" >&6; }
22537 fi
22538 
22539 
22540   test -n "$STAT" && break
22541 done
22542 
22543   else
22544     # The variable is set, but is it from the command line or the environment?
22545 
22546     # Try to remove the string !STAT! from our list.
22547     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22548     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22549       # If it failed, the variable was not from the command line. Ignore it,
22550       # but warn the user (except for BASH, which is always set by the calling BASH).
22551       if test "xSTAT" != xBASH; then
22552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22553 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22554       fi
22555       # Try to locate tool using the code snippet
22556       for ac_prog in stat
22557 do
22558   # Extract the first word of "$ac_prog", so it can be a program name with args.
22559 set dummy $ac_prog; ac_word=$2
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22561 $as_echo_n "checking for $ac_word... " >&6; }
22562 if ${ac_cv_path_STAT+:} false; then :
22563   $as_echo_n "(cached) " >&6
22564 else
22565   case $STAT in
22566   [\\/]* | ?:[\\/]*)
22567   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22568   ;;
22569   *)
22570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in $PATH
22572 do
22573   IFS=$as_save_IFS
22574   test -z "$as_dir" && as_dir=.
22575     for ac_exec_ext in '' $ac_executable_extensions; do
22576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22577     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22579     break 2
22580   fi
22581 done
22582   done
22583 IFS=$as_save_IFS
22584 
22585   ;;
22586 esac
22587 fi
22588 STAT=$ac_cv_path_STAT
22589 if test -n "$STAT"; then
22590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22591 $as_echo "$STAT" >&6; }
22592 else
22593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22594 $as_echo "no" >&6; }
22595 fi
22596 
22597 
22598   test -n "$STAT" && break
22599 done
22600 
22601     else
22602       # If it succeeded, then it was overridden by the user. We will use it
22603       # for the tool.
22604 
22605       # First remove it from the list of overridden variables, so we can test
22606       # for unknown variables in the end.
22607       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22608 
22609       # Check if we try to supply an empty value
22610       if test "x$STAT" = x; then
22611         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22612 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22614 $as_echo_n "checking for STAT... " >&6; }
22615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22616 $as_echo "disabled" >&6; }
22617       else
22618         # Check if the provided tool contains a complete path.
22619         tool_specified="$STAT"
22620         tool_basename="${tool_specified##*/}"
22621         if test "x$tool_basename" = "x$tool_specified"; then
22622           # A command without a complete path is provided, search $PATH.
22623           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22624 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22625           # Extract the first word of "$tool_basename", so it can be a program name with args.
22626 set dummy $tool_basename; ac_word=$2
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22628 $as_echo_n "checking for $ac_word... " >&6; }
22629 if ${ac_cv_path_STAT+:} false; then :
22630   $as_echo_n "(cached) " >&6
22631 else
22632   case $STAT in
22633   [\\/]* | ?:[\\/]*)
22634   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22635   ;;
22636   *)
22637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22638 for as_dir in $PATH
22639 do
22640   IFS=$as_save_IFS
22641   test -z "$as_dir" && as_dir=.
22642     for ac_exec_ext in '' $ac_executable_extensions; do
22643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22644     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22646     break 2
22647   fi
22648 done
22649   done
22650 IFS=$as_save_IFS
22651 
22652   ;;
22653 esac
22654 fi
22655 STAT=$ac_cv_path_STAT
22656 if test -n "$STAT"; then
22657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22658 $as_echo "$STAT" >&6; }
22659 else
22660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22661 $as_echo "no" >&6; }
22662 fi
22663 
22664 
22665           if test "x$STAT" = x; then
22666             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22667           fi
22668         else
22669           # Otherwise we believe it is a complete path. Use it as it is.
22670           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22671 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22672           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22673 $as_echo_n "checking for STAT... " >&6; }
22674           if test ! -x "$tool_specified"; then
22675             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22676 $as_echo "not found" >&6; }
22677             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22678           fi
22679           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22680 $as_echo "$tool_specified" >&6; }
22681         fi
22682       fi
22683     fi
22684 
22685   fi
22686 
22687 
22688 
22689 
22690   # Publish this variable in the help.
22691 
22692 
22693   if [ -z "${TIME+x}" ]; then
22694     # The variable is not set by user, try to locate tool using the code snippet
22695     for ac_prog in time
22696 do
22697   # Extract the first word of "$ac_prog", so it can be a program name with args.
22698 set dummy $ac_prog; ac_word=$2
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22700 $as_echo_n "checking for $ac_word... " >&6; }
22701 if ${ac_cv_path_TIME+:} false; then :
22702   $as_echo_n "(cached) " >&6
22703 else
22704   case $TIME in
22705   [\\/]* | ?:[\\/]*)
22706   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22707   ;;
22708   *)
22709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22710 for as_dir in $PATH
22711 do
22712   IFS=$as_save_IFS
22713   test -z "$as_dir" && as_dir=.
22714     for ac_exec_ext in '' $ac_executable_extensions; do
22715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22716     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22718     break 2
22719   fi
22720 done
22721   done
22722 IFS=$as_save_IFS
22723 
22724   ;;
22725 esac
22726 fi
22727 TIME=$ac_cv_path_TIME
22728 if test -n "$TIME"; then
22729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22730 $as_echo "$TIME" >&6; }
22731 else
22732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22733 $as_echo "no" >&6; }
22734 fi
22735 
22736 
22737   test -n "$TIME" && break
22738 done
22739 
22740   else
22741     # The variable is set, but is it from the command line or the environment?
22742 
22743     # Try to remove the string !TIME! from our list.
22744     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22745     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22746       # If it failed, the variable was not from the command line. Ignore it,
22747       # but warn the user (except for BASH, which is always set by the calling BASH).
22748       if test "xTIME" != xBASH; then
22749         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22750 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22751       fi
22752       # Try to locate tool using the code snippet
22753       for ac_prog in time
22754 do
22755   # Extract the first word of "$ac_prog", so it can be a program name with args.
22756 set dummy $ac_prog; ac_word=$2
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22758 $as_echo_n "checking for $ac_word... " >&6; }
22759 if ${ac_cv_path_TIME+:} false; then :
22760   $as_echo_n "(cached) " >&6
22761 else
22762   case $TIME in
22763   [\\/]* | ?:[\\/]*)
22764   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22765   ;;
22766   *)
22767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22768 for as_dir in $PATH
22769 do
22770   IFS=$as_save_IFS
22771   test -z "$as_dir" && as_dir=.
22772     for ac_exec_ext in '' $ac_executable_extensions; do
22773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22774     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22776     break 2
22777   fi
22778 done
22779   done
22780 IFS=$as_save_IFS
22781 
22782   ;;
22783 esac
22784 fi
22785 TIME=$ac_cv_path_TIME
22786 if test -n "$TIME"; then
22787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22788 $as_echo "$TIME" >&6; }
22789 else
22790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791 $as_echo "no" >&6; }
22792 fi
22793 
22794 
22795   test -n "$TIME" && break
22796 done
22797 
22798     else
22799       # If it succeeded, then it was overridden by the user. We will use it
22800       # for the tool.
22801 
22802       # First remove it from the list of overridden variables, so we can test
22803       # for unknown variables in the end.
22804       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22805 
22806       # Check if we try to supply an empty value
22807       if test "x$TIME" = x; then
22808         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22809 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22811 $as_echo_n "checking for TIME... " >&6; }
22812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22813 $as_echo "disabled" >&6; }
22814       else
22815         # Check if the provided tool contains a complete path.
22816         tool_specified="$TIME"
22817         tool_basename="${tool_specified##*/}"
22818         if test "x$tool_basename" = "x$tool_specified"; then
22819           # A command without a complete path is provided, search $PATH.
22820           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22821 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22822           # Extract the first word of "$tool_basename", so it can be a program name with args.
22823 set dummy $tool_basename; ac_word=$2
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22825 $as_echo_n "checking for $ac_word... " >&6; }
22826 if ${ac_cv_path_TIME+:} false; then :
22827   $as_echo_n "(cached) " >&6
22828 else
22829   case $TIME in
22830   [\\/]* | ?:[\\/]*)
22831   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22832   ;;
22833   *)
22834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22835 for as_dir in $PATH
22836 do
22837   IFS=$as_save_IFS
22838   test -z "$as_dir" && as_dir=.
22839     for ac_exec_ext in '' $ac_executable_extensions; do
22840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22841     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22843     break 2
22844   fi
22845 done
22846   done
22847 IFS=$as_save_IFS
22848 
22849   ;;
22850 esac
22851 fi
22852 TIME=$ac_cv_path_TIME
22853 if test -n "$TIME"; then
22854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22855 $as_echo "$TIME" >&6; }
22856 else
22857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22858 $as_echo "no" >&6; }
22859 fi
22860 
22861 
22862           if test "x$TIME" = x; then
22863             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22864           fi
22865         else
22866           # Otherwise we believe it is a complete path. Use it as it is.
22867           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22868 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22869           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22870 $as_echo_n "checking for TIME... " >&6; }
22871           if test ! -x "$tool_specified"; then
22872             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22873 $as_echo "not found" >&6; }
22874             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22875           fi
22876           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22877 $as_echo "$tool_specified" >&6; }
22878         fi
22879       fi
22880     fi
22881 
22882   fi
22883 
22884 
22885   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
22886   # be in the user path.
22887 
22888 
22889   # Publish this variable in the help.
22890 
22891 
22892   if [ -z "${DTRACE+x}" ]; then
22893     # The variable is not set by user, try to locate tool using the code snippet
22894     for ac_prog in dtrace
22895 do
22896   # Extract the first word of "$ac_prog", so it can be a program name with args.
22897 set dummy $ac_prog; ac_word=$2
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22899 $as_echo_n "checking for $ac_word... " >&6; }
22900 if ${ac_cv_path_DTRACE+:} false; then :
22901   $as_echo_n "(cached) " >&6
22902 else
22903   case $DTRACE in
22904   [\\/]* | ?:[\\/]*)
22905   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22906   ;;
22907   *)
22908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22909 as_dummy="$PATH:/usr/sbin"
22910 for as_dir in $as_dummy
22911 do
22912   IFS=$as_save_IFS
22913   test -z "$as_dir" && as_dir=.
22914     for ac_exec_ext in '' $ac_executable_extensions; do
22915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22916     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22918     break 2
22919   fi
22920 done
22921   done
22922 IFS=$as_save_IFS
22923 
22924   ;;
22925 esac
22926 fi
22927 DTRACE=$ac_cv_path_DTRACE
22928 if test -n "$DTRACE"; then
22929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22930 $as_echo "$DTRACE" >&6; }
22931 else
22932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22933 $as_echo "no" >&6; }
22934 fi
22935 
22936 
22937   test -n "$DTRACE" && break
22938 done
22939 
22940   else
22941     # The variable is set, but is it from the command line or the environment?
22942 
22943     # Try to remove the string !DTRACE! from our list.
22944     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22945     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22946       # If it failed, the variable was not from the command line. Ignore it,
22947       # but warn the user (except for BASH, which is always set by the calling BASH).
22948       if test "xDTRACE" != xBASH; then
22949         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22950 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22951       fi
22952       # Try to locate tool using the code snippet
22953       for ac_prog in dtrace
22954 do
22955   # Extract the first word of "$ac_prog", so it can be a program name with args.
22956 set dummy $ac_prog; ac_word=$2
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22958 $as_echo_n "checking for $ac_word... " >&6; }
22959 if ${ac_cv_path_DTRACE+:} false; then :
22960   $as_echo_n "(cached) " >&6
22961 else
22962   case $DTRACE in
22963   [\\/]* | ?:[\\/]*)
22964   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22965   ;;
22966   *)
22967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 as_dummy="$PATH:/usr/sbin"
22969 for as_dir in $as_dummy
22970 do
22971   IFS=$as_save_IFS
22972   test -z "$as_dir" && as_dir=.
22973     for ac_exec_ext in '' $ac_executable_extensions; do
22974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22975     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22977     break 2
22978   fi
22979 done
22980   done
22981 IFS=$as_save_IFS
22982 
22983   ;;
22984 esac
22985 fi
22986 DTRACE=$ac_cv_path_DTRACE
22987 if test -n "$DTRACE"; then
22988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22989 $as_echo "$DTRACE" >&6; }
22990 else
22991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992 $as_echo "no" >&6; }
22993 fi
22994 
22995 
22996   test -n "$DTRACE" && break
22997 done
22998 
22999     else
23000       # If it succeeded, then it was overridden by the user. We will use it
23001       # for the tool.
23002 
23003       # First remove it from the list of overridden variables, so we can test
23004       # for unknown variables in the end.
23005       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23006 
23007       # Check if we try to supply an empty value
23008       if test "x$DTRACE" = x; then
23009         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23010 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23012 $as_echo_n "checking for DTRACE... " >&6; }
23013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23014 $as_echo "disabled" >&6; }
23015       else
23016         # Check if the provided tool contains a complete path.
23017         tool_specified="$DTRACE"
23018         tool_basename="${tool_specified##*/}"
23019         if test "x$tool_basename" = "x$tool_specified"; then
23020           # A command without a complete path is provided, search $PATH.
23021           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23022 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23023           # Extract the first word of "$tool_basename", so it can be a program name with args.
23024 set dummy $tool_basename; ac_word=$2
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23026 $as_echo_n "checking for $ac_word... " >&6; }
23027 if ${ac_cv_path_DTRACE+:} false; then :
23028   $as_echo_n "(cached) " >&6
23029 else
23030   case $DTRACE in
23031   [\\/]* | ?:[\\/]*)
23032   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23033   ;;
23034   *)
23035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036 for as_dir in $PATH
23037 do
23038   IFS=$as_save_IFS
23039   test -z "$as_dir" && as_dir=.
23040     for ac_exec_ext in '' $ac_executable_extensions; do
23041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23042     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23044     break 2
23045   fi
23046 done
23047   done
23048 IFS=$as_save_IFS
23049 
23050   ;;
23051 esac
23052 fi
23053 DTRACE=$ac_cv_path_DTRACE
23054 if test -n "$DTRACE"; then
23055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23056 $as_echo "$DTRACE" >&6; }
23057 else
23058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23059 $as_echo "no" >&6; }
23060 fi
23061 
23062 
23063           if test "x$DTRACE" = x; then
23064             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23065           fi
23066         else
23067           # Otherwise we believe it is a complete path. Use it as it is.
23068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23069 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23070           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23071 $as_echo_n "checking for DTRACE... " >&6; }
23072           if test ! -x "$tool_specified"; then
23073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23074 $as_echo "not found" >&6; }
23075             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23076           fi
23077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23078 $as_echo "$tool_specified" >&6; }
23079         fi
23080       fi
23081     fi
23082 
23083   fi
23084 
23085 
23086 
23087 
23088   # Publish this variable in the help.
23089 
23090 
23091   if [ -z "${PATCH+x}" ]; then
23092     # The variable is not set by user, try to locate tool using the code snippet
23093     for ac_prog in gpatch patch
23094 do
23095   # Extract the first word of "$ac_prog", so it can be a program name with args.
23096 set dummy $ac_prog; ac_word=$2
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23098 $as_echo_n "checking for $ac_word... " >&6; }
23099 if ${ac_cv_path_PATCH+:} false; then :
23100   $as_echo_n "(cached) " >&6
23101 else
23102   case $PATCH in
23103   [\\/]* | ?:[\\/]*)
23104   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23105   ;;
23106   *)
23107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23108 for as_dir in $PATH
23109 do
23110   IFS=$as_save_IFS
23111   test -z "$as_dir" && as_dir=.
23112     for ac_exec_ext in '' $ac_executable_extensions; do
23113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23114     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23116     break 2
23117   fi
23118 done
23119   done
23120 IFS=$as_save_IFS
23121 
23122   ;;
23123 esac
23124 fi
23125 PATCH=$ac_cv_path_PATCH
23126 if test -n "$PATCH"; then
23127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23128 $as_echo "$PATCH" >&6; }
23129 else
23130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23131 $as_echo "no" >&6; }
23132 fi
23133 
23134 
23135   test -n "$PATCH" && break
23136 done
23137 
23138   else
23139     # The variable is set, but is it from the command line or the environment?
23140 
23141     # Try to remove the string !PATCH! from our list.
23142     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23143     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23144       # If it failed, the variable was not from the command line. Ignore it,
23145       # but warn the user (except for BASH, which is always set by the calling BASH).
23146       if test "xPATCH" != xBASH; then
23147         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23148 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23149       fi
23150       # Try to locate tool using the code snippet
23151       for ac_prog in gpatch patch
23152 do
23153   # Extract the first word of "$ac_prog", so it can be a program name with args.
23154 set dummy $ac_prog; ac_word=$2
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23156 $as_echo_n "checking for $ac_word... " >&6; }
23157 if ${ac_cv_path_PATCH+:} false; then :
23158   $as_echo_n "(cached) " >&6
23159 else
23160   case $PATCH in
23161   [\\/]* | ?:[\\/]*)
23162   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23163   ;;
23164   *)
23165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23166 for as_dir in $PATH
23167 do
23168   IFS=$as_save_IFS
23169   test -z "$as_dir" && as_dir=.
23170     for ac_exec_ext in '' $ac_executable_extensions; do
23171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23172     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23174     break 2
23175   fi
23176 done
23177   done
23178 IFS=$as_save_IFS
23179 
23180   ;;
23181 esac
23182 fi
23183 PATCH=$ac_cv_path_PATCH
23184 if test -n "$PATCH"; then
23185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23186 $as_echo "$PATCH" >&6; }
23187 else
23188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23189 $as_echo "no" >&6; }
23190 fi
23191 
23192 
23193   test -n "$PATCH" && break
23194 done
23195 
23196     else
23197       # If it succeeded, then it was overridden by the user. We will use it
23198       # for the tool.
23199 
23200       # First remove it from the list of overridden variables, so we can test
23201       # for unknown variables in the end.
23202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23203 
23204       # Check if we try to supply an empty value
23205       if test "x$PATCH" = x; then
23206         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23207 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23209 $as_echo_n "checking for PATCH... " >&6; }
23210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23211 $as_echo "disabled" >&6; }
23212       else
23213         # Check if the provided tool contains a complete path.
23214         tool_specified="$PATCH"
23215         tool_basename="${tool_specified##*/}"
23216         if test "x$tool_basename" = "x$tool_specified"; then
23217           # A command without a complete path is provided, search $PATH.
23218           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23219 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23220           # Extract the first word of "$tool_basename", so it can be a program name with args.
23221 set dummy $tool_basename; ac_word=$2
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23223 $as_echo_n "checking for $ac_word... " >&6; }
23224 if ${ac_cv_path_PATCH+:} false; then :
23225   $as_echo_n "(cached) " >&6
23226 else
23227   case $PATCH in
23228   [\\/]* | ?:[\\/]*)
23229   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23230   ;;
23231   *)
23232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23233 for as_dir in $PATH
23234 do
23235   IFS=$as_save_IFS
23236   test -z "$as_dir" && as_dir=.
23237     for ac_exec_ext in '' $ac_executable_extensions; do
23238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23239     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23241     break 2
23242   fi
23243 done
23244   done
23245 IFS=$as_save_IFS
23246 
23247   ;;
23248 esac
23249 fi
23250 PATCH=$ac_cv_path_PATCH
23251 if test -n "$PATCH"; then
23252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23253 $as_echo "$PATCH" >&6; }
23254 else
23255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23256 $as_echo "no" >&6; }
23257 fi
23258 
23259 
23260           if test "x$PATCH" = x; then
23261             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23262           fi
23263         else
23264           # Otherwise we believe it is a complete path. Use it as it is.
23265           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23266 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23267           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23268 $as_echo_n "checking for PATCH... " >&6; }
23269           if test ! -x "$tool_specified"; then
23270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23271 $as_echo "not found" >&6; }
23272             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23273           fi
23274           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23275 $as_echo "$tool_specified" >&6; }
23276         fi
23277       fi
23278     fi
23279 
23280   fi
23281 
23282 
23283   # Check if it's GNU time
23284   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23285   if test "x$IS_GNU_TIME" != x; then
23286     IS_GNU_TIME=yes
23287   else
23288     IS_GNU_TIME=no
23289   fi
23290 
23291 
23292   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23293 
23294 
23295 
23296   # Publish this variable in the help.
23297 
23298 
23299   if [ -z "${DSYMUTIL+x}" ]; then
23300     # The variable is not set by user, try to locate tool using the code snippet
23301     for ac_prog in dsymutil
23302 do
23303   # Extract the first word of "$ac_prog", so it can be a program name with args.
23304 set dummy $ac_prog; ac_word=$2
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23306 $as_echo_n "checking for $ac_word... " >&6; }
23307 if ${ac_cv_path_DSYMUTIL+:} false; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   case $DSYMUTIL in
23311   [\\/]* | ?:[\\/]*)
23312   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23313   ;;
23314   *)
23315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23316 for as_dir in $PATH
23317 do
23318   IFS=$as_save_IFS
23319   test -z "$as_dir" && as_dir=.
23320     for ac_exec_ext in '' $ac_executable_extensions; do
23321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23322     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23324     break 2
23325   fi
23326 done
23327   done
23328 IFS=$as_save_IFS
23329 
23330   ;;
23331 esac
23332 fi
23333 DSYMUTIL=$ac_cv_path_DSYMUTIL
23334 if test -n "$DSYMUTIL"; then
23335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23336 $as_echo "$DSYMUTIL" >&6; }
23337 else
23338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23339 $as_echo "no" >&6; }
23340 fi
23341 
23342 
23343   test -n "$DSYMUTIL" && break
23344 done
23345 
23346   else
23347     # The variable is set, but is it from the command line or the environment?
23348 
23349     # Try to remove the string !DSYMUTIL! from our list.
23350     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23351     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23352       # If it failed, the variable was not from the command line. Ignore it,
23353       # but warn the user (except for BASH, which is always set by the calling BASH).
23354       if test "xDSYMUTIL" != xBASH; then
23355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23356 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23357       fi
23358       # Try to locate tool using the code snippet
23359       for ac_prog in dsymutil
23360 do
23361   # Extract the first word of "$ac_prog", so it can be a program name with args.
23362 set dummy $ac_prog; ac_word=$2
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23364 $as_echo_n "checking for $ac_word... " >&6; }
23365 if ${ac_cv_path_DSYMUTIL+:} false; then :
23366   $as_echo_n "(cached) " >&6
23367 else
23368   case $DSYMUTIL in
23369   [\\/]* | ?:[\\/]*)
23370   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23371   ;;
23372   *)
23373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374 for as_dir in $PATH
23375 do
23376   IFS=$as_save_IFS
23377   test -z "$as_dir" && as_dir=.
23378     for ac_exec_ext in '' $ac_executable_extensions; do
23379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23380     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23382     break 2
23383   fi
23384 done
23385   done
23386 IFS=$as_save_IFS
23387 
23388   ;;
23389 esac
23390 fi
23391 DSYMUTIL=$ac_cv_path_DSYMUTIL
23392 if test -n "$DSYMUTIL"; then
23393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23394 $as_echo "$DSYMUTIL" >&6; }
23395 else
23396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23397 $as_echo "no" >&6; }
23398 fi
23399 
23400 
23401   test -n "$DSYMUTIL" && break
23402 done
23403 
23404     else
23405       # If it succeeded, then it was overridden by the user. We will use it
23406       # for the tool.
23407 
23408       # First remove it from the list of overridden variables, so we can test
23409       # for unknown variables in the end.
23410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23411 
23412       # Check if we try to supply an empty value
23413       if test "x$DSYMUTIL" = x; then
23414         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23415 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23417 $as_echo_n "checking for DSYMUTIL... " >&6; }
23418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23419 $as_echo "disabled" >&6; }
23420       else
23421         # Check if the provided tool contains a complete path.
23422         tool_specified="$DSYMUTIL"
23423         tool_basename="${tool_specified##*/}"
23424         if test "x$tool_basename" = "x$tool_specified"; then
23425           # A command without a complete path is provided, search $PATH.
23426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23427 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23428           # Extract the first word of "$tool_basename", so it can be a program name with args.
23429 set dummy $tool_basename; ac_word=$2
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23431 $as_echo_n "checking for $ac_word... " >&6; }
23432 if ${ac_cv_path_DSYMUTIL+:} false; then :
23433   $as_echo_n "(cached) " >&6
23434 else
23435   case $DSYMUTIL in
23436   [\\/]* | ?:[\\/]*)
23437   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23438   ;;
23439   *)
23440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23441 for as_dir in $PATH
23442 do
23443   IFS=$as_save_IFS
23444   test -z "$as_dir" && as_dir=.
23445     for ac_exec_ext in '' $ac_executable_extensions; do
23446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23447     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23449     break 2
23450   fi
23451 done
23452   done
23453 IFS=$as_save_IFS
23454 
23455   ;;
23456 esac
23457 fi
23458 DSYMUTIL=$ac_cv_path_DSYMUTIL
23459 if test -n "$DSYMUTIL"; then
23460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23461 $as_echo "$DSYMUTIL" >&6; }
23462 else
23463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23464 $as_echo "no" >&6; }
23465 fi
23466 
23467 
23468           if test "x$DSYMUTIL" = x; then
23469             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23470           fi
23471         else
23472           # Otherwise we believe it is a complete path. Use it as it is.
23473           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23474 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23475           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23476 $as_echo_n "checking for DSYMUTIL... " >&6; }
23477           if test ! -x "$tool_specified"; then
23478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23479 $as_echo "not found" >&6; }
23480             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23481           fi
23482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23483 $as_echo "$tool_specified" >&6; }
23484         fi
23485       fi
23486     fi
23487 
23488   fi
23489 
23490 
23491 
23492   if test "x$DSYMUTIL" = x; then
23493     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23494   fi
23495 
23496 
23497 
23498 
23499 
23500   # Publish this variable in the help.
23501 
23502 
23503   if [ -z "${XATTR+x}" ]; then
23504     # The variable is not set by user, try to locate tool using the code snippet
23505     for ac_prog in xattr
23506 do
23507   # Extract the first word of "$ac_prog", so it can be a program name with args.
23508 set dummy $ac_prog; ac_word=$2
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23510 $as_echo_n "checking for $ac_word... " >&6; }
23511 if ${ac_cv_path_XATTR+:} false; then :
23512   $as_echo_n "(cached) " >&6
23513 else
23514   case $XATTR in
23515   [\\/]* | ?:[\\/]*)
23516   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23517   ;;
23518   *)
23519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23520 for as_dir in $PATH
23521 do
23522   IFS=$as_save_IFS
23523   test -z "$as_dir" && as_dir=.
23524     for ac_exec_ext in '' $ac_executable_extensions; do
23525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23526     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23528     break 2
23529   fi
23530 done
23531   done
23532 IFS=$as_save_IFS
23533 
23534   ;;
23535 esac
23536 fi
23537 XATTR=$ac_cv_path_XATTR
23538 if test -n "$XATTR"; then
23539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23540 $as_echo "$XATTR" >&6; }
23541 else
23542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544 fi
23545 
23546 
23547   test -n "$XATTR" && break
23548 done
23549 
23550   else
23551     # The variable is set, but is it from the command line or the environment?
23552 
23553     # Try to remove the string !XATTR! from our list.
23554     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23555     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23556       # If it failed, the variable was not from the command line. Ignore it,
23557       # but warn the user (except for BASH, which is always set by the calling BASH).
23558       if test "xXATTR" != xBASH; then
23559         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23560 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23561       fi
23562       # Try to locate tool using the code snippet
23563       for ac_prog in xattr
23564 do
23565   # Extract the first word of "$ac_prog", so it can be a program name with args.
23566 set dummy $ac_prog; ac_word=$2
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23568 $as_echo_n "checking for $ac_word... " >&6; }
23569 if ${ac_cv_path_XATTR+:} false; then :
23570   $as_echo_n "(cached) " >&6
23571 else
23572   case $XATTR in
23573   [\\/]* | ?:[\\/]*)
23574   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23575   ;;
23576   *)
23577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23578 for as_dir in $PATH
23579 do
23580   IFS=$as_save_IFS
23581   test -z "$as_dir" && as_dir=.
23582     for ac_exec_ext in '' $ac_executable_extensions; do
23583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23584     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23586     break 2
23587   fi
23588 done
23589   done
23590 IFS=$as_save_IFS
23591 
23592   ;;
23593 esac
23594 fi
23595 XATTR=$ac_cv_path_XATTR
23596 if test -n "$XATTR"; then
23597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23598 $as_echo "$XATTR" >&6; }
23599 else
23600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602 fi
23603 
23604 
23605   test -n "$XATTR" && break
23606 done
23607 
23608     else
23609       # If it succeeded, then it was overridden by the user. We will use it
23610       # for the tool.
23611 
23612       # First remove it from the list of overridden variables, so we can test
23613       # for unknown variables in the end.
23614       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23615 
23616       # Check if we try to supply an empty value
23617       if test "x$XATTR" = x; then
23618         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23619 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23621 $as_echo_n "checking for XATTR... " >&6; }
23622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23623 $as_echo "disabled" >&6; }
23624       else
23625         # Check if the provided tool contains a complete path.
23626         tool_specified="$XATTR"
23627         tool_basename="${tool_specified##*/}"
23628         if test "x$tool_basename" = "x$tool_specified"; then
23629           # A command without a complete path is provided, search $PATH.
23630           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23631 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23632           # Extract the first word of "$tool_basename", so it can be a program name with args.
23633 set dummy $tool_basename; ac_word=$2
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23635 $as_echo_n "checking for $ac_word... " >&6; }
23636 if ${ac_cv_path_XATTR+:} false; then :
23637   $as_echo_n "(cached) " >&6
23638 else
23639   case $XATTR in
23640   [\\/]* | ?:[\\/]*)
23641   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23642   ;;
23643   *)
23644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23645 for as_dir in $PATH
23646 do
23647   IFS=$as_save_IFS
23648   test -z "$as_dir" && as_dir=.
23649     for ac_exec_ext in '' $ac_executable_extensions; do
23650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23651     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23653     break 2
23654   fi
23655 done
23656   done
23657 IFS=$as_save_IFS
23658 
23659   ;;
23660 esac
23661 fi
23662 XATTR=$ac_cv_path_XATTR
23663 if test -n "$XATTR"; then
23664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23665 $as_echo "$XATTR" >&6; }
23666 else
23667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23669 fi
23670 
23671 
23672           if test "x$XATTR" = x; then
23673             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23674           fi
23675         else
23676           # Otherwise we believe it is a complete path. Use it as it is.
23677           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23678 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23679           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23680 $as_echo_n "checking for XATTR... " >&6; }
23681           if test ! -x "$tool_specified"; then
23682             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23683 $as_echo "not found" >&6; }
23684             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23685           fi
23686           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23687 $as_echo "$tool_specified" >&6; }
23688         fi
23689       fi
23690     fi
23691 
23692   fi
23693 
23694 
23695 
23696   if test "x$XATTR" = x; then
23697     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23698   fi
23699 
23700 
23701 
23702 
23703   # Publish this variable in the help.
23704 
23705 
23706   if [ -z "${CODESIGN+x}" ]; then
23707     # The variable is not set by user, try to locate tool using the code snippet
23708     for ac_prog in codesign
23709 do
23710   # Extract the first word of "$ac_prog", so it can be a program name with args.
23711 set dummy $ac_prog; ac_word=$2
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23713 $as_echo_n "checking for $ac_word... " >&6; }
23714 if ${ac_cv_path_CODESIGN+:} false; then :
23715   $as_echo_n "(cached) " >&6
23716 else
23717   case $CODESIGN in
23718   [\\/]* | ?:[\\/]*)
23719   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23720   ;;
23721   *)
23722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23723 for as_dir in $PATH
23724 do
23725   IFS=$as_save_IFS
23726   test -z "$as_dir" && as_dir=.
23727     for ac_exec_ext in '' $ac_executable_extensions; do
23728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23729     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23731     break 2
23732   fi
23733 done
23734   done
23735 IFS=$as_save_IFS
23736 
23737   ;;
23738 esac
23739 fi
23740 CODESIGN=$ac_cv_path_CODESIGN
23741 if test -n "$CODESIGN"; then
23742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23743 $as_echo "$CODESIGN" >&6; }
23744 else
23745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23747 fi
23748 
23749 
23750   test -n "$CODESIGN" && break
23751 done
23752 
23753   else
23754     # The variable is set, but is it from the command line or the environment?
23755 
23756     # Try to remove the string !CODESIGN! from our list.
23757     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23758     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23759       # If it failed, the variable was not from the command line. Ignore it,
23760       # but warn the user (except for BASH, which is always set by the calling BASH).
23761       if test "xCODESIGN" != xBASH; then
23762         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23763 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23764       fi
23765       # Try to locate tool using the code snippet
23766       for ac_prog in codesign
23767 do
23768   # Extract the first word of "$ac_prog", so it can be a program name with args.
23769 set dummy $ac_prog; ac_word=$2
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23771 $as_echo_n "checking for $ac_word... " >&6; }
23772 if ${ac_cv_path_CODESIGN+:} false; then :
23773   $as_echo_n "(cached) " >&6
23774 else
23775   case $CODESIGN in
23776   [\\/]* | ?:[\\/]*)
23777   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23778   ;;
23779   *)
23780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23781 for as_dir in $PATH
23782 do
23783   IFS=$as_save_IFS
23784   test -z "$as_dir" && as_dir=.
23785     for ac_exec_ext in '' $ac_executable_extensions; do
23786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23787     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23789     break 2
23790   fi
23791 done
23792   done
23793 IFS=$as_save_IFS
23794 
23795   ;;
23796 esac
23797 fi
23798 CODESIGN=$ac_cv_path_CODESIGN
23799 if test -n "$CODESIGN"; then
23800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23801 $as_echo "$CODESIGN" >&6; }
23802 else
23803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23804 $as_echo "no" >&6; }
23805 fi
23806 
23807 
23808   test -n "$CODESIGN" && break
23809 done
23810 
23811     else
23812       # If it succeeded, then it was overridden by the user. We will use it
23813       # for the tool.
23814 
23815       # First remove it from the list of overridden variables, so we can test
23816       # for unknown variables in the end.
23817       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23818 
23819       # Check if we try to supply an empty value
23820       if test "x$CODESIGN" = x; then
23821         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23822 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23824 $as_echo_n "checking for CODESIGN... " >&6; }
23825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23826 $as_echo "disabled" >&6; }
23827       else
23828         # Check if the provided tool contains a complete path.
23829         tool_specified="$CODESIGN"
23830         tool_basename="${tool_specified##*/}"
23831         if test "x$tool_basename" = "x$tool_specified"; then
23832           # A command without a complete path is provided, search $PATH.
23833           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23834 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23835           # Extract the first word of "$tool_basename", so it can be a program name with args.
23836 set dummy $tool_basename; ac_word=$2
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23838 $as_echo_n "checking for $ac_word... " >&6; }
23839 if ${ac_cv_path_CODESIGN+:} false; then :
23840   $as_echo_n "(cached) " >&6
23841 else
23842   case $CODESIGN in
23843   [\\/]* | ?:[\\/]*)
23844   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23845   ;;
23846   *)
23847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23848 for as_dir in $PATH
23849 do
23850   IFS=$as_save_IFS
23851   test -z "$as_dir" && as_dir=.
23852     for ac_exec_ext in '' $ac_executable_extensions; do
23853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23854     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23856     break 2
23857   fi
23858 done
23859   done
23860 IFS=$as_save_IFS
23861 
23862   ;;
23863 esac
23864 fi
23865 CODESIGN=$ac_cv_path_CODESIGN
23866 if test -n "$CODESIGN"; then
23867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23868 $as_echo "$CODESIGN" >&6; }
23869 else
23870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23871 $as_echo "no" >&6; }
23872 fi
23873 
23874 
23875           if test "x$CODESIGN" = x; then
23876             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23877           fi
23878         else
23879           # Otherwise we believe it is a complete path. Use it as it is.
23880           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23881 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23882           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23883 $as_echo_n "checking for CODESIGN... " >&6; }
23884           if test ! -x "$tool_specified"; then
23885             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23886 $as_echo "not found" >&6; }
23887             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23888           fi
23889           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23890 $as_echo "$tool_specified" >&6; }
23891         fi
23892       fi
23893     fi
23894 
23895   fi
23896 
23897 
23898     if test "x$CODESIGN" != "x"; then
23899       # Verify that the openjdk_codesign certificate is present
23900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23901 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23902       $RM codesign-testfile
23903       $TOUCH codesign-testfile
23904       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23905       $RM codesign-testfile
23906       if test "x$CODESIGN" = x; then
23907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23908 $as_echo "no" >&6; }
23909       else
23910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23911 $as_echo "yes" >&6; }
23912       fi
23913     fi
23914 
23915 
23916 
23917   # Publish this variable in the help.
23918 
23919 
23920   if [ -z "${SETFILE+x}" ]; then
23921     # The variable is not set by user, try to locate tool using the code snippet
23922     for ac_prog in SetFile
23923 do
23924   # Extract the first word of "$ac_prog", so it can be a program name with args.
23925 set dummy $ac_prog; ac_word=$2
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23927 $as_echo_n "checking for $ac_word... " >&6; }
23928 if ${ac_cv_path_SETFILE+:} false; then :
23929   $as_echo_n "(cached) " >&6
23930 else
23931   case $SETFILE in
23932   [\\/]* | ?:[\\/]*)
23933   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23934   ;;
23935   *)
23936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23937 for as_dir in $PATH
23938 do
23939   IFS=$as_save_IFS
23940   test -z "$as_dir" && as_dir=.
23941     for ac_exec_ext in '' $ac_executable_extensions; do
23942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23943     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23945     break 2
23946   fi
23947 done
23948   done
23949 IFS=$as_save_IFS
23950 
23951   ;;
23952 esac
23953 fi
23954 SETFILE=$ac_cv_path_SETFILE
23955 if test -n "$SETFILE"; then
23956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23957 $as_echo "$SETFILE" >&6; }
23958 else
23959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23960 $as_echo "no" >&6; }
23961 fi
23962 
23963 
23964   test -n "$SETFILE" && break
23965 done
23966 
23967   else
23968     # The variable is set, but is it from the command line or the environment?
23969 
23970     # Try to remove the string !SETFILE! from our list.
23971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23973       # If it failed, the variable was not from the command line. Ignore it,
23974       # but warn the user (except for BASH, which is always set by the calling BASH).
23975       if test "xSETFILE" != xBASH; then
23976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23977 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23978       fi
23979       # Try to locate tool using the code snippet
23980       for ac_prog in SetFile
23981 do
23982   # Extract the first word of "$ac_prog", so it can be a program name with args.
23983 set dummy $ac_prog; ac_word=$2
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23985 $as_echo_n "checking for $ac_word... " >&6; }
23986 if ${ac_cv_path_SETFILE+:} false; then :
23987   $as_echo_n "(cached) " >&6
23988 else
23989   case $SETFILE in
23990   [\\/]* | ?:[\\/]*)
23991   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23992   ;;
23993   *)
23994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23995 for as_dir in $PATH
23996 do
23997   IFS=$as_save_IFS
23998   test -z "$as_dir" && as_dir=.
23999     for ac_exec_ext in '' $ac_executable_extensions; do
24000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24001     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24003     break 2
24004   fi
24005 done
24006   done
24007 IFS=$as_save_IFS
24008 
24009   ;;
24010 esac
24011 fi
24012 SETFILE=$ac_cv_path_SETFILE
24013 if test -n "$SETFILE"; then
24014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24015 $as_echo "$SETFILE" >&6; }
24016 else
24017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24018 $as_echo "no" >&6; }
24019 fi
24020 
24021 
24022   test -n "$SETFILE" && break
24023 done
24024 
24025     else
24026       # If it succeeded, then it was overridden by the user. We will use it
24027       # for the tool.
24028 
24029       # First remove it from the list of overridden variables, so we can test
24030       # for unknown variables in the end.
24031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24032 
24033       # Check if we try to supply an empty value
24034       if test "x$SETFILE" = x; then
24035         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24036 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24038 $as_echo_n "checking for SETFILE... " >&6; }
24039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24040 $as_echo "disabled" >&6; }
24041       else
24042         # Check if the provided tool contains a complete path.
24043         tool_specified="$SETFILE"
24044         tool_basename="${tool_specified##*/}"
24045         if test "x$tool_basename" = "x$tool_specified"; then
24046           # A command without a complete path is provided, search $PATH.
24047           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24048 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24049           # Extract the first word of "$tool_basename", so it can be a program name with args.
24050 set dummy $tool_basename; ac_word=$2
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24052 $as_echo_n "checking for $ac_word... " >&6; }
24053 if ${ac_cv_path_SETFILE+:} false; then :
24054   $as_echo_n "(cached) " >&6
24055 else
24056   case $SETFILE in
24057   [\\/]* | ?:[\\/]*)
24058   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24059   ;;
24060   *)
24061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24062 for as_dir in $PATH
24063 do
24064   IFS=$as_save_IFS
24065   test -z "$as_dir" && as_dir=.
24066     for ac_exec_ext in '' $ac_executable_extensions; do
24067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24068     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24070     break 2
24071   fi
24072 done
24073   done
24074 IFS=$as_save_IFS
24075 
24076   ;;
24077 esac
24078 fi
24079 SETFILE=$ac_cv_path_SETFILE
24080 if test -n "$SETFILE"; then
24081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24082 $as_echo "$SETFILE" >&6; }
24083 else
24084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24085 $as_echo "no" >&6; }
24086 fi
24087 
24088 
24089           if test "x$SETFILE" = x; then
24090             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24091           fi
24092         else
24093           # Otherwise we believe it is a complete path. Use it as it is.
24094           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24095 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24097 $as_echo_n "checking for SETFILE... " >&6; }
24098           if test ! -x "$tool_specified"; then
24099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24100 $as_echo "not found" >&6; }
24101             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24102           fi
24103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24104 $as_echo "$tool_specified" >&6; }
24105         fi
24106       fi
24107     fi
24108 
24109   fi
24110 
24111 
24112 
24113   if test "x$SETFILE" = x; then
24114     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24115   fi
24116 
24117 
24118   fi
24119 
24120 
24121   # Test if bash supports pipefail.
24122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24123 $as_echo_n "checking if bash supports pipefail... " >&6; }
24124   if ${BASH} -c 'set -o pipefail'; then
24125     BASH_ARGS="$BASH_ARGS -o pipefail"
24126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24127 $as_echo "yes" >&6; }
24128   else
24129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24131   fi
24132 
24133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24134 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24135   if ${BASH} -e -c 'true'; then
24136     BASH_ARGS="$BASH_ARGS -e"
24137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24138 $as_echo "yes" >&6; }
24139   else
24140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24141 $as_echo "no" >&6; }
24142   fi
24143 
24144 
24145 
24146 
24147 # Check if pkg-config is available.
24148 
24149 
24150 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24151         if test -n "$ac_tool_prefix"; then
24152   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24153 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24155 $as_echo_n "checking for $ac_word... " >&6; }
24156 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24157   $as_echo_n "(cached) " >&6
24158 else
24159   case $PKG_CONFIG in
24160   [\\/]* | ?:[\\/]*)
24161   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24162   ;;
24163   *)
24164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24165 for as_dir in $PATH
24166 do
24167   IFS=$as_save_IFS
24168   test -z "$as_dir" && as_dir=.
24169     for ac_exec_ext in '' $ac_executable_extensions; do
24170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24171     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24173     break 2
24174   fi
24175 done
24176   done
24177 IFS=$as_save_IFS
24178 
24179   ;;
24180 esac
24181 fi
24182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24183 if test -n "$PKG_CONFIG"; then
24184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24185 $as_echo "$PKG_CONFIG" >&6; }
24186 else
24187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24188 $as_echo "no" >&6; }
24189 fi
24190 
24191 
24192 fi
24193 if test -z "$ac_cv_path_PKG_CONFIG"; then
24194   ac_pt_PKG_CONFIG=$PKG_CONFIG
24195   # Extract the first word of "pkg-config", so it can be a program name with args.
24196 set dummy pkg-config; ac_word=$2
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24198 $as_echo_n "checking for $ac_word... " >&6; }
24199 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24200   $as_echo_n "(cached) " >&6
24201 else
24202   case $ac_pt_PKG_CONFIG in
24203   [\\/]* | ?:[\\/]*)
24204   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24205   ;;
24206   *)
24207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24208 for as_dir in $PATH
24209 do
24210   IFS=$as_save_IFS
24211   test -z "$as_dir" && as_dir=.
24212     for ac_exec_ext in '' $ac_executable_extensions; do
24213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24214     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24216     break 2
24217   fi
24218 done
24219   done
24220 IFS=$as_save_IFS
24221 
24222   ;;
24223 esac
24224 fi
24225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24226 if test -n "$ac_pt_PKG_CONFIG"; then
24227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24228 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24229 else
24230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232 fi
24233 
24234   if test "x$ac_pt_PKG_CONFIG" = x; then
24235     PKG_CONFIG=""
24236   else
24237     case $cross_compiling:$ac_tool_warned in
24238 yes:)
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24241 ac_tool_warned=yes ;;
24242 esac
24243     PKG_CONFIG=$ac_pt_PKG_CONFIG
24244   fi
24245 else
24246   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24247 fi
24248 
24249 fi
24250 if test -n "$PKG_CONFIG"; then
24251         _pkg_min_version=0.9.0
24252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24253 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24254         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24255                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24256 $as_echo "yes" >&6; }
24257         else
24258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24259 $as_echo "no" >&6; }
24260                 PKG_CONFIG=""
24261         fi
24262 
24263 fi
24264 
24265 # After basic tools have been setup, we can check build os specific details.
24266 
24267   ###############################################################################
24268 
24269   # Note that this is the build platform OS version!
24270 
24271   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24272   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24273   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24274   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24275 
24276 
24277 
24278 
24279 
24280 # Misc basic settings
24281 
24282 
24283 # Check whether --with-default-make-target was given.
24284 if test "${with_default_make_target+set}" = set; then :
24285   withval=$with_default_make_target;
24286 fi
24287 
24288   if test "x$with_default_make_target" = "x" \
24289       || test "x$with_default_make_target" = "xyes"; then
24290     DEFAULT_MAKE_TARGET="exploded-image"
24291   elif test "x$with_default_make_target" = "xno"; then
24292     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24293   else
24294     DEFAULT_MAKE_TARGET="$with_default_make_target"
24295   fi
24296 
24297 
24298 
24299 
24300 ###############################################################################
24301 #
24302 # Determine OpenJDK variants, options and version numbers.
24303 #
24304 ###############################################################################
24305 
24306 # We need build & target for this.
24307 
24308   # Should we build a JDK without a graphical UI?
24309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24310 $as_echo_n "checking headless only... " >&6; }
24311   # Check whether --enable-headless-only was given.
24312 if test "${enable_headless_only+set}" = set; then :
24313   enableval=$enable_headless_only;
24314 fi
24315 
24316 
24317   if test "x$enable_headless_only" = "xyes"; then
24318     ENABLE_HEADLESS_ONLY="true"
24319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24320 $as_echo "yes" >&6; }
24321   elif test "x$enable_headless_only" = "xno"; then
24322     ENABLE_HEADLESS_ONLY="false"
24323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24324 $as_echo "no" >&6; }
24325   elif test "x$enable_headless_only" = "x"; then
24326     ENABLE_HEADLESS_ONLY="false"
24327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24328 $as_echo "no" >&6; }
24329   else
24330     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24331   fi
24332 
24333 
24334 
24335   # Choose cacerts source file
24336 
24337 # Check whether --with-cacerts-file was given.
24338 if test "${with_cacerts_file+set}" = set; then :
24339   withval=$with_cacerts_file;
24340 fi
24341 
24342   if test "x$with_cacerts_file" != x; then
24343     CACERTS_FILE=$with_cacerts_file
24344   fi
24345 
24346 
24347   # Enable or disable unlimited crypto
24348   # Check whether --enable-unlimited-crypto was given.
24349 if test "${enable_unlimited_crypto+set}" = set; then :
24350   enableval=$enable_unlimited_crypto;
24351 else
24352   enable_unlimited_crypto=yes
24353 fi
24354 
24355   if test "x$enable_unlimited_crypto" = "xyes"; then
24356     UNLIMITED_CRYPTO=true
24357   else
24358     UNLIMITED_CRYPTO=false
24359   fi
24360 
24361 
24362   # Should we build the serviceability agent (SA)?
24363   INCLUDE_SA=true
24364   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24365     INCLUDE_SA=false
24366   fi
24367   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24368     INCLUDE_SA=false
24369   fi
24370 
24371 
24372   # Compress jars
24373   COMPRESS_JARS=false
24374 
24375 
24376 
24377   # Setup default copyright year. Mostly overridden when building close to a new year.
24378 
24379 # Check whether --with-copyright-year was given.
24380 if test "${with_copyright_year+set}" = set; then :
24381   withval=$with_copyright_year;
24382 fi
24383 
24384   if test "x$with_copyright_year" = xyes; then
24385     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24386   elif test "x$with_copyright_year" != x; then
24387     COPYRIGHT_YEAR="$with_copyright_year"
24388   else
24389     COPYRIGHT_YEAR=`$DATE +'%Y'`
24390   fi
24391 
24392 
24393 
24394   # Check whether --enable-keep-packaged-modules was given.
24395 if test "${enable_keep_packaged_modules+set}" = set; then :
24396   enableval=$enable_keep_packaged_modules;
24397 fi
24398 
24399 
24400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24401 $as_echo_n "checking if packaged modules are kept... " >&6; }
24402   if test "x$enable_keep_packaged_modules" = "xyes"; then
24403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24404 $as_echo "yes" >&6; }
24405     JLINK_KEEP_PACKAGED_MODULES=true
24406   elif test "x$enable_keep_packaged_modules" = "xno"; then
24407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24408 $as_echo "no" >&6; }
24409     JLINK_KEEP_PACKAGED_MODULES=false
24410   elif test "x$enable_keep_packaged_modules" = "x"; then
24411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24412 $as_echo "yes (default)" >&6; }
24413     JLINK_KEEP_PACKAGED_MODULES=true
24414   else
24415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24416 $as_echo "error" >&6; }
24417     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24418   fi
24419 
24420 
24421 
24422 
24423   # Warn user that old version arguments are deprecated.
24424 
24425 
24426 # Check whether --with-milestone was given.
24427 if test "${with_milestone+set}" = set; then :
24428   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24429 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24430 fi
24431 
24432 
24433 
24434 
24435 # Check whether --with-update-version was given.
24436 if test "${with_update_version+set}" = set; then :
24437   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24438 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24439 fi
24440 
24441 
24442 
24443 
24444 # Check whether --with-user-release-suffix was given.
24445 if test "${with_user_release_suffix+set}" = set; then :
24446   withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
24447 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24448 fi
24449 
24450 
24451 
24452 
24453 # Check whether --with-build-number was given.
24454 if test "${with_build_number+set}" = set; then :
24455   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24456 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24457 fi
24458 
24459 
24460 
24461   # Source the version numbers file
24462   . $AUTOCONF_DIR/version-numbers
24463 
24464   # Some non-version number information is set in that file
24465 
24466 
24467 
24468 
24469 
24470 
24471 
24472 
24473 
24474   # Override version from arguments
24475 
24476   # If --with-version-string is set, process it first. It is possible to
24477   # override parts with more specific flags, since these are processed later.
24478 
24479 # Check whether --with-version-string was given.
24480 if test "${with_version_string+set}" = set; then :
24481   withval=$with_version_string;
24482 fi
24483 
24484   if test "x$with_version_string" = xyes; then
24485     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24486   elif test "x$with_version_string" != x; then
24487     # Additional [] needed to keep m4 from mangling shell constructs.
24488     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24489       VERSION_MAJOR=${BASH_REMATCH[1]}
24490       VERSION_MINOR=${BASH_REMATCH[3]}
24491       VERSION_SECURITY=${BASH_REMATCH[5]}
24492       VERSION_PATCH=${BASH_REMATCH[7]}
24493       VERSION_PRE=${BASH_REMATCH[9]}
24494       version_plus_separator=${BASH_REMATCH[11]}
24495       VERSION_BUILD=${BASH_REMATCH[12]}
24496       VERSION_OPT=${BASH_REMATCH[14]}
24497       # Unspecified numerical fields are interpreted as 0.
24498       if test "x$VERSION_MINOR" = x; then
24499         VERSION_MINOR=0
24500       fi
24501       if test "x$VERSION_SECURITY" = x; then
24502         VERSION_SECURITY=0
24503       fi
24504       if test "x$VERSION_PATCH" = x; then
24505         VERSION_PATCH=0
24506       fi
24507       if test "x$version_plus_separator" != x \
24508           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24509         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24510       fi
24511       # Stop the version part process from setting default values.
24512       # We still allow them to explicitly override though.
24513       NO_DEFAULT_VERSION_PARTS=true
24514     else
24515       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24516     fi
24517   fi
24518 
24519 
24520 # Check whether --with-version-pre was given.
24521 if test "${with_version_pre+set}" = set; then :
24522   withval=$with_version_pre; with_version_pre_present=true
24523 else
24524   with_version_pre_present=false
24525 fi
24526 
24527 
24528   if test "x$with_version_pre_present" = xtrue; then
24529     if test "x$with_version_pre" = xyes; then
24530       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24531     elif test "x$with_version_pre" = xno; then
24532       # Interpret --without-* as empty string instead of the literal "no"
24533       VERSION_PRE=
24534     else
24535       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24536        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24537       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24538         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24539 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24540       fi
24541     fi
24542   else
24543     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24544       # Default is to use "internal" as pre
24545       VERSION_PRE="internal"
24546     fi
24547   fi
24548 
24549 
24550 # Check whether --with-version-opt was given.
24551 if test "${with_version_opt+set}" = set; then :
24552   withval=$with_version_opt; with_version_opt_present=true
24553 else
24554   with_version_opt_present=false
24555 fi
24556 
24557 
24558   if test "x$with_version_opt_present" = xtrue; then
24559     if test "x$with_version_opt" = xyes; then
24560       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24561     elif test "x$with_version_opt" = xno; then
24562       # Interpret --without-* as empty string instead of the literal "no"
24563       VERSION_OPT=
24564     else
24565       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24566        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24567       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24568         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24569 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24570       fi
24571     fi
24572   else
24573     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24574       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
24575       # Outer [ ] to quote m4.
24576        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24577       VERSION_OPT="adhoc.$USERNAME.$basedirname"
24578     fi
24579   fi
24580 
24581 
24582 # Check whether --with-version-build was given.
24583 if test "${with_version_build+set}" = set; then :
24584   withval=$with_version_build; with_version_build_present=true
24585 else
24586   with_version_build_present=false
24587 fi
24588 
24589 
24590   if test "x$with_version_build_present" = xtrue; then
24591     if test "x$with_version_build" = xyes; then
24592       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24593     elif test "x$with_version_build" = xno; then
24594       # Interpret --without-* as empty string instead of the literal "no"
24595       VERSION_BUILD=
24596     elif test "x$with_version_build" = x; then
24597       VERSION_BUILD=
24598     else
24599 
24600   # Additional [] needed to keep m4 from mangling shell constructs.
24601   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24602     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24603   fi
24604   # Extract the version number without leading zeros.
24605   cleaned_value=${BASH_REMATCH[1]}
24606   if test "x$cleaned_value" = x; then
24607     # Special case for zero
24608     cleaned_value=${BASH_REMATCH[2]}
24609   fi
24610 
24611   if test $cleaned_value -gt 255; then
24612     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24613   fi
24614   if test "x$cleaned_value" != "x$with_version_build"; then
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24616 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24617   fi
24618   VERSION_BUILD=$cleaned_value
24619 
24620     fi
24621   else
24622     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24623       # Default is to not have a build number.
24624       VERSION_BUILD=""
24625       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24626       VERSION_BUILD=0
24627     fi
24628   fi
24629 
24630 
24631 # Check whether --with-version-major was given.
24632 if test "${with_version_major+set}" = set; then :
24633   withval=$with_version_major; with_version_major_present=true
24634 else
24635   with_version_major_present=false
24636 fi
24637 
24638 
24639   if test "x$with_version_major_present" = xtrue; then
24640     if test "x$with_version_major" = xyes; then
24641       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24642     else
24643 
24644   # Additional [] needed to keep m4 from mangling shell constructs.
24645   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24646     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24647   fi
24648   # Extract the version number without leading zeros.
24649   cleaned_value=${BASH_REMATCH[1]}
24650   if test "x$cleaned_value" = x; then
24651     # Special case for zero
24652     cleaned_value=${BASH_REMATCH[2]}
24653   fi
24654 
24655   if test $cleaned_value -gt 255; then
24656     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24657   fi
24658   if test "x$cleaned_value" != "x$with_version_major"; then
24659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24660 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24661   fi
24662   VERSION_MAJOR=$cleaned_value
24663 
24664     fi
24665   else
24666     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24667       # Default is to get value from version-numbers
24668       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24669     fi
24670   fi
24671 
24672 
24673 # Check whether --with-version-minor was given.
24674 if test "${with_version_minor+set}" = set; then :
24675   withval=$with_version_minor; with_version_minor_present=true
24676 else
24677   with_version_minor_present=false
24678 fi
24679 
24680 
24681   if test "x$with_version_minor_present" = xtrue; then
24682     if test "x$with_version_minor" = xyes; then
24683       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24684     elif test "x$with_version_minor" = xno; then
24685       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24686       VERSION_MINOR=0
24687     elif test "x$with_version_minor" = x; then
24688       VERSION_MINOR=0
24689     else
24690 
24691   # Additional [] needed to keep m4 from mangling shell constructs.
24692   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24693     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24694   fi
24695   # Extract the version number without leading zeros.
24696   cleaned_value=${BASH_REMATCH[1]}
24697   if test "x$cleaned_value" = x; then
24698     # Special case for zero
24699     cleaned_value=${BASH_REMATCH[2]}
24700   fi
24701 
24702   if test $cleaned_value -gt 255; then
24703     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24704   fi
24705   if test "x$cleaned_value" != "x$with_version_minor"; then
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24707 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24708   fi
24709   VERSION_MINOR=$cleaned_value
24710 
24711     fi
24712   else
24713     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24714       # Default is 0, if unspecified
24715       VERSION_MINOR=$DEFAULT_VERSION_MINOR
24716     fi
24717   fi
24718 
24719 
24720 # Check whether --with-version-security was given.
24721 if test "${with_version_security+set}" = set; then :
24722   withval=$with_version_security; with_version_security_present=true
24723 else
24724   with_version_security_present=false
24725 fi
24726 
24727 
24728   if test "x$with_version_security_present" = xtrue; then
24729     if test "x$with_version_security" = xyes; then
24730       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24731     elif test "x$with_version_security" = xno; then
24732       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24733       VERSION_SECURITY=0
24734     elif test "x$with_version_security" = x; then
24735       VERSION_SECURITY=0
24736     else
24737 
24738   # Additional [] needed to keep m4 from mangling shell constructs.
24739   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24740     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24741   fi
24742   # Extract the version number without leading zeros.
24743   cleaned_value=${BASH_REMATCH[1]}
24744   if test "x$cleaned_value" = x; then
24745     # Special case for zero
24746     cleaned_value=${BASH_REMATCH[2]}
24747   fi
24748 
24749   if test $cleaned_value -gt 255; then
24750     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24751   fi
24752   if test "x$cleaned_value" != "x$with_version_security"; then
24753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24754 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24755   fi
24756   VERSION_SECURITY=$cleaned_value
24757 
24758     fi
24759   else
24760     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24761       # Default is 0, if unspecified
24762       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
24763     fi
24764   fi
24765 
24766 
24767 # Check whether --with-version-patch was given.
24768 if test "${with_version_patch+set}" = set; then :
24769   withval=$with_version_patch; with_version_patch_present=true
24770 else
24771   with_version_patch_present=false
24772 fi
24773 
24774 
24775   if test "x$with_version_patch_present" = xtrue; then
24776     if test "x$with_version_patch" = xyes; then
24777       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24778     elif test "x$with_version_patch" = xno; then
24779       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24780       VERSION_PATCH=0
24781     elif test "x$with_version_patch" = x; then
24782       VERSION_PATCH=0
24783     else
24784 
24785   # Additional [] needed to keep m4 from mangling shell constructs.
24786   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24787     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24788   fi
24789   # Extract the version number without leading zeros.
24790   cleaned_value=${BASH_REMATCH[1]}
24791   if test "x$cleaned_value" = x; then
24792     # Special case for zero
24793     cleaned_value=${BASH_REMATCH[2]}
24794   fi
24795 
24796   if test $cleaned_value -gt 255; then
24797     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24798   fi
24799   if test "x$cleaned_value" != "x$with_version_patch"; then
24800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24801 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24802   fi
24803   VERSION_PATCH=$cleaned_value
24804 
24805     fi
24806   else
24807     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24808       # Default is 0, if unspecified
24809       VERSION_PATCH=$DEFAULT_VERSION_PATCH
24810     fi
24811   fi
24812 
24813   # Calculate derived version properties
24814 
24815   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24816   if test "x$VERSION_PRE" = x; then
24817     VERSION_IS_GA=true
24818   else
24819     VERSION_IS_GA=false
24820   fi
24821 
24822   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24823   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24824 
24825   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24826   # Strip trailing zeroes from stripped_version_number
24827   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24828   VERSION_NUMBER=$stripped_version_number
24829 
24830   # The complete version string, with additional build information
24831   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24832     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24833   else
24834     # If either build or opt is set, we need a + separator
24835     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24836   fi
24837 
24838   # The short version string, just VERSION_NUMBER and PRE, if present.
24839   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24840 
24841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24842 $as_echo_n "checking for version string... " >&6; }
24843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24844 $as_echo "$VERSION_STRING" >&6; }
24845 
24846 
24847 
24848 
24849 
24850 
24851 
24852 
24853 
24854 
24855 
24856 
24857 
24858 
24859 
24860 ###############################################################################
24861 #
24862 # Setup BootJDK, used to bootstrap the build.
24863 #
24864 ###############################################################################
24865 
24866 
24867   BOOT_JDK_FOUND=no
24868 
24869 # Check whether --with-boot-jdk was given.
24870 if test "${with_boot_jdk+set}" = set; then :
24871   withval=$with_boot_jdk;
24872 fi
24873 
24874 
24875   # We look for the Boot JDK through various means, going from more certain to
24876   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24877   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24878   # must check if this is indeed valid; otherwise we'll continue looking.
24879 
24880   # Test: Is bootjdk explicitly set by command line arguments?
24881 
24882   if test "x$BOOT_JDK_FOUND" = xno; then
24883     # Now execute the test
24884 
24885   if test "x$with_boot_jdk" != x; then
24886     BOOT_JDK=$with_boot_jdk
24887     BOOT_JDK_FOUND=maybe
24888     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24889 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24890   fi
24891 
24892 
24893     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24894     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24895       # Do we have a bin/java?
24896       if test ! -x "$BOOT_JDK/bin/java"; then
24897         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24898 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24899         BOOT_JDK_FOUND=no
24900       else
24901         # Do we have a bin/javac?
24902         if test ! -x "$BOOT_JDK/bin/javac"; then
24903           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24904 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24905           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24906 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24907           BOOT_JDK_FOUND=no
24908         else
24909           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24910           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24911 
24912           # Extra M4 quote needed to protect [] in grep expression.
24913           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24914           if test "x$FOUND_CORRECT_VERSION" = x; then
24915             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24917             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24918 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24919             BOOT_JDK_FOUND=no
24920           else
24921             # We're done! :-)
24922             BOOT_JDK_FOUND=yes
24923 
24924   # Only process if variable expands to non-empty
24925 
24926   if test "x$BOOT_JDK" != x; then
24927     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24928 
24929   # Input might be given as Windows format, start by converting to
24930   # unix format.
24931   path="$BOOT_JDK"
24932   new_path=`$CYGPATH -u "$path"`
24933 
24934   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24935   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24936   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24937   # "foo.exe" is OK but "foo" is an error.
24938   #
24939   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24940   # It is also a way to make sure we got the proper file name for the real test later on.
24941   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24942   if test "x$test_shortpath" = x; then
24943     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24944 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24945     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24946   fi
24947 
24948   # Call helper function which possibly converts this using DOS-style short mode.
24949   # If so, the updated path is stored in $new_path.
24950 
24951   input_path="$new_path"
24952   # Check if we need to convert this using DOS-style short mode. If the path
24953   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24954   # take no chances and rewrite it.
24955   # Note: m4 eats our [], so we need to use [ and ] instead.
24956   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24957   if test "x$has_forbidden_chars" != x; then
24958     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24959     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24960     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24961     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24962       # Going to short mode and back again did indeed matter. Since short mode is
24963       # case insensitive, let's make it lowercase to improve readability.
24964       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24965       # Now convert it back to Unix-style (cygpath)
24966       input_path=`$CYGPATH -u "$shortmode_path"`
24967       new_path="$input_path"
24968     fi
24969   fi
24970 
24971   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24972   if test "x$test_cygdrive_prefix" = x; then
24973     # As a simple fix, exclude /usr/bin since it's not a real path.
24974     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24975       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24976       # a path prefixed by /cygdrive for fixpath to work.
24977       new_path="$CYGWIN_ROOT_PATH$input_path"
24978     fi
24979   fi
24980 
24981 
24982   if test "x$path" != "x$new_path"; then
24983     BOOT_JDK="$new_path"
24984     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24985 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24986   fi
24987 
24988     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24989 
24990   path="$BOOT_JDK"
24991   has_colon=`$ECHO $path | $GREP ^.:`
24992   new_path="$path"
24993   if test "x$has_colon" = x; then
24994     # Not in mixed or Windows style, start by that.
24995     new_path=`cmd //c echo $path`
24996   fi
24997 
24998 
24999   input_path="$new_path"
25000   # Check if we need to convert this using DOS-style short mode. If the path
25001   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25002   # take no chances and rewrite it.
25003   # Note: m4 eats our [], so we need to use [ and ] instead.
25004   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25005   if test "x$has_forbidden_chars" != x; then
25006     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25007     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25008   fi
25009 
25010 
25011   windows_path="$new_path"
25012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25013     unix_path=`$CYGPATH -u "$windows_path"`
25014     new_path="$unix_path"
25015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25016     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25017     new_path="$unix_path"
25018   fi
25019 
25020   if test "x$path" != "x$new_path"; then
25021     BOOT_JDK="$new_path"
25022     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25023 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25024   fi
25025 
25026   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25027   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25028 
25029     else
25030       # We're on a unix platform. Hooray! :)
25031       path="$BOOT_JDK"
25032       has_space=`$ECHO "$path" | $GREP " "`
25033       if test "x$has_space" != x; then
25034         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25035 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25036         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25037       fi
25038 
25039       # Use eval to expand a potential ~
25040       eval path="$path"
25041       if test ! -f "$path" && test ! -d "$path"; then
25042         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25043       fi
25044 
25045       if test -d "$path"; then
25046         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25047       else
25048         dir="`$DIRNAME "$path"`"
25049         base="`$BASENAME "$path"`"
25050         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25051       fi
25052     fi
25053   fi
25054 
25055             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25056 $as_echo_n "checking for Boot JDK... " >&6; }
25057             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25058 $as_echo "$BOOT_JDK" >&6; }
25059             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25060 $as_echo_n "checking Boot JDK version... " >&6; }
25061             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25062             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25063 $as_echo "$BOOT_JDK_VERSION" >&6; }
25064           fi # end check jdk version
25065         fi # end check javac
25066       fi # end check java
25067     fi # end check boot jdk found
25068   fi
25069 
25070   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25071     # Having specified an argument which is incorrect will produce an instant failure;
25072     # we should not go on looking
25073     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25074   fi
25075 
25076   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25077 
25078   if test "x$BOOT_JDK_FOUND" = xno; then
25079     # Now execute the test
25080 
25081   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25082     # First check at user selected default
25083 
25084   if test "x$BOOT_JDK_FOUND" = xno; then
25085     # Now execute the test
25086 
25087   if test -x /usr/libexec/java_home; then
25088     BOOT_JDK=`/usr/libexec/java_home `
25089     BOOT_JDK_FOUND=maybe
25090     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25091 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25092   fi
25093 
25094 
25095     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25096     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25097       # Do we have a bin/java?
25098       if test ! -x "$BOOT_JDK/bin/java"; then
25099         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25101         BOOT_JDK_FOUND=no
25102       else
25103         # Do we have a bin/javac?
25104         if test ! -x "$BOOT_JDK/bin/javac"; then
25105           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25107           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25108 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25109           BOOT_JDK_FOUND=no
25110         else
25111           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25112           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25113 
25114           # Extra M4 quote needed to protect [] in grep expression.
25115           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25116           if test "x$FOUND_CORRECT_VERSION" = x; then
25117             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25119             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25121             BOOT_JDK_FOUND=no
25122           else
25123             # We're done! :-)
25124             BOOT_JDK_FOUND=yes
25125 
25126   # Only process if variable expands to non-empty
25127 
25128   if test "x$BOOT_JDK" != x; then
25129     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25130 
25131   # Input might be given as Windows format, start by converting to
25132   # unix format.
25133   path="$BOOT_JDK"
25134   new_path=`$CYGPATH -u "$path"`
25135 
25136   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25137   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25138   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25139   # "foo.exe" is OK but "foo" is an error.
25140   #
25141   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25142   # It is also a way to make sure we got the proper file name for the real test later on.
25143   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25144   if test "x$test_shortpath" = x; then
25145     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25147     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25148   fi
25149 
25150   # Call helper function which possibly converts this using DOS-style short mode.
25151   # If so, the updated path is stored in $new_path.
25152 
25153   input_path="$new_path"
25154   # Check if we need to convert this using DOS-style short mode. If the path
25155   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25156   # take no chances and rewrite it.
25157   # Note: m4 eats our [], so we need to use [ and ] instead.
25158   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25159   if test "x$has_forbidden_chars" != x; then
25160     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25161     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25162     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25163     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25164       # Going to short mode and back again did indeed matter. Since short mode is
25165       # case insensitive, let's make it lowercase to improve readability.
25166       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25167       # Now convert it back to Unix-style (cygpath)
25168       input_path=`$CYGPATH -u "$shortmode_path"`
25169       new_path="$input_path"
25170     fi
25171   fi
25172 
25173   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25174   if test "x$test_cygdrive_prefix" = x; then
25175     # As a simple fix, exclude /usr/bin since it's not a real path.
25176     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25177       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25178       # a path prefixed by /cygdrive for fixpath to work.
25179       new_path="$CYGWIN_ROOT_PATH$input_path"
25180     fi
25181   fi
25182 
25183 
25184   if test "x$path" != "x$new_path"; then
25185     BOOT_JDK="$new_path"
25186     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25188   fi
25189 
25190     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25191 
25192   path="$BOOT_JDK"
25193   has_colon=`$ECHO $path | $GREP ^.:`
25194   new_path="$path"
25195   if test "x$has_colon" = x; then
25196     # Not in mixed or Windows style, start by that.
25197     new_path=`cmd //c echo $path`
25198   fi
25199 
25200 
25201   input_path="$new_path"
25202   # Check if we need to convert this using DOS-style short mode. If the path
25203   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25204   # take no chances and rewrite it.
25205   # Note: m4 eats our [], so we need to use [ and ] instead.
25206   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25207   if test "x$has_forbidden_chars" != x; then
25208     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25209     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25210   fi
25211 
25212 
25213   windows_path="$new_path"
25214   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25215     unix_path=`$CYGPATH -u "$windows_path"`
25216     new_path="$unix_path"
25217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25218     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25219     new_path="$unix_path"
25220   fi
25221 
25222   if test "x$path" != "x$new_path"; then
25223     BOOT_JDK="$new_path"
25224     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25226   fi
25227 
25228   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25229   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25230 
25231     else
25232       # We're on a unix platform. Hooray! :)
25233       path="$BOOT_JDK"
25234       has_space=`$ECHO "$path" | $GREP " "`
25235       if test "x$has_space" != x; then
25236         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25238         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25239       fi
25240 
25241       # Use eval to expand a potential ~
25242       eval path="$path"
25243       if test ! -f "$path" && test ! -d "$path"; then
25244         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25245       fi
25246 
25247       if test -d "$path"; then
25248         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25249       else
25250         dir="`$DIRNAME "$path"`"
25251         base="`$BASENAME "$path"`"
25252         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25253       fi
25254     fi
25255   fi
25256 
25257             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25258 $as_echo_n "checking for Boot JDK... " >&6; }
25259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25260 $as_echo "$BOOT_JDK" >&6; }
25261             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25262 $as_echo_n "checking Boot JDK version... " >&6; }
25263             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25264             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25265 $as_echo "$BOOT_JDK_VERSION" >&6; }
25266           fi # end check jdk version
25267         fi # end check javac
25268       fi # end check java
25269     fi # end check boot jdk found
25270   fi
25271 
25272     # If that did not work out (e.g. too old), try explicit versions instead
25273 
25274   if test "x$BOOT_JDK_FOUND" = xno; then
25275     # Now execute the test
25276 
25277   if test -x /usr/libexec/java_home; then
25278     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25279     BOOT_JDK_FOUND=maybe
25280     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25281 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25282   fi
25283 
25284 
25285     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25286     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25287       # Do we have a bin/java?
25288       if test ! -x "$BOOT_JDK/bin/java"; then
25289         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25291         BOOT_JDK_FOUND=no
25292       else
25293         # Do we have a bin/javac?
25294         if test ! -x "$BOOT_JDK/bin/javac"; then
25295           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25297           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25298 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25299           BOOT_JDK_FOUND=no
25300         else
25301           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25302           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25303 
25304           # Extra M4 quote needed to protect [] in grep expression.
25305           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25306           if test "x$FOUND_CORRECT_VERSION" = x; then
25307             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25309             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25310 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25311             BOOT_JDK_FOUND=no
25312           else
25313             # We're done! :-)
25314             BOOT_JDK_FOUND=yes
25315 
25316   # Only process if variable expands to non-empty
25317 
25318   if test "x$BOOT_JDK" != x; then
25319     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25320 
25321   # Input might be given as Windows format, start by converting to
25322   # unix format.
25323   path="$BOOT_JDK"
25324   new_path=`$CYGPATH -u "$path"`
25325 
25326   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25327   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25328   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25329   # "foo.exe" is OK but "foo" is an error.
25330   #
25331   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25332   # It is also a way to make sure we got the proper file name for the real test later on.
25333   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25334   if test "x$test_shortpath" = x; then
25335     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25336 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25337     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25338   fi
25339 
25340   # Call helper function which possibly converts this using DOS-style short mode.
25341   # If so, the updated path is stored in $new_path.
25342 
25343   input_path="$new_path"
25344   # Check if we need to convert this using DOS-style short mode. If the path
25345   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25346   # take no chances and rewrite it.
25347   # Note: m4 eats our [], so we need to use [ and ] instead.
25348   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25349   if test "x$has_forbidden_chars" != x; then
25350     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25351     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25352     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25353     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25354       # Going to short mode and back again did indeed matter. Since short mode is
25355       # case insensitive, let's make it lowercase to improve readability.
25356       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25357       # Now convert it back to Unix-style (cygpath)
25358       input_path=`$CYGPATH -u "$shortmode_path"`
25359       new_path="$input_path"
25360     fi
25361   fi
25362 
25363   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25364   if test "x$test_cygdrive_prefix" = x; then
25365     # As a simple fix, exclude /usr/bin since it's not a real path.
25366     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25367       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25368       # a path prefixed by /cygdrive for fixpath to work.
25369       new_path="$CYGWIN_ROOT_PATH$input_path"
25370     fi
25371   fi
25372 
25373 
25374   if test "x$path" != "x$new_path"; then
25375     BOOT_JDK="$new_path"
25376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25377 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25378   fi
25379 
25380     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25381 
25382   path="$BOOT_JDK"
25383   has_colon=`$ECHO $path | $GREP ^.:`
25384   new_path="$path"
25385   if test "x$has_col