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_zero
 660 JVM_FEATURES_minimal
 661 JVM_FEATURES_core
 662 JVM_FEATURES_client
 663 JVM_FEATURES_server
 664 INCLUDE_GRAAL
 665 STLPORT_LIB
 666 LIBZIP_CAN_USE_MMAP
 667 LIBDL
 668 LIBM
 669 USE_EXTERNAL_LCMS
 670 LCMS_LIBS
 671 LCMS_CFLAGS
 672 USE_EXTERNAL_LIBZ
 673 USE_EXTERNAL_LIBPNG
 674 PNG_LIBS
 675 PNG_CFLAGS
 676 USE_EXTERNAL_LIBGIF
 677 USE_EXTERNAL_LIBJPEG
 678 LIBFFI_LIB_FILE
 679 ENABLE_LIBFFI_BUNDLING
 680 LIBFFI_LIBS
 681 LIBFFI_CFLAGS
 682 ALSA_LIBS
 683 ALSA_CFLAGS
 684 FREETYPE_LICENSE
 685 FREETYPE_BUNDLE_LIB_PATH
 686 FREETYPE_LIBS
 687 FREETYPE_CFLAGS
 688 FONTCONFIG_CFLAGS
 689 CUPS_CFLAGS
 690 X_EXTRA_LIBS
 691 X_LIBS
 692 X_PRE_LIBS
 693 X_CFLAGS
 694 XMKMF
 695 MSVCP_DLL
 696 MSVCR_DLL
 697 LIBCXX
 698 FIXPATH_DETACH_FLAG
 699 FIXPATH
 700 BUILD_GTEST
 701 ENABLE_CDS
 702 ENABLE_AOT
 703 ASAN_ENABLED
 704 GCOV_ENABLED
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 WARNINGS_AS_ERRORS
 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 713 LDFLAGS_TESTEXE
 714 LDFLAGS_TESTLIB
 715 CXXFLAGS_TESTEXE
 716 CXXFLAGS_TESTLIB
 717 CFLAGS_TESTEXE
 718 CFLAGS_TESTLIB
 719 OPENJDK_BUILD_JVM_LIBS
 720 OPENJDK_BUILD_JVM_ASFLAGS
 721 OPENJDK_BUILD_JVM_LDFLAGS
 722 OPENJDK_BUILD_JVM_CFLAGS
 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK
 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 726 OPENJDK_BUILD_JDKEXE_LIBS
 727 OPENJDK_BUILD_JDKLIB_LIBS
 728 OPENJDK_BUILD_LDFLAGS_JDKEXE
 729 OPENJDK_BUILD_LDFLAGS_JDKLIB
 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 732 OPENJDK_BUILD_CFLAGS_JDKEXE
 733 OPENJDK_BUILD_CFLAGS_JDKLIB
 734 OPENJDK_BUILD_CXXSTD_CXXFLAG
 735 JVM_LIBS
 736 JVM_ASFLAGS
 737 JVM_LDFLAGS
 738 JVM_CFLAGS
 739 LDFLAGS_NO_EXEC_STACK
 740 LDFLAGS_HASH_STYLE
 741 LDFLAGS_CXX_JDK
 742 JDKEXE_LIBS
 743 JDKLIB_LIBS
 744 LDFLAGS_JDKEXE
 745 LDFLAGS_JDKLIB
 746 CXXFLAGS_JDKEXE
 747 CXXFLAGS_JDKLIB
 748 CFLAGS_JDKEXE
 749 CFLAGS_JDKLIB
 750 MACOSX_VERSION_MAX
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JIB_JAR
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 INSTALL_NAME_TOOL
 822 OTOOL
 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 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAC
 885 JAVA
 886 BOOT_JDK
 887 JAVA_CHECK
 888 JAVAC_CHECK
 889 VERSION_CLASSFILE_MINOR
 890 VERSION_CLASSFILE_MAJOR
 891 VENDOR_VERSION_STRING
 892 VERSION_DATE
 893 VERSION_IS_GA
 894 VERSION_SHORT
 895 VERSION_STRING
 896 VERSION_NUMBER_FOUR_POSITIONS
 897 VERSION_NUMBER
 898 VERSION_OPT
 899 VERSION_BUILD
 900 VERSION_PRE
 901 VERSION_PATCH
 902 VERSION_UPDATE
 903 VERSION_INTERIM
 904 VERSION_FEATURE
 905 COMPANY_NAME
 906 MACOSX_BUNDLE_ID_BASE
 907 MACOSX_BUNDLE_NAME_BASE
 908 HOTSPOT_VM_DISTRO
 909 JDK_RC_PLATFORM_NAME
 910 PRODUCT_SUFFIX
 911 PRODUCT_NAME
 912 LAUNCHER_NAME
 913 JLINK_KEEP_PACKAGED_MODULES
 914 COPYRIGHT_YEAR
 915 COMPRESS_JARS
 916 INCLUDE_SA
 917 UNLIMITED_CRYPTO
 918 CACERTS_FILE
 919 ENABLE_FULL_DOCS
 920 ENABLE_HEADLESS_ONLY
 921 DEFAULT_MAKE_TARGET
 922 OS_VERSION_MICRO
 923 OS_VERSION_MINOR
 924 OS_VERSION_MAJOR
 925 PKG_CONFIG
 926 BASH_ARGS
 927 SETFILE
 928 CODESIGN
 929 XATTR
 930 DSYMUTIL
 931 IS_GNU_TIME
 932 PATCH
 933 DTRACE
 934 FLOCK
 935 TIME
 936 STAT
 937 HG
 938 DOT
 939 READELF
 940 LDD
 941 ZIPEXE
 942 UNZIP
 943 TAR_SUPPORTS_TRANSFORM
 944 TAR_INCLUDE_PARAM
 945 TAR_CREATE_EXTRA_PARAM
 946 TAR_TYPE
 947 FIND_DELETE
 948 OUTPUT_SYNC
 949 OUTPUT_SYNC_SUPPORTED
 950 CHECK_TOOLSDIR_MAKE
 951 CHECK_TOOLSDIR_GMAKE
 952 CHECK_MAKE
 953 CHECK_GMAKE
 954 MAKE
 955 PKGHANDLER
 956 CONFIGURESUPPORT_OUTPUTDIR
 957 OUTPUTDIR
 958 CONF_NAME
 959 SPEC
 960 SDKROOT
 961 XCODEBUILD
 962 DEVKIT_LIB_DIR
 963 JVM_VARIANT_MAIN
 964 VALID_JVM_VARIANTS
 965 JVM_VARIANTS
 966 DEBUG_LEVEL
 967 HOTSPOT_DEBUG_LEVEL
 968 JDK_VARIANT
 969 USERNAME
 970 TOPDIR
 971 PATH_SEP
 972 OPENJDK_BUILD_OS_INCLUDE_SUBDIR
 973 HOTSPOT_BUILD_CPU_DEFINE
 974 HOTSPOT_BUILD_CPU_ARCH
 975 HOTSPOT_BUILD_CPU
 976 HOTSPOT_BUILD_OS_TYPE
 977 HOTSPOT_BUILD_OS
 978 OPENJDK_BUILD_BUNDLE_PLATFORM
 979 OPENJDK_BUILD_CPU_OSARCH
 980 OPENJDK_BUILD_CPU_ISADIR
 981 OPENJDK_BUILD_CPU_LEGACY_LIB
 982 OPENJDK_BUILD_CPU_LEGACY
 983 OPENJDK_TARGET_OS_INCLUDE_SUBDIR
 984 HOTSPOT_TARGET_CPU_DEFINE
 985 HOTSPOT_TARGET_CPU_ARCH
 986 HOTSPOT_TARGET_CPU
 987 HOTSPOT_TARGET_OS_TYPE
 988 HOTSPOT_TARGET_OS
 989 DEFINE_CROSS_COMPILE_ARCH
 990 OPENJDK_TARGET_BUNDLE_PLATFORM
 991 OPENJDK_TARGET_CPU_OSARCH
 992 OPENJDK_TARGET_CPU_ISADIR
 993 OPENJDK_TARGET_CPU_LEGACY_LIB
 994 OPENJDK_TARGET_CPU_LEGACY
 995 RELEASE_FILE_OS_ARCH
 996 RELEASE_FILE_OS_NAME
 997 OPENJDK_MODULE_TARGET_PLATFORM
 998 COMPILE_TYPE
 999 OPENJDK_TARGET_CPU_ENDIAN
1000 OPENJDK_TARGET_CPU_BITS
1001 OPENJDK_TARGET_CPU_ARCH
1002 OPENJDK_TARGET_CPU
1003 OPENJDK_TARGET_OS_ENV
1004 OPENJDK_TARGET_OS_TYPE
1005 OPENJDK_TARGET_OS
1006 OPENJDK_BUILD_CPU_ENDIAN
1007 OPENJDK_BUILD_CPU_BITS
1008 OPENJDK_BUILD_CPU_ARCH
1009 OPENJDK_BUILD_CPU
1010 OPENJDK_BUILD_OS_ENV
1011 OPENJDK_BUILD_OS_TYPE
1012 OPENJDK_BUILD_OS
1013 OPENJDK_BUILD_AUTOCONF_NAME
1014 OPENJDK_TARGET_AUTOCONF_NAME
1015 target_os
1016 target_vendor
1017 target_cpu
1018 target
1019 host_os
1020 host_vendor
1021 host_cpu
1022 host
1023 build_os
1024 build_vendor
1025 build_cpu
1026 build
1027 PANDOC
1028 NICE
1029 CPIO
1030 DF
1031 READLINK
1032 CYGPATH
1033 SED
1034 FGREP
1035 EGREP
1036 GREP
1037 AWK
1038 XARGS
1039 WHICH
1040 WC
1041 UNIQ
1042 UNAME
1043 TR
1044 TOUCH
1045 TEE
1046 TAR
1047 TAIL
1048 SORT
1049 SH
1050 RMDIR
1051 RM
1052 PRINTF
1053 NAWK
1054 MV
1055 MKTEMP
1056 MKDIR
1057 LS
1058 LN
1059 GZIP
1060 GUNZIP
1061 HEAD
1062 FIND
1063 FILE
1064 EXPR
1065 ECHO
1066 DIRNAME
1067 DIFF
1068 DATE
1069 CUT
1070 CP
1071 COMM
1072 CMP
1073 CHMOD
1074 CAT
1075 BASH
1076 BASENAME
1077 DATE_WHEN_CONFIGURED
1078 ORIGINAL_PATH
1079 CONFIGURE_COMMAND_LINE
1080 target_alias
1081 host_alias
1082 build_alias
1083 LIBS
1084 ECHO_T
1085 ECHO_N
1086 ECHO_C
1087 DEFS
1088 mandir
1089 localedir
1090 libdir
1091 psdir
1092 pdfdir
1093 dvidir
1094 htmldir
1095 infodir
1096 docdir
1097 oldincludedir
1098 includedir
1099 localstatedir
1100 sharedstatedir
1101 sysconfdir
1102 datadir
1103 datarootdir
1104 libexecdir
1105 sbindir
1106 bindir
1107 program_transform_name
1108 prefix
1109 exec_prefix
1110 PACKAGE_URL
1111 PACKAGE_BUGREPORT
1112 PACKAGE_STRING
1113 PACKAGE_VERSION
1114 PACKAGE_TARNAME
1115 PACKAGE_NAME
1116 PATH_SEPARATOR
1117 SHELL'
1118 ac_subst_files=''
1119 ac_user_opts='
1120 enable_option_checking
1121 with_target_bits
1122 enable_openjdk_only
1123 with_custom_make_dir
1124 with_jdk_variant
1125 enable_debug
1126 with_debug_level
1127 with_jvm_variants
1128 with_cpu_port
1129 with_devkit
1130 with_sys_root
1131 with_sysroot
1132 with_tools_dir
1133 with_toolchain_path
1134 with_extra_path
1135 with_sdk_name
1136 with_conf_name
1137 with_output_sync
1138 with_default_make_target
1139 enable_headless_only
1140 enable_full_docs
1141 with_cacerts_file
1142 enable_unlimited_crypto
1143 with_copyright_year
1144 enable_keep_packaged_modules
1145 with_milestone
1146 with_update_version
1147 with_user_release_suffix
1148 with_build_number
1149 with_version_major
1150 with_version_minor
1151 with_version_security
1152 with_vendor_name
1153 with_version_string
1154 with_version_pre
1155 with_version_opt
1156 with_version_build
1157 with_version_feature
1158 with_version_interim
1159 with_version_update
1160 with_version_patch
1161 with_version_date
1162 with_vendor_version_string
1163 with_boot_jdk
1164 with_build_jdk
1165 with_import_modules
1166 enable_static_build
1167 with_toolchain_type
1168 with_extra_cflags
1169 with_extra_cxxflags
1170 with_extra_ldflags
1171 with_toolchain_version
1172 with_build_devkit
1173 with_jtreg
1174 with_jib
1175 with_abi_profile
1176 with_macosx_version_max
1177 enable_warnings_as_errors
1178 with_native_debug_symbols
1179 enable_debug_symbols
1180 enable_zip_debug_info
1181 enable_native_coverage
1182 enable_asan
1183 enable_dtrace
1184 enable_aot
1185 enable_cds
1186 enable_hotspot_gtest
1187 with_stdc__lib
1188 with_msvcr_dll
1189 with_msvcp_dll
1190 with_x
1191 with_cups
1192 with_cups_include
1193 with_fontconfig
1194 with_fontconfig_include
1195 with_freetype
1196 with_freetype_include
1197 with_freetype_lib
1198 with_freetype_src
1199 enable_freetype_bundling
1200 with_freetype_license
1201 with_alsa
1202 with_alsa_include
1203 with_alsa_lib
1204 with_libffi
1205 with_libffi_include
1206 with_libffi_lib
1207 enable_libffi_bundling
1208 with_libjpeg
1209 with_giflib
1210 with_libpng
1211 with_zlib
1212 with_lcms
1213 with_dxsdk
1214 with_dxsdk_lib
1215 with_dxsdk_include
1216 with_jvm_features
1217 with_jvm_interpreter
1218 enable_jtreg_failure_handler
1219 enable_generate_classlist
1220 with_num_cores
1221 with_memory_size
1222 with_jobs
1223 with_test_jobs
1224 with_boot_jdk_jvmargs
1225 with_sjavac_server_java
1226 enable_sjavac
1227 enable_javac_server
1228 enable_icecc
1229 enable_precompiled_headers
1230 enable_ccache
1231 with_ccache_dir
1232 '
1233       ac_precious_vars='build_alias
1234 host_alias
1235 target_alias
1236 BASENAME
1237 BASH
1238 CAT
1239 CHMOD
1240 CMP
1241 COMM
1242 CP
1243 CUT
1244 DATE
1245 DIFF
1246 DIRNAME
1247 ECHO
1248 EXPR
1249 FILE
1250 FIND
1251 HEAD
1252 GUNZIP
1253 GZIP
1254 LN
1255 LS
1256 MKDIR
1257 MKTEMP
1258 MV
1259 NAWK
1260 PRINTF
1261 RM
1262 RMDIR
1263 SH
1264 SORT
1265 TAIL
1266 TAR
1267 TEE
1268 TOUCH
1269 TR
1270 UNAME
1271 UNIQ
1272 WC
1273 WHICH
1274 XARGS
1275 AWK
1276 GREP
1277 EGREP
1278 FGREP
1279 SED
1280 CYGPATH
1281 READLINK
1282 DF
1283 CPIO
1284 NICE
1285 PANDOC
1286 MAKE
1287 UNZIP
1288 ZIPEXE
1289 LDD
1290 READELF
1291 DOT
1292 HG
1293 STAT
1294 TIME
1295 FLOCK
1296 DTRACE
1297 PATCH
1298 DSYMUTIL
1299 XATTR
1300 CODESIGN
1301 SETFILE
1302 PKG_CONFIG
1303 JAVA
1304 JAVAC
1305 JAVADOC
1306 JAR
1307 JARSIGNER
1308 CC
1309 CFLAGS
1310 LDFLAGS
1311 LIBS
1312 CPPFLAGS
1313 CXX
1314 CXXFLAGS
1315 CCC
1316 CPP
1317 CXXCPP
1318 AS
1319 AR
1320 LIPO
1321 OTOOL
1322 INSTALL_NAME_TOOL
1323 STRIP
1324 NM
1325 GNM
1326 OBJCOPY
1327 OBJDUMP
1328 BUILD_CC
1329 BUILD_CXX
1330 BUILD_NM
1331 BUILD_AR
1332 BUILD_OBJCOPY
1333 BUILD_STRIP
1334 JTREGEXE
1335 XMKMF
1336 FREETYPE_CFLAGS
1337 FREETYPE_LIBS
1338 ALSA_CFLAGS
1339 ALSA_LIBS
1340 LIBFFI_CFLAGS
1341 LIBFFI_LIBS
1342 PNG_CFLAGS
1343 PNG_LIBS
1344 LCMS_CFLAGS
1345 LCMS_LIBS
1346 ICECC_CMD
1347 ICECC_CREATE_ENV
1348 ICECC_WRAPPER
1349 CCACHE'
1350 
1351 
1352 # Initialize some variables set by options.
1353 ac_init_help=
1354 ac_init_version=false
1355 ac_unrecognized_opts=
1356 ac_unrecognized_sep=
1357 # The variables have the same names as the options, with
1358 # dashes changed to underlines.
1359 cache_file=/dev/null
1360 exec_prefix=NONE
1361 no_create=
1362 no_recursion=
1363 prefix=NONE
1364 program_prefix=NONE
1365 program_suffix=NONE
1366 program_transform_name=s,x,x,
1367 silent=
1368 site=
1369 srcdir=
1370 verbose=
1371 x_includes=NONE
1372 x_libraries=NONE
1373 
1374 # Installation directory options.
1375 # These are left unexpanded so users can "make install exec_prefix=/foo"
1376 # and all the variables that are supposed to be based on exec_prefix
1377 # by default will actually change.
1378 # Use braces instead of parens because sh, perl, etc. also accept them.
1379 # (The list follows the same order as the GNU Coding Standards.)
1380 bindir='${exec_prefix}/bin'
1381 sbindir='${exec_prefix}/sbin'
1382 libexecdir='${exec_prefix}/libexec'
1383 datarootdir='${prefix}/share'
1384 datadir='${datarootdir}'
1385 sysconfdir='${prefix}/etc'
1386 sharedstatedir='${prefix}/com'
1387 localstatedir='${prefix}/var'
1388 includedir='${prefix}/include'
1389 oldincludedir='/usr/include'
1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1391 infodir='${datarootdir}/info'
1392 htmldir='${docdir}'
1393 dvidir='${docdir}'
1394 pdfdir='${docdir}'
1395 psdir='${docdir}'
1396 libdir='${exec_prefix}/lib'
1397 localedir='${datarootdir}/locale'
1398 mandir='${datarootdir}/man'
1399 
1400 ac_prev=
1401 ac_dashdash=
1402 for ac_option
1403 do
1404   # If the previous option needs an argument, assign it.
1405   if test -n "$ac_prev"; then
1406     eval $ac_prev=\$ac_option
1407     ac_prev=
1408     continue
1409   fi
1410 
1411   case $ac_option in
1412   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1413   *=)   ac_optarg= ;;
1414   *)    ac_optarg=yes ;;
1415   esac
1416 
1417   # Accept the important Cygnus configure options, so we can diagnose typos.
1418 
1419   case $ac_dashdash$ac_option in
1420   --)
1421     ac_dashdash=yes ;;
1422 
1423   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1424     ac_prev=bindir ;;
1425   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1426     bindir=$ac_optarg ;;
1427 
1428   -build | --build | --buil | --bui | --bu)
1429     ac_prev=build_alias ;;
1430   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1431     build_alias=$ac_optarg ;;
1432 
1433   -cache-file | --cache-file | --cache-fil | --cache-fi \
1434   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1435     ac_prev=cache_file ;;
1436   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1437   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1438     cache_file=$ac_optarg ;;
1439 
1440   --config-cache | -C)
1441     cache_file=config.cache ;;
1442 
1443   -datadir | --datadir | --datadi | --datad)
1444     ac_prev=datadir ;;
1445   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1446     datadir=$ac_optarg ;;
1447 
1448   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1449   | --dataroo | --dataro | --datar)
1450     ac_prev=datarootdir ;;
1451   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1452   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1453     datarootdir=$ac_optarg ;;
1454 
1455   -disable-* | --disable-*)
1456     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457     # Reject names that are not valid shell variable names.
1458     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1459       as_fn_error $? "invalid feature name: $ac_useropt"
1460     ac_useropt_orig=$ac_useropt
1461     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462     case $ac_user_opts in
1463       *"
1464 "enable_$ac_useropt"
1465 "*) ;;
1466       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467          ac_unrecognized_sep=', ';;
1468     esac
1469     eval enable_$ac_useropt=no ;;
1470 
1471   -docdir | --docdir | --docdi | --doc | --do)
1472     ac_prev=docdir ;;
1473   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1474     docdir=$ac_optarg ;;
1475 
1476   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1477     ac_prev=dvidir ;;
1478   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1479     dvidir=$ac_optarg ;;
1480 
1481   -enable-* | --enable-*)
1482     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483     # Reject names that are not valid shell variable names.
1484     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485       as_fn_error $? "invalid feature name: $ac_useropt"
1486     ac_useropt_orig=$ac_useropt
1487     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488     case $ac_user_opts in
1489       *"
1490 "enable_$ac_useropt"
1491 "*) ;;
1492       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493          ac_unrecognized_sep=', ';;
1494     esac
1495     eval enable_$ac_useropt=\$ac_optarg ;;
1496 
1497   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499   | --exec | --exe | --ex)
1500     ac_prev=exec_prefix ;;
1501   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503   | --exec=* | --exe=* | --ex=*)
1504     exec_prefix=$ac_optarg ;;
1505 
1506   -gas | --gas | --ga | --g)
1507     # Obsolete; use --with-gas.
1508     with_gas=yes ;;
1509 
1510   -help | --help | --hel | --he | -h)
1511     ac_init_help=long ;;
1512   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513     ac_init_help=recursive ;;
1514   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515     ac_init_help=short ;;
1516 
1517   -host | --host | --hos | --ho)
1518     ac_prev=host_alias ;;
1519   -host=* | --host=* | --hos=* | --ho=*)
1520     host_alias=$ac_optarg ;;
1521 
1522   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523     ac_prev=htmldir ;;
1524   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525   | --ht=*)
1526     htmldir=$ac_optarg ;;
1527 
1528   -includedir | --includedir | --includedi | --included | --include \
1529   | --includ | --inclu | --incl | --inc)
1530     ac_prev=includedir ;;
1531   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532   | --includ=* | --inclu=* | --incl=* | --inc=*)
1533     includedir=$ac_optarg ;;
1534 
1535   -infodir | --infodir | --infodi | --infod | --info | --inf)
1536     ac_prev=infodir ;;
1537   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538     infodir=$ac_optarg ;;
1539 
1540   -libdir | --libdir | --libdi | --libd)
1541     ac_prev=libdir ;;
1542   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543     libdir=$ac_optarg ;;
1544 
1545   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546   | --libexe | --libex | --libe)
1547     ac_prev=libexecdir ;;
1548   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549   | --libexe=* | --libex=* | --libe=*)
1550     libexecdir=$ac_optarg ;;
1551 
1552   -localedir | --localedir | --localedi | --localed | --locale)
1553     ac_prev=localedir ;;
1554   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555     localedir=$ac_optarg ;;
1556 
1557   -localstatedir | --localstatedir | --localstatedi | --localstated \
1558   | --localstate | --localstat | --localsta | --localst | --locals)
1559     ac_prev=localstatedir ;;
1560   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562     localstatedir=$ac_optarg ;;
1563 
1564   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565     ac_prev=mandir ;;
1566   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567     mandir=$ac_optarg ;;
1568 
1569   -nfp | --nfp | --nf)
1570     # Obsolete; use --without-fp.
1571     with_fp=no ;;
1572 
1573   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574   | --no-cr | --no-c | -n)
1575     no_create=yes ;;
1576 
1577   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579     no_recursion=yes ;;
1580 
1581   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583   | --oldin | --oldi | --old | --ol | --o)
1584     ac_prev=oldincludedir ;;
1585   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588     oldincludedir=$ac_optarg ;;
1589 
1590   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591     ac_prev=prefix ;;
1592   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593     prefix=$ac_optarg ;;
1594 
1595   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596   | --program-pre | --program-pr | --program-p)
1597     ac_prev=program_prefix ;;
1598   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600     program_prefix=$ac_optarg ;;
1601 
1602   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603   | --program-suf | --program-su | --program-s)
1604     ac_prev=program_suffix ;;
1605   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607     program_suffix=$ac_optarg ;;
1608 
1609   -program-transform-name | --program-transform-name \
1610   | --program-transform-nam | --program-transform-na \
1611   | --program-transform-n | --program-transform- \
1612   | --program-transform | --program-transfor \
1613   | --program-transfo | --program-transf \
1614   | --program-trans | --program-tran \
1615   | --progr-tra | --program-tr | --program-t)
1616     ac_prev=program_transform_name ;;
1617   -program-transform-name=* | --program-transform-name=* \
1618   | --program-transform-nam=* | --program-transform-na=* \
1619   | --program-transform-n=* | --program-transform-=* \
1620   | --program-transform=* | --program-transfor=* \
1621   | --program-transfo=* | --program-transf=* \
1622   | --program-trans=* | --program-tran=* \
1623   | --progr-tra=* | --program-tr=* | --program-t=*)
1624     program_transform_name=$ac_optarg ;;
1625 
1626   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627     ac_prev=pdfdir ;;
1628   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629     pdfdir=$ac_optarg ;;
1630 
1631   -psdir | --psdir | --psdi | --psd | --ps)
1632     ac_prev=psdir ;;
1633   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634     psdir=$ac_optarg ;;
1635 
1636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637   | -silent | --silent | --silen | --sile | --sil)
1638     silent=yes ;;
1639 
1640   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1641     ac_prev=sbindir ;;
1642   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1643   | --sbi=* | --sb=*)
1644     sbindir=$ac_optarg ;;
1645 
1646   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1647   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1648   | --sharedst | --shareds | --shared | --share | --shar \
1649   | --sha | --sh)
1650     ac_prev=sharedstatedir ;;
1651   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1652   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1653   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1654   | --sha=* | --sh=*)
1655     sharedstatedir=$ac_optarg ;;
1656 
1657   -site | --site | --sit)
1658     ac_prev=site ;;
1659   -site=* | --site=* | --sit=*)
1660     site=$ac_optarg ;;
1661 
1662   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1663     ac_prev=srcdir ;;
1664   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1665     srcdir=$ac_optarg ;;
1666 
1667   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1668   | --syscon | --sysco | --sysc | --sys | --sy)
1669     ac_prev=sysconfdir ;;
1670   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1671   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1672     sysconfdir=$ac_optarg ;;
1673 
1674   -target | --target | --targe | --targ | --tar | --ta | --t)
1675     ac_prev=target_alias ;;
1676   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1677     target_alias=$ac_optarg ;;
1678 
1679   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1680     verbose=yes ;;
1681 
1682   -version | --version | --versio | --versi | --vers | -V)
1683     ac_init_version=: ;;
1684 
1685   -with-* | --with-*)
1686     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687     # Reject names that are not valid shell variable names.
1688     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1689       as_fn_error $? "invalid package name: $ac_useropt"
1690     ac_useropt_orig=$ac_useropt
1691     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1692     case $ac_user_opts in
1693       *"
1694 "with_$ac_useropt"
1695 "*) ;;
1696       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1697          ac_unrecognized_sep=', ';;
1698     esac
1699     eval with_$ac_useropt=\$ac_optarg ;;
1700 
1701   -without-* | --without-*)
1702     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1703     # Reject names that are not valid shell variable names.
1704     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1705       as_fn_error $? "invalid package name: $ac_useropt"
1706     ac_useropt_orig=$ac_useropt
1707     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708     case $ac_user_opts in
1709       *"
1710 "with_$ac_useropt"
1711 "*) ;;
1712       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1713          ac_unrecognized_sep=', ';;
1714     esac
1715     eval with_$ac_useropt=no ;;
1716 
1717   --x)
1718     # Obsolete; use --with-x.
1719     with_x=yes ;;
1720 
1721   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1722   | --x-incl | --x-inc | --x-in | --x-i)
1723     ac_prev=x_includes ;;
1724   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1725   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1726     x_includes=$ac_optarg ;;
1727 
1728   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1729   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1730     ac_prev=x_libraries ;;
1731   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1732   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1733     x_libraries=$ac_optarg ;;
1734 
1735   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1736 Try \`$0 --help' for more information"
1737     ;;
1738 
1739   *=*)
1740     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1741     # Reject names that are not valid shell variable names.
1742     case $ac_envvar in #(
1743       '' | [0-9]* | *[!_$as_cr_alnum]* )
1744       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1745     esac
1746     eval $ac_envvar=\$ac_optarg
1747     export $ac_envvar ;;
1748 
1749   *)
1750     # FIXME: should be removed in autoconf 3.0.
1751     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1752     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1753       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1754     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1755     ;;
1756 
1757   esac
1758 done
1759 
1760 if test -n "$ac_prev"; then
1761   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1762   as_fn_error $? "missing argument to $ac_option"
1763 fi
1764 
1765 if test -n "$ac_unrecognized_opts"; then
1766   case $enable_option_checking in
1767     no) ;;
1768     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1769     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1770   esac
1771 fi
1772 
1773 # Check all directory arguments for consistency.
1774 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1775                 datadir sysconfdir sharedstatedir localstatedir includedir \
1776                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1777                 libdir localedir mandir
1778 do
1779   eval ac_val=\$$ac_var
1780   # Remove trailing slashes.
1781   case $ac_val in
1782     */ )
1783       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1784       eval $ac_var=\$ac_val;;
1785   esac
1786   # Be sure to have absolute directory names.
1787   case $ac_val in
1788     [\\/$]* | ?:[\\/]* )  continue;;
1789     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1790   esac
1791   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1792 done
1793 
1794 # There might be people who depend on the old broken behavior: `$host'
1795 # used to hold the argument of --host etc.
1796 # FIXME: To remove some day.
1797 build=$build_alias
1798 host=$host_alias
1799 target=$target_alias
1800 
1801 # FIXME: To remove some day.
1802 if test "x$host_alias" != x; then
1803   if test "x$build_alias" = x; then
1804     cross_compiling=maybe
1805   elif test "x$build_alias" != "x$host_alias"; then
1806     cross_compiling=yes
1807   fi
1808 fi
1809 
1810 ac_tool_prefix=
1811 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1812 
1813 test "$silent" = yes && exec 6>/dev/null
1814 
1815 
1816 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1817 ac_ls_di=`ls -di .` &&
1818 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1819   as_fn_error $? "working directory cannot be determined"
1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1821   as_fn_error $? "pwd does not report name of working directory"
1822 
1823 
1824 # Find the source files, if location was not specified.
1825 if test -z "$srcdir"; then
1826   ac_srcdir_defaulted=yes
1827   # Try the directory containing this script, then the parent directory.
1828   ac_confdir=`$as_dirname -- "$as_myself" ||
1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1830          X"$as_myself" : 'X\(//\)[^/]' \| \
1831          X"$as_myself" : 'X\(//\)$' \| \
1832          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1833 $as_echo X"$as_myself" |
1834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1835             s//\1/
1836             q
1837           }
1838           /^X\(\/\/\)[^/].*/{
1839             s//\1/
1840             q
1841           }
1842           /^X\(\/\/\)$/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\).*/{
1847             s//\1/
1848             q
1849           }
1850           s/.*/./; q'`
1851   srcdir=$ac_confdir
1852   if test ! -r "$srcdir/$ac_unique_file"; then
1853     srcdir=..
1854   fi
1855 else
1856   ac_srcdir_defaulted=no
1857 fi
1858 if test ! -r "$srcdir/$ac_unique_file"; then
1859   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1860   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1861 fi
1862 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1863 ac_abs_confdir=`(
1864         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1865         pwd)`
1866 # When building in place, set srcdir=.
1867 if test "$ac_abs_confdir" = "$ac_pwd"; then
1868   srcdir=.
1869 fi
1870 # Remove unnecessary trailing slashes from srcdir.
1871 # Double slashes in file names in object file debugging info
1872 # mess up M-x gdb in Emacs.
1873 case $srcdir in
1874 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1875 esac
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1878   eval ac_env_${ac_var}_value=\$${ac_var}
1879   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1880   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1881 done
1882 
1883 #
1884 # Report the --help message.
1885 #
1886 if test "$ac_init_help" = "long"; then
1887   # Omit some internal or obsolete options to make the list less imposing.
1888   # This message is too long to be a string in the A/UX 3.1 sh.
1889   cat <<_ACEOF
1890 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1891 
1892 Usage: $0 [OPTION]... [VAR=VALUE]...
1893 
1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1895 VAR=VALUE.  See below for descriptions of some of the useful variables.
1896 
1897 Defaults for the options are specified in brackets.
1898 
1899 Configuration:
1900   -h, --help              display this help and exit
1901       --help=short        display options specific to this package
1902       --help=recursive    display the short help of all the included packages
1903   -V, --version           display version information and exit
1904   -q, --quiet, --silent   do not print \`checking ...' messages
1905       --cache-file=FILE   cache test results in FILE [disabled]
1906   -C, --config-cache      alias for \`--cache-file=config.cache'
1907   -n, --no-create         do not create output files
1908       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1909 
1910 Installation directories:
1911   --prefix=PREFIX         install architecture-independent files in PREFIX
1912                           [$ac_default_prefix]
1913   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1914                           [PREFIX]
1915 
1916 By default, \`make install' will install all the files in
1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1919 for instance \`--prefix=\$HOME'.
1920 
1921 For better control, use the options below.
1922 
1923 Fine tuning of the installation directories:
1924   --bindir=DIR            user executables [EPREFIX/bin]
1925   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1926   --libexecdir=DIR        program executables [EPREFIX/libexec]
1927   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1928   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1929   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1930   --libdir=DIR            object code libraries [EPREFIX/lib]
1931   --includedir=DIR        C header files [PREFIX/include]
1932   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1933   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1934   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1935   --infodir=DIR           info documentation [DATAROOTDIR/info]
1936   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1937   --mandir=DIR            man documentation [DATAROOTDIR/man]
1938   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1939   --htmldir=DIR           html documentation [DOCDIR]
1940   --dvidir=DIR            dvi documentation [DOCDIR]
1941   --pdfdir=DIR            pdf documentation [DOCDIR]
1942   --psdir=DIR             ps documentation [DOCDIR]
1943 _ACEOF
1944 
1945   cat <<\_ACEOF
1946 
1947 X features:
1948   --x-includes=DIR    X include files are in DIR
1949   --x-libraries=DIR   X library files are in DIR
1950 
1951 System types:
1952   --build=BUILD     configure for building on BUILD [guessed]
1953   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1954   --target=TARGET   configure for building compilers for TARGET [HOST]
1955 _ACEOF
1956 fi
1957 
1958 if test -n "$ac_init_help"; then
1959   case $ac_init_help in
1960      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1961    esac
1962   cat <<\_ACEOF
1963 
1964 Optional Features:
1965   --disable-option-checking  ignore unrecognized --enable/--with options
1966   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1967   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1968   --enable-openjdk-only   suppress building custom source even if present
1969                           [disabled]
1970   --enable-debug          set the debug level to fastdebug (shorthand for
1971                           --with-debug-level=fastdebug) [disabled]
1972   --enable-headless-only  only build headless (no GUI) support [disabled]
1973   --enable-full-docs      build complete documentation [enabled if all tools
1974                           found]
1975   --disable-unlimited-crypto
1976                           Disable unlimited crypto policy [enabled]
1977   --disable-keep-packaged-modules
1978                           Do not keep packaged modules in jdk image [enable]
1979   --enable-static-build   enable static library build [disabled]
1980   --disable-warnings-as-errors
1981                           do not consider native warnings to be an error
1982                           [enabled]
1983   --enable-debug-symbols  Deprecated. Option is kept for backwards
1984                           compatibility and is ignored
1985   --enable-zip-debug-info Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --enable-native-coverage
1988                           enable native compilation with code coverage
1989                           data[disabled]
1990   --enable-asan           enable AddressSanitizer if possible [disabled]
1991   --enable-dtrace[=yes/no/auto]
1992                           enable dtrace. Default is auto, where dtrace is
1993                           enabled if all dependencies are present.
1994   --enable-aot[=yes/no/auto]
1995                           enable ahead of time compilation feature. Default is
1996                           auto, where aot is enabled if all dependencies are
1997                           present.
1998   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
1999                           Default is yes.
2000   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2001                           [enabled]
2002   --disable-freetype-bundling
2003                           disable bundling of the freetype library with the
2004                           build result [enabled on Windows or when using
2005                           --with-freetype, disabled otherwise]
2006   --enable-libffi-bundling
2007                           enable bundling of libffi.so to make the built JDK
2008                           runnable on more systems
2009   --enable-jtreg-failure-handler
2010                           forces build of the jtreg failure handler to be
2011                           enabled, missing dependencies become fatal errors.
2012                           Default is auto, where the failure handler is built
2013                           if all dependencies are present and otherwise just
2014                           disabled.
2015   --disable-generate-classlist
2016                           forces enabling or disabling of the generation of a
2017                           CDS classlist at build time. Default is to generate
2018                           it when either the server or client JVMs are built
2019                           and enable-cds is true.
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,custom) [server]
2043   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2044                           (arm64,aarch64) [aarch64]
2045   --with-devkit           use this devkit for compilers, tools and resources
2046   --with-sys-root         alias for --with-sysroot for backwards compatability
2047   --with-sysroot          use this directory as sysroot
2048   --with-tools-dir        alias for --with-toolchain-path for backwards
2049                           compatibility
2050   --with-toolchain-path   prepend these directories when searching for
2051                           toolchain binaries (compilers etc)
2052   --with-extra-path       prepend these directories to the default path
2053   --with-sdk-name         use the platform SDK of the given name. [macosx]
2054   --with-conf-name        use this as the name of the configuration [generated
2055                           from important configuration options]
2056   --with-output-sync      set make output sync type if supported by make.
2057                           [recurse]
2058   --with-default-make-target
2059                           set the default make target [exploded-image]
2060   --with-cacerts-file     specify alternative cacerts file
2061   --with-copyright-year   Set copyright year value for build [current year]
2062   --with-milestone        Deprecated. Option is kept for backwards
2063                           compatibility and is ignored
2064   --with-update-version   Deprecated. Option is kept for backwards
2065                           compatibility and is ignored
2066   --with-user-release-suffix
2067                           Deprecated. Option is kept for backwards
2068                           compatibility and is ignored
2069   --with-build-number     Deprecated. Option is kept for backwards
2070                           compatibility and is ignored
2071   --with-version-major    Deprecated. Option is kept for backwards
2072                           compatibility and is ignored
2073   --with-version-minor    Deprecated. Option is kept for backwards
2074                           compatibility and is ignored
2075   --with-version-security Deprecated. Option is kept for backwards
2076                           compatibility and is ignored
2077   --with-vendor-name      Set vendor name [not specified]
2078   --with-version-string   Set version string [calculated]
2079   --with-version-pre      Set the base part of the version 'PRE' field
2080                           (pre-release identifier) ['internal']
2081   --with-version-opt      Set version 'OPT' field (build metadata)
2082                           [<timestamp>.<user>.<dirname>]
2083   --with-version-build    Set version 'BUILD' field (build number) [not
2084                           specified]
2085   --with-version-feature  Set version 'FEATURE' field (first number) [current
2086                           source value]
2087   --with-version-interim  Set version 'INTERIM' field (second number) [current
2088                           source value]
2089   --with-version-update   Set version 'UPDATE' field (third number) [current
2090                           source value]
2091   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2092                           specified]
2093   --with-version-date     Set version date [current source value]
2094   --with-vendor-version-string
2095                           Set vendor version string [not specified]
2096   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2097   --with-build-jdk        path to JDK of same version as is being built[the
2098                           newly built JDK]
2099   --with-import-modules   import a set of prebuilt modules either as a zip
2100                           file or an exploded directory
2101   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2102                           to show possible values [platform dependent]
2103   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2104   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2105   --with-extra-ldflags    extra flags to be used when linking jdk
2106   --with-toolchain-version
2107                           the version of the toolchain to look for, use
2108                           '--help' to show possible values [platform
2109                           dependent]
2110   --with-build-devkit     Devkit to use for the build platform toolchain
2111   --with-jtreg            Regression Test Harness [probed]
2112   --with-jib              Jib dependency management tool [not used]
2113   --with-abi-profile      specify ABI profile for ARM builds
2114                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2115                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2116                           [toolchain dependent]
2117   --with-macosx-version-max
2118                           error on use of newer functionality. [macosx]
2119   --with-native-debug-symbols
2120                           set the native debug symbol configuration (none,
2121                           internal, external, zipped) [varying]
2122   --with-stdc++lib=<static>,<dynamic>,<default>
2123                           force linking of the C++ runtime on Linux to either
2124                           static or dynamic, default is static with dynamic as
2125                           fallback
2126   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2127                           (Windows only) [probed]
2128   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2129                           (Windows only) [probed]
2130   --with-x                use the X Window System
2131   --with-cups             specify prefix directory for the cups package
2132                           (expecting the headers under PATH/include)
2133   --with-cups-include     specify directory for the cups include files
2134   --with-fontconfig       specify prefix directory for the fontconfig package
2135                           (expecting the headers under PATH/include)
2136   --with-fontconfig-include
2137                           specify directory for the fontconfig include files
2138   --with-freetype         specify prefix directory for the freetype package
2139                           (expecting the libraries under PATH/lib and the
2140                           headers under PATH/include)
2141   --with-freetype-include specify directory for the freetype include files
2142   --with-freetype-lib     specify directory for the freetype library
2143   --with-freetype-src     specify directory with freetype sources to
2144                           automatically build the library (experimental,
2145                           Windows-only)
2146   --with-freetype-license if bundling freetype, also bundle this license file
2147   --with-alsa             specify prefix directory for the alsa package
2148                           (expecting the libraries under PATH/lib and the
2149                           headers under PATH/include)
2150   --with-alsa-include     specify directory for the alsa include files
2151   --with-alsa-lib         specify directory for the alsa library
2152   --with-libffi           specify prefix directory for the libffi package
2153                           (expecting the libraries under PATH/lib and the
2154                           headers under PATH/include)
2155   --with-libffi-include   specify directory for the libffi include files
2156   --with-libffi-lib       specify directory for the libffi library
2157   --with-libjpeg          use libjpeg from build system or OpenJDK source
2158                           (system, bundled) [bundled]
2159   --with-giflib           use giflib from build system or OpenJDK source
2160                           (system, bundled) [bundled]
2161   --with-libpng           use libpng from build system or OpenJDK source
2162                           (system, bundled) [bundled]
2163   --with-zlib             use zlib from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-lcms             use lcms2 from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-dxsdk            Deprecated. Option is kept for backwards
2168                           compatibility and is ignored
2169   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2170                           compatibility and is ignored
2171   --with-dxsdk-include    Deprecated. Option is kept for backwards
2172                           compatibility and is ignored
2173   --with-jvm-features     additional JVM features to enable (separated by
2174                           comma), use '--help' to show possible values [none]
2175   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-num-cores        number of cores in the build system, e.g.
2178                           --with-num-cores=8 [probed]
2179   --with-memory-size      memory (in MB) available in the build system, e.g.
2180                           --with-memory-size=1024 [probed]
2181   --with-jobs             number of parallel jobs to let make run [calculated
2182                           based on cores and memory]
2183   --with-test-jobs        number of parallel tests jobs to run [based on build
2184                           jobs]
2185   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2186                           invocations of boot JDK, overriding the default
2187                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2188                           -enableassertions"
2189   --with-sjavac-server-java
2190                           use this java binary for running the sjavac
2191                           background server [Boot JDK java]
2192   --with-ccache-dir       where to store ccache files [~/.ccache]
2193 
2194 Some influential environment variables:
2195   BASENAME    Override default value for BASENAME
2196   BASH        Override default value for BASH
2197   CAT         Override default value for CAT
2198   CHMOD       Override default value for CHMOD
2199   CMP         Override default value for CMP
2200   COMM        Override default value for COMM
2201   CP          Override default value for CP
2202   CUT         Override default value for CUT
2203   DATE        Override default value for DATE
2204   DIFF        Override default value for DIFF
2205   DIRNAME     Override default value for DIRNAME
2206   ECHO        Override default value for ECHO
2207   EXPR        Override default value for EXPR
2208   FILE        Override default value for FILE
2209   FIND        Override default value for FIND
2210   HEAD        Override default value for HEAD
2211   GUNZIP      Override default value for GUNZIP
2212   GZIP        Override default value for GZIP
2213   LN          Override default value for LN
2214   LS          Override default value for LS
2215   MKDIR       Override default value for MKDIR
2216   MKTEMP      Override default value for MKTEMP
2217   MV          Override default value for MV
2218   NAWK        Override default value for NAWK
2219   PRINTF      Override default value for PRINTF
2220   RM          Override default value for RM
2221   RMDIR       Override default value for RMDIR
2222   SH          Override default value for SH
2223   SORT        Override default value for SORT
2224   TAIL        Override default value for TAIL
2225   TAR         Override default value for TAR
2226   TEE         Override default value for TEE
2227   TOUCH       Override default value for TOUCH
2228   TR          Override default value for TR
2229   UNAME       Override default value for UNAME
2230   UNIQ        Override default value for UNIQ
2231   WC          Override default value for WC
2232   WHICH       Override default value for WHICH
2233   XARGS       Override default value for XARGS
2234   AWK         Override default value for AWK
2235   GREP        Override default value for GREP
2236   EGREP       Override default value for EGREP
2237   FGREP       Override default value for FGREP
2238   SED         Override default value for SED
2239   CYGPATH     Override default value for CYGPATH
2240   READLINK    Override default value for READLINK
2241   DF          Override default value for DF
2242   CPIO        Override default value for CPIO
2243   NICE        Override default value for NICE
2244   PANDOC      Override default value for PANDOC
2245   MAKE        Override default value for MAKE
2246   UNZIP       Override default value for UNZIP
2247   ZIPEXE      Override default value for ZIPEXE
2248   LDD         Override default value for LDD
2249   READELF     Override default value for READELF
2250   DOT         Override default value for DOT
2251   HG          Override default value for HG
2252   STAT        Override default value for STAT
2253   TIME        Override default value for TIME
2254   FLOCK       Override default value for FLOCK
2255   DTRACE      Override default value for DTRACE
2256   PATCH       Override default value for PATCH
2257   DSYMUTIL    Override default value for DSYMUTIL
2258   XATTR       Override default value for XATTR
2259   CODESIGN    Override default value for CODESIGN
2260   SETFILE     Override default value for SETFILE
2261   PKG_CONFIG  path to pkg-config utility
2262   JAVA        Override default value for JAVA
2263   JAVAC       Override default value for JAVAC
2264   JAVADOC     Override default value for JAVADOC
2265   JAR         Override default value for JAR
2266   JARSIGNER   Override default value for JARSIGNER
2267   CC          C compiler command
2268   CFLAGS      C compiler flags
2269   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2270               nonstandard directory <lib dir>
2271   LIBS        libraries to pass to the linker, e.g. -l<library>
2272   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2273               you have headers in a nonstandard directory <include dir>
2274   CXX         C++ compiler command
2275   CXXFLAGS    C++ compiler flags
2276   CPP         C preprocessor
2277   CXXCPP      C++ preprocessor
2278   AS          Override default value for AS
2279   AR          Override default value for AR
2280   LIPO        Override default value for LIPO
2281   OTOOL       Override default value for OTOOL
2282   INSTALL_NAME_TOOL
2283               Override default value for INSTALL_NAME_TOOL
2284   STRIP       Override default value for STRIP
2285   NM          Override default value for NM
2286   GNM         Override default value for GNM
2287   OBJCOPY     Override default value for OBJCOPY
2288   OBJDUMP     Override default value for OBJDUMP
2289   BUILD_CC    Override default value for BUILD_CC
2290   BUILD_CXX   Override default value for BUILD_CXX
2291   BUILD_NM    Override default value for BUILD_NM
2292   BUILD_AR    Override default value for BUILD_AR
2293   BUILD_OBJCOPY
2294               Override default value for BUILD_OBJCOPY
2295   BUILD_STRIP Override default value for BUILD_STRIP
2296   JTREGEXE    Override default value for JTREGEXE
2297   XMKMF       Path to xmkmf, Makefile generator for X Window System
2298   FREETYPE_CFLAGS
2299               C compiler flags for FREETYPE, overriding pkg-config
2300   FREETYPE_LIBS
2301               linker flags for FREETYPE, overriding pkg-config
2302   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2303   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2304   LIBFFI_CFLAGS
2305               C compiler flags for LIBFFI, overriding pkg-config
2306   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2307   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2308   PNG_LIBS    linker flags for PNG, overriding pkg-config
2309   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2310   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2311   ICECC_CMD   Override default value for ICECC_CMD
2312   ICECC_CREATE_ENV
2313               Override default value for ICECC_CREATE_ENV
2314   ICECC_WRAPPER
2315               Override default value for ICECC_WRAPPER
2316   CCACHE      Override default value for CCACHE
2317 
2318 Use these variables to override the choices made by `configure' or to help
2319 it to find libraries and programs with nonstandard names/locations.
2320 
2321 Report bugs to <build-dev@openjdk.java.net>.
2322 OpenJDK home page: <http://openjdk.java.net>.
2323 _ACEOF
2324 ac_status=$?
2325 fi
2326 
2327 if test "$ac_init_help" = "recursive"; then
2328   # If there are subdirs, report their specific --help.
2329   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2330     test -d "$ac_dir" ||
2331       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2332       continue
2333     ac_builddir=.
2334 
2335 case "$ac_dir" in
2336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2337 *)
2338   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2339   # A ".." for each directory in $ac_dir_suffix.
2340   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2341   case $ac_top_builddir_sub in
2342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2344   esac ;;
2345 esac
2346 ac_abs_top_builddir=$ac_pwd
2347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2348 # for backward compatibility:
2349 ac_top_builddir=$ac_top_build_prefix
2350 
2351 case $srcdir in
2352   .)  # We are building in place.
2353     ac_srcdir=.
2354     ac_top_srcdir=$ac_top_builddir_sub
2355     ac_abs_top_srcdir=$ac_pwd ;;
2356   [\\/]* | ?:[\\/]* )  # Absolute name.
2357     ac_srcdir=$srcdir$ac_dir_suffix;
2358     ac_top_srcdir=$srcdir
2359     ac_abs_top_srcdir=$srcdir ;;
2360   *) # Relative name.
2361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2362     ac_top_srcdir=$ac_top_build_prefix$srcdir
2363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2364 esac
2365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2366 
2367     cd "$ac_dir" || { ac_status=$?; continue; }
2368     # Check for guested configure.
2369     if test -f "$ac_srcdir/configure.gnu"; then
2370       echo &&
2371       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2372     elif test -f "$ac_srcdir/configure"; then
2373       echo &&
2374       $SHELL "$ac_srcdir/configure" --help=recursive
2375     else
2376       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2377     fi || ac_status=$?
2378     cd "$ac_pwd" || { ac_status=$?; break; }
2379   done
2380 fi
2381 
2382 test -n "$ac_init_help" && exit $ac_status
2383 if $ac_init_version; then
2384   cat <<\_ACEOF
2385 OpenJDK configure jdk9
2386 generated by GNU Autoconf 2.69
2387 
2388 Copyright (C) 2012 Free Software Foundation, Inc.
2389 This configure script is free software; the Free Software Foundation
2390 gives unlimited permission to copy, distribute and modify it.
2391 _ACEOF
2392   exit
2393 fi
2394 
2395 ## ------------------------ ##
2396 ## Autoconf initialization. ##
2397 ## ------------------------ ##
2398 
2399 # ac_fn_c_try_compile LINENO
2400 # --------------------------
2401 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2402 ac_fn_c_try_compile ()
2403 {
2404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405   rm -f conftest.$ac_objext
2406   if { { ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413   (eval "$ac_compile") 2>conftest.err
2414   ac_status=$?
2415   if test -s conftest.err; then
2416     grep -v '^ *+' conftest.err >conftest.er1
2417     cat conftest.er1 >&5
2418     mv -f conftest.er1 conftest.err
2419   fi
2420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421   test $ac_status = 0; } && {
2422          test -z "$ac_c_werror_flag" ||
2423          test ! -s conftest.err
2424        } && test -s conftest.$ac_objext; then :
2425   ac_retval=0
2426 else
2427   $as_echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429 
2430         ac_retval=1
2431 fi
2432   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433   as_fn_set_status $ac_retval
2434 
2435 } # ac_fn_c_try_compile
2436 
2437 # ac_fn_cxx_try_compile LINENO
2438 # ----------------------------
2439 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2440 ac_fn_cxx_try_compile ()
2441 {
2442   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443   rm -f conftest.$ac_objext
2444   if { { ac_try="$ac_compile"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450 $as_echo "$ac_try_echo"; } >&5
2451   (eval "$ac_compile") 2>conftest.err
2452   ac_status=$?
2453   if test -s conftest.err; then
2454     grep -v '^ *+' conftest.err >conftest.er1
2455     cat conftest.er1 >&5
2456     mv -f conftest.er1 conftest.err
2457   fi
2458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459   test $ac_status = 0; } && {
2460          test -z "$ac_cxx_werror_flag" ||
2461          test ! -s conftest.err
2462        } && test -s conftest.$ac_objext; then :
2463   ac_retval=0
2464 else
2465   $as_echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467 
2468         ac_retval=1
2469 fi
2470   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471   as_fn_set_status $ac_retval
2472 
2473 } # ac_fn_cxx_try_compile
2474 
2475 # ac_fn_c_try_cpp LINENO
2476 # ----------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_c_try_cpp ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489   ac_status=$?
2490   if test -s conftest.err; then
2491     grep -v '^ *+' conftest.err >conftest.er1
2492     cat conftest.er1 >&5
2493     mv -f conftest.er1 conftest.err
2494   fi
2495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496   test $ac_status = 0; } > conftest.i && {
2497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2498          test ! -s conftest.err
2499        }; then :
2500   ac_retval=0
2501 else
2502   $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504 
2505     ac_retval=1
2506 fi
2507   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508   as_fn_set_status $ac_retval
2509 
2510 } # ac_fn_c_try_cpp
2511 
2512 # ac_fn_cxx_try_cpp LINENO
2513 # ------------------------
2514 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2515 ac_fn_cxx_try_cpp ()
2516 {
2517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518   if { { ac_try="$ac_cpp conftest.$ac_ext"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 $as_echo "$ac_try_echo"; } >&5
2525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2526   ac_status=$?
2527   if test -s conftest.err; then
2528     grep -v '^ *+' conftest.err >conftest.er1
2529     cat conftest.er1 >&5
2530     mv -f conftest.er1 conftest.err
2531   fi
2532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533   test $ac_status = 0; } > conftest.i && {
2534          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2535          test ! -s conftest.err
2536        }; then :
2537   ac_retval=0
2538 else
2539   $as_echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541 
2542     ac_retval=1
2543 fi
2544   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545   as_fn_set_status $ac_retval
2546 
2547 } # ac_fn_cxx_try_cpp
2548 
2549 # ac_fn_c_try_link LINENO
2550 # -----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded.
2552 ac_fn_c_try_link ()
2553 {
2554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555   rm -f conftest.$ac_objext conftest$ac_exeext
2556   if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563   (eval "$ac_link") 2>conftest.err
2564   ac_status=$?
2565   if test -s conftest.err; then
2566     grep -v '^ *+' conftest.err >conftest.er1
2567     cat conftest.er1 >&5
2568     mv -f conftest.er1 conftest.err
2569   fi
2570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571   test $ac_status = 0; } && {
2572          test -z "$ac_c_werror_flag" ||
2573          test ! -s conftest.err
2574        } && test -s conftest$ac_exeext && {
2575          test "$cross_compiling" = yes ||
2576          test -x conftest$ac_exeext
2577        }; then :
2578   ac_retval=0
2579 else
2580   $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582 
2583         ac_retval=1
2584 fi
2585   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2586   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2587   # interfere with the next link command; also delete a directory that is
2588   # left behind by Apple's compiler.  We do this before executing the actions.
2589   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591   as_fn_set_status $ac_retval
2592 
2593 } # ac_fn_c_try_link
2594 
2595 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2596 # ---------------------------------------------------------
2597 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2598 # the include files in INCLUDES and setting the cache variable VAR
2599 # accordingly.
2600 ac_fn_cxx_check_header_mongrel ()
2601 {
2602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603   if eval \${$3+:} false; then :
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if eval \${$3+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 else
2613   # Is the header compilable?
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2615 $as_echo_n "checking $2 usability... " >&6; }
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $4
2619 #include <$2>
2620 _ACEOF
2621 if ac_fn_cxx_try_compile "$LINENO"; then :
2622   ac_header_compiler=yes
2623 else
2624   ac_header_compiler=no
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2628 $as_echo "$ac_header_compiler" >&6; }
2629 
2630 # Is the header present?
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2632 $as_echo_n "checking $2 presence... " >&6; }
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 #include <$2>
2636 _ACEOF
2637 if ac_fn_cxx_try_cpp "$LINENO"; then :
2638   ac_header_preproc=yes
2639 else
2640   ac_header_preproc=no
2641 fi
2642 rm -f conftest.err conftest.i conftest.$ac_ext
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2644 $as_echo "$ac_header_preproc" >&6; }
2645 
2646 # So?  What about this header?
2647 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2648   yes:no: )
2649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2650 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2653     ;;
2654   no:yes:* )
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2656 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2658 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2660 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2662 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665 ( $as_echo "## ----------------------------------------- ##
2666 ## Report this to build-dev@openjdk.java.net ##
2667 ## ----------------------------------------- ##"
2668      ) | sed "s/^/$as_me: WARNING:     /" >&2
2669     ;;
2670 esac
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2672 $as_echo_n "checking for $2... " >&6; }
2673 if eval \${$3+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   eval "$3=\$ac_header_compiler"
2677 fi
2678 eval ac_res=\$$3
2679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680 $as_echo "$ac_res" >&6; }
2681 fi
2682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683 
2684 } # ac_fn_cxx_check_header_mongrel
2685 
2686 # ac_fn_cxx_try_run LINENO
2687 # ------------------------
2688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2689 # that executables *can* be run.
2690 ac_fn_cxx_try_run ()
2691 {
2692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693   if { { ac_try="$ac_link"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700   (eval "$ac_link") 2>&5
2701   ac_status=$?
2702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2711   ac_status=$?
2712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713   test $ac_status = 0; }; }; then :
2714   ac_retval=0
2715 else
2716   $as_echo "$as_me: program exited with status $ac_status" >&5
2717        $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719 
2720        ac_retval=$ac_status
2721 fi
2722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724   as_fn_set_status $ac_retval
2725 
2726 } # ac_fn_cxx_try_run
2727 
2728 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2729 # ---------------------------------------------------------
2730 # Tests whether HEADER exists and can be compiled using the include files in
2731 # INCLUDES, setting the cache variable VAR accordingly.
2732 ac_fn_cxx_check_header_compile ()
2733 {
2734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736 $as_echo_n "checking for $2... " >&6; }
2737 if eval \${$3+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h.  */
2742 $4
2743 #include <$2>
2744 _ACEOF
2745 if ac_fn_cxx_try_compile "$LINENO"; then :
2746   eval "$3=yes"
2747 else
2748   eval "$3=no"
2749 fi
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 fi
2752 eval ac_res=\$$3
2753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2756 
2757 } # ac_fn_cxx_check_header_compile
2758 
2759 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2760 # ----------------------------------------------
2761 # Tries to find the compile-time value of EXPR in a program that includes
2762 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2763 # computed
2764 ac_fn_cxx_compute_int ()
2765 {
2766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767   if test "$cross_compiling" = yes; then
2768     # Depending upon the size, compute the lo and hi bounds.
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h.  */
2771 $4
2772 int
2773 main ()
2774 {
2775 static int test_array [1 - 2 * !(($2) >= 0)];
2776 test_array [0] = 0;
2777 return test_array [0];
2778 
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_cxx_try_compile "$LINENO"; then :
2784   ac_lo=0 ac_mid=0
2785   while :; do
2786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h.  */
2788 $4
2789 int
2790 main ()
2791 {
2792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2793 test_array [0] = 0;
2794 return test_array [0];
2795 
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_cxx_try_compile "$LINENO"; then :
2801   ac_hi=$ac_mid; break
2802 else
2803   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2804                         if test $ac_lo -le $ac_mid; then
2805                           ac_lo= ac_hi=
2806                           break
2807                         fi
2808                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2809 fi
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811   done
2812 else
2813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h.  */
2815 $4
2816 int
2817 main ()
2818 {
2819 static int test_array [1 - 2 * !(($2) < 0)];
2820 test_array [0] = 0;
2821 return test_array [0];
2822 
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 if ac_fn_cxx_try_compile "$LINENO"; then :
2828   ac_hi=-1 ac_mid=-1
2829   while :; do
2830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 $4
2833 int
2834 main ()
2835 {
2836 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2837 test_array [0] = 0;
2838 return test_array [0];
2839 
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_cxx_try_compile "$LINENO"; then :
2845   ac_lo=$ac_mid; break
2846 else
2847   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2848                         if test $ac_mid -le $ac_hi; then
2849                           ac_lo= ac_hi=
2850                           break
2851                         fi
2852                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855   done
2856 else
2857   ac_lo= ac_hi=
2858 fi
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 # Binary search between lo and hi bounds.
2863 while test "x$ac_lo" != "x$ac_hi"; do
2864   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $4
2868 int
2869 main ()
2870 {
2871 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2872 test_array [0] = 0;
2873 return test_array [0];
2874 
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_cxx_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid
2881 else
2882   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 done
2886 case $ac_lo in #((
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2888 '') ac_retval=1 ;;
2889 esac
2890   else
2891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2896 #include <stdio.h>
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901 
2902   FILE *f = fopen ("conftest.val", "w");
2903   if (! f)
2904     return 1;
2905   if (($2) < 0)
2906     {
2907       long int i = longval ();
2908       if (i != ($2))
2909         return 1;
2910       fprintf (f, "%ld", i);
2911     }
2912   else
2913     {
2914       unsigned long int i = ulongval ();
2915       if (i != ($2))
2916         return 1;
2917       fprintf (f, "%lu", i);
2918     }
2919   /* Do not output a trailing newline, as this causes \r\n confusion
2920      on some platforms.  */
2921   return ferror (f) || fclose (f) != 0;
2922 
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_cxx_try_run "$LINENO"; then :
2928   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2929 else
2930   ac_retval=1
2931 fi
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933   conftest.$ac_objext conftest.beam conftest.$ac_ext
2934 rm -f conftest.val
2935 
2936   fi
2937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2938   as_fn_set_status $ac_retval
2939 
2940 } # ac_fn_cxx_compute_int
2941 
2942 # ac_fn_cxx_try_link LINENO
2943 # -------------------------
2944 # Try to link conftest.$ac_ext, and return whether this succeeded.
2945 ac_fn_cxx_try_link ()
2946 {
2947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2948   rm -f conftest.$ac_objext conftest$ac_exeext
2949   if { { ac_try="$ac_link"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956   (eval "$ac_link") 2>conftest.err
2957   ac_status=$?
2958   if test -s conftest.err; then
2959     grep -v '^ *+' conftest.err >conftest.er1
2960     cat conftest.er1 >&5
2961     mv -f conftest.er1 conftest.err
2962   fi
2963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964   test $ac_status = 0; } && {
2965          test -z "$ac_cxx_werror_flag" ||
2966          test ! -s conftest.err
2967        } && test -s conftest$ac_exeext && {
2968          test "$cross_compiling" = yes ||
2969          test -x conftest$ac_exeext
2970        }; then :
2971   ac_retval=0
2972 else
2973   $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975 
2976         ac_retval=1
2977 fi
2978   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2979   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2980   # interfere with the next link command; also delete a directory that is
2981   # left behind by Apple's compiler.  We do this before executing the actions.
2982   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2984   as_fn_set_status $ac_retval
2985 
2986 } # ac_fn_cxx_try_link
2987 
2988 # ac_fn_cxx_check_func LINENO FUNC VAR
2989 # ------------------------------------
2990 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2991 ac_fn_cxx_check_func ()
2992 {
2993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2995 $as_echo_n "checking for $2... " >&6; }
2996 if eval \${$3+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h.  */
3001 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3003 #define $2 innocuous_$2
3004 
3005 /* System header to define __stub macros and hopefully few prototypes,
3006     which can conflict with char $2 (); below.
3007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008     <limits.h> exists even on freestanding compilers.  */
3009 
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015 
3016 #undef $2
3017 
3018 /* Override any GCC internal prototype to avoid an error.
3019    Use char because int might match the return type of a GCC
3020    builtin and then its argument prototype would still apply.  */
3021 #ifdef __cplusplus
3022 extern "C"
3023 #endif
3024 char $2 ();
3025 /* The GNU C library defines this for functions which it implements
3026     to always fail with ENOSYS.  Some functions are actually named
3027     something starting with __ and the normal name is an alias.  */
3028 #if defined __stub_$2 || defined __stub___$2
3029 choke me
3030 #endif
3031 
3032 int
3033 main ()
3034 {
3035 return $2 ();
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 if ac_fn_cxx_try_link "$LINENO"; then :
3041   eval "$3=yes"
3042 else
3043   eval "$3=no"
3044 fi
3045 rm -f core conftest.err conftest.$ac_objext \
3046     conftest$ac_exeext conftest.$ac_ext
3047 fi
3048 eval ac_res=\$$3
3049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3050 $as_echo "$ac_res" >&6; }
3051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3052 
3053 } # ac_fn_cxx_check_func
3054 
3055 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3056 # -------------------------------------------------------
3057 # Tests whether HEADER exists and can be compiled using the include files in
3058 # INCLUDES, setting the cache variable VAR accordingly.
3059 ac_fn_c_check_header_compile ()
3060 {
3061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3063 $as_echo_n "checking for $2... " >&6; }
3064 if eval \${$3+:} false; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h.  */
3069 $4
3070 #include <$2>
3071 _ACEOF
3072 if ac_fn_c_try_compile "$LINENO"; then :
3073   eval "$3=yes"
3074 else
3075   eval "$3=no"
3076 fi
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 fi
3079 eval ac_res=\$$3
3080                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3081 $as_echo "$ac_res" >&6; }
3082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3083 
3084 } # ac_fn_c_check_header_compile
3085 cat >config.log <<_ACEOF
3086 This file contains any messages produced by compilers while
3087 running configure, to aid debugging if configure makes a mistake.
3088 
3089 It was created by OpenJDK $as_me jdk9, which was
3090 generated by GNU Autoconf 2.69.  Invocation command line was
3091 
3092   $ $0 $@
3093 
3094 _ACEOF
3095 exec 5>>config.log
3096 {
3097 cat <<_ASUNAME
3098 ## --------- ##
3099 ## Platform. ##
3100 ## --------- ##
3101 
3102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3107 
3108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3109 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3110 
3111 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3112 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3114 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3115 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3116 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3117 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3118 
3119 _ASUNAME
3120 
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     $as_echo "PATH: $as_dir"
3127   done
3128 IFS=$as_save_IFS
3129 
3130 } >&5
3131 
3132 cat >&5 <<_ACEOF
3133 
3134 
3135 ## ----------- ##
3136 ## Core tests. ##
3137 ## ----------- ##
3138 
3139 _ACEOF
3140 
3141 
3142 # Keep a trace of the command line.
3143 # Strip out --no-create and --no-recursion so they do not pile up.
3144 # Strip out --silent because we don't want to record it for future runs.
3145 # Also quote any args containing shell meta-characters.
3146 # Make two passes to allow for proper duplicate-argument suppression.
3147 ac_configure_args=
3148 ac_configure_args0=
3149 ac_configure_args1=
3150 ac_must_keep_next=false
3151 for ac_pass in 1 2
3152 do
3153   for ac_arg
3154   do
3155     case $ac_arg in
3156     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3157     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3158     | -silent | --silent | --silen | --sile | --sil)
3159       continue ;;
3160     *\'*)
3161       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3162     esac
3163     case $ac_pass in
3164     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3165     2)
3166       as_fn_append ac_configure_args1 " '$ac_arg'"
3167       if test $ac_must_keep_next = true; then
3168         ac_must_keep_next=false # Got value, back to normal.
3169       else
3170         case $ac_arg in
3171           *=* | --config-cache | -C | -disable-* | --disable-* \
3172           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3173           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3174           | -with-* | --with-* | -without-* | --without-* | --x)
3175             case "$ac_configure_args0 " in
3176               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3177             esac
3178             ;;
3179           -* ) ac_must_keep_next=true ;;
3180         esac
3181       fi
3182       as_fn_append ac_configure_args " '$ac_arg'"
3183       ;;
3184     esac
3185   done
3186 done
3187 { ac_configure_args0=; unset ac_configure_args0;}
3188 { ac_configure_args1=; unset ac_configure_args1;}
3189 
3190 # When interrupted or exit'd, cleanup temporary files, and complete
3191 # config.log.  We remove comments because anyway the quotes in there
3192 # would cause problems or look ugly.
3193 # WARNING: Use '\'' to represent an apostrophe within the trap.
3194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3195 trap 'exit_status=$?
3196   # Save into config.log some information that might help in debugging.
3197   {
3198     echo
3199 
3200     $as_echo "## ---------------- ##
3201 ## Cache variables. ##
3202 ## ---------------- ##"
3203     echo
3204     # The following way of writing the cache mishandles newlines in values,
3205 (
3206   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3207     eval ac_val=\$$ac_var
3208     case $ac_val in #(
3209     *${as_nl}*)
3210       case $ac_var in #(
3211       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3213       esac
3214       case $ac_var in #(
3215       _ | IFS | as_nl) ;; #(
3216       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3217       *) { eval $ac_var=; unset $ac_var;} ;;
3218       esac ;;
3219     esac
3220   done
3221   (set) 2>&1 |
3222     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3223     *${as_nl}ac_space=\ *)
3224       sed -n \
3225         "s/'\''/'\''\\\\'\'''\''/g;
3226           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3227       ;; #(
3228     *)
3229       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3230       ;;
3231     esac |
3232     sort
3233 )
3234     echo
3235 
3236     $as_echo "## ----------------- ##
3237 ## Output variables. ##
3238 ## ----------------- ##"
3239     echo
3240     for ac_var in $ac_subst_vars
3241     do
3242       eval ac_val=\$$ac_var
3243       case $ac_val in
3244       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245       esac
3246       $as_echo "$ac_var='\''$ac_val'\''"
3247     done | sort
3248     echo
3249 
3250     if test -n "$ac_subst_files"; then
3251       $as_echo "## ------------------- ##
3252 ## File substitutions. ##
3253 ## ------------------- ##"
3254       echo
3255       for ac_var in $ac_subst_files
3256       do
3257         eval ac_val=\$$ac_var
3258         case $ac_val in
3259         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3260         esac
3261         $as_echo "$ac_var='\''$ac_val'\''"
3262       done | sort
3263       echo
3264     fi
3265 
3266     if test -s confdefs.h; then
3267       $as_echo "## ----------- ##
3268 ## confdefs.h. ##
3269 ## ----------- ##"
3270       echo
3271       cat confdefs.h
3272       echo
3273     fi
3274     test "$ac_signal" != 0 &&
3275       $as_echo "$as_me: caught signal $ac_signal"
3276     $as_echo "$as_me: exit $exit_status"
3277   } >&5
3278   rm -f core *.core core.conftest.* &&
3279     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3280     exit $exit_status
3281 ' 0
3282 for ac_signal in 1 2 13 15; do
3283   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3284 done
3285 ac_signal=0
3286 
3287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3288 rm -f -r conftest* confdefs.h
3289 
3290 $as_echo "/* confdefs.h */" > confdefs.h
3291 
3292 # Predefined preprocessor variables.
3293 
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_NAME "$PACKAGE_NAME"
3296 _ACEOF
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3304 _ACEOF
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_STRING "$PACKAGE_STRING"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3312 _ACEOF
3313 
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_URL "$PACKAGE_URL"
3316 _ACEOF
3317 
3318 
3319 # Let the site file select an alternate cache file if it wants to.
3320 # Prefer an explicitly selected file to automatically selected ones.
3321 ac_site_file1=NONE
3322 ac_site_file2=NONE
3323 if test -n "$CONFIG_SITE"; then
3324   # We do not want a PATH search for config.site.
3325   case $CONFIG_SITE in #((
3326     -*)  ac_site_file1=./$CONFIG_SITE;;
3327     */*) ac_site_file1=$CONFIG_SITE;;
3328     *)   ac_site_file1=./$CONFIG_SITE;;
3329   esac
3330 elif test "x$prefix" != xNONE; then
3331   ac_site_file1=$prefix/share/config.site
3332   ac_site_file2=$prefix/etc/config.site
3333 else
3334   ac_site_file1=$ac_default_prefix/share/config.site
3335   ac_site_file2=$ac_default_prefix/etc/config.site
3336 fi
3337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3338 do
3339   test "x$ac_site_file" = xNONE && continue
3340   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3343     sed 's/^/| /' "$ac_site_file" >&5
3344     . "$ac_site_file" \
3345       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "failed to load site script $ac_site_file
3348 See \`config.log' for more details" "$LINENO" 5; }
3349   fi
3350 done
3351 
3352 if test -r "$cache_file"; then
3353   # Some versions of bash will fail to source /dev/null (special files
3354   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3355   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3356     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3357 $as_echo "$as_me: loading cache $cache_file" >&6;}
3358     case $cache_file in
3359       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3360       *)                      . "./$cache_file";;
3361     esac
3362   fi
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3365 $as_echo "$as_me: creating cache $cache_file" >&6;}
3366   >$cache_file
3367 fi
3368 
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374   eval ac_new_set=\$ac_env_${ac_var}_set
3375   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376   eval ac_new_val=\$ac_env_${ac_var}_value
3377   case $ac_old_set,$ac_new_set in
3378     set,)
3379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381       ac_cache_corrupted=: ;;
3382     ,set)
3383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385       ac_cache_corrupted=: ;;
3386     ,);;
3387     *)
3388       if test "x$ac_old_val" != "x$ac_new_val"; then
3389         # differences in whitespace do not lead to failure.
3390         ac_old_val_w=`echo x $ac_old_val`
3391         ac_new_val_w=`echo x $ac_new_val`
3392         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395           ac_cache_corrupted=:
3396         else
3397           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399           eval $ac_var=\$ac_old_val
3400         fi
3401         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3402 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3403         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3405       fi;;
3406   esac
3407   # Pass precious variables to config.status.
3408   if test "$ac_new_set" = set; then
3409     case $ac_new_val in
3410     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411     *) ac_arg=$ac_var=$ac_new_val ;;
3412     esac
3413     case " $ac_configure_args " in
3414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3415       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416     esac
3417   fi
3418 done
3419 if $ac_cache_corrupted; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3425 fi
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3429 
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 
3436 
3437 
3438 ac_aux_dir=
3439 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3440   if test -f "$ac_dir/install-sh"; then
3441     ac_aux_dir=$ac_dir
3442     ac_install_sh="$ac_aux_dir/install-sh -c"
3443     break
3444   elif test -f "$ac_dir/install.sh"; then
3445     ac_aux_dir=$ac_dir
3446     ac_install_sh="$ac_aux_dir/install.sh -c"
3447     break
3448   elif test -f "$ac_dir/shtool"; then
3449     ac_aux_dir=$ac_dir
3450     ac_install_sh="$ac_aux_dir/shtool install -c"
3451     break
3452   fi
3453 done
3454 if test -z "$ac_aux_dir"; then
3455   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5
3456 fi
3457 
3458 # These three variables are undocumented and unsupported,
3459 # and are intended to be withdrawn in a future Autoconf release.
3460 # They can cause serious problems if a builder's source tree is in a directory
3461 # whose full name contains unusual characters.
3462 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3463 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3464 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3465 
3466 
3467 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3468 
3469 #
3470 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3471 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3472 #
3473 # This code is free software; you can redistribute it and/or modify it
3474 # under the terms of the GNU General Public License version 2 only, as
3475 # published by the Free Software Foundation.  Oracle designates this
3476 # particular file as subject to the "Classpath" exception as provided
3477 # by Oracle in the LICENSE file that accompanied this code.
3478 #
3479 # This code is distributed in the hope that it will be useful, but WITHOUT
3480 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3481 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3482 # version 2 for more details (a copy is included in the LICENSE file that
3483 # accompanied this code).
3484 #
3485 # You should have received a copy of the GNU General Public License version
3486 # 2 along with this work; if not, write to the Free Software Foundation,
3487 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3488 #
3489 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3490 # or visit www.oracle.com if you need additional information or have any
3491 # questions.
3492 #
3493 
3494 #
3495 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3496 #
3497 # This program is free software; you can redistribute it and/or modify
3498 # it under the terms of the GNU General Public License as published by
3499 # the Free Software Foundation; either version 2 of the License, or
3500 # (at your option) any later version.
3501 #
3502 # This program is distributed in the hope that it will be useful, but
3503 # WITHOUT ANY WARRANTY; without even the implied warranty of
3504 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3505 # General Public License for more details.
3506 #
3507 # You should have received a copy of the GNU General Public License
3508 # along with this program; if not, write to the Free Software
3509 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3510 #
3511 # As a special exception to the GNU General Public License, if you
3512 # distribute this file as part of a program that contains a
3513 # configuration script generated by Autoconf, you may include it under
3514 # the same distribution terms that you use for the rest of that program.
3515 
3516 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3517 # ----------------------------------
3518 # PKG_PROG_PKG_CONFIG
3519 
3520 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3521 #
3522 # Check to see whether a particular set of modules exists.  Similar
3523 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3524 #
3525 #
3526 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3527 # this or PKG_CHECK_MODULES is called, or make sure to call
3528 # PKG_CHECK_EXISTS manually
3529 # --------------------------------------------------------------
3530 
3531 
3532 
3533 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3534 # ---------------------------------------------
3535 # _PKG_CONFIG
3536 
3537 # _PKG_SHORT_ERRORS_SUPPORTED
3538 # -----------------------------
3539 # _PKG_SHORT_ERRORS_SUPPORTED
3540 
3541 
3542 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3543 # [ACTION-IF-NOT-FOUND])
3544 #
3545 #
3546 # Note that if there is a possibility the first call to
3547 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3548 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3549 #
3550 #
3551 # --------------------------------------------------------------
3552 # PKG_CHECK_MODULES
3553 
3554 
3555 # Include these first...
3556 #
3557 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3558 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3559 #
3560 # This code is free software; you can redistribute it and/or modify it
3561 # under the terms of the GNU General Public License version 2 only, as
3562 # published by the Free Software Foundation.  Oracle designates this
3563 # particular file as subject to the "Classpath" exception as provided
3564 # by Oracle in the LICENSE file that accompanied this code.
3565 #
3566 # This code is distributed in the hope that it will be useful, but WITHOUT
3567 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3568 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3569 # version 2 for more details (a copy is included in the LICENSE file that
3570 # accompanied this code).
3571 #
3572 # You should have received a copy of the GNU General Public License version
3573 # 2 along with this work; if not, write to the Free Software Foundation,
3574 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3575 #
3576 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3577 # or visit www.oracle.com if you need additional information or have any
3578 # questions.
3579 #
3580 
3581 # Create a function/macro that takes a series of named arguments. The call is
3582 # similar to AC_DEFUN, but the setup of the function looks like this:
3583 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3584 # ... do something
3585 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3586 # ])
3587 # A star (*) in front of a named argument means that it is required and it's
3588 # presence will be verified. To pass e.g. the first value as a normal indexed
3589 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3590 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3591 # "ARG_FOO".
3592 #
3593 # The generated function can be called like this:
3594 # MYFUNC(FOO: [foo-val],
3595 #     BAR: [
3596 #         $ECHO hello world
3597 #     ])
3598 # Note that the argument value must start on the same line as the argument name.
3599 #
3600 # Argument 1: Name of the function to define
3601 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3602 # Argument 3: Argument array to treat as named, typically $@
3603 # Argument 4: The main function body
3604 
3605 
3606 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3607 # If so, then append $1 to $2 \
3608 # Also set JVM_ARG_OK to true/false depending on outcome.
3609 
3610 
3611 # Appends a string to a path variable, only adding the : when needed.
3612 
3613 
3614 # Prepends a string to a path variable, only adding the : when needed.
3615 
3616 
3617 # This will make sure the given variable points to a full and proper
3618 # path. This means:
3619 # 1) There will be no spaces in the path. On unix platforms,
3620 #    spaces in the path will result in an error. On Windows,
3621 #    the path will be rewritten using short-style to be space-free.
3622 # 2) The path will be absolute, and it will be in unix-style (on
3623 #     cygwin).
3624 # $1: The name of the variable to fix
3625 
3626 
3627 # This will make sure the given variable points to a executable
3628 # with a full and proper 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 # Any arguments given to the executable is preserved.
3635 # If the input variable does not have a directory specification, then
3636 # it need to be in the PATH.
3637 # $1: The name of the variable to fix
3638 
3639 
3640 
3641 
3642 # Register a --with argument but mark it as deprecated
3643 # $1: The name of the with argument to deprecate, not including --with-
3644 
3645 
3646 # Register a --enable argument but mark it as deprecated
3647 # $1: The name of the with argument to deprecate, not including --enable-
3648 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3649 # $3: Messages to user.
3650 
3651 
3652 
3653 
3654 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3655 # $1: variable to check
3656 
3657 
3658 # Check that there are no unprocessed overridden variables left.
3659 # If so, they are an incorrect argument and we will exit with an error.
3660 
3661 
3662 # Setup a tool for the given variable. If correctly specified by the user,
3663 # use that value, otherwise search for the tool using the supplied code snippet.
3664 # $1: variable to set
3665 # $2: code snippet to call to look for the tool
3666 # $3: code snippet to call if variable was used to find tool
3667 
3668 
3669 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3670 # $1: variable to set
3671 # $2: executable name (or list of names) to look for
3672 # $3: [path]
3673 
3674 
3675 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3676 # $1: variable to set
3677 # $2: executable name (or list of names) to look for
3678 
3679 
3680 # Like BASIC_PATH_PROGS but fails if no tool was found.
3681 # $1: variable to set
3682 # $2: executable name (or list of names) to look for
3683 # $3: [path]
3684 
3685 
3686 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3687 # $1: variable to set
3688 # $2: autoconf macro to call to look for the special tool
3689 
3690 
3691 # Setup the most fundamental tools that relies on not much else to set up,
3692 # but is used by much of the early bootstrap code.
3693 
3694 
3695 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3696 
3697 
3698 # Evaluates platform specific overrides for devkit variables.
3699 # $1: Name of variable
3700 
3701 
3702 
3703 
3704 
3705 
3706 #%%% Simple tools %%%
3707 
3708 # Check if we have found a usable version of make
3709 # $1: the path to a potential make binary (or empty)
3710 # $2: the description on how we found this
3711 
3712 
3713 
3714 
3715 # Goes looking for a usable version of GNU make.
3716 
3717 
3718 
3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 # Check if build directory is on local disk. If not possible to determine,
3727 # we prefer to claim it's local.
3728 # Argument 1: directory to test
3729 # Argument 2: what to do if it is on local disk
3730 # Argument 3: what to do otherwise (remote disk or failure)
3731 
3732 
3733 # Check that source files have basic read permissions set. This might
3734 # not be the case in cygwin in certain conditions.
3735 
3736 
3737 
3738 
3739 # Check for support for specific options in bash
3740 
3741 
3742 ################################################################################
3743 #
3744 # Default make target
3745 #
3746 
3747 
3748 # Code to run after AC_OUTPUT
3749 
3750 
3751 #
3752 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3754 #
3755 # This code is free software; you can redistribute it and/or modify it
3756 # under the terms of the GNU General Public License version 2 only, as
3757 # published by the Free Software Foundation.  Oracle designates this
3758 # particular file as subject to the "Classpath" exception as provided
3759 # by Oracle in the LICENSE file that accompanied this code.
3760 #
3761 # This code is distributed in the hope that it will be useful, but WITHOUT
3762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3763 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3764 # version 2 for more details (a copy is included in the LICENSE file that
3765 # accompanied this code).
3766 #
3767 # You should have received a copy of the GNU General Public License version
3768 # 2 along with this work; if not, write to the Free Software Foundation,
3769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3770 #
3771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3772 # or visit www.oracle.com if you need additional information or have any
3773 # questions.
3774 #
3775 
3776 
3777 
3778 
3779 
3780 # Helper function which possibly converts a path using DOS-style short mode.
3781 # If so, the updated path is stored in $new_path.
3782 # $1: The path to check
3783 
3784 
3785 # Helper function which possibly converts a path using DOS-style short mode.
3786 # If so, the updated path is stored in $new_path.
3787 # $1: The path to check
3788 
3789 
3790 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3791 # and could probably be heavily simplified. However, all changes in this
3792 # area tend to need lot of testing in different scenarios, and in lack of
3793 # proper unit testing, cleaning this up has not been deemed worth the effort
3794 # at the moment.
3795 
3796 
3797 
3798 
3799 
3800 
3801 
3802 
3803 
3804 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3805 
3806 
3807 
3808 
3809 # ... then the rest
3810 #
3811 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3812 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3813 #
3814 # This code is free software; you can redistribute it and/or modify it
3815 # under the terms of the GNU General Public License version 2 only, as
3816 # published by the Free Software Foundation.  Oracle designates this
3817 # particular file as subject to the "Classpath" exception as provided
3818 # by Oracle in the LICENSE file that accompanied this code.
3819 #
3820 # This code is distributed in the hope that it will be useful, but WITHOUT
3821 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3822 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3823 # version 2 for more details (a copy is included in the LICENSE file that
3824 # accompanied this code).
3825 #
3826 # You should have received a copy of the GNU General Public License version
3827 # 2 along with this work; if not, write to the Free Software Foundation,
3828 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3829 #
3830 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3831 # or visit www.oracle.com if you need additional information or have any
3832 # questions.
3833 #
3834 
3835 ########################################################################
3836 # This file handles detection of the Boot JDK. The Boot JDK detection
3837 # process has been developed as a response to solve a complex real-world
3838 # problem. Initially, it was simple, but it has grown as platform after
3839 # platform, idiosyncracy after idiosyncracy has been supported.
3840 #
3841 # The basic idea is this:
3842 # 1) You need an acceptable *) JDK to use as a Boot JDK
3843 # 2) There are several ways to locate a JDK, that are mostly platform
3844 #    dependent **)
3845 # 3) You can have multiple JDKs installed
3846 # 4) If possible, configure should try to dig out an acceptable JDK
3847 #    automatically, without having to resort to command-line options
3848 #
3849 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3850 #     javac) and not a JRE, etc.
3851 #
3852 # **) On Windows we typically use a well-known path.
3853 #     On MacOSX we typically use the tool java_home.
3854 #     On Linux we typically find javac in the $PATH, and then follow a
3855 #     chain of symlinks that often ends up in a real JDK.
3856 #
3857 # This leads to the code where we check in different ways to locate a
3858 # JDK, and if one is found, check if it is acceptable. If not, we print
3859 # our reasons for rejecting it (useful when debugging non-working
3860 # configure situations) and continue checking the next one.
3861 ########################################################################
3862 
3863 # Execute the check given as argument, and verify the result
3864 # If the Boot JDK was previously found, do nothing
3865 # $1 A command line (typically autoconf macro) to execute
3866 
3867 
3868 # Test: Is bootjdk explicitly set by command line arguments?
3869 
3870 
3871 # Test: Is $JAVA_HOME set?
3872 
3873 
3874 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3875 
3876 
3877 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3878 # $1: Argument to the java_home binary (optional)
3879 
3880 
3881 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3882 
3883 
3884 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3885 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3886 # $1 = Path to directory containing jdk installations.
3887 # $2 = String to append to the found JDK directory to get the proper JDK home
3888 
3889 
3890 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3891 # environmental variable as base for where to look.
3892 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3893 
3894 
3895 # Test: Is there a JDK installed in default, well-known locations?
3896 
3897 
3898 # Check that a command-line tool in the Boot JDK is correct
3899 # $1 = name of variable to assign
3900 # $2 = name of binary
3901 
3902 
3903 ###############################################################################
3904 #
3905 # We need a Boot JDK to bootstrap the build.
3906 #
3907 
3908 
3909 
3910 
3911 
3912 # BUILD_JDK: the location of the latest JDK that can run
3913 #   on the host system and supports the target class file version
3914 #   generated in this JDK build.  This variable should only be
3915 #   used after the launchers are built.
3916 #
3917 
3918 # Execute the check given as argument, and verify the result.
3919 # If the JDK was previously found, do nothing.
3920 # $1 A command line (typically autoconf macro) to execute
3921 
3922 
3923 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3924 # is different than the host system doing the build (e.g. cross-compilation),
3925 # a special BUILD_JDK is built as part of the build process.  An external
3926 # prebuilt BUILD_JDK can also be supplied.
3927 
3928 
3929 #
3930 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3931 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3932 #
3933 # This code is free software; you can redistribute it and/or modify it
3934 # under the terms of the GNU General Public License version 2 only, as
3935 # published by the Free Software Foundation.  Oracle designates this
3936 # particular file as subject to the "Classpath" exception as provided
3937 # by Oracle in the LICENSE file that accompanied this code.
3938 #
3939 # This code is distributed in the hope that it will be useful, but WITHOUT
3940 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3941 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3942 # version 2 for more details (a copy is included in the LICENSE file that
3943 # accompanied this code).
3944 #
3945 # You should have received a copy of the GNU General Public License version
3946 # 2 along with this work; if not, write to the Free Software Foundation,
3947 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3948 #
3949 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3950 # or visit www.oracle.com if you need additional information or have any
3951 # questions.
3952 #
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 ################################################################################
3971 #
3972 # Runs icecc-create-env once and prints the error if it fails
3973 #
3974 # $1: arguments to icecc-create-env
3975 # $2: log file
3976 #
3977 
3978 
3979 ################################################################################
3980 #
3981 # Optionally enable distributed compilation of native code using icecc/icecream
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 #
3991 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3992 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3993 #
3994 # This code is free software; you can redistribute it and/or modify it
3995 # under the terms of the GNU General Public License version 2 only, as
3996 # published by the Free Software Foundation.  Oracle designates this
3997 # particular file as subject to the "Classpath" exception as provided
3998 # by Oracle in the LICENSE file that accompanied this code.
3999 #
4000 # This code is distributed in the hope that it will be useful, but WITHOUT
4001 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4002 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4003 # version 2 for more details (a copy is included in the LICENSE file that
4004 # accompanied this code).
4005 #
4006 # You should have received a copy of the GNU General Public License version
4007 # 2 along with this work; if not, write to the Free Software Foundation,
4008 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4009 #
4010 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4011 # or visit www.oracle.com if you need additional information or have any
4012 # questions.
4013 #
4014 
4015 ################################################################################
4016 #
4017 # Setup ABI profile (for arm)
4018 #
4019 
4020 
4021 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4022 # corresponding configure arguments instead
4023 
4024 
4025 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4026 # that configure can use them while detecting compilers.
4027 # TOOLCHAIN_TYPE is available here.
4028 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4029 
4030 
4031 
4032 
4033 
4034 
4035 # Documentation on common flags used for solstudio in HIGHEST.
4036 #
4037 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4038 #          done with care, there are some assumptions below that need to
4039 #          be understood about the use of pointers, and IEEE behavior.
4040 #
4041 # -fns: Use non-standard floating point mode (not IEEE 754)
4042 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4043 # -fsingle: Use single precision floating point with 'float'
4044 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4045 #   (Source with excessing pointer casting and data access with mixed
4046 #    pointer types are not recommended)
4047 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4048 #   (If you expect perfect errno behavior, do not use this)
4049 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4050 # -xrestrict: Pointer parameters to functions do not overlap
4051 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4052 #    If you pass in multiple pointers to the same data, do not use this)
4053 # -xlibmil: Inline some library routines
4054 #   (If you expect perfect errno behavior, do not use this)
4055 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4056 #   (If you expect perfect errno behavior, do not use this)
4057 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4058 
4059     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4060     # Bug?
4061     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4062     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4063     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4064     #fi
4065 
4066 
4067 
4068 
4069 
4070 
4071 ################################################################################
4072 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4073 #      conditionals against.
4074 # $2 - Optional prefix for each variable defined.
4075 
4076 
4077 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4078 #                                  IF_FALSE: [RUN-IF-FALSE])
4079 # ------------------------------------------------------------
4080 # Check that the C compiler supports an argument
4081 
4082 
4083 
4084 
4085 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4086 #                                    IF_FALSE: [RUN-IF-FALSE])
4087 # ------------------------------------------------------------
4088 # Check that the C++ compiler supports an argument
4089 
4090 
4091 
4092 
4093 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4094 #                                IF_FALSE: [RUN-IF-FALSE])
4095 # ------------------------------------------------------------
4096 # Check that the C and C++ compilers support an argument
4097 
4098 
4099 
4100 
4101 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4102 #                                   IF_FALSE: [RUN-IF-FALSE])
4103 # ------------------------------------------------------------
4104 # Check that the linker support an argument
4105 
4106 
4107 
4108 
4109 
4110 
4111 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4112 # Arguments:
4113 # $1 - Optional prefix for each variable defined.
4114 
4115 
4116 #
4117 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4118 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4119 #
4120 # This code is free software; you can redistribute it and/or modify it
4121 # under the terms of the GNU General Public License version 2 only, as
4122 # published by the Free Software Foundation.  Oracle designates this
4123 # particular file as subject to the "Classpath" exception as provided
4124 # by Oracle in the LICENSE file that accompanied this code.
4125 #
4126 # This code is distributed in the hope that it will be useful, but WITHOUT
4127 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4128 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4129 # version 2 for more details (a copy is included in the LICENSE file that
4130 # accompanied this code).
4131 #
4132 # You should have received a copy of the GNU General Public License version
4133 # 2 along with this work; if not, write to the Free Software Foundation,
4134 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4135 #
4136 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4137 # or visit www.oracle.com if you need additional information or have any
4138 # questions.
4139 #
4140 
4141 
4142 
4143 
4144 
4145 cygwin_help() {
4146   case $1 in
4147     unzip)
4148       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4149       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4150       ;;
4151     zip)
4152       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4153       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4154       ;;
4155     make)
4156       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4157       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4158       ;;
4159     freetype)
4160       HELP_MSG="
4161 The freetype library can now be build during the configure process.
4162 Download the freetype sources and unpack them into an arbitrary directory:
4163 
4164 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4165 tar -xzf freetype-2.5.3.tar.gz
4166 
4167 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4168 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4169 builds or into '<freetype_src>/lib32' for 32-bit builds.
4170 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4171 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4172 
4173 Alternatively you can unpack the sources like this to use the default directory:
4174 
4175 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4176       ;;
4177   esac
4178 }
4179 
4180 msys_help() {
4181   PKGHANDLER_COMMAND=""
4182 }
4183 
4184 apt_help() {
4185   case $1 in
4186     reduced)
4187       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4188     devkit)
4189       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4190     openjdk)
4191       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4192     alsa)
4193       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4194     cups)
4195       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4196     fontconfig)
4197       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4198     freetype)
4199       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4200     ffi)
4201       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4202     x11)
4203       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4204     ccache)
4205       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4206     dtrace)
4207       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4208   esac
4209 }
4210 
4211 yum_help() {
4212   case $1 in
4213     devkit)
4214       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4215     openjdk)
4216       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4217     alsa)
4218       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4219     cups)
4220       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4221     fontconfig)
4222       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4223     freetype)
4224       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4225     x11)
4226       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4227     ccache)
4228       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4229   esac
4230 }
4231 
4232 brew_help() {
4233   case $1 in
4234     openjdk)
4235       PKGHANDLER_COMMAND="brew cask install java" ;;
4236     freetype)
4237       PKGHANDLER_COMMAND="brew install freetype" ;;
4238     ccache)
4239       PKGHANDLER_COMMAND="brew install ccache" ;;
4240   esac
4241 }
4242 
4243 port_help() {
4244   PKGHANDLER_COMMAND=""
4245 }
4246 
4247 pkgutil_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 pkgadd_help() {
4252   PKGHANDLER_COMMAND=""
4253 }
4254 
4255 # This function will check if we're called from the "configure" wrapper while
4256 # printing --help. If so, we will print out additional information that can
4257 # only be extracted within the autoconf script, and then exit. This must be
4258 # called at the very beginning in configure.ac.
4259 
4260 
4261 
4262 
4263 
4264 
4265 #
4266 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4268 #
4269 # This code is free software; you can redistribute it and/or modify it
4270 # under the terms of the GNU General Public License version 2 only, as
4271 # published by the Free Software Foundation.  Oracle designates this
4272 # particular file as subject to the "Classpath" exception as provided
4273 # by Oracle in the LICENSE file that accompanied this code.
4274 #
4275 # This code is distributed in the hope that it will be useful, but WITHOUT
4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4277 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4278 # version 2 for more details (a copy is included in the LICENSE file that
4279 # accompanied this code).
4280 #
4281 # You should have received a copy of the GNU General Public License version
4282 # 2 along with this work; if not, write to the Free Software Foundation,
4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4284 #
4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4286 # or visit www.oracle.com if you need additional information or have any
4287 # questions.
4288 #
4289 
4290 # All valid JVM features, regardless of platform
4291 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4292     graal vm-structs jni-check services management all-gcs nmt cds \
4293     static-build link-time-opt aot vbc"
4294 
4295 # All valid JVM variants
4296 VALID_JVM_VARIANTS="server client minimal core zero custom"
4297 
4298 ###############################################################################
4299 # Check if the specified JVM variant should be built. To be used in shell if
4300 # constructs, like this:
4301 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4302 #
4303 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4304 
4305 # Definition kept in one line to allow inlining in if statements.
4306 # Additional [] needed to keep m4 from mangling shell constructs.
4307 
4308 
4309 ###############################################################################
4310 # Check if the specified JVM features are explicitly enabled. To be used in
4311 # shell if constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4313 #
4314 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4315 
4316 # Definition kept in one line to allow inlining in if statements.
4317 # Additional [] needed to keep m4 from mangling shell constructs.
4318 
4319 
4320 ###############################################################################
4321 # Check which variants of the JVM that we want to build. Available variants are:
4322 #   server: normal interpreter, and a tiered C1/C2 compiler
4323 #   client: normal interpreter, and C1 (no C2 compiler)
4324 #   minimal: reduced form of client with optional features stripped out
4325 #   core: normal interpreter only, no compiler
4326 #   zero: C++ based interpreter only, no compiler
4327 #   custom: baseline JVM with no default features
4328 #
4329 
4330 
4331 ###############################################################################
4332 # Check if dtrace should be enabled and has all prerequisites present.
4333 #
4334 
4335 
4336 ################################################################################
4337 # Check if AOT should be enabled
4338 #
4339 
4340 
4341 ################################################################################
4342 # Allow to disable CDS
4343 #
4344 
4345 
4346 ###############################################################################
4347 # Set up all JVM features for each JVM variant.
4348 #
4349 
4350 
4351 ###############################################################################
4352 # Validate JVM features once all setup is complete, including custom setup.
4353 #
4354 
4355 
4356 ################################################################################
4357 #
4358 # Specify which sources will be used to build the 64-bit ARM port
4359 #
4360 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4361 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4362 #
4363 
4364 
4365 
4366 ################################################################################
4367 # Check if gtest should be built
4368 #
4369 
4370 
4371 #
4372 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4373 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4374 #
4375 # This code is free software; you can redistribute it and/or modify it
4376 # under the terms of the GNU General Public License version 2 only, as
4377 # published by the Free Software Foundation.  Oracle designates this
4378 # particular file as subject to the "Classpath" exception as provided
4379 # by Oracle in the LICENSE file that accompanied this code.
4380 #
4381 # This code is distributed in the hope that it will be useful, but WITHOUT
4382 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4383 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4384 # version 2 for more details (a copy is included in the LICENSE file that
4385 # accompanied this code).
4386 #
4387 # You should have received a copy of the GNU General Public License version
4388 # 2 along with this work; if not, write to the Free Software Foundation,
4389 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4390 #
4391 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4392 # or visit www.oracle.com if you need additional information or have any
4393 # questions.
4394 #
4395 
4396 ###############################################################################
4397 # Check which variant of the JDK that we want to build.
4398 # Currently we have:
4399 #    normal:   standard edition
4400 # but the custom make system may add other variants
4401 #
4402 # Effectively the JDK variant gives a name to a specific set of
4403 # modules to compile into the JDK.
4404 
4405 
4406 ###############################################################################
4407 # Set the debug level
4408 #    release: no debug information, all optimizations, no asserts.
4409 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4410 #    fastdebug: debug information (-g), all optimizations, all asserts
4411 #    slowdebug: debug information (-g), no optimizations, all asserts
4412 
4413 
4414 ###############################################################################
4415 #
4416 # Should we build only OpenJDK even if closed sources are present?
4417 #
4418 
4419 
4420 
4421 
4422 ###############################################################################
4423 #
4424 # Enable or disable the elliptic curve crypto implementation
4425 #
4426 
4427 
4428 
4429 
4430 ################################################################################
4431 #
4432 # Gcov coverage data for hotspot
4433 #
4434 
4435 
4436 ###############################################################################
4437 #
4438 # AddressSanitizer
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, 2017, 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, 2017, 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, 2017, 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) 2017, 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 fontconfig
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 various libraries, typically small system libraries
4828 ################################################################################
4829 
4830 
4831 ################################################################################
4832 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4833 # redistribute it in the test image.
4834 ################################################################################
4835 
4836 
4837 
4838 #
4839 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4840 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4841 #
4842 # This code is free software; you can redistribute it and/or modify it
4843 # under the terms of the GNU General Public License version 2 only, as
4844 # published by the Free Software Foundation.  Oracle designates this
4845 # particular file as subject to the "Classpath" exception as provided
4846 # by Oracle in the LICENSE file that accompanied this code.
4847 #
4848 # This code is distributed in the hope that it will be useful, but WITHOUT
4849 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4850 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4851 # version 2 for more details (a copy is included in the LICENSE file that
4852 # accompanied this code).
4853 #
4854 # You should have received a copy of the GNU General Public License version
4855 # 2 along with this work; if not, write to the Free Software Foundation,
4856 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4857 #
4858 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4859 # or visit www.oracle.com if you need additional information or have any
4860 # questions.
4861 #
4862 
4863 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4864 # Converts autoconf style CPU name to OpenJDK style, into
4865 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4866 
4867 
4868 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4869 # Converts autoconf style OS name to OpenJDK style, into
4870 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4871 
4872 
4873 # Expects $host_os $host_cpu $build_os and $build_cpu
4874 # and $with_target_bits to have been setup!
4875 #
4876 # Translate the standard triplet(quadruplet) definition
4877 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4878 # OPENJDK_BUILD_OS, etc.
4879 
4880 
4881 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4882 # accordingly. Must be done after setting up build and target system, but before
4883 # doing anything else with these values.
4884 
4885 
4886 # Setup the legacy variables, for controlling the old makefiles.
4887 #
4888 
4889 
4890 # $1 - Either TARGET or BUILD to setup the variables for.
4891 
4892 
4893 
4894 
4895 
4896 
4897 #%%% Build and target systems %%%
4898 
4899 
4900 
4901 
4902 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4903 # Add -mX to various FLAGS variables.
4904 
4905 
4906 
4907 
4908 
4909 
4910 #
4911 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4912 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4913 #
4914 # This code is free software; you can redistribute it and/or modify it
4915 # under the terms of the GNU General Public License version 2 only, as
4916 # published by the Free Software Foundation.  Oracle designates this
4917 # particular file as subject to the "Classpath" exception as provided
4918 # by Oracle in the LICENSE file that accompanied this code.
4919 #
4920 # This code is distributed in the hope that it will be useful, but WITHOUT
4921 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4922 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4923 # version 2 for more details (a copy is included in the LICENSE file that
4924 # accompanied this code).
4925 #
4926 # You should have received a copy of the GNU General Public License version
4927 # 2 along with this work; if not, write to the Free Software Foundation,
4928 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4929 #
4930 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4931 # or visit www.oracle.com if you need additional information or have any
4932 # questions.
4933 #
4934 
4935 
4936 
4937 ################################################################################
4938 # Define a mechanism for importing extra prebuilt modules
4939 #
4940 
4941 
4942 
4943 #
4944 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4945 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4946 #
4947 # This code is free software; you can redistribute it and/or modify it
4948 # under the terms of the GNU General Public License version 2 only, as
4949 # published by the Free Software Foundation.  Oracle designates this
4950 # particular file as subject to the "Classpath" exception as provided
4951 # by Oracle in the LICENSE file that accompanied this code.
4952 #
4953 # This code is distributed in the hope that it will be useful, but WITHOUT
4954 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4955 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4956 # version 2 for more details (a copy is included in the LICENSE file that
4957 # accompanied this code).
4958 #
4959 # You should have received a copy of the GNU General Public License version
4960 # 2 along with this work; if not, write to the Free Software Foundation,
4961 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4962 #
4963 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4964 # or visit www.oracle.com if you need additional information or have any
4965 # questions.
4966 #
4967 
4968 ########################################################################
4969 # This file is responsible for detecting, verifying and setting up the
4970 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4971 # proper paths to the binaries, but it will not setup any flags.
4972 #
4973 # The binaries used is determined by the toolchain type, which is the family of
4974 # compilers and related tools that are used.
4975 ########################################################################
4976 
4977 
4978 # All valid toolchains, regardless of platform (used by help.m4)
4979 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4980 
4981 # These toolchains are valid on different platforms
4982 VALID_TOOLCHAINS_linux="gcc clang"
4983 VALID_TOOLCHAINS_solaris="solstudio"
4984 VALID_TOOLCHAINS_macosx="gcc clang"
4985 VALID_TOOLCHAINS_aix="xlc"
4986 VALID_TOOLCHAINS_windows="microsoft"
4987 
4988 # Toolchain descriptions
4989 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4990 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4991 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4992 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4993 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4994 
4995 # Minimum supported versions, empty means unspecified
4996 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4997 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
4998 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
4999 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5000 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5001 
5002 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5003 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5004 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5005 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5006 
5007 
5008 # Check if the configured compiler (C and C++) is of a specific version or
5009 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5010 #
5011 # Arguments:
5012 #   VERSION:   The version string to check against the found version
5013 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5014 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5015 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5016 
5017 
5018 
5019 
5020 # Setup a number of variables describing how native output files are
5021 # named on this platform/toolchain.
5022 
5023 
5024 # Determine which toolchain type to use, and make sure it is valid for this
5025 # platform. Setup various information about the selected toolchain.
5026 
5027 
5028 # Before we start detecting the toolchain executables, we might need some
5029 # special setup, e.g. additional paths etc.
5030 
5031 
5032 # Restore path, etc
5033 
5034 
5035 # Check if a compiler is of the toolchain type we expect, and save the version
5036 # information from it. If the compiler does not match the expected type,
5037 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5038 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5039 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5040 #
5041 # $1 = compiler to test (CC or CXX)
5042 # $2 = human readable name of compiler (C or C++)
5043 
5044 
5045 # Try to locate the given C or C++ compiler in the path, or otherwise.
5046 #
5047 # $1 = compiler to test (CC or CXX)
5048 # $2 = human readable name of compiler (C or C++)
5049 # $3 = compiler name to search for
5050 
5051 
5052 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5053 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5054 # archiver (AR). Verify that the compilers are correct according to the
5055 # toolchain type.
5056 
5057 
5058 # Setup additional tools that is considered a part of the toolchain, but not the
5059 # core part. Many of these are highly platform-specific and do not exist,
5060 # and/or are not needed on all platforms.
5061 
5062 
5063 # Setup the build tools (i.e, the compiler and linker used to build programs
5064 # that should be run on the build platform, not the target platform, as a build
5065 # helper). Since the non-cross-compile case uses the normal, target compilers
5066 # for this, we can only do this after these have been setup.
5067 
5068 
5069 # Do some additional checks on the detected tools.
5070 
5071 
5072 # Setup the JTReg Regression Test Harness.
5073 
5074 
5075 # Setup the JIB dependency resolver
5076 
5077 
5078 #
5079 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5080 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5081 #
5082 # This code is free software; you can redistribute it and/or modify it
5083 # under the terms of the GNU General Public License version 2 only, as
5084 # published by the Free Software Foundation.  Oracle designates this
5085 # particular file as subject to the "Classpath" exception as provided
5086 # by Oracle in the LICENSE file that accompanied this code.
5087 #
5088 # This code is distributed in the hope that it will be useful, but WITHOUT
5089 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5090 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5091 # version 2 for more details (a copy is included in the LICENSE file that
5092 # accompanied this code).
5093 #
5094 # You should have received a copy of the GNU General Public License version
5095 # 2 along with this work; if not, write to the Free Software Foundation,
5096 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5097 #
5098 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5099 # or visit www.oracle.com if you need additional information or have any
5100 # questions.
5101 #
5102 
5103 ################################################################################
5104 # The order of these defines the priority by which we try to find them.
5105 VALID_VS_VERSIONS="2013 2012 2010"
5106 
5107 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5108 VS_VERSION_INTERNAL_2010=100
5109 VS_MSVCR_2010=msvcr100.dll
5110 # We don't use msvcp on Visual Studio 2010
5111 #VS_MSVCP_2010=msvcp100.dll
5112 VS_ENVVAR_2010="VS100COMNTOOLS"
5113 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5114 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5115 VS_VS_PLATFORM_NAME_2010="v100"
5116 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5117 
5118 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5119 VS_VERSION_INTERNAL_2012=110
5120 VS_MSVCR_2012=msvcr110.dll
5121 VS_MSVCP_2012=msvcp110.dll
5122 VS_ENVVAR_2012="VS110COMNTOOLS"
5123 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5124 VS_SDK_INSTALLDIR_2012=
5125 VS_VS_PLATFORM_NAME_2012="v110"
5126 VS_SDK_PLATFORM_NAME_2012=
5127 
5128 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5129 VS_VERSION_INTERNAL_2013=120
5130 VS_MSVCR_2013=msvcr120.dll
5131 VS_MSVCP_2013=msvcp120.dll
5132 VS_ENVVAR_2013="VS120COMNTOOLS"
5133 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5134 VS_SDK_INSTALLDIR_2013=
5135 VS_VS_PLATFORM_NAME_2013="v120"
5136 VS_SDK_PLATFORM_NAME_2013=
5137 
5138 ################################################################################
5139 
5140 
5141 
5142 ################################################################################
5143 
5144 
5145 
5146 ################################################################################
5147 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5148 # build environment and assigns it to VS_ENV_CMD
5149 
5150 
5151 ################################################################################
5152 
5153 
5154 
5155 ################################################################################
5156 # Check if the VS env variables were setup prior to running configure.
5157 # If not, then find vcvarsall.bat and run it automatically, and integrate
5158 # the set env variables into the spec file.
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 
5171 
5172 
5173 # This line needs to be here, verbatim, after all includes and the dummy hook
5174 # definitions. It is replaced with custom functionality when building
5175 # custom sources.
5176 #CUSTOM_AUTOCONF_INCLUDE
5177 
5178 # Do not change or remove the following line, it is needed for consistency checks:
5179 DATE_WHEN_GENERATED=1515758264
5180 
5181 ###############################################################################
5182 #
5183 # Initialization / Boot-strapping
5184 #
5185 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5186 # thus it jumps back and forth, each time gaining something needed later on.
5187 #
5188 ###############################################################################
5189 
5190 # If we are requested to print additional help, do that and then exit.
5191 # This must be the very first call.
5192 
5193   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5194 
5195     # Print available toolchains
5196     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5197     $PRINTF "Which are valid to use depends on the build platform.\n"
5198     for toolchain in $VALID_TOOLCHAINS_all; do
5199       # Use indirect variable referencing
5200       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5201       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5202       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5203     done
5204     $PRINTF "\n"
5205 
5206     # Print available jvm features
5207     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5208     $PRINTF "Which are valid to use depends on the target platform.\n  "
5209     $PRINTF "%s " $VALID_JVM_FEATURES
5210     $PRINTF "\n"
5211 
5212     # And now exit directly
5213     exit 0
5214   fi
5215 
5216 
5217 # Basic initialization that must happen first of all in the normal process.
5218 
5219   # Save the original command line. This is passed to us by the wrapper configure script.
5220 
5221   # Save the path variable before it gets changed
5222   ORIGINAL_PATH="$PATH"
5223 
5224   DATE_WHEN_CONFIGURED=`LANG=C date`
5225 
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5227 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5229 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5230 
5231 
5232   # Start with tools that do not need have cross compilation support
5233   # and can be expected to be found in the default PATH. These tools are
5234   # used by configure.
5235 
5236   # First are all the simple required tools.
5237 
5238 
5239 
5240   # Publish this variable in the help.
5241 
5242 
5243   if [ -z "${BASENAME+x}" ]; then
5244     # The variable is not set by user, try to locate tool using the code snippet
5245     for ac_prog in basename
5246 do
5247   # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_path_BASENAME+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   case $BASENAME in
5255   [\\/]* | ?:[\\/]*)
5256   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5257   ;;
5258   *)
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273 
5274   ;;
5275 esac
5276 fi
5277 BASENAME=$ac_cv_path_BASENAME
5278 if test -n "$BASENAME"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5280 $as_echo "$BASENAME" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285 
5286 
5287   test -n "$BASENAME" && break
5288 done
5289 
5290   else
5291     # The variable is set, but is it from the command line or the environment?
5292 
5293     # Try to remove the string !BASENAME! from our list.
5294     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5295     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5296       # If it failed, the variable was not from the command line. Ignore it,
5297       # but warn the user (except for BASH, which is always set by the calling BASH).
5298       if test "xBASENAME" != xBASH; then
5299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5300 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5301       fi
5302       # Try to locate tool using the code snippet
5303       for ac_prog in basename
5304 do
5305   # Extract the first word of "$ac_prog", so it can be a program name with args.
5306 set dummy $ac_prog; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_path_BASENAME+:} false; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   case $BASENAME in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_exec_ext in '' $ac_executable_extensions; do
5323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329   done
5330 IFS=$as_save_IFS
5331 
5332   ;;
5333 esac
5334 fi
5335 BASENAME=$ac_cv_path_BASENAME
5336 if test -n "$BASENAME"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5338 $as_echo "$BASENAME" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343 
5344 
5345   test -n "$BASENAME" && break
5346 done
5347 
5348     else
5349       # If it succeeded, then it was overridden by the user. We will use it
5350       # for the tool.
5351 
5352       # First remove it from the list of overridden variables, so we can test
5353       # for unknown variables in the end.
5354       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5355 
5356       # Check if we try to supply an empty value
5357       if test "x$BASENAME" = x; then
5358         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5359 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5361 $as_echo_n "checking for BASENAME... " >&6; }
5362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5363 $as_echo "disabled" >&6; }
5364       else
5365         # Check if the provided tool contains a complete path.
5366         tool_specified="$BASENAME"
5367         tool_basename="${tool_specified##*/}"
5368         if test "x$tool_basename" = "x$tool_specified"; then
5369           # A command without a complete path is provided, search $PATH.
5370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5371 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5372           # Extract the first word of "$tool_basename", so it can be a program name with args.
5373 set dummy $tool_basename; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_path_BASENAME+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   case $BASENAME in
5380   [\\/]* | ?:[\\/]*)
5381   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5382   ;;
5383   *)
5384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389     for ac_exec_ext in '' $ac_executable_extensions; do
5390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396   done
5397 IFS=$as_save_IFS
5398 
5399   ;;
5400 esac
5401 fi
5402 BASENAME=$ac_cv_path_BASENAME
5403 if test -n "$BASENAME"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5405 $as_echo "$BASENAME" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410 
5411 
5412           if test "x$BASENAME" = x; then
5413             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5414           fi
5415         else
5416           # Otherwise we believe it is a complete path. Use it as it is.
5417           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5418 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5420 $as_echo_n "checking for BASENAME... " >&6; }
5421           if test ! -x "$tool_specified"; then
5422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5423 $as_echo "not found" >&6; }
5424             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5425           fi
5426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5427 $as_echo "$tool_specified" >&6; }
5428         fi
5429       fi
5430     fi
5431 
5432   fi
5433 
5434 
5435 
5436   if test "x$BASENAME" = x; then
5437     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5438   fi
5439 
5440 
5441 
5442 
5443 
5444   # Publish this variable in the help.
5445 
5446 
5447   if [ -z "${BASH+x}" ]; then
5448     # The variable is not set by user, try to locate tool using the code snippet
5449     for ac_prog in bash
5450 do
5451   # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_path_BASH+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   case $BASH in
5459   [\\/]* | ?:[\\/]*)
5460   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5461   ;;
5462   *)
5463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477 
5478   ;;
5479 esac
5480 fi
5481 BASH=$ac_cv_path_BASH
5482 if test -n "$BASH"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5484 $as_echo "$BASH" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489 
5490 
5491   test -n "$BASH" && break
5492 done
5493 
5494   else
5495     # The variable is set, but is it from the command line or the environment?
5496 
5497     # Try to remove the string !BASH! from our list.
5498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5500       # If it failed, the variable was not from the command line. Ignore it,
5501       # but warn the user (except for BASH, which is always set by the calling BASH).
5502       if test "xBASH" != xBASH; then
5503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5504 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5505       fi
5506       # Try to locate tool using the code snippet
5507       for ac_prog in bash
5508 do
5509   # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_path_BASH+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   case $BASH in
5517   [\\/]* | ?:[\\/]*)
5518   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5519   ;;
5520   *)
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_exec_ext in '' $ac_executable_extensions; do
5527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535 
5536   ;;
5537 esac
5538 fi
5539 BASH=$ac_cv_path_BASH
5540 if test -n "$BASH"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5542 $as_echo "$BASH" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547 
5548 
5549   test -n "$BASH" && break
5550 done
5551 
5552     else
5553       # If it succeeded, then it was overridden by the user. We will use it
5554       # for the tool.
5555 
5556       # First remove it from the list of overridden variables, so we can test
5557       # for unknown variables in the end.
5558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5559 
5560       # Check if we try to supply an empty value
5561       if test "x$BASH" = x; then
5562         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5563 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5565 $as_echo_n "checking for BASH... " >&6; }
5566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5567 $as_echo "disabled" >&6; }
5568       else
5569         # Check if the provided tool contains a complete path.
5570         tool_specified="$BASH"
5571         tool_basename="${tool_specified##*/}"
5572         if test "x$tool_basename" = "x$tool_specified"; then
5573           # A command without a complete path is provided, search $PATH.
5574           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5575 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5576           # Extract the first word of "$tool_basename", so it can be a program name with args.
5577 set dummy $tool_basename; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_path_BASH+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   case $BASH in
5584   [\\/]* | ?:[\\/]*)
5585   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5586   ;;
5587   *)
5588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593     for ac_exec_ext in '' $ac_executable_extensions; do
5594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600   done
5601 IFS=$as_save_IFS
5602 
5603   ;;
5604 esac
5605 fi
5606 BASH=$ac_cv_path_BASH
5607 if test -n "$BASH"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5609 $as_echo "$BASH" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614 
5615 
5616           if test "x$BASH" = x; then
5617             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5618           fi
5619         else
5620           # Otherwise we believe it is a complete path. Use it as it is.
5621           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5622 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5624 $as_echo_n "checking for BASH... " >&6; }
5625           if test ! -x "$tool_specified"; then
5626             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5627 $as_echo "not found" >&6; }
5628             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5629           fi
5630           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5631 $as_echo "$tool_specified" >&6; }
5632         fi
5633       fi
5634     fi
5635 
5636   fi
5637 
5638 
5639 
5640   if test "x$BASH" = x; then
5641     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5642   fi
5643 
5644 
5645 
5646 
5647 
5648   # Publish this variable in the help.
5649 
5650 
5651   if [ -z "${CAT+x}" ]; then
5652     # The variable is not set by user, try to locate tool using the code snippet
5653     for ac_prog in cat
5654 do
5655   # Extract the first word of "$ac_prog", so it can be a program name with args.
5656 set dummy $ac_prog; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_CAT+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   case $CAT in
5663   [\\/]* | ?:[\\/]*)
5664   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5665   ;;
5666   *)
5667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681 
5682   ;;
5683 esac
5684 fi
5685 CAT=$ac_cv_path_CAT
5686 if test -n "$CAT"; then
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5688 $as_echo "$CAT" >&6; }
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693 
5694 
5695   test -n "$CAT" && break
5696 done
5697 
5698   else
5699     # The variable is set, but is it from the command line or the environment?
5700 
5701     # Try to remove the string !CAT! from our list.
5702     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5703     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5704       # If it failed, the variable was not from the command line. Ignore it,
5705       # but warn the user (except for BASH, which is always set by the calling BASH).
5706       if test "xCAT" != xBASH; then
5707         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5708 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5709       fi
5710       # Try to locate tool using the code snippet
5711       for ac_prog in cat
5712 do
5713   # Extract the first word of "$ac_prog", so it can be a program name with args.
5714 set dummy $ac_prog; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_path_CAT+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   case $CAT in
5721   [\\/]* | ?:[\\/]*)
5722   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5723   ;;
5724   *)
5725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737   done
5738 IFS=$as_save_IFS
5739 
5740   ;;
5741 esac
5742 fi
5743 CAT=$ac_cv_path_CAT
5744 if test -n "$CAT"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5746 $as_echo "$CAT" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751 
5752 
5753   test -n "$CAT" && break
5754 done
5755 
5756     else
5757       # If it succeeded, then it was overridden by the user. We will use it
5758       # for the tool.
5759 
5760       # First remove it from the list of overridden variables, so we can test
5761       # for unknown variables in the end.
5762       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5763 
5764       # Check if we try to supply an empty value
5765       if test "x$CAT" = x; then
5766         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5767 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5769 $as_echo_n "checking for CAT... " >&6; }
5770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5771 $as_echo "disabled" >&6; }
5772       else
5773         # Check if the provided tool contains a complete path.
5774         tool_specified="$CAT"
5775         tool_basename="${tool_specified##*/}"
5776         if test "x$tool_basename" = "x$tool_specified"; then
5777           # A command without a complete path is provided, search $PATH.
5778           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5779 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5780           # Extract the first word of "$tool_basename", so it can be a program name with args.
5781 set dummy $tool_basename; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_path_CAT+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787   case $CAT in
5788   [\\/]* | ?:[\\/]*)
5789   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5790   ;;
5791   *)
5792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797     for ac_exec_ext in '' $ac_executable_extensions; do
5798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804   done
5805 IFS=$as_save_IFS
5806 
5807   ;;
5808 esac
5809 fi
5810 CAT=$ac_cv_path_CAT
5811 if test -n "$CAT"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5813 $as_echo "$CAT" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818 
5819 
5820           if test "x$CAT" = x; then
5821             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5822           fi
5823         else
5824           # Otherwise we believe it is a complete path. Use it as it is.
5825           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5826 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5827           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5828 $as_echo_n "checking for CAT... " >&6; }
5829           if test ! -x "$tool_specified"; then
5830             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5831 $as_echo "not found" >&6; }
5832             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5833           fi
5834           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5835 $as_echo "$tool_specified" >&6; }
5836         fi
5837       fi
5838     fi
5839 
5840   fi
5841 
5842 
5843 
5844   if test "x$CAT" = x; then
5845     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5846   fi
5847 
5848 
5849 
5850 
5851 
5852   # Publish this variable in the help.
5853 
5854 
5855   if [ -z "${CHMOD+x}" ]; then
5856     # The variable is not set by user, try to locate tool using the code snippet
5857     for ac_prog in chmod
5858 do
5859   # Extract the first word of "$ac_prog", so it can be a program name with args.
5860 set dummy $ac_prog; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_path_CHMOD+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   case $CHMOD in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_exec_ext in '' $ac_executable_extensions; do
5877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883   done
5884 IFS=$as_save_IFS
5885 
5886   ;;
5887 esac
5888 fi
5889 CHMOD=$ac_cv_path_CHMOD
5890 if test -n "$CHMOD"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5892 $as_echo "$CHMOD" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897 
5898 
5899   test -n "$CHMOD" && break
5900 done
5901 
5902   else
5903     # The variable is set, but is it from the command line or the environment?
5904 
5905     # Try to remove the string !CHMOD! from our list.
5906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5908       # If it failed, the variable was not from the command line. Ignore it,
5909       # but warn the user (except for BASH, which is always set by the calling BASH).
5910       if test "xCHMOD" != xBASH; then
5911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5912 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5913       fi
5914       # Try to locate tool using the code snippet
5915       for ac_prog in chmod
5916 do
5917   # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_path_CHMOD+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   case $CHMOD in
5925   [\\/]* | ?:[\\/]*)
5926   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5927   ;;
5928   *)
5929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934     for ac_exec_ext in '' $ac_executable_extensions; do
5935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941   done
5942 IFS=$as_save_IFS
5943 
5944   ;;
5945 esac
5946 fi
5947 CHMOD=$ac_cv_path_CHMOD
5948 if test -n "$CHMOD"; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5950 $as_echo "$CHMOD" >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955 
5956 
5957   test -n "$CHMOD" && break
5958 done
5959 
5960     else
5961       # If it succeeded, then it was overridden by the user. We will use it
5962       # for the tool.
5963 
5964       # First remove it from the list of overridden variables, so we can test
5965       # for unknown variables in the end.
5966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5967 
5968       # Check if we try to supply an empty value
5969       if test "x$CHMOD" = x; then
5970         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5971 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5973 $as_echo_n "checking for CHMOD... " >&6; }
5974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5975 $as_echo "disabled" >&6; }
5976       else
5977         # Check if the provided tool contains a complete path.
5978         tool_specified="$CHMOD"
5979         tool_basename="${tool_specified##*/}"
5980         if test "x$tool_basename" = "x$tool_specified"; then
5981           # A command without a complete path is provided, search $PATH.
5982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5983 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5984           # Extract the first word of "$tool_basename", so it can be a program name with args.
5985 set dummy $tool_basename; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_path_CHMOD+:} false; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   case $CHMOD in
5992   [\\/]* | ?:[\\/]*)
5993   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5994   ;;
5995   *)
5996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001     for ac_exec_ext in '' $ac_executable_extensions; do
6002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008   done
6009 IFS=$as_save_IFS
6010 
6011   ;;
6012 esac
6013 fi
6014 CHMOD=$ac_cv_path_CHMOD
6015 if test -n "$CHMOD"; then
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6017 $as_echo "$CHMOD" >&6; }
6018 else
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022 
6023 
6024           if test "x$CHMOD" = x; then
6025             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6026           fi
6027         else
6028           # Otherwise we believe it is a complete path. Use it as it is.
6029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6030 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6032 $as_echo_n "checking for CHMOD... " >&6; }
6033           if test ! -x "$tool_specified"; then
6034             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6035 $as_echo "not found" >&6; }
6036             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6037           fi
6038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6039 $as_echo "$tool_specified" >&6; }
6040         fi
6041       fi
6042     fi
6043 
6044   fi
6045 
6046 
6047 
6048   if test "x$CHMOD" = x; then
6049     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6050   fi
6051 
6052 
6053 
6054 
6055 
6056   # Publish this variable in the help.
6057 
6058 
6059   if [ -z "${CMP+x}" ]; then
6060     # The variable is not set by user, try to locate tool using the code snippet
6061     for ac_prog in cmp
6062 do
6063   # Extract the first word of "$ac_prog", so it can be a program name with args.
6064 set dummy $ac_prog; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_path_CMP+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   case $CMP in
6071   [\\/]* | ?:[\\/]*)
6072   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6073   ;;
6074   *)
6075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089 
6090   ;;
6091 esac
6092 fi
6093 CMP=$ac_cv_path_CMP
6094 if test -n "$CMP"; then
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6096 $as_echo "$CMP" >&6; }
6097 else
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101 
6102 
6103   test -n "$CMP" && break
6104 done
6105 
6106   else
6107     # The variable is set, but is it from the command line or the environment?
6108 
6109     # Try to remove the string !CMP! from our list.
6110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6112       # If it failed, the variable was not from the command line. Ignore it,
6113       # but warn the user (except for BASH, which is always set by the calling BASH).
6114       if test "xCMP" != xBASH; then
6115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6116 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6117       fi
6118       # Try to locate tool using the code snippet
6119       for ac_prog in cmp
6120 do
6121   # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_path_CMP+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   case $CMP in
6129   [\\/]* | ?:[\\/]*)
6130   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6131   ;;
6132   *)
6133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147 
6148   ;;
6149 esac
6150 fi
6151 CMP=$ac_cv_path_CMP
6152 if test -n "$CMP"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6154 $as_echo "$CMP" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159 
6160 
6161   test -n "$CMP" && break
6162 done
6163 
6164     else
6165       # If it succeeded, then it was overridden by the user. We will use it
6166       # for the tool.
6167 
6168       # First remove it from the list of overridden variables, so we can test
6169       # for unknown variables in the end.
6170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6171 
6172       # Check if we try to supply an empty value
6173       if test "x$CMP" = x; then
6174         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6175 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6177 $as_echo_n "checking for CMP... " >&6; }
6178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6179 $as_echo "disabled" >&6; }
6180       else
6181         # Check if the provided tool contains a complete path.
6182         tool_specified="$CMP"
6183         tool_basename="${tool_specified##*/}"
6184         if test "x$tool_basename" = "x$tool_specified"; then
6185           # A command without a complete path is provided, search $PATH.
6186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6187 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6188           # Extract the first word of "$tool_basename", so it can be a program name with args.
6189 set dummy $tool_basename; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_path_CMP+:} false; then :
6193   $as_echo_n "(cached) " >&6
6194 else
6195   case $CMP in
6196   [\\/]* | ?:[\\/]*)
6197   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6198   ;;
6199   *)
6200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205     for ac_exec_ext in '' $ac_executable_extensions; do
6206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212   done
6213 IFS=$as_save_IFS
6214 
6215   ;;
6216 esac
6217 fi
6218 CMP=$ac_cv_path_CMP
6219 if test -n "$CMP"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6221 $as_echo "$CMP" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226 
6227 
6228           if test "x$CMP" = x; then
6229             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6230           fi
6231         else
6232           # Otherwise we believe it is a complete path. Use it as it is.
6233           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6234 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6236 $as_echo_n "checking for CMP... " >&6; }
6237           if test ! -x "$tool_specified"; then
6238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6239 $as_echo "not found" >&6; }
6240             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6241           fi
6242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6243 $as_echo "$tool_specified" >&6; }
6244         fi
6245       fi
6246     fi
6247 
6248   fi
6249 
6250 
6251 
6252   if test "x$CMP" = x; then
6253     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6254   fi
6255 
6256 
6257 
6258 
6259 
6260   # Publish this variable in the help.
6261 
6262 
6263   if [ -z "${COMM+x}" ]; then
6264     # The variable is not set by user, try to locate tool using the code snippet
6265     for ac_prog in comm
6266 do
6267   # Extract the first word of "$ac_prog", so it can be a program name with args.
6268 set dummy $ac_prog; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_path_COMM+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   case $COMM in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284     for ac_exec_ext in '' $ac_executable_extensions; do
6285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291   done
6292 IFS=$as_save_IFS
6293 
6294   ;;
6295 esac
6296 fi
6297 COMM=$ac_cv_path_COMM
6298 if test -n "$COMM"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6300 $as_echo "$COMM" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305 
6306 
6307   test -n "$COMM" && break
6308 done
6309 
6310   else
6311     # The variable is set, but is it from the command line or the environment?
6312 
6313     # Try to remove the string !COMM! from our list.
6314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6316       # If it failed, the variable was not from the command line. Ignore it,
6317       # but warn the user (except for BASH, which is always set by the calling BASH).
6318       if test "xCOMM" != xBASH; then
6319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6320 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6321       fi
6322       # Try to locate tool using the code snippet
6323       for ac_prog in comm
6324 do
6325   # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_path_COMM+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   case $COMM in
6333   [\\/]* | ?:[\\/]*)
6334   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6335   ;;
6336   *)
6337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351 
6352   ;;
6353 esac
6354 fi
6355 COMM=$ac_cv_path_COMM
6356 if test -n "$COMM"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6358 $as_echo "$COMM" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363 
6364 
6365   test -n "$COMM" && break
6366 done
6367 
6368     else
6369       # If it succeeded, then it was overridden by the user. We will use it
6370       # for the tool.
6371 
6372       # First remove it from the list of overridden variables, so we can test
6373       # for unknown variables in the end.
6374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6375 
6376       # Check if we try to supply an empty value
6377       if test "x$COMM" = x; then
6378         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6379 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6381 $as_echo_n "checking for COMM... " >&6; }
6382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6383 $as_echo "disabled" >&6; }
6384       else
6385         # Check if the provided tool contains a complete path.
6386         tool_specified="$COMM"
6387         tool_basename="${tool_specified##*/}"
6388         if test "x$tool_basename" = "x$tool_specified"; then
6389           # A command without a complete path is provided, search $PATH.
6390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6391 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6392           # Extract the first word of "$tool_basename", so it can be a program name with args.
6393 set dummy $tool_basename; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_path_COMM+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   case $COMM in
6400   [\\/]* | ?:[\\/]*)
6401   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6402   ;;
6403   *)
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418 
6419   ;;
6420 esac
6421 fi
6422 COMM=$ac_cv_path_COMM
6423 if test -n "$COMM"; then
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6425 $as_echo "$COMM" >&6; }
6426 else
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430 
6431 
6432           if test "x$COMM" = x; then
6433             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6434           fi
6435         else
6436           # Otherwise we believe it is a complete path. Use it as it is.
6437           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6438 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6440 $as_echo_n "checking for COMM... " >&6; }
6441           if test ! -x "$tool_specified"; then
6442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6443 $as_echo "not found" >&6; }
6444             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6445           fi
6446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6447 $as_echo "$tool_specified" >&6; }
6448         fi
6449       fi
6450     fi
6451 
6452   fi
6453 
6454 
6455 
6456   if test "x$COMM" = x; then
6457     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6458   fi
6459 
6460 
6461 
6462 
6463 
6464   # Publish this variable in the help.
6465 
6466 
6467   if [ -z "${CP+x}" ]; then
6468     # The variable is not set by user, try to locate tool using the code snippet
6469     for ac_prog in cp
6470 do
6471   # Extract the first word of "$ac_prog", so it can be a program name with args.
6472 set dummy $ac_prog; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_path_CP+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   case $CP in
6479   [\\/]* | ?:[\\/]*)
6480   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6481   ;;
6482   *)
6483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497 
6498   ;;
6499 esac
6500 fi
6501 CP=$ac_cv_path_CP
6502 if test -n "$CP"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6504 $as_echo "$CP" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509 
6510 
6511   test -n "$CP" && break
6512 done
6513 
6514   else
6515     # The variable is set, but is it from the command line or the environment?
6516 
6517     # Try to remove the string !CP! from our list.
6518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6520       # If it failed, the variable was not from the command line. Ignore it,
6521       # but warn the user (except for BASH, which is always set by the calling BASH).
6522       if test "xCP" != xBASH; then
6523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6524 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6525       fi
6526       # Try to locate tool using the code snippet
6527       for ac_prog in cp
6528 do
6529   # Extract the first word of "$ac_prog", so it can be a program name with args.
6530 set dummy $ac_prog; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_path_CP+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   case $CP in
6537   [\\/]* | ?:[\\/]*)
6538   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6539   ;;
6540   *)
6541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555 
6556   ;;
6557 esac
6558 fi
6559 CP=$ac_cv_path_CP
6560 if test -n "$CP"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6562 $as_echo "$CP" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567 
6568 
6569   test -n "$CP" && break
6570 done
6571 
6572     else
6573       # If it succeeded, then it was overridden by the user. We will use it
6574       # for the tool.
6575 
6576       # First remove it from the list of overridden variables, so we can test
6577       # for unknown variables in the end.
6578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6579 
6580       # Check if we try to supply an empty value
6581       if test "x$CP" = x; then
6582         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6583 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6585 $as_echo_n "checking for CP... " >&6; }
6586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6587 $as_echo "disabled" >&6; }
6588       else
6589         # Check if the provided tool contains a complete path.
6590         tool_specified="$CP"
6591         tool_basename="${tool_specified##*/}"
6592         if test "x$tool_basename" = "x$tool_specified"; then
6593           # A command without a complete path is provided, search $PATH.
6594           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6595 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6596           # Extract the first word of "$tool_basename", so it can be a program name with args.
6597 set dummy $tool_basename; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_path_CP+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   case $CP in
6604   [\\/]* | ?:[\\/]*)
6605   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6606   ;;
6607   *)
6608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613     for ac_exec_ext in '' $ac_executable_extensions; do
6614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620   done
6621 IFS=$as_save_IFS
6622 
6623   ;;
6624 esac
6625 fi
6626 CP=$ac_cv_path_CP
6627 if test -n "$CP"; then
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6629 $as_echo "$CP" >&6; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634 
6635 
6636           if test "x$CP" = x; then
6637             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6638           fi
6639         else
6640           # Otherwise we believe it is a complete path. Use it as it is.
6641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6642 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6644 $as_echo_n "checking for CP... " >&6; }
6645           if test ! -x "$tool_specified"; then
6646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6647 $as_echo "not found" >&6; }
6648             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6649           fi
6650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6651 $as_echo "$tool_specified" >&6; }
6652         fi
6653       fi
6654     fi
6655 
6656   fi
6657 
6658 
6659 
6660   if test "x$CP" = x; then
6661     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6662   fi
6663 
6664 
6665 
6666 
6667 
6668   # Publish this variable in the help.
6669 
6670 
6671   if [ -z "${CUT+x}" ]; then
6672     # The variable is not set by user, try to locate tool using the code snippet
6673     for ac_prog in cut
6674 do
6675   # Extract the first word of "$ac_prog", so it can be a program name with args.
6676 set dummy $ac_prog; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_path_CUT+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   case $CUT in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701 
6702   ;;
6703 esac
6704 fi
6705 CUT=$ac_cv_path_CUT
6706 if test -n "$CUT"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6708 $as_echo "$CUT" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713 
6714 
6715   test -n "$CUT" && break
6716 done
6717 
6718   else
6719     # The variable is set, but is it from the command line or the environment?
6720 
6721     # Try to remove the string !CUT! from our list.
6722     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6723     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6724       # If it failed, the variable was not from the command line. Ignore it,
6725       # but warn the user (except for BASH, which is always set by the calling BASH).
6726       if test "xCUT" != xBASH; then
6727         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6728 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6729       fi
6730       # Try to locate tool using the code snippet
6731       for ac_prog in cut
6732 do
6733   # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_path_CUT+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   case $CUT in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750     for ac_exec_ext in '' $ac_executable_extensions; do
6751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757   done
6758 IFS=$as_save_IFS
6759 
6760   ;;
6761 esac
6762 fi
6763 CUT=$ac_cv_path_CUT
6764 if test -n "$CUT"; then
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6766 $as_echo "$CUT" >&6; }
6767 else
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771 
6772 
6773   test -n "$CUT" && break
6774 done
6775 
6776     else
6777       # If it succeeded, then it was overridden by the user. We will use it
6778       # for the tool.
6779 
6780       # First remove it from the list of overridden variables, so we can test
6781       # for unknown variables in the end.
6782       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6783 
6784       # Check if we try to supply an empty value
6785       if test "x$CUT" = x; then
6786         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6787 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6789 $as_echo_n "checking for CUT... " >&6; }
6790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6791 $as_echo "disabled" >&6; }
6792       else
6793         # Check if the provided tool contains a complete path.
6794         tool_specified="$CUT"
6795         tool_basename="${tool_specified##*/}"
6796         if test "x$tool_basename" = "x$tool_specified"; then
6797           # A command without a complete path is provided, search $PATH.
6798           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6799 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6800           # Extract the first word of "$tool_basename", so it can be a program name with args.
6801 set dummy $tool_basename; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_path_CUT+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   case $CUT in
6808   [\\/]* | ?:[\\/]*)
6809   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6810   ;;
6811   *)
6812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817     for ac_exec_ext in '' $ac_executable_extensions; do
6818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824   done
6825 IFS=$as_save_IFS
6826 
6827   ;;
6828 esac
6829 fi
6830 CUT=$ac_cv_path_CUT
6831 if test -n "$CUT"; then
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6833 $as_echo "$CUT" >&6; }
6834 else
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838 
6839 
6840           if test "x$CUT" = x; then
6841             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6842           fi
6843         else
6844           # Otherwise we believe it is a complete path. Use it as it is.
6845           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6846 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6847           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6848 $as_echo_n "checking for CUT... " >&6; }
6849           if test ! -x "$tool_specified"; then
6850             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6851 $as_echo "not found" >&6; }
6852             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6853           fi
6854           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6855 $as_echo "$tool_specified" >&6; }
6856         fi
6857       fi
6858     fi
6859 
6860   fi
6861 
6862 
6863 
6864   if test "x$CUT" = x; then
6865     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6866   fi
6867 
6868 
6869 
6870 
6871 
6872   # Publish this variable in the help.
6873 
6874 
6875   if [ -z "${DATE+x}" ]; then
6876     # The variable is not set by user, try to locate tool using the code snippet
6877     for ac_prog in date
6878 do
6879   # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_path_DATE+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   case $DATE in
6887   [\\/]* | ?:[\\/]*)
6888   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6889   ;;
6890   *)
6891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896     for ac_exec_ext in '' $ac_executable_extensions; do
6897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903   done
6904 IFS=$as_save_IFS
6905 
6906   ;;
6907 esac
6908 fi
6909 DATE=$ac_cv_path_DATE
6910 if test -n "$DATE"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6912 $as_echo "$DATE" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917 
6918 
6919   test -n "$DATE" && break
6920 done
6921 
6922   else
6923     # The variable is set, but is it from the command line or the environment?
6924 
6925     # Try to remove the string !DATE! from our list.
6926     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6927     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6928       # If it failed, the variable was not from the command line. Ignore it,
6929       # but warn the user (except for BASH, which is always set by the calling BASH).
6930       if test "xDATE" != xBASH; then
6931         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6932 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6933       fi
6934       # Try to locate tool using the code snippet
6935       for ac_prog in date
6936 do
6937   # Extract the first word of "$ac_prog", so it can be a program name with args.
6938 set dummy $ac_prog; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_path_DATE+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   case $DATE in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963 
6964   ;;
6965 esac
6966 fi
6967 DATE=$ac_cv_path_DATE
6968 if test -n "$DATE"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6970 $as_echo "$DATE" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975 
6976 
6977   test -n "$DATE" && break
6978 done
6979 
6980     else
6981       # If it succeeded, then it was overridden by the user. We will use it
6982       # for the tool.
6983 
6984       # First remove it from the list of overridden variables, so we can test
6985       # for unknown variables in the end.
6986       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6987 
6988       # Check if we try to supply an empty value
6989       if test "x$DATE" = x; then
6990         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6991 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6993 $as_echo_n "checking for DATE... " >&6; }
6994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6995 $as_echo "disabled" >&6; }
6996       else
6997         # Check if the provided tool contains a complete path.
6998         tool_specified="$DATE"
6999         tool_basename="${tool_specified##*/}"
7000         if test "x$tool_basename" = "x$tool_specified"; then
7001           # A command without a complete path is provided, search $PATH.
7002           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7003 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7004           # Extract the first word of "$tool_basename", so it can be a program name with args.
7005 set dummy $tool_basename; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_path_DATE+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   case $DATE in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030 
7031   ;;
7032 esac
7033 fi
7034 DATE=$ac_cv_path_DATE
7035 if test -n "$DATE"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7037 $as_echo "$DATE" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042 
7043 
7044           if test "x$DATE" = x; then
7045             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7046           fi
7047         else
7048           # Otherwise we believe it is a complete path. Use it as it is.
7049           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7050 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7051           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7052 $as_echo_n "checking for DATE... " >&6; }
7053           if test ! -x "$tool_specified"; then
7054             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7055 $as_echo "not found" >&6; }
7056             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7057           fi
7058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7059 $as_echo "$tool_specified" >&6; }
7060         fi
7061       fi
7062     fi
7063 
7064   fi
7065 
7066 
7067 
7068   if test "x$DATE" = x; then
7069     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7070   fi
7071 
7072 
7073 
7074 
7075 
7076   # Publish this variable in the help.
7077 
7078 
7079   if [ -z "${DIFF+x}" ]; then
7080     # The variable is not set by user, try to locate tool using the code snippet
7081     for ac_prog in gdiff diff
7082 do
7083   # Extract the first word of "$ac_prog", so it can be a program name with args.
7084 set dummy $ac_prog; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_path_DIFF+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   case $DIFF in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100     for ac_exec_ext in '' $ac_executable_extensions; do
7101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107   done
7108 IFS=$as_save_IFS
7109 
7110   ;;
7111 esac
7112 fi
7113 DIFF=$ac_cv_path_DIFF
7114 if test -n "$DIFF"; then
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7116 $as_echo "$DIFF" >&6; }
7117 else
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121 
7122 
7123   test -n "$DIFF" && break
7124 done
7125 
7126   else
7127     # The variable is set, but is it from the command line or the environment?
7128 
7129     # Try to remove the string !DIFF! from our list.
7130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7132       # If it failed, the variable was not from the command line. Ignore it,
7133       # but warn the user (except for BASH, which is always set by the calling BASH).
7134       if test "xDIFF" != xBASH; then
7135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7136 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7137       fi
7138       # Try to locate tool using the code snippet
7139       for ac_prog in gdiff diff
7140 do
7141   # Extract the first word of "$ac_prog", so it can be a program name with args.
7142 set dummy $ac_prog; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_path_DIFF+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   case $DIFF in
7149   [\\/]* | ?:[\\/]*)
7150   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167 
7168   ;;
7169 esac
7170 fi
7171 DIFF=$ac_cv_path_DIFF
7172 if test -n "$DIFF"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7174 $as_echo "$DIFF" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179 
7180 
7181   test -n "$DIFF" && break
7182 done
7183 
7184     else
7185       # If it succeeded, then it was overridden by the user. We will use it
7186       # for the tool.
7187 
7188       # First remove it from the list of overridden variables, so we can test
7189       # for unknown variables in the end.
7190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7191 
7192       # Check if we try to supply an empty value
7193       if test "x$DIFF" = x; then
7194         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7195 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7197 $as_echo_n "checking for DIFF... " >&6; }
7198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7199 $as_echo "disabled" >&6; }
7200       else
7201         # Check if the provided tool contains a complete path.
7202         tool_specified="$DIFF"
7203         tool_basename="${tool_specified##*/}"
7204         if test "x$tool_basename" = "x$tool_specified"; then
7205           # A command without a complete path is provided, search $PATH.
7206           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7207 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7208           # Extract the first word of "$tool_basename", so it can be a program name with args.
7209 set dummy $tool_basename; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_path_DIFF+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   case $DIFF in
7216   [\\/]* | ?:[\\/]*)
7217   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7218   ;;
7219   *)
7220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225     for ac_exec_ext in '' $ac_executable_extensions; do
7226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232   done
7233 IFS=$as_save_IFS
7234 
7235   ;;
7236 esac
7237 fi
7238 DIFF=$ac_cv_path_DIFF
7239 if test -n "$DIFF"; then
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7241 $as_echo "$DIFF" >&6; }
7242 else
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246 
7247 
7248           if test "x$DIFF" = x; then
7249             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7250           fi
7251         else
7252           # Otherwise we believe it is a complete path. Use it as it is.
7253           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7254 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7255           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7256 $as_echo_n "checking for DIFF... " >&6; }
7257           if test ! -x "$tool_specified"; then
7258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7259 $as_echo "not found" >&6; }
7260             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7261           fi
7262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7263 $as_echo "$tool_specified" >&6; }
7264         fi
7265       fi
7266     fi
7267 
7268   fi
7269 
7270 
7271 
7272   if test "x$DIFF" = x; then
7273     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7274   fi
7275 
7276 
7277 
7278 
7279 
7280   # Publish this variable in the help.
7281 
7282 
7283   if [ -z "${DIRNAME+x}" ]; then
7284     # The variable is not set by user, try to locate tool using the code snippet
7285     for ac_prog in dirname
7286 do
7287   # Extract the first word of "$ac_prog", so it can be a program name with args.
7288 set dummy $ac_prog; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_path_DIRNAME+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   case $DIRNAME in
7295   [\\/]* | ?:[\\/]*)
7296   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7297   ;;
7298   *)
7299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313 
7314   ;;
7315 esac
7316 fi
7317 DIRNAME=$ac_cv_path_DIRNAME
7318 if test -n "$DIRNAME"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7320 $as_echo "$DIRNAME" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325 
7326 
7327   test -n "$DIRNAME" && break
7328 done
7329 
7330   else
7331     # The variable is set, but is it from the command line or the environment?
7332 
7333     # Try to remove the string !DIRNAME! from our list.
7334     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7335     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7336       # If it failed, the variable was not from the command line. Ignore it,
7337       # but warn the user (except for BASH, which is always set by the calling BASH).
7338       if test "xDIRNAME" != xBASH; then
7339         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7340 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7341       fi
7342       # Try to locate tool using the code snippet
7343       for ac_prog in dirname
7344 do
7345   # Extract the first word of "$ac_prog", so it can be a program name with args.
7346 set dummy $ac_prog; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_path_DIRNAME+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   case $DIRNAME in
7353   [\\/]* | ?:[\\/]*)
7354   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7355   ;;
7356   *)
7357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371 
7372   ;;
7373 esac
7374 fi
7375 DIRNAME=$ac_cv_path_DIRNAME
7376 if test -n "$DIRNAME"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7378 $as_echo "$DIRNAME" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383 
7384 
7385   test -n "$DIRNAME" && break
7386 done
7387 
7388     else
7389       # If it succeeded, then it was overridden by the user. We will use it
7390       # for the tool.
7391 
7392       # First remove it from the list of overridden variables, so we can test
7393       # for unknown variables in the end.
7394       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7395 
7396       # Check if we try to supply an empty value
7397       if test "x$DIRNAME" = x; then
7398         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7399 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7401 $as_echo_n "checking for DIRNAME... " >&6; }
7402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7403 $as_echo "disabled" >&6; }
7404       else
7405         # Check if the provided tool contains a complete path.
7406         tool_specified="$DIRNAME"
7407         tool_basename="${tool_specified##*/}"
7408         if test "x$tool_basename" = "x$tool_specified"; then
7409           # A command without a complete path is provided, search $PATH.
7410           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7411 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7412           # Extract the first word of "$tool_basename", so it can be a program name with args.
7413 set dummy $tool_basename; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_path_DIRNAME+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   case $DIRNAME in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429     for ac_exec_ext in '' $ac_executable_extensions; do
7430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436   done
7437 IFS=$as_save_IFS
7438 
7439   ;;
7440 esac
7441 fi
7442 DIRNAME=$ac_cv_path_DIRNAME
7443 if test -n "$DIRNAME"; then
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7445 $as_echo "$DIRNAME" >&6; }
7446 else
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450 
7451 
7452           if test "x$DIRNAME" = x; then
7453             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7454           fi
7455         else
7456           # Otherwise we believe it is a complete path. Use it as it is.
7457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7458 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7460 $as_echo_n "checking for DIRNAME... " >&6; }
7461           if test ! -x "$tool_specified"; then
7462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7463 $as_echo "not found" >&6; }
7464             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7465           fi
7466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7467 $as_echo "$tool_specified" >&6; }
7468         fi
7469       fi
7470     fi
7471 
7472   fi
7473 
7474 
7475 
7476   if test "x$DIRNAME" = x; then
7477     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7478   fi
7479 
7480 
7481 
7482 
7483 
7484   # Publish this variable in the help.
7485 
7486 
7487   if [ -z "${ECHO+x}" ]; then
7488     # The variable is not set by user, try to locate tool using the code snippet
7489     for ac_prog in echo
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_path_ECHO+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   case $ECHO in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517 
7518   ;;
7519 esac
7520 fi
7521 ECHO=$ac_cv_path_ECHO
7522 if test -n "$ECHO"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7524 $as_echo "$ECHO" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529 
7530 
7531   test -n "$ECHO" && break
7532 done
7533 
7534   else
7535     # The variable is set, but is it from the command line or the environment?
7536 
7537     # Try to remove the string !ECHO! from our list.
7538     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7539     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7540       # If it failed, the variable was not from the command line. Ignore it,
7541       # but warn the user (except for BASH, which is always set by the calling BASH).
7542       if test "xECHO" != xBASH; then
7543         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7544 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7545       fi
7546       # Try to locate tool using the code snippet
7547       for ac_prog in echo
7548 do
7549   # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_path_ECHO+:} false; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   case $ECHO in
7557   [\\/]* | ?:[\\/]*)
7558   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7559   ;;
7560   *)
7561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575 
7576   ;;
7577 esac
7578 fi
7579 ECHO=$ac_cv_path_ECHO
7580 if test -n "$ECHO"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7582 $as_echo "$ECHO" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587 
7588 
7589   test -n "$ECHO" && break
7590 done
7591 
7592     else
7593       # If it succeeded, then it was overridden by the user. We will use it
7594       # for the tool.
7595 
7596       # First remove it from the list of overridden variables, so we can test
7597       # for unknown variables in the end.
7598       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7599 
7600       # Check if we try to supply an empty value
7601       if test "x$ECHO" = x; then
7602         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7603 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7605 $as_echo_n "checking for ECHO... " >&6; }
7606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7607 $as_echo "disabled" >&6; }
7608       else
7609         # Check if the provided tool contains a complete path.
7610         tool_specified="$ECHO"
7611         tool_basename="${tool_specified##*/}"
7612         if test "x$tool_basename" = "x$tool_specified"; then
7613           # A command without a complete path is provided, search $PATH.
7614           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7615 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7616           # Extract the first word of "$tool_basename", so it can be a program name with args.
7617 set dummy $tool_basename; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_path_ECHO+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   case $ECHO in
7624   [\\/]* | ?:[\\/]*)
7625   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7626   ;;
7627   *)
7628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633     for ac_exec_ext in '' $ac_executable_extensions; do
7634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637     break 2
7638   fi
7639 done
7640   done
7641 IFS=$as_save_IFS
7642 
7643   ;;
7644 esac
7645 fi
7646 ECHO=$ac_cv_path_ECHO
7647 if test -n "$ECHO"; then
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7649 $as_echo "$ECHO" >&6; }
7650 else
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654 
7655 
7656           if test "x$ECHO" = x; then
7657             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7658           fi
7659         else
7660           # Otherwise we believe it is a complete path. Use it as it is.
7661           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7662 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7663           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7664 $as_echo_n "checking for ECHO... " >&6; }
7665           if test ! -x "$tool_specified"; then
7666             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7667 $as_echo "not found" >&6; }
7668             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7669           fi
7670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7671 $as_echo "$tool_specified" >&6; }
7672         fi
7673       fi
7674     fi
7675 
7676   fi
7677 
7678 
7679 
7680   if test "x$ECHO" = x; then
7681     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7682   fi
7683 
7684 
7685 
7686 
7687 
7688   # Publish this variable in the help.
7689 
7690 
7691   if [ -z "${EXPR+x}" ]; then
7692     # The variable is not set by user, try to locate tool using the code snippet
7693     for ac_prog in expr
7694 do
7695   # Extract the first word of "$ac_prog", so it can be a program name with args.
7696 set dummy $ac_prog; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_path_EXPR+:} false; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   case $EXPR in
7703   [\\/]* | ?:[\\/]*)
7704   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7705   ;;
7706   *)
7707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712     for ac_exec_ext in '' $ac_executable_extensions; do
7713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719   done
7720 IFS=$as_save_IFS
7721 
7722   ;;
7723 esac
7724 fi
7725 EXPR=$ac_cv_path_EXPR
7726 if test -n "$EXPR"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7728 $as_echo "$EXPR" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733 
7734 
7735   test -n "$EXPR" && break
7736 done
7737 
7738   else
7739     # The variable is set, but is it from the command line or the environment?
7740 
7741     # Try to remove the string !EXPR! from our list.
7742     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7743     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7744       # If it failed, the variable was not from the command line. Ignore it,
7745       # but warn the user (except for BASH, which is always set by the calling BASH).
7746       if test "xEXPR" != xBASH; then
7747         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7748 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7749       fi
7750       # Try to locate tool using the code snippet
7751       for ac_prog in expr
7752 do
7753   # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_path_EXPR+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   case $EXPR in
7761   [\\/]* | ?:[\\/]*)
7762   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7763   ;;
7764   *)
7765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779 
7780   ;;
7781 esac
7782 fi
7783 EXPR=$ac_cv_path_EXPR
7784 if test -n "$EXPR"; then
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7786 $as_echo "$EXPR" >&6; }
7787 else
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791 
7792 
7793   test -n "$EXPR" && break
7794 done
7795 
7796     else
7797       # If it succeeded, then it was overridden by the user. We will use it
7798       # for the tool.
7799 
7800       # First remove it from the list of overridden variables, so we can test
7801       # for unknown variables in the end.
7802       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7803 
7804       # Check if we try to supply an empty value
7805       if test "x$EXPR" = x; then
7806         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7807 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7809 $as_echo_n "checking for EXPR... " >&6; }
7810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7811 $as_echo "disabled" >&6; }
7812       else
7813         # Check if the provided tool contains a complete path.
7814         tool_specified="$EXPR"
7815         tool_basename="${tool_specified##*/}"
7816         if test "x$tool_basename" = "x$tool_specified"; then
7817           # A command without a complete path is provided, search $PATH.
7818           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7819 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7820           # Extract the first word of "$tool_basename", so it can be a program name with args.
7821 set dummy $tool_basename; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_path_EXPR+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   case $EXPR in
7828   [\\/]* | ?:[\\/]*)
7829   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7830   ;;
7831   *)
7832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837     for ac_exec_ext in '' $ac_executable_extensions; do
7838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844   done
7845 IFS=$as_save_IFS
7846 
7847   ;;
7848 esac
7849 fi
7850 EXPR=$ac_cv_path_EXPR
7851 if test -n "$EXPR"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7853 $as_echo "$EXPR" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858 
7859 
7860           if test "x$EXPR" = x; then
7861             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7862           fi
7863         else
7864           # Otherwise we believe it is a complete path. Use it as it is.
7865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7866 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7867           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7868 $as_echo_n "checking for EXPR... " >&6; }
7869           if test ! -x "$tool_specified"; then
7870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7871 $as_echo "not found" >&6; }
7872             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7873           fi
7874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7875 $as_echo "$tool_specified" >&6; }
7876         fi
7877       fi
7878     fi
7879 
7880   fi
7881 
7882 
7883 
7884   if test "x$EXPR" = x; then
7885     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7886   fi
7887 
7888 
7889 
7890 
7891 
7892   # Publish this variable in the help.
7893 
7894 
7895   if [ -z "${FILE+x}" ]; then
7896     # The variable is not set by user, try to locate tool using the code snippet
7897     for ac_prog in file
7898 do
7899   # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_path_FILE+:} false; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   case $FILE in
7907   [\\/]* | ?:[\\/]*)
7908   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7909   ;;
7910   *)
7911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916     for ac_exec_ext in '' $ac_executable_extensions; do
7917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923   done
7924 IFS=$as_save_IFS
7925 
7926   ;;
7927 esac
7928 fi
7929 FILE=$ac_cv_path_FILE
7930 if test -n "$FILE"; then
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7932 $as_echo "$FILE" >&6; }
7933 else
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937 
7938 
7939   test -n "$FILE" && break
7940 done
7941 
7942   else
7943     # The variable is set, but is it from the command line or the environment?
7944 
7945     # Try to remove the string !FILE! from our list.
7946     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7947     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7948       # If it failed, the variable was not from the command line. Ignore it,
7949       # but warn the user (except for BASH, which is always set by the calling BASH).
7950       if test "xFILE" != xBASH; then
7951         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7952 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7953       fi
7954       # Try to locate tool using the code snippet
7955       for ac_prog in file
7956 do
7957   # Extract the first word of "$ac_prog", so it can be a program name with args.
7958 set dummy $ac_prog; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_path_FILE+:} false; then :
7962   $as_echo_n "(cached) " >&6
7963 else
7964   case $FILE in
7965   [\\/]* | ?:[\\/]*)
7966   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7967   ;;
7968   *)
7969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972   IFS=$as_save_IFS
7973   test -z "$as_dir" && as_dir=.
7974     for ac_exec_ext in '' $ac_executable_extensions; do
7975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978     break 2
7979   fi
7980 done
7981   done
7982 IFS=$as_save_IFS
7983 
7984   ;;
7985 esac
7986 fi
7987 FILE=$ac_cv_path_FILE
7988 if test -n "$FILE"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7990 $as_echo "$FILE" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995 
7996 
7997   test -n "$FILE" && break
7998 done
7999 
8000     else
8001       # If it succeeded, then it was overridden by the user. We will use it
8002       # for the tool.
8003 
8004       # First remove it from the list of overridden variables, so we can test
8005       # for unknown variables in the end.
8006       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8007 
8008       # Check if we try to supply an empty value
8009       if test "x$FILE" = x; then
8010         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8011 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8013 $as_echo_n "checking for FILE... " >&6; }
8014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8015 $as_echo "disabled" >&6; }
8016       else
8017         # Check if the provided tool contains a complete path.
8018         tool_specified="$FILE"
8019         tool_basename="${tool_specified##*/}"
8020         if test "x$tool_basename" = "x$tool_specified"; then
8021           # A command without a complete path is provided, search $PATH.
8022           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8023 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8024           # Extract the first word of "$tool_basename", so it can be a program name with args.
8025 set dummy $tool_basename; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_path_FILE+:} false; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   case $FILE in
8032   [\\/]* | ?:[\\/]*)
8033   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8034   ;;
8035   *)
8036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8038 do
8039   IFS=$as_save_IFS
8040   test -z "$as_dir" && as_dir=.
8041     for ac_exec_ext in '' $ac_executable_extensions; do
8042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045     break 2
8046   fi
8047 done
8048   done
8049 IFS=$as_save_IFS
8050 
8051   ;;
8052 esac
8053 fi
8054 FILE=$ac_cv_path_FILE
8055 if test -n "$FILE"; then
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8057 $as_echo "$FILE" >&6; }
8058 else
8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062 
8063 
8064           if test "x$FILE" = x; then
8065             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8066           fi
8067         else
8068           # Otherwise we believe it is a complete path. Use it as it is.
8069           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8070 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8071           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8072 $as_echo_n "checking for FILE... " >&6; }
8073           if test ! -x "$tool_specified"; then
8074             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8075 $as_echo "not found" >&6; }
8076             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8077           fi
8078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8079 $as_echo "$tool_specified" >&6; }
8080         fi
8081       fi
8082     fi
8083 
8084   fi
8085 
8086 
8087 
8088   if test "x$FILE" = x; then
8089     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8090   fi
8091 
8092 
8093 
8094 
8095 
8096   # Publish this variable in the help.
8097 
8098 
8099   if [ -z "${FIND+x}" ]; then
8100     # The variable is not set by user, try to locate tool using the code snippet
8101     for ac_prog in find
8102 do
8103   # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy $ac_prog; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_path_FIND+:} false; then :
8108   $as_echo_n "(cached) " >&6
8109 else
8110   case $FIND in
8111   [\\/]* | ?:[\\/]*)
8112   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8113   ;;
8114   *)
8115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120     for ac_exec_ext in '' $ac_executable_extensions; do
8121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127   done
8128 IFS=$as_save_IFS
8129 
8130   ;;
8131 esac
8132 fi
8133 FIND=$ac_cv_path_FIND
8134 if test -n "$FIND"; then
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8136 $as_echo "$FIND" >&6; }
8137 else
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141 
8142 
8143   test -n "$FIND" && break
8144 done
8145 
8146   else
8147     # The variable is set, but is it from the command line or the environment?
8148 
8149     # Try to remove the string !FIND! from our list.
8150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8152       # If it failed, the variable was not from the command line. Ignore it,
8153       # but warn the user (except for BASH, which is always set by the calling BASH).
8154       if test "xFIND" != xBASH; then
8155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8156 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8157       fi
8158       # Try to locate tool using the code snippet
8159       for ac_prog in find
8160 do
8161   # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_path_FIND+:} false; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   case $FIND in
8169   [\\/]* | ?:[\\/]*)
8170   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8171   ;;
8172   *)
8173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178     for ac_exec_ext in '' $ac_executable_extensions; do
8179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185   done
8186 IFS=$as_save_IFS
8187 
8188   ;;
8189 esac
8190 fi
8191 FIND=$ac_cv_path_FIND
8192 if test -n "$FIND"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8194 $as_echo "$FIND" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199 
8200 
8201   test -n "$FIND" && break
8202 done
8203 
8204     else
8205       # If it succeeded, then it was overridden by the user. We will use it
8206       # for the tool.
8207 
8208       # First remove it from the list of overridden variables, so we can test
8209       # for unknown variables in the end.
8210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8211 
8212       # Check if we try to supply an empty value
8213       if test "x$FIND" = x; then
8214         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8215 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8217 $as_echo_n "checking for FIND... " >&6; }
8218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8219 $as_echo "disabled" >&6; }
8220       else
8221         # Check if the provided tool contains a complete path.
8222         tool_specified="$FIND"
8223         tool_basename="${tool_specified##*/}"
8224         if test "x$tool_basename" = "x$tool_specified"; then
8225           # A command without a complete path is provided, search $PATH.
8226           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8227 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8228           # Extract the first word of "$tool_basename", so it can be a program name with args.
8229 set dummy $tool_basename; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if ${ac_cv_path_FIND+:} false; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   case $FIND in
8236   [\\/]* | ?:[\\/]*)
8237   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8238   ;;
8239   *)
8240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245     for ac_exec_ext in '' $ac_executable_extensions; do
8246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252   done
8253 IFS=$as_save_IFS
8254 
8255   ;;
8256 esac
8257 fi
8258 FIND=$ac_cv_path_FIND
8259 if test -n "$FIND"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8261 $as_echo "$FIND" >&6; }
8262 else
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266 
8267 
8268           if test "x$FIND" = x; then
8269             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8270           fi
8271         else
8272           # Otherwise we believe it is a complete path. Use it as it is.
8273           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8274 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8275           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8276 $as_echo_n "checking for FIND... " >&6; }
8277           if test ! -x "$tool_specified"; then
8278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8279 $as_echo "not found" >&6; }
8280             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8281           fi
8282           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8283 $as_echo "$tool_specified" >&6; }
8284         fi
8285       fi
8286     fi
8287 
8288   fi
8289 
8290 
8291 
8292   if test "x$FIND" = x; then
8293     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8294   fi
8295 
8296 
8297 
8298 
8299 
8300   # Publish this variable in the help.
8301 
8302 
8303   if [ -z "${HEAD+x}" ]; then
8304     # The variable is not set by user, try to locate tool using the code snippet
8305     for ac_prog in head
8306 do
8307   # Extract the first word of "$ac_prog", so it can be a program name with args.
8308 set dummy $ac_prog; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_path_HEAD+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   case $HEAD in
8315   [\\/]* | ?:[\\/]*)
8316   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8317   ;;
8318   *)
8319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324     for ac_exec_ext in '' $ac_executable_extensions; do
8325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331   done
8332 IFS=$as_save_IFS
8333 
8334   ;;
8335 esac
8336 fi
8337 HEAD=$ac_cv_path_HEAD
8338 if test -n "$HEAD"; then
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8340 $as_echo "$HEAD" >&6; }
8341 else
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345 
8346 
8347   test -n "$HEAD" && break
8348 done
8349 
8350   else
8351     # The variable is set, but is it from the command line or the environment?
8352 
8353     # Try to remove the string !HEAD! from our list.
8354     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8355     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8356       # If it failed, the variable was not from the command line. Ignore it,
8357       # but warn the user (except for BASH, which is always set by the calling BASH).
8358       if test "xHEAD" != xBASH; then
8359         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8360 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8361       fi
8362       # Try to locate tool using the code snippet
8363       for ac_prog in head
8364 do
8365   # Extract the first word of "$ac_prog", so it can be a program name with args.
8366 set dummy $ac_prog; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_path_HEAD+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   case $HEAD in
8373   [\\/]* | ?:[\\/]*)
8374   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8375   ;;
8376   *)
8377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8391 
8392   ;;
8393 esac
8394 fi
8395 HEAD=$ac_cv_path_HEAD
8396 if test -n "$HEAD"; then
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8398 $as_echo "$HEAD" >&6; }
8399 else
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403 
8404 
8405   test -n "$HEAD" && break
8406 done
8407 
8408     else
8409       # If it succeeded, then it was overridden by the user. We will use it
8410       # for the tool.
8411 
8412       # First remove it from the list of overridden variables, so we can test
8413       # for unknown variables in the end.
8414       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8415 
8416       # Check if we try to supply an empty value
8417       if test "x$HEAD" = x; then
8418         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8419 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8421 $as_echo_n "checking for HEAD... " >&6; }
8422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8423 $as_echo "disabled" >&6; }
8424       else
8425         # Check if the provided tool contains a complete path.
8426         tool_specified="$HEAD"
8427         tool_basename="${tool_specified##*/}"
8428         if test "x$tool_basename" = "x$tool_specified"; then
8429           # A command without a complete path is provided, search $PATH.
8430           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8431 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8432           # Extract the first word of "$tool_basename", so it can be a program name with args.
8433 set dummy $tool_basename; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if ${ac_cv_path_HEAD+:} false; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   case $HEAD in
8440   [\\/]* | ?:[\\/]*)
8441   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8442   ;;
8443   *)
8444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447   IFS=$as_save_IFS
8448   test -z "$as_dir" && as_dir=.
8449     for ac_exec_ext in '' $ac_executable_extensions; do
8450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453     break 2
8454   fi
8455 done
8456   done
8457 IFS=$as_save_IFS
8458 
8459   ;;
8460 esac
8461 fi
8462 HEAD=$ac_cv_path_HEAD
8463 if test -n "$HEAD"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8465 $as_echo "$HEAD" >&6; }
8466 else
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470 
8471 
8472           if test "x$HEAD" = x; then
8473             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8474           fi
8475         else
8476           # Otherwise we believe it is a complete path. Use it as it is.
8477           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8478 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8479           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8480 $as_echo_n "checking for HEAD... " >&6; }
8481           if test ! -x "$tool_specified"; then
8482             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8483 $as_echo "not found" >&6; }
8484             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8485           fi
8486           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8487 $as_echo "$tool_specified" >&6; }
8488         fi
8489       fi
8490     fi
8491 
8492   fi
8493 
8494 
8495 
8496   if test "x$HEAD" = x; then
8497     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8498   fi
8499 
8500 
8501 
8502 
8503 
8504   # Publish this variable in the help.
8505 
8506 
8507   if [ -z "${GUNZIP+x}" ]; then
8508     # The variable is not set by user, try to locate tool using the code snippet
8509     for ac_prog in gunzip
8510 do
8511   # Extract the first word of "$ac_prog", so it can be a program name with args.
8512 set dummy $ac_prog; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if ${ac_cv_path_GUNZIP+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   case $GUNZIP in
8519   [\\/]* | ?:[\\/]*)
8520   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8521   ;;
8522   *)
8523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526   IFS=$as_save_IFS
8527   test -z "$as_dir" && as_dir=.
8528     for ac_exec_ext in '' $ac_executable_extensions; do
8529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532     break 2
8533   fi
8534 done
8535   done
8536 IFS=$as_save_IFS
8537 
8538   ;;
8539 esac
8540 fi
8541 GUNZIP=$ac_cv_path_GUNZIP
8542 if test -n "$GUNZIP"; then
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8544 $as_echo "$GUNZIP" >&6; }
8545 else
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8548 fi
8549 
8550 
8551   test -n "$GUNZIP" && break
8552 done
8553 
8554   else
8555     # The variable is set, but is it from the command line or the environment?
8556 
8557     # Try to remove the string !GUNZIP! from our list.
8558     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8559     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8560       # If it failed, the variable was not from the command line. Ignore it,
8561       # but warn the user (except for BASH, which is always set by the calling BASH).
8562       if test "xGUNZIP" != xBASH; then
8563         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8564 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8565       fi
8566       # Try to locate tool using the code snippet
8567       for ac_prog in gunzip
8568 do
8569   # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_path_GUNZIP+:} false; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   case $GUNZIP in
8577   [\\/]* | ?:[\\/]*)
8578   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8579   ;;
8580   *)
8581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586     for ac_exec_ext in '' $ac_executable_extensions; do
8587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593   done
8594 IFS=$as_save_IFS
8595 
8596   ;;
8597 esac
8598 fi
8599 GUNZIP=$ac_cv_path_GUNZIP
8600 if test -n "$GUNZIP"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8602 $as_echo "$GUNZIP" >&6; }
8603 else
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607 
8608 
8609   test -n "$GUNZIP" && break
8610 done
8611 
8612     else
8613       # If it succeeded, then it was overridden by the user. We will use it
8614       # for the tool.
8615 
8616       # First remove it from the list of overridden variables, so we can test
8617       # for unknown variables in the end.
8618       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8619 
8620       # Check if we try to supply an empty value
8621       if test "x$GUNZIP" = x; then
8622         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8623 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8625 $as_echo_n "checking for GUNZIP... " >&6; }
8626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8627 $as_echo "disabled" >&6; }
8628       else
8629         # Check if the provided tool contains a complete path.
8630         tool_specified="$GUNZIP"
8631         tool_basename="${tool_specified##*/}"
8632         if test "x$tool_basename" = "x$tool_specified"; then
8633           # A command without a complete path is provided, search $PATH.
8634           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8635 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8636           # Extract the first word of "$tool_basename", so it can be a program name with args.
8637 set dummy $tool_basename; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_path_GUNZIP+:} false; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   case $GUNZIP in
8644   [\\/]* | ?:[\\/]*)
8645   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8646   ;;
8647   *)
8648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662 
8663   ;;
8664 esac
8665 fi
8666 GUNZIP=$ac_cv_path_GUNZIP
8667 if test -n "$GUNZIP"; then
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8669 $as_echo "$GUNZIP" >&6; }
8670 else
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8674 
8675 
8676           if test "x$GUNZIP" = x; then
8677             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8678           fi
8679         else
8680           # Otherwise we believe it is a complete path. Use it as it is.
8681           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8682 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8683           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8684 $as_echo_n "checking for GUNZIP... " >&6; }
8685           if test ! -x "$tool_specified"; then
8686             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8687 $as_echo "not found" >&6; }
8688             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8689           fi
8690           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8691 $as_echo "$tool_specified" >&6; }
8692         fi
8693       fi
8694     fi
8695 
8696   fi
8697 
8698 
8699 
8700   if test "x$GUNZIP" = x; then
8701     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8702   fi
8703 
8704 
8705 
8706 
8707 
8708   # Publish this variable in the help.
8709 
8710 
8711   if [ -z "${GZIP+x}" ]; then
8712     # The variable is not set by user, try to locate tool using the code snippet
8713     for ac_prog in pigz gzip
8714 do
8715   # Extract the first word of "$ac_prog", so it can be a program name with args.
8716 set dummy $ac_prog; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if ${ac_cv_path_GZIP+:} false; then :
8720   $as_echo_n "(cached) " >&6
8721 else
8722   case $GZIP in
8723   [\\/]* | ?:[\\/]*)
8724   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8725   ;;
8726   *)
8727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730   IFS=$as_save_IFS
8731   test -z "$as_dir" && as_dir=.
8732     for ac_exec_ext in '' $ac_executable_extensions; do
8733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736     break 2
8737   fi
8738 done
8739   done
8740 IFS=$as_save_IFS
8741 
8742   ;;
8743 esac
8744 fi
8745 GZIP=$ac_cv_path_GZIP
8746 if test -n "$GZIP"; then
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8748 $as_echo "$GZIP" >&6; }
8749 else
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753 
8754 
8755   test -n "$GZIP" && break
8756 done
8757 
8758   else
8759     # The variable is set, but is it from the command line or the environment?
8760 
8761     # Try to remove the string !GZIP! from our list.
8762     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8763     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8764       # If it failed, the variable was not from the command line. Ignore it,
8765       # but warn the user (except for BASH, which is always set by the calling BASH).
8766       if test "xGZIP" != xBASH; then
8767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8768 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8769       fi
8770       # Try to locate tool using the code snippet
8771       for ac_prog in pigz gzip
8772 do
8773   # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_path_GZIP+:} false; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   case $GZIP in
8781   [\\/]* | ?:[\\/]*)
8782   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8783   ;;
8784   *)
8785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788   IFS=$as_save_IFS
8789   test -z "$as_dir" && as_dir=.
8790     for ac_exec_ext in '' $ac_executable_extensions; do
8791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8792     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794     break 2
8795   fi
8796 done
8797   done
8798 IFS=$as_save_IFS
8799 
8800   ;;
8801 esac
8802 fi
8803 GZIP=$ac_cv_path_GZIP
8804 if test -n "$GZIP"; then
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8806 $as_echo "$GZIP" >&6; }
8807 else
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 fi
8811 
8812 
8813   test -n "$GZIP" && break
8814 done
8815 
8816     else
8817       # If it succeeded, then it was overridden by the user. We will use it
8818       # for the tool.
8819 
8820       # First remove it from the list of overridden variables, so we can test
8821       # for unknown variables in the end.
8822       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8823 
8824       # Check if we try to supply an empty value
8825       if test "x$GZIP" = x; then
8826         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8827 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8829 $as_echo_n "checking for GZIP... " >&6; }
8830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8831 $as_echo "disabled" >&6; }
8832       else
8833         # Check if the provided tool contains a complete path.
8834         tool_specified="$GZIP"
8835         tool_basename="${tool_specified##*/}"
8836         if test "x$tool_basename" = "x$tool_specified"; then
8837           # A command without a complete path is provided, search $PATH.
8838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8839 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8840           # Extract the first word of "$tool_basename", so it can be a program name with args.
8841 set dummy $tool_basename; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_path_GZIP+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   case $GZIP in
8848   [\\/]* | ?:[\\/]*)
8849   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8850   ;;
8851   *)
8852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855   IFS=$as_save_IFS
8856   test -z "$as_dir" && as_dir=.
8857     for ac_exec_ext in '' $ac_executable_extensions; do
8858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861     break 2
8862   fi
8863 done
8864   done
8865 IFS=$as_save_IFS
8866 
8867   ;;
8868 esac
8869 fi
8870 GZIP=$ac_cv_path_GZIP
8871 if test -n "$GZIP"; then
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8873 $as_echo "$GZIP" >&6; }
8874 else
8875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8877 fi
8878 
8879 
8880           if test "x$GZIP" = x; then
8881             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8882           fi
8883         else
8884           # Otherwise we believe it is a complete path. Use it as it is.
8885           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8886 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8887           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8888 $as_echo_n "checking for GZIP... " >&6; }
8889           if test ! -x "$tool_specified"; then
8890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8891 $as_echo "not found" >&6; }
8892             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8893           fi
8894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8895 $as_echo "$tool_specified" >&6; }
8896         fi
8897       fi
8898     fi
8899 
8900   fi
8901 
8902 
8903 
8904   if test "x$GZIP" = x; then
8905     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8906   fi
8907 
8908 
8909 
8910 
8911 
8912   # Publish this variable in the help.
8913 
8914 
8915   if [ -z "${LN+x}" ]; then
8916     # The variable is not set by user, try to locate tool using the code snippet
8917     for ac_prog in ln
8918 do
8919   # Extract the first word of "$ac_prog", so it can be a program name with args.
8920 set dummy $ac_prog; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_path_LN+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   case $LN in
8927   [\\/]* | ?:[\\/]*)
8928   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8929   ;;
8930   *)
8931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8933 do
8934   IFS=$as_save_IFS
8935   test -z "$as_dir" && as_dir=.
8936     for ac_exec_ext in '' $ac_executable_extensions; do
8937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8938     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940     break 2
8941   fi
8942 done
8943   done
8944 IFS=$as_save_IFS
8945 
8946   ;;
8947 esac
8948 fi
8949 LN=$ac_cv_path_LN
8950 if test -n "$LN"; then
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8952 $as_echo "$LN" >&6; }
8953 else
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8956 fi
8957 
8958 
8959   test -n "$LN" && break
8960 done
8961 
8962   else
8963     # The variable is set, but is it from the command line or the environment?
8964 
8965     # Try to remove the string !LN! from our list.
8966     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8967     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8968       # If it failed, the variable was not from the command line. Ignore it,
8969       # but warn the user (except for BASH, which is always set by the calling BASH).
8970       if test "xLN" != xBASH; then
8971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8972 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8973       fi
8974       # Try to locate tool using the code snippet
8975       for ac_prog in ln
8976 do
8977   # Extract the first word of "$ac_prog", so it can be a program name with args.
8978 set dummy $ac_prog; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_path_LN+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   case $LN in
8985   [\\/]* | ?:[\\/]*)
8986   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8987   ;;
8988   *)
8989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992   IFS=$as_save_IFS
8993   test -z "$as_dir" && as_dir=.
8994     for ac_exec_ext in '' $ac_executable_extensions; do
8995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998     break 2
8999   fi
9000 done
9001   done
9002 IFS=$as_save_IFS
9003 
9004   ;;
9005 esac
9006 fi
9007 LN=$ac_cv_path_LN
9008 if test -n "$LN"; then
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9010 $as_echo "$LN" >&6; }
9011 else
9012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014 fi
9015 
9016 
9017   test -n "$LN" && break
9018 done
9019 
9020     else
9021       # If it succeeded, then it was overridden by the user. We will use it
9022       # for the tool.
9023 
9024       # First remove it from the list of overridden variables, so we can test
9025       # for unknown variables in the end.
9026       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9027 
9028       # Check if we try to supply an empty value
9029       if test "x$LN" = x; then
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9031 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9033 $as_echo_n "checking for LN... " >&6; }
9034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9035 $as_echo "disabled" >&6; }
9036       else
9037         # Check if the provided tool contains a complete path.
9038         tool_specified="$LN"
9039         tool_basename="${tool_specified##*/}"
9040         if test "x$tool_basename" = "x$tool_specified"; then
9041           # A command without a complete path is provided, search $PATH.
9042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9043 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9044           # Extract the first word of "$tool_basename", so it can be a program name with args.
9045 set dummy $tool_basename; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_path_LN+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   case $LN in
9052   [\\/]* | ?:[\\/]*)
9053   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9054   ;;
9055   *)
9056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9058 do
9059   IFS=$as_save_IFS
9060   test -z "$as_dir" && as_dir=.
9061     for ac_exec_ext in '' $ac_executable_extensions; do
9062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065     break 2
9066   fi
9067 done
9068   done
9069 IFS=$as_save_IFS
9070 
9071   ;;
9072 esac
9073 fi
9074 LN=$ac_cv_path_LN
9075 if test -n "$LN"; then
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9077 $as_echo "$LN" >&6; }
9078 else
9079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9081 fi
9082 
9083 
9084           if test "x$LN" = x; then
9085             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9086           fi
9087         else
9088           # Otherwise we believe it is a complete path. Use it as it is.
9089           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9090 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9091           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9092 $as_echo_n "checking for LN... " >&6; }
9093           if test ! -x "$tool_specified"; then
9094             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9095 $as_echo "not found" >&6; }
9096             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9097           fi
9098           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9099 $as_echo "$tool_specified" >&6; }
9100         fi
9101       fi
9102     fi
9103 
9104   fi
9105 
9106 
9107 
9108   if test "x$LN" = x; then
9109     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9110   fi
9111 
9112 
9113 
9114 
9115 
9116   # Publish this variable in the help.
9117 
9118 
9119   if [ -z "${LS+x}" ]; then
9120     # The variable is not set by user, try to locate tool using the code snippet
9121     for ac_prog in ls
9122 do
9123   # Extract the first word of "$ac_prog", so it can be a program name with args.
9124 set dummy $ac_prog; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if ${ac_cv_path_LS+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   case $LS in
9131   [\\/]* | ?:[\\/]*)
9132   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9133   ;;
9134   *)
9135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9137 do
9138   IFS=$as_save_IFS
9139   test -z "$as_dir" && as_dir=.
9140     for ac_exec_ext in '' $ac_executable_extensions; do
9141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144     break 2
9145   fi
9146 done
9147   done
9148 IFS=$as_save_IFS
9149 
9150   ;;
9151 esac
9152 fi
9153 LS=$ac_cv_path_LS
9154 if test -n "$LS"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9156 $as_echo "$LS" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161 
9162 
9163   test -n "$LS" && break
9164 done
9165 
9166   else
9167     # The variable is set, but is it from the command line or the environment?
9168 
9169     # Try to remove the string !LS! from our list.
9170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9172       # If it failed, the variable was not from the command line. Ignore it,
9173       # but warn the user (except for BASH, which is always set by the calling BASH).
9174       if test "xLS" != xBASH; then
9175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9176 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9177       fi
9178       # Try to locate tool using the code snippet
9179       for ac_prog in ls
9180 do
9181   # Extract the first word of "$ac_prog", so it can be a program name with args.
9182 set dummy $ac_prog; ac_word=$2
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184 $as_echo_n "checking for $ac_word... " >&6; }
9185 if ${ac_cv_path_LS+:} false; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   case $LS in
9189   [\\/]* | ?:[\\/]*)
9190   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9191   ;;
9192   *)
9193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 for as_dir in $PATH
9195 do
9196   IFS=$as_save_IFS
9197   test -z "$as_dir" && as_dir=.
9198     for ac_exec_ext in '' $ac_executable_extensions; do
9199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202     break 2
9203   fi
9204 done
9205   done
9206 IFS=$as_save_IFS
9207 
9208   ;;
9209 esac
9210 fi
9211 LS=$ac_cv_path_LS
9212 if test -n "$LS"; then
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9214 $as_echo "$LS" >&6; }
9215 else
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9218 fi
9219 
9220 
9221   test -n "$LS" && break
9222 done
9223 
9224     else
9225       # If it succeeded, then it was overridden by the user. We will use it
9226       # for the tool.
9227 
9228       # First remove it from the list of overridden variables, so we can test
9229       # for unknown variables in the end.
9230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9231 
9232       # Check if we try to supply an empty value
9233       if test "x$LS" = x; then
9234         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9235 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9237 $as_echo_n "checking for LS... " >&6; }
9238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9239 $as_echo "disabled" >&6; }
9240       else
9241         # Check if the provided tool contains a complete path.
9242         tool_specified="$LS"
9243         tool_basename="${tool_specified##*/}"
9244         if test "x$tool_basename" = "x$tool_specified"; then
9245           # A command without a complete path is provided, search $PATH.
9246           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9247 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9248           # Extract the first word of "$tool_basename", so it can be a program name with args.
9249 set dummy $tool_basename; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_path_LS+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   case $LS in
9256   [\\/]* | ?:[\\/]*)
9257   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9258   ;;
9259   *)
9260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263   IFS=$as_save_IFS
9264   test -z "$as_dir" && as_dir=.
9265     for ac_exec_ext in '' $ac_executable_extensions; do
9266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269     break 2
9270   fi
9271 done
9272   done
9273 IFS=$as_save_IFS
9274 
9275   ;;
9276 esac
9277 fi
9278 LS=$ac_cv_path_LS
9279 if test -n "$LS"; then
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9281 $as_echo "$LS" >&6; }
9282 else
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286 
9287 
9288           if test "x$LS" = x; then
9289             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9290           fi
9291         else
9292           # Otherwise we believe it is a complete path. Use it as it is.
9293           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9294 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9295           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9296 $as_echo_n "checking for LS... " >&6; }
9297           if test ! -x "$tool_specified"; then
9298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9299 $as_echo "not found" >&6; }
9300             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9301           fi
9302           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9303 $as_echo "$tool_specified" >&6; }
9304         fi
9305       fi
9306     fi
9307 
9308   fi
9309 
9310 
9311 
9312   if test "x$LS" = x; then
9313     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9314   fi
9315 
9316 
9317 
9318 
9319 
9320   # Publish this variable in the help.
9321 
9322 
9323   if [ -z "${MKDIR+x}" ]; then
9324     # The variable is not set by user, try to locate tool using the code snippet
9325     for ac_prog in mkdir
9326 do
9327   # Extract the first word of "$ac_prog", so it can be a program name with args.
9328 set dummy $ac_prog; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_MKDIR+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   case $MKDIR in
9335   [\\/]* | ?:[\\/]*)
9336   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9337   ;;
9338   *)
9339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342   IFS=$as_save_IFS
9343   test -z "$as_dir" && as_dir=.
9344     for ac_exec_ext in '' $ac_executable_extensions; do
9345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348     break 2
9349   fi
9350 done
9351   done
9352 IFS=$as_save_IFS
9353 
9354   ;;
9355 esac
9356 fi
9357 MKDIR=$ac_cv_path_MKDIR
9358 if test -n "$MKDIR"; then
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9360 $as_echo "$MKDIR" >&6; }
9361 else
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9364 fi
9365 
9366 
9367   test -n "$MKDIR" && break
9368 done
9369 
9370   else
9371     # The variable is set, but is it from the command line or the environment?
9372 
9373     # Try to remove the string !MKDIR! from our list.
9374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9376       # If it failed, the variable was not from the command line. Ignore it,
9377       # but warn the user (except for BASH, which is always set by the calling BASH).
9378       if test "xMKDIR" != xBASH; then
9379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9380 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9381       fi
9382       # Try to locate tool using the code snippet
9383       for ac_prog in mkdir
9384 do
9385   # Extract the first word of "$ac_prog", so it can be a program name with args.
9386 set dummy $ac_prog; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_path_MKDIR+:} false; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   case $MKDIR in
9393   [\\/]* | ?:[\\/]*)
9394   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9395   ;;
9396   *)
9397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400   IFS=$as_save_IFS
9401   test -z "$as_dir" && as_dir=.
9402     for ac_exec_ext in '' $ac_executable_extensions; do
9403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406     break 2
9407   fi
9408 done
9409   done
9410 IFS=$as_save_IFS
9411 
9412   ;;
9413 esac
9414 fi
9415 MKDIR=$ac_cv_path_MKDIR
9416 if test -n "$MKDIR"; then
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9418 $as_echo "$MKDIR" >&6; }
9419 else
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9422 fi
9423 
9424 
9425   test -n "$MKDIR" && break
9426 done
9427 
9428     else
9429       # If it succeeded, then it was overridden by the user. We will use it
9430       # for the tool.
9431 
9432       # First remove it from the list of overridden variables, so we can test
9433       # for unknown variables in the end.
9434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9435 
9436       # Check if we try to supply an empty value
9437       if test "x$MKDIR" = x; then
9438         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9439 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9441 $as_echo_n "checking for MKDIR... " >&6; }
9442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9443 $as_echo "disabled" >&6; }
9444       else
9445         # Check if the provided tool contains a complete path.
9446         tool_specified="$MKDIR"
9447         tool_basename="${tool_specified##*/}"
9448         if test "x$tool_basename" = "x$tool_specified"; then
9449           # A command without a complete path is provided, search $PATH.
9450           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9451 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9452           # Extract the first word of "$tool_basename", so it can be a program name with args.
9453 set dummy $tool_basename; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_path_MKDIR+:} false; then :
9457   $as_echo_n "(cached) " >&6
9458 else
9459   case $MKDIR in
9460   [\\/]* | ?:[\\/]*)
9461   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9462   ;;
9463   *)
9464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467   IFS=$as_save_IFS
9468   test -z "$as_dir" && as_dir=.
9469     for ac_exec_ext in '' $ac_executable_extensions; do
9470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473     break 2
9474   fi
9475 done
9476   done
9477 IFS=$as_save_IFS
9478 
9479   ;;
9480 esac
9481 fi
9482 MKDIR=$ac_cv_path_MKDIR
9483 if test -n "$MKDIR"; then
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9485 $as_echo "$MKDIR" >&6; }
9486 else
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9489 fi
9490 
9491 
9492           if test "x$MKDIR" = x; then
9493             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9494           fi
9495         else
9496           # Otherwise we believe it is a complete path. Use it as it is.
9497           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9498 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9499           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9500 $as_echo_n "checking for MKDIR... " >&6; }
9501           if test ! -x "$tool_specified"; then
9502             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9503 $as_echo "not found" >&6; }
9504             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9505           fi
9506           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9507 $as_echo "$tool_specified" >&6; }
9508         fi
9509       fi
9510     fi
9511 
9512   fi
9513 
9514 
9515 
9516   if test "x$MKDIR" = x; then
9517     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9518   fi
9519 
9520 
9521 
9522 
9523 
9524   # Publish this variable in the help.
9525 
9526 
9527   if [ -z "${MKTEMP+x}" ]; then
9528     # The variable is not set by user, try to locate tool using the code snippet
9529     for ac_prog in mktemp
9530 do
9531   # Extract the first word of "$ac_prog", so it can be a program name with args.
9532 set dummy $ac_prog; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_MKTEMP+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   case $MKTEMP in
9539   [\\/]* | ?:[\\/]*)
9540   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9541   ;;
9542   *)
9543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9545 do
9546   IFS=$as_save_IFS
9547   test -z "$as_dir" && as_dir=.
9548     for ac_exec_ext in '' $ac_executable_extensions; do
9549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552     break 2
9553   fi
9554 done
9555   done
9556 IFS=$as_save_IFS
9557 
9558   ;;
9559 esac
9560 fi
9561 MKTEMP=$ac_cv_path_MKTEMP
9562 if test -n "$MKTEMP"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9564 $as_echo "$MKTEMP" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569 
9570 
9571   test -n "$MKTEMP" && break
9572 done
9573 
9574   else
9575     # The variable is set, but is it from the command line or the environment?
9576 
9577     # Try to remove the string !MKTEMP! from our list.
9578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9580       # If it failed, the variable was not from the command line. Ignore it,
9581       # but warn the user (except for BASH, which is always set by the calling BASH).
9582       if test "xMKTEMP" != xBASH; then
9583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9584 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9585       fi
9586       # Try to locate tool using the code snippet
9587       for ac_prog in mktemp
9588 do
9589   # Extract the first word of "$ac_prog", so it can be a program name with args.
9590 set dummy $ac_prog; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_MKTEMP+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   case $MKTEMP in
9597   [\\/]* | ?:[\\/]*)
9598   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9599   ;;
9600   *)
9601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615 
9616   ;;
9617 esac
9618 fi
9619 MKTEMP=$ac_cv_path_MKTEMP
9620 if test -n "$MKTEMP"; then
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9622 $as_echo "$MKTEMP" >&6; }
9623 else
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627 
9628 
9629   test -n "$MKTEMP" && break
9630 done
9631 
9632     else
9633       # If it succeeded, then it was overridden by the user. We will use it
9634       # for the tool.
9635 
9636       # First remove it from the list of overridden variables, so we can test
9637       # for unknown variables in the end.
9638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9639 
9640       # Check if we try to supply an empty value
9641       if test "x$MKTEMP" = x; then
9642         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9643 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9645 $as_echo_n "checking for MKTEMP... " >&6; }
9646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9647 $as_echo "disabled" >&6; }
9648       else
9649         # Check if the provided tool contains a complete path.
9650         tool_specified="$MKTEMP"
9651         tool_basename="${tool_specified##*/}"
9652         if test "x$tool_basename" = "x$tool_specified"; then
9653           # A command without a complete path is provided, search $PATH.
9654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9655 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9656           # Extract the first word of "$tool_basename", so it can be a program name with args.
9657 set dummy $tool_basename; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_MKTEMP+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   case $MKTEMP in
9664   [\\/]* | ?:[\\/]*)
9665   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9666   ;;
9667   *)
9668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671   IFS=$as_save_IFS
9672   test -z "$as_dir" && as_dir=.
9673     for ac_exec_ext in '' $ac_executable_extensions; do
9674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680   done
9681 IFS=$as_save_IFS
9682 
9683   ;;
9684 esac
9685 fi
9686 MKTEMP=$ac_cv_path_MKTEMP
9687 if test -n "$MKTEMP"; then
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9689 $as_echo "$MKTEMP" >&6; }
9690 else
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694 
9695 
9696           if test "x$MKTEMP" = x; then
9697             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9698           fi
9699         else
9700           # Otherwise we believe it is a complete path. Use it as it is.
9701           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9702 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9704 $as_echo_n "checking for MKTEMP... " >&6; }
9705           if test ! -x "$tool_specified"; then
9706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9707 $as_echo "not found" >&6; }
9708             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9709           fi
9710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9711 $as_echo "$tool_specified" >&6; }
9712         fi
9713       fi
9714     fi
9715 
9716   fi
9717 
9718 
9719 
9720   if test "x$MKTEMP" = x; then
9721     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9722   fi
9723 
9724 
9725 
9726 
9727 
9728   # Publish this variable in the help.
9729 
9730 
9731   if [ -z "${MV+x}" ]; then
9732     # The variable is not set by user, try to locate tool using the code snippet
9733     for ac_prog in mv
9734 do
9735   # Extract the first word of "$ac_prog", so it can be a program name with args.
9736 set dummy $ac_prog; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_path_MV+:} false; then :
9740   $as_echo_n "(cached) " >&6
9741 else
9742   case $MV in
9743   [\\/]* | ?:[\\/]*)
9744   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9745   ;;
9746   *)
9747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in $PATH
9749 do
9750   IFS=$as_save_IFS
9751   test -z "$as_dir" && as_dir=.
9752     for ac_exec_ext in '' $ac_executable_extensions; do
9753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9754     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756     break 2
9757   fi
9758 done
9759   done
9760 IFS=$as_save_IFS
9761 
9762   ;;
9763 esac
9764 fi
9765 MV=$ac_cv_path_MV
9766 if test -n "$MV"; then
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9768 $as_echo "$MV" >&6; }
9769 else
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9772 fi
9773 
9774 
9775   test -n "$MV" && break
9776 done
9777 
9778   else
9779     # The variable is set, but is it from the command line or the environment?
9780 
9781     # Try to remove the string !MV! from our list.
9782     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9783     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9784       # If it failed, the variable was not from the command line. Ignore it,
9785       # but warn the user (except for BASH, which is always set by the calling BASH).
9786       if test "xMV" != xBASH; then
9787         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9788 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9789       fi
9790       # Try to locate tool using the code snippet
9791       for ac_prog in mv
9792 do
9793   # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_path_MV+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   case $MV in
9801   [\\/]* | ?:[\\/]*)
9802   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9803   ;;
9804   *)
9805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9807 do
9808   IFS=$as_save_IFS
9809   test -z "$as_dir" && as_dir=.
9810     for ac_exec_ext in '' $ac_executable_extensions; do
9811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814     break 2
9815   fi
9816 done
9817   done
9818 IFS=$as_save_IFS
9819 
9820   ;;
9821 esac
9822 fi
9823 MV=$ac_cv_path_MV
9824 if test -n "$MV"; then
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9826 $as_echo "$MV" >&6; }
9827 else
9828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9830 fi
9831 
9832 
9833   test -n "$MV" && break
9834 done
9835 
9836     else
9837       # If it succeeded, then it was overridden by the user. We will use it
9838       # for the tool.
9839 
9840       # First remove it from the list of overridden variables, so we can test
9841       # for unknown variables in the end.
9842       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9843 
9844       # Check if we try to supply an empty value
9845       if test "x$MV" = x; then
9846         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9847 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9849 $as_echo_n "checking for MV... " >&6; }
9850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9851 $as_echo "disabled" >&6; }
9852       else
9853         # Check if the provided tool contains a complete path.
9854         tool_specified="$MV"
9855         tool_basename="${tool_specified##*/}"
9856         if test "x$tool_basename" = "x$tool_specified"; then
9857           # A command without a complete path is provided, search $PATH.
9858           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9859 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9860           # Extract the first word of "$tool_basename", so it can be a program name with args.
9861 set dummy $tool_basename; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_path_MV+:} false; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   case $MV in
9868   [\\/]* | ?:[\\/]*)
9869   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9870   ;;
9871   *)
9872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9874 do
9875   IFS=$as_save_IFS
9876   test -z "$as_dir" && as_dir=.
9877     for ac_exec_ext in '' $ac_executable_extensions; do
9878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881     break 2
9882   fi
9883 done
9884   done
9885 IFS=$as_save_IFS
9886 
9887   ;;
9888 esac
9889 fi
9890 MV=$ac_cv_path_MV
9891 if test -n "$MV"; then
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9893 $as_echo "$MV" >&6; }
9894 else
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 fi
9898 
9899 
9900           if test "x$MV" = x; then
9901             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9902           fi
9903         else
9904           # Otherwise we believe it is a complete path. Use it as it is.
9905           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9906 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9907           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9908 $as_echo_n "checking for MV... " >&6; }
9909           if test ! -x "$tool_specified"; then
9910             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9911 $as_echo "not found" >&6; }
9912             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9913           fi
9914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9915 $as_echo "$tool_specified" >&6; }
9916         fi
9917       fi
9918     fi
9919 
9920   fi
9921 
9922 
9923 
9924   if test "x$MV" = x; then
9925     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9926   fi
9927 
9928 
9929 
9930 
9931 
9932   # Publish this variable in the help.
9933 
9934 
9935   if [ -z "${NAWK+x}" ]; then
9936     # The variable is not set by user, try to locate tool using the code snippet
9937     for ac_prog in nawk gawk awk
9938 do
9939   # Extract the first word of "$ac_prog", so it can be a program name with args.
9940 set dummy $ac_prog; ac_word=$2
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if ${ac_cv_path_NAWK+:} false; then :
9944   $as_echo_n "(cached) " >&6
9945 else
9946   case $NAWK in
9947   [\\/]* | ?:[\\/]*)
9948   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9949   ;;
9950   *)
9951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954   IFS=$as_save_IFS
9955   test -z "$as_dir" && as_dir=.
9956     for ac_exec_ext in '' $ac_executable_extensions; do
9957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9958     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960     break 2
9961   fi
9962 done
9963   done
9964 IFS=$as_save_IFS
9965 
9966   ;;
9967 esac
9968 fi
9969 NAWK=$ac_cv_path_NAWK
9970 if test -n "$NAWK"; then
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9972 $as_echo "$NAWK" >&6; }
9973 else
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976 fi
9977 
9978 
9979   test -n "$NAWK" && break
9980 done
9981 
9982   else
9983     # The variable is set, but is it from the command line or the environment?
9984 
9985     # Try to remove the string !NAWK! from our list.
9986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9988       # If it failed, the variable was not from the command line. Ignore it,
9989       # but warn the user (except for BASH, which is always set by the calling BASH).
9990       if test "xNAWK" != xBASH; then
9991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9992 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9993       fi
9994       # Try to locate tool using the code snippet
9995       for ac_prog in nawk gawk awk
9996 do
9997   # Extract the first word of "$ac_prog", so it can be a program name with args.
9998 set dummy $ac_prog; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if ${ac_cv_path_NAWK+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   case $NAWK in
10005   [\\/]* | ?:[\\/]*)
10006   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10007   ;;
10008   *)
10009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10011 do
10012   IFS=$as_save_IFS
10013   test -z "$as_dir" && as_dir=.
10014     for ac_exec_ext in '' $ac_executable_extensions; do
10015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10016     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018     break 2
10019   fi
10020 done
10021   done
10022 IFS=$as_save_IFS
10023 
10024   ;;
10025 esac
10026 fi
10027 NAWK=$ac_cv_path_NAWK
10028 if test -n "$NAWK"; then
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10030 $as_echo "$NAWK" >&6; }
10031 else
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 fi
10035 
10036 
10037   test -n "$NAWK" && break
10038 done
10039 
10040     else
10041       # If it succeeded, then it was overridden by the user. We will use it
10042       # for the tool.
10043 
10044       # First remove it from the list of overridden variables, so we can test
10045       # for unknown variables in the end.
10046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10047 
10048       # Check if we try to supply an empty value
10049       if test "x$NAWK" = x; then
10050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10051 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10053 $as_echo_n "checking for NAWK... " >&6; }
10054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10055 $as_echo "disabled" >&6; }
10056       else
10057         # Check if the provided tool contains a complete path.
10058         tool_specified="$NAWK"
10059         tool_basename="${tool_specified##*/}"
10060         if test "x$tool_basename" = "x$tool_specified"; then
10061           # A command without a complete path is provided, search $PATH.
10062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10063 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10064           # Extract the first word of "$tool_basename", so it can be a program name with args.
10065 set dummy $tool_basename; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_path_NAWK+:} false; then :
10069   $as_echo_n "(cached) " >&6
10070 else
10071   case $NAWK in
10072   [\\/]* | ?:[\\/]*)
10073   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10074   ;;
10075   *)
10076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079   IFS=$as_save_IFS
10080   test -z "$as_dir" && as_dir=.
10081     for ac_exec_ext in '' $ac_executable_extensions; do
10082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085     break 2
10086   fi
10087 done
10088   done
10089 IFS=$as_save_IFS
10090 
10091   ;;
10092 esac
10093 fi
10094 NAWK=$ac_cv_path_NAWK
10095 if test -n "$NAWK"; then
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10097 $as_echo "$NAWK" >&6; }
10098 else
10099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10101 fi
10102 
10103 
10104           if test "x$NAWK" = x; then
10105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10106           fi
10107         else
10108           # Otherwise we believe it is a complete path. Use it as it is.
10109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10110 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10112 $as_echo_n "checking for NAWK... " >&6; }
10113           if test ! -x "$tool_specified"; then
10114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10115 $as_echo "not found" >&6; }
10116             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10117           fi
10118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10119 $as_echo "$tool_specified" >&6; }
10120         fi
10121       fi
10122     fi
10123 
10124   fi
10125 
10126 
10127 
10128   if test "x$NAWK" = x; then
10129     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10130   fi
10131 
10132 
10133 
10134 
10135 
10136   # Publish this variable in the help.
10137 
10138 
10139   if [ -z "${PRINTF+x}" ]; then
10140     # The variable is not set by user, try to locate tool using the code snippet
10141     for ac_prog in printf
10142 do
10143   # Extract the first word of "$ac_prog", so it can be a program name with args.
10144 set dummy $ac_prog; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_PRINTF+:} false; then :
10148   $as_echo_n "(cached) " >&6
10149 else
10150   case $PRINTF in
10151   [\\/]* | ?:[\\/]*)
10152   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10153   ;;
10154   *)
10155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158   IFS=$as_save_IFS
10159   test -z "$as_dir" && as_dir=.
10160     for ac_exec_ext in '' $ac_executable_extensions; do
10161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10162     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164     break 2
10165   fi
10166 done
10167   done
10168 IFS=$as_save_IFS
10169 
10170   ;;
10171 esac
10172 fi
10173 PRINTF=$ac_cv_path_PRINTF
10174 if test -n "$PRINTF"; then
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10176 $as_echo "$PRINTF" >&6; }
10177 else
10178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180 fi
10181 
10182 
10183   test -n "$PRINTF" && break
10184 done
10185 
10186   else
10187     # The variable is set, but is it from the command line or the environment?
10188 
10189     # Try to remove the string !PRINTF! from our list.
10190     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10191     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10192       # If it failed, the variable was not from the command line. Ignore it,
10193       # but warn the user (except for BASH, which is always set by the calling BASH).
10194       if test "xPRINTF" != xBASH; then
10195         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10196 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10197       fi
10198       # Try to locate tool using the code snippet
10199       for ac_prog in printf
10200 do
10201   # Extract the first word of "$ac_prog", so it can be a program name with args.
10202 set dummy $ac_prog; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_path_PRINTF+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   case $PRINTF in
10209   [\\/]* | ?:[\\/]*)
10210   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10211   ;;
10212   *)
10213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10215 do
10216   IFS=$as_save_IFS
10217   test -z "$as_dir" && as_dir=.
10218     for ac_exec_ext in '' $ac_executable_extensions; do
10219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222     break 2
10223   fi
10224 done
10225   done
10226 IFS=$as_save_IFS
10227 
10228   ;;
10229 esac
10230 fi
10231 PRINTF=$ac_cv_path_PRINTF
10232 if test -n "$PRINTF"; then
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10234 $as_echo "$PRINTF" >&6; }
10235 else
10236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10238 fi
10239 
10240 
10241   test -n "$PRINTF" && break
10242 done
10243 
10244     else
10245       # If it succeeded, then it was overridden by the user. We will use it
10246       # for the tool.
10247 
10248       # First remove it from the list of overridden variables, so we can test
10249       # for unknown variables in the end.
10250       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10251 
10252       # Check if we try to supply an empty value
10253       if test "x$PRINTF" = x; then
10254         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10255 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10257 $as_echo_n "checking for PRINTF... " >&6; }
10258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10259 $as_echo "disabled" >&6; }
10260       else
10261         # Check if the provided tool contains a complete path.
10262         tool_specified="$PRINTF"
10263         tool_basename="${tool_specified##*/}"
10264         if test "x$tool_basename" = "x$tool_specified"; then
10265           # A command without a complete path is provided, search $PATH.
10266           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10267 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10268           # Extract the first word of "$tool_basename", so it can be a program name with args.
10269 set dummy $tool_basename; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_path_PRINTF+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   case $PRINTF in
10276   [\\/]* | ?:[\\/]*)
10277   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10278   ;;
10279   *)
10280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10282 do
10283   IFS=$as_save_IFS
10284   test -z "$as_dir" && as_dir=.
10285     for ac_exec_ext in '' $ac_executable_extensions; do
10286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289     break 2
10290   fi
10291 done
10292   done
10293 IFS=$as_save_IFS
10294 
10295   ;;
10296 esac
10297 fi
10298 PRINTF=$ac_cv_path_PRINTF
10299 if test -n "$PRINTF"; then
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10301 $as_echo "$PRINTF" >&6; }
10302 else
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10305 fi
10306 
10307 
10308           if test "x$PRINTF" = x; then
10309             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10310           fi
10311         else
10312           # Otherwise we believe it is a complete path. Use it as it is.
10313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10314 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10315           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10316 $as_echo_n "checking for PRINTF... " >&6; }
10317           if test ! -x "$tool_specified"; then
10318             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10319 $as_echo "not found" >&6; }
10320             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10321           fi
10322           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10323 $as_echo "$tool_specified" >&6; }
10324         fi
10325       fi
10326     fi
10327 
10328   fi
10329 
10330 
10331 
10332   if test "x$PRINTF" = x; then
10333     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10334   fi
10335 
10336 
10337 
10338 
10339 
10340   # Publish this variable in the help.
10341 
10342 
10343   if [ -z "${RM+x}" ]; then
10344     # The variable is not set by user, try to locate tool using the code snippet
10345     for ac_prog in rm
10346 do
10347   # Extract the first word of "$ac_prog", so it can be a program name with args.
10348 set dummy $ac_prog; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_path_RM+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   case $RM in
10355   [\\/]* | ?:[\\/]*)
10356   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10357   ;;
10358   *)
10359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10361 do
10362   IFS=$as_save_IFS
10363   test -z "$as_dir" && as_dir=.
10364     for ac_exec_ext in '' $ac_executable_extensions; do
10365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10366     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368     break 2
10369   fi
10370 done
10371   done
10372 IFS=$as_save_IFS
10373 
10374   ;;
10375 esac
10376 fi
10377 RM=$ac_cv_path_RM
10378 if test -n "$RM"; then
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10380 $as_echo "$RM" >&6; }
10381 else
10382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385 
10386 
10387   test -n "$RM" && break
10388 done
10389 
10390   else
10391     # The variable is set, but is it from the command line or the environment?
10392 
10393     # Try to remove the string !RM! from our list.
10394     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10395     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10396       # If it failed, the variable was not from the command line. Ignore it,
10397       # but warn the user (except for BASH, which is always set by the calling BASH).
10398       if test "xRM" != xBASH; then
10399         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10400 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10401       fi
10402       # Try to locate tool using the code snippet
10403       for ac_prog in rm
10404 do
10405   # Extract the first word of "$ac_prog", so it can be a program name with args.
10406 set dummy $ac_prog; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 $as_echo_n "checking for $ac_word... " >&6; }
10409 if ${ac_cv_path_RM+:} false; then :
10410   $as_echo_n "(cached) " >&6
10411 else
10412   case $RM in
10413   [\\/]* | ?:[\\/]*)
10414   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10415   ;;
10416   *)
10417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10419 do
10420   IFS=$as_save_IFS
10421   test -z "$as_dir" && as_dir=.
10422     for ac_exec_ext in '' $ac_executable_extensions; do
10423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426     break 2
10427   fi
10428 done
10429   done
10430 IFS=$as_save_IFS
10431 
10432   ;;
10433 esac
10434 fi
10435 RM=$ac_cv_path_RM
10436 if test -n "$RM"; then
10437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10438 $as_echo "$RM" >&6; }
10439 else
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 fi
10443 
10444 
10445   test -n "$RM" && break
10446 done
10447 
10448     else
10449       # If it succeeded, then it was overridden by the user. We will use it
10450       # for the tool.
10451 
10452       # First remove it from the list of overridden variables, so we can test
10453       # for unknown variables in the end.
10454       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10455 
10456       # Check if we try to supply an empty value
10457       if test "x$RM" = x; then
10458         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10459 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10461 $as_echo_n "checking for RM... " >&6; }
10462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10463 $as_echo "disabled" >&6; }
10464       else
10465         # Check if the provided tool contains a complete path.
10466         tool_specified="$RM"
10467         tool_basename="${tool_specified##*/}"
10468         if test "x$tool_basename" = "x$tool_specified"; then
10469           # A command without a complete path is provided, search $PATH.
10470           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10471 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10472           # Extract the first word of "$tool_basename", so it can be a program name with args.
10473 set dummy $tool_basename; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_path_RM+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   case $RM in
10480   [\\/]* | ?:[\\/]*)
10481   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10482   ;;
10483   *)
10484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10486 do
10487   IFS=$as_save_IFS
10488   test -z "$as_dir" && as_dir=.
10489     for ac_exec_ext in '' $ac_executable_extensions; do
10490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493     break 2
10494   fi
10495 done
10496   done
10497 IFS=$as_save_IFS
10498 
10499   ;;
10500 esac
10501 fi
10502 RM=$ac_cv_path_RM
10503 if test -n "$RM"; then
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10505 $as_echo "$RM" >&6; }
10506 else
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510 
10511 
10512           if test "x$RM" = x; then
10513             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10514           fi
10515         else
10516           # Otherwise we believe it is a complete path. Use it as it is.
10517           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10518 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10519           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10520 $as_echo_n "checking for RM... " >&6; }
10521           if test ! -x "$tool_specified"; then
10522             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10523 $as_echo "not found" >&6; }
10524             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10525           fi
10526           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10527 $as_echo "$tool_specified" >&6; }
10528         fi
10529       fi
10530     fi
10531 
10532   fi
10533 
10534 
10535 
10536   if test "x$RM" = x; then
10537     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10538   fi
10539 
10540 
10541 
10542 
10543 
10544   # Publish this variable in the help.
10545 
10546 
10547   if [ -z "${RMDIR+x}" ]; then
10548     # The variable is not set by user, try to locate tool using the code snippet
10549     for ac_prog in rmdir
10550 do
10551   # Extract the first word of "$ac_prog", so it can be a program name with args.
10552 set dummy $ac_prog; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_path_RMDIR+:} false; then :
10556   $as_echo_n "(cached) " >&6
10557 else
10558   case $RMDIR in
10559   [\\/]* | ?:[\\/]*)
10560   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10561   ;;
10562   *)
10563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566   IFS=$as_save_IFS
10567   test -z "$as_dir" && as_dir=.
10568     for ac_exec_ext in '' $ac_executable_extensions; do
10569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572     break 2
10573   fi
10574 done
10575   done
10576 IFS=$as_save_IFS
10577 
10578   ;;
10579 esac
10580 fi
10581 RMDIR=$ac_cv_path_RMDIR
10582 if test -n "$RMDIR"; then
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10584 $as_echo "$RMDIR" >&6; }
10585 else
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10588 fi
10589 
10590 
10591   test -n "$RMDIR" && break
10592 done
10593 
10594   else
10595     # The variable is set, but is it from the command line or the environment?
10596 
10597     # Try to remove the string !RMDIR! from our list.
10598     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10599     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10600       # If it failed, the variable was not from the command line. Ignore it,
10601       # but warn the user (except for BASH, which is always set by the calling BASH).
10602       if test "xRMDIR" != xBASH; then
10603         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10604 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10605       fi
10606       # Try to locate tool using the code snippet
10607       for ac_prog in rmdir
10608 do
10609   # Extract the first word of "$ac_prog", so it can be a program name with args.
10610 set dummy $ac_prog; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if ${ac_cv_path_RMDIR+:} false; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   case $RMDIR in
10617   [\\/]* | ?:[\\/]*)
10618   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10619   ;;
10620   *)
10621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10623 do
10624   IFS=$as_save_IFS
10625   test -z "$as_dir" && as_dir=.
10626     for ac_exec_ext in '' $ac_executable_extensions; do
10627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630     break 2
10631   fi
10632 done
10633   done
10634 IFS=$as_save_IFS
10635 
10636   ;;
10637 esac
10638 fi
10639 RMDIR=$ac_cv_path_RMDIR
10640 if test -n "$RMDIR"; then
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10642 $as_echo "$RMDIR" >&6; }
10643 else
10644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647 
10648 
10649   test -n "$RMDIR" && break
10650 done
10651 
10652     else
10653       # If it succeeded, then it was overridden by the user. We will use it
10654       # for the tool.
10655 
10656       # First remove it from the list of overridden variables, so we can test
10657       # for unknown variables in the end.
10658       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10659 
10660       # Check if we try to supply an empty value
10661       if test "x$RMDIR" = x; then
10662         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10663 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10665 $as_echo_n "checking for RMDIR... " >&6; }
10666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10667 $as_echo "disabled" >&6; }
10668       else
10669         # Check if the provided tool contains a complete path.
10670         tool_specified="$RMDIR"
10671         tool_basename="${tool_specified##*/}"
10672         if test "x$tool_basename" = "x$tool_specified"; then
10673           # A command without a complete path is provided, search $PATH.
10674           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10675 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10676           # Extract the first word of "$tool_basename", so it can be a program name with args.
10677 set dummy $tool_basename; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if ${ac_cv_path_RMDIR+:} false; then :
10681   $as_echo_n "(cached) " >&6
10682 else
10683   case $RMDIR in
10684   [\\/]* | ?:[\\/]*)
10685   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10686   ;;
10687   *)
10688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10690 do
10691   IFS=$as_save_IFS
10692   test -z "$as_dir" && as_dir=.
10693     for ac_exec_ext in '' $ac_executable_extensions; do
10694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697     break 2
10698   fi
10699 done
10700   done
10701 IFS=$as_save_IFS
10702 
10703   ;;
10704 esac
10705 fi
10706 RMDIR=$ac_cv_path_RMDIR
10707 if test -n "$RMDIR"; then
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10709 $as_echo "$RMDIR" >&6; }
10710 else
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10713 fi
10714 
10715 
10716           if test "x$RMDIR" = x; then
10717             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10718           fi
10719         else
10720           # Otherwise we believe it is a complete path. Use it as it is.
10721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10722 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10724 $as_echo_n "checking for RMDIR... " >&6; }
10725           if test ! -x "$tool_specified"; then
10726             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10727 $as_echo "not found" >&6; }
10728             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10729           fi
10730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10731 $as_echo "$tool_specified" >&6; }
10732         fi
10733       fi
10734     fi
10735 
10736   fi
10737 
10738 
10739 
10740   if test "x$RMDIR" = x; then
10741     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10742   fi
10743 
10744 
10745 
10746 
10747 
10748   # Publish this variable in the help.
10749 
10750 
10751   if [ -z "${SH+x}" ]; then
10752     # The variable is not set by user, try to locate tool using the code snippet
10753     for ac_prog in sh
10754 do
10755   # Extract the first word of "$ac_prog", so it can be a program name with args.
10756 set dummy $ac_prog; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_path_SH+:} false; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   case $SH in
10763   [\\/]* | ?:[\\/]*)
10764   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10765   ;;
10766   *)
10767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10769 do
10770   IFS=$as_save_IFS
10771   test -z "$as_dir" && as_dir=.
10772     for ac_exec_ext in '' $ac_executable_extensions; do
10773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776     break 2
10777   fi
10778 done
10779   done
10780 IFS=$as_save_IFS
10781 
10782   ;;
10783 esac
10784 fi
10785 SH=$ac_cv_path_SH
10786 if test -n "$SH"; then
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10788 $as_echo "$SH" >&6; }
10789 else
10790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10792 fi
10793 
10794 
10795   test -n "$SH" && break
10796 done
10797 
10798   else
10799     # The variable is set, but is it from the command line or the environment?
10800 
10801     # Try to remove the string !SH! from our list.
10802     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10803     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10804       # If it failed, the variable was not from the command line. Ignore it,
10805       # but warn the user (except for BASH, which is always set by the calling BASH).
10806       if test "xSH" != xBASH; then
10807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10808 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10809       fi
10810       # Try to locate tool using the code snippet
10811       for ac_prog in sh
10812 do
10813   # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if ${ac_cv_path_SH+:} false; then :
10818   $as_echo_n "(cached) " >&6
10819 else
10820   case $SH in
10821   [\\/]* | ?:[\\/]*)
10822   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10823   ;;
10824   *)
10825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10827 do
10828   IFS=$as_save_IFS
10829   test -z "$as_dir" && as_dir=.
10830     for ac_exec_ext in '' $ac_executable_extensions; do
10831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10832     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834     break 2
10835   fi
10836 done
10837   done
10838 IFS=$as_save_IFS
10839 
10840   ;;
10841 esac
10842 fi
10843 SH=$ac_cv_path_SH
10844 if test -n "$SH"; then
10845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10846 $as_echo "$SH" >&6; }
10847 else
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10850 fi
10851 
10852 
10853   test -n "$SH" && break
10854 done
10855 
10856     else
10857       # If it succeeded, then it was overridden by the user. We will use it
10858       # for the tool.
10859 
10860       # First remove it from the list of overridden variables, so we can test
10861       # for unknown variables in the end.
10862       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10863 
10864       # Check if we try to supply an empty value
10865       if test "x$SH" = x; then
10866         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10867 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10869 $as_echo_n "checking for SH... " >&6; }
10870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10871 $as_echo "disabled" >&6; }
10872       else
10873         # Check if the provided tool contains a complete path.
10874         tool_specified="$SH"
10875         tool_basename="${tool_specified##*/}"
10876         if test "x$tool_basename" = "x$tool_specified"; then
10877           # A command without a complete path is provided, search $PATH.
10878           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10879 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10880           # Extract the first word of "$tool_basename", so it can be a program name with args.
10881 set dummy $tool_basename; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if ${ac_cv_path_SH+:} false; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887   case $SH in
10888   [\\/]* | ?:[\\/]*)
10889   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10890   ;;
10891   *)
10892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $PATH
10894 do
10895   IFS=$as_save_IFS
10896   test -z "$as_dir" && as_dir=.
10897     for ac_exec_ext in '' $ac_executable_extensions; do
10898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10899     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901     break 2
10902   fi
10903 done
10904   done
10905 IFS=$as_save_IFS
10906 
10907   ;;
10908 esac
10909 fi
10910 SH=$ac_cv_path_SH
10911 if test -n "$SH"; then
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10913 $as_echo "$SH" >&6; }
10914 else
10915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918 
10919 
10920           if test "x$SH" = x; then
10921             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10922           fi
10923         else
10924           # Otherwise we believe it is a complete path. Use it as it is.
10925           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10926 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10927           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10928 $as_echo_n "checking for SH... " >&6; }
10929           if test ! -x "$tool_specified"; then
10930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10931 $as_echo "not found" >&6; }
10932             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10933           fi
10934           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10935 $as_echo "$tool_specified" >&6; }
10936         fi
10937       fi
10938     fi
10939 
10940   fi
10941 
10942 
10943 
10944   if test "x$SH" = x; then
10945     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10946   fi
10947 
10948 
10949 
10950 
10951 
10952   # Publish this variable in the help.
10953 
10954 
10955   if [ -z "${SORT+x}" ]; then
10956     # The variable is not set by user, try to locate tool using the code snippet
10957     for ac_prog in sort
10958 do
10959   # Extract the first word of "$ac_prog", so it can be a program name with args.
10960 set dummy $ac_prog; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_SORT+:} false; then :
10964   $as_echo_n "(cached) " >&6
10965 else
10966   case $SORT in
10967   [\\/]* | ?:[\\/]*)
10968   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10969   ;;
10970   *)
10971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976     for ac_exec_ext in '' $ac_executable_extensions; do
10977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983   done
10984 IFS=$as_save_IFS
10985 
10986   ;;
10987 esac
10988 fi
10989 SORT=$ac_cv_path_SORT
10990 if test -n "$SORT"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10992 $as_echo "$SORT" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997 
10998 
10999   test -n "$SORT" && break
11000 done
11001 
11002   else
11003     # The variable is set, but is it from the command line or the environment?
11004 
11005     # Try to remove the string !SORT! from our list.
11006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11008       # If it failed, the variable was not from the command line. Ignore it,
11009       # but warn the user (except for BASH, which is always set by the calling BASH).
11010       if test "xSORT" != xBASH; then
11011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11012 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11013       fi
11014       # Try to locate tool using the code snippet
11015       for ac_prog in sort
11016 do
11017   # Extract the first word of "$ac_prog", so it can be a program name with args.
11018 set dummy $ac_prog; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_SORT+:} false; then :
11022   $as_echo_n "(cached) " >&6
11023 else
11024   case $SORT in
11025   [\\/]* | ?:[\\/]*)
11026   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11027   ;;
11028   *)
11029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043 
11044   ;;
11045 esac
11046 fi
11047 SORT=$ac_cv_path_SORT
11048 if test -n "$SORT"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11050 $as_echo "$SORT" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055 
11056 
11057   test -n "$SORT" && break
11058 done
11059 
11060     else
11061       # If it succeeded, then it was overridden by the user. We will use it
11062       # for the tool.
11063 
11064       # First remove it from the list of overridden variables, so we can test
11065       # for unknown variables in the end.
11066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11067 
11068       # Check if we try to supply an empty value
11069       if test "x$SORT" = x; then
11070         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11071 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11073 $as_echo_n "checking for SORT... " >&6; }
11074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11075 $as_echo "disabled" >&6; }
11076       else
11077         # Check if the provided tool contains a complete path.
11078         tool_specified="$SORT"
11079         tool_basename="${tool_specified##*/}"
11080         if test "x$tool_basename" = "x$tool_specified"; then
11081           # A command without a complete path is provided, search $PATH.
11082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11083 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11084           # Extract the first word of "$tool_basename", so it can be a program name with args.
11085 set dummy $tool_basename; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if ${ac_cv_path_SORT+:} false; then :
11089   $as_echo_n "(cached) " >&6
11090 else
11091   case $SORT in
11092   [\\/]* | ?:[\\/]*)
11093   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11094   ;;
11095   *)
11096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11098 do
11099   IFS=$as_save_IFS
11100   test -z "$as_dir" && as_dir=.
11101     for ac_exec_ext in '' $ac_executable_extensions; do
11102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105     break 2
11106   fi
11107 done
11108   done
11109 IFS=$as_save_IFS
11110 
11111   ;;
11112 esac
11113 fi
11114 SORT=$ac_cv_path_SORT
11115 if test -n "$SORT"; then
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11117 $as_echo "$SORT" >&6; }
11118 else
11119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11121 fi
11122 
11123 
11124           if test "x$SORT" = x; then
11125             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11126           fi
11127         else
11128           # Otherwise we believe it is a complete path. Use it as it is.
11129           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11130 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11132 $as_echo_n "checking for SORT... " >&6; }
11133           if test ! -x "$tool_specified"; then
11134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11135 $as_echo "not found" >&6; }
11136             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11137           fi
11138           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11139 $as_echo "$tool_specified" >&6; }
11140         fi
11141       fi
11142     fi
11143 
11144   fi
11145 
11146 
11147 
11148   if test "x$SORT" = x; then
11149     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11150   fi
11151 
11152 
11153 
11154 
11155 
11156   # Publish this variable in the help.
11157 
11158 
11159   if [ -z "${TAIL+x}" ]; then
11160     # The variable is not set by user, try to locate tool using the code snippet
11161     for ac_prog in tail
11162 do
11163   # Extract the first word of "$ac_prog", so it can be a program name with args.
11164 set dummy $ac_prog; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if ${ac_cv_path_TAIL+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   case $TAIL in
11171   [\\/]* | ?:[\\/]*)
11172   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11173   ;;
11174   *)
11175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178   IFS=$as_save_IFS
11179   test -z "$as_dir" && as_dir=.
11180     for ac_exec_ext in '' $ac_executable_extensions; do
11181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184     break 2
11185   fi
11186 done
11187   done
11188 IFS=$as_save_IFS
11189 
11190   ;;
11191 esac
11192 fi
11193 TAIL=$ac_cv_path_TAIL
11194 if test -n "$TAIL"; then
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11196 $as_echo "$TAIL" >&6; }
11197 else
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201 
11202 
11203   test -n "$TAIL" && break
11204 done
11205 
11206   else
11207     # The variable is set, but is it from the command line or the environment?
11208 
11209     # Try to remove the string !TAIL! from our list.
11210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11212       # If it failed, the variable was not from the command line. Ignore it,
11213       # but warn the user (except for BASH, which is always set by the calling BASH).
11214       if test "xTAIL" != xBASH; then
11215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11216 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11217       fi
11218       # Try to locate tool using the code snippet
11219       for ac_prog in tail
11220 do
11221   # Extract the first word of "$ac_prog", so it can be a program name with args.
11222 set dummy $ac_prog; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_path_TAIL+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   case $TAIL in
11229   [\\/]* | ?:[\\/]*)
11230   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11231   ;;
11232   *)
11233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236   IFS=$as_save_IFS
11237   test -z "$as_dir" && as_dir=.
11238     for ac_exec_ext in '' $ac_executable_extensions; do
11239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242     break 2
11243   fi
11244 done
11245   done
11246 IFS=$as_save_IFS
11247 
11248   ;;
11249 esac
11250 fi
11251 TAIL=$ac_cv_path_TAIL
11252 if test -n "$TAIL"; then
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11254 $as_echo "$TAIL" >&6; }
11255 else
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259 
11260 
11261   test -n "$TAIL" && break
11262 done
11263 
11264     else
11265       # If it succeeded, then it was overridden by the user. We will use it
11266       # for the tool.
11267 
11268       # First remove it from the list of overridden variables, so we can test
11269       # for unknown variables in the end.
11270       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11271 
11272       # Check if we try to supply an empty value
11273       if test "x$TAIL" = x; then
11274         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11275 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11277 $as_echo_n "checking for TAIL... " >&6; }
11278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11279 $as_echo "disabled" >&6; }
11280       else
11281         # Check if the provided tool contains a complete path.
11282         tool_specified="$TAIL"
11283         tool_basename="${tool_specified##*/}"
11284         if test "x$tool_basename" = "x$tool_specified"; then
11285           # A command without a complete path is provided, search $PATH.
11286           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11287 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11288           # Extract the first word of "$tool_basename", so it can be a program name with args.
11289 set dummy $tool_basename; ac_word=$2
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if ${ac_cv_path_TAIL+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   case $TAIL in
11296   [\\/]* | ?:[\\/]*)
11297   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11298   ;;
11299   *)
11300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314 
11315   ;;
11316 esac
11317 fi
11318 TAIL=$ac_cv_path_TAIL
11319 if test -n "$TAIL"; then
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11321 $as_echo "$TAIL" >&6; }
11322 else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 $as_echo "no" >&6; }
11325 fi
11326 
11327 
11328           if test "x$TAIL" = x; then
11329             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11330           fi
11331         else
11332           # Otherwise we believe it is a complete path. Use it as it is.
11333           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11334 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11335           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11336 $as_echo_n "checking for TAIL... " >&6; }
11337           if test ! -x "$tool_specified"; then
11338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11339 $as_echo "not found" >&6; }
11340             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11341           fi
11342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11343 $as_echo "$tool_specified" >&6; }
11344         fi
11345       fi
11346     fi
11347 
11348   fi
11349 
11350 
11351 
11352   if test "x$TAIL" = x; then
11353     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11354   fi
11355 
11356 
11357 
11358 
11359 
11360   # Publish this variable in the help.
11361 
11362 
11363   if [ -z "${TAR+x}" ]; then
11364     # The variable is not set by user, try to locate tool using the code snippet
11365     for ac_prog in gtar tar
11366 do
11367   # Extract the first word of "$ac_prog", so it can be a program name with args.
11368 set dummy $ac_prog; ac_word=$2
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370 $as_echo_n "checking for $ac_word... " >&6; }
11371 if ${ac_cv_path_TAR+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374   case $TAR in
11375   [\\/]* | ?:[\\/]*)
11376   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11377   ;;
11378   *)
11379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11381 do
11382   IFS=$as_save_IFS
11383   test -z "$as_dir" && as_dir=.
11384     for ac_exec_ext in '' $ac_executable_extensions; do
11385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11386     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388     break 2
11389   fi
11390 done
11391   done
11392 IFS=$as_save_IFS
11393 
11394   ;;
11395 esac
11396 fi
11397 TAR=$ac_cv_path_TAR
11398 if test -n "$TAR"; then
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11400 $as_echo "$TAR" >&6; }
11401 else
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405 
11406 
11407   test -n "$TAR" && break
11408 done
11409 
11410   else
11411     # The variable is set, but is it from the command line or the environment?
11412 
11413     # Try to remove the string !TAR! from our list.
11414     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11415     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11416       # If it failed, the variable was not from the command line. Ignore it,
11417       # but warn the user (except for BASH, which is always set by the calling BASH).
11418       if test "xTAR" != xBASH; then
11419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11420 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11421       fi
11422       # Try to locate tool using the code snippet
11423       for ac_prog in gtar tar
11424 do
11425   # Extract the first word of "$ac_prog", so it can be a program name with args.
11426 set dummy $ac_prog; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_path_TAR+:} false; then :
11430   $as_echo_n "(cached) " >&6
11431 else
11432   case $TAR in
11433   [\\/]* | ?:[\\/]*)
11434   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11435   ;;
11436   *)
11437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440   IFS=$as_save_IFS
11441   test -z "$as_dir" && as_dir=.
11442     for ac_exec_ext in '' $ac_executable_extensions; do
11443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446     break 2
11447   fi
11448 done
11449   done
11450 IFS=$as_save_IFS
11451 
11452   ;;
11453 esac
11454 fi
11455 TAR=$ac_cv_path_TAR
11456 if test -n "$TAR"; then
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11458 $as_echo "$TAR" >&6; }
11459 else
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 fi
11463 
11464 
11465   test -n "$TAR" && break
11466 done
11467 
11468     else
11469       # If it succeeded, then it was overridden by the user. We will use it
11470       # for the tool.
11471 
11472       # First remove it from the list of overridden variables, so we can test
11473       # for unknown variables in the end.
11474       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11475 
11476       # Check if we try to supply an empty value
11477       if test "x$TAR" = x; then
11478         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11479 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11481 $as_echo_n "checking for TAR... " >&6; }
11482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11483 $as_echo "disabled" >&6; }
11484       else
11485         # Check if the provided tool contains a complete path.
11486         tool_specified="$TAR"
11487         tool_basename="${tool_specified##*/}"
11488         if test "x$tool_basename" = "x$tool_specified"; then
11489           # A command without a complete path is provided, search $PATH.
11490           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11491 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11492           # Extract the first word of "$tool_basename", so it can be a program name with args.
11493 set dummy $tool_basename; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if ${ac_cv_path_TAR+:} false; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   case $TAR in
11500   [\\/]* | ?:[\\/]*)
11501   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11502   ;;
11503   *)
11504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507   IFS=$as_save_IFS
11508   test -z "$as_dir" && as_dir=.
11509     for ac_exec_ext in '' $ac_executable_extensions; do
11510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513     break 2
11514   fi
11515 done
11516   done
11517 IFS=$as_save_IFS
11518 
11519   ;;
11520 esac
11521 fi
11522 TAR=$ac_cv_path_TAR
11523 if test -n "$TAR"; then
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11525 $as_echo "$TAR" >&6; }
11526 else
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530 
11531 
11532           if test "x$TAR" = x; then
11533             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11534           fi
11535         else
11536           # Otherwise we believe it is a complete path. Use it as it is.
11537           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11538 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11539           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11540 $as_echo_n "checking for TAR... " >&6; }
11541           if test ! -x "$tool_specified"; then
11542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11543 $as_echo "not found" >&6; }
11544             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11545           fi
11546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11547 $as_echo "$tool_specified" >&6; }
11548         fi
11549       fi
11550     fi
11551 
11552   fi
11553 
11554 
11555 
11556   if test "x$TAR" = x; then
11557     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11558   fi
11559 
11560 
11561 
11562 
11563 
11564   # Publish this variable in the help.
11565 
11566 
11567   if [ -z "${TEE+x}" ]; then
11568     # The variable is not set by user, try to locate tool using the code snippet
11569     for ac_prog in tee
11570 do
11571   # Extract the first word of "$ac_prog", so it can be a program name with args.
11572 set dummy $ac_prog; ac_word=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if ${ac_cv_path_TEE+:} false; then :
11576   $as_echo_n "(cached) " >&6
11577 else
11578   case $TEE in
11579   [\\/]* | ?:[\\/]*)
11580   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11581   ;;
11582   *)
11583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588     for ac_exec_ext in '' $ac_executable_extensions; do
11589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592     break 2
11593   fi
11594 done
11595   done
11596 IFS=$as_save_IFS
11597 
11598   ;;
11599 esac
11600 fi
11601 TEE=$ac_cv_path_TEE
11602 if test -n "$TEE"; then
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11604 $as_echo "$TEE" >&6; }
11605 else
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11608 fi
11609 
11610 
11611   test -n "$TEE" && break
11612 done
11613 
11614   else
11615     # The variable is set, but is it from the command line or the environment?
11616 
11617     # Try to remove the string !TEE! from our list.
11618     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11619     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11620       # If it failed, the variable was not from the command line. Ignore it,
11621       # but warn the user (except for BASH, which is always set by the calling BASH).
11622       if test "xTEE" != xBASH; then
11623         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11624 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11625       fi
11626       # Try to locate tool using the code snippet
11627       for ac_prog in tee
11628 do
11629   # Extract the first word of "$ac_prog", so it can be a program name with args.
11630 set dummy $ac_prog; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_path_TEE+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   case $TEE in
11637   [\\/]* | ?:[\\/]*)
11638   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11639   ;;
11640   *)
11641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11643 do
11644   IFS=$as_save_IFS
11645   test -z "$as_dir" && as_dir=.
11646     for ac_exec_ext in '' $ac_executable_extensions; do
11647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650     break 2
11651   fi
11652 done
11653   done
11654 IFS=$as_save_IFS
11655 
11656   ;;
11657 esac
11658 fi
11659 TEE=$ac_cv_path_TEE
11660 if test -n "$TEE"; then
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11662 $as_echo "$TEE" >&6; }
11663 else
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11666 fi
11667 
11668 
11669   test -n "$TEE" && break
11670 done
11671 
11672     else
11673       # If it succeeded, then it was overridden by the user. We will use it
11674       # for the tool.
11675 
11676       # First remove it from the list of overridden variables, so we can test
11677       # for unknown variables in the end.
11678       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11679 
11680       # Check if we try to supply an empty value
11681       if test "x$TEE" = x; then
11682         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11683 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11685 $as_echo_n "checking for TEE... " >&6; }
11686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11687 $as_echo "disabled" >&6; }
11688       else
11689         # Check if the provided tool contains a complete path.
11690         tool_specified="$TEE"
11691         tool_basename="${tool_specified##*/}"
11692         if test "x$tool_basename" = "x$tool_specified"; then
11693           # A command without a complete path is provided, search $PATH.
11694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11695 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11696           # Extract the first word of "$tool_basename", so it can be a program name with args.
11697 set dummy $tool_basename; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_TEE+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   case $TEE in
11704   [\\/]* | ?:[\\/]*)
11705   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11706   ;;
11707   *)
11708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_exec_ext in '' $ac_executable_extensions; do
11714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717     break 2
11718   fi
11719 done
11720   done
11721 IFS=$as_save_IFS
11722 
11723   ;;
11724 esac
11725 fi
11726 TEE=$ac_cv_path_TEE
11727 if test -n "$TEE"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11729 $as_echo "$TEE" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734 
11735 
11736           if test "x$TEE" = x; then
11737             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11738           fi
11739         else
11740           # Otherwise we believe it is a complete path. Use it as it is.
11741           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11742 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11744 $as_echo_n "checking for TEE... " >&6; }
11745           if test ! -x "$tool_specified"; then
11746             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11747 $as_echo "not found" >&6; }
11748             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11749           fi
11750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11751 $as_echo "$tool_specified" >&6; }
11752         fi
11753       fi
11754     fi
11755 
11756   fi
11757 
11758 
11759 
11760   if test "x$TEE" = x; then
11761     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11762   fi
11763 
11764 
11765 
11766 
11767 
11768   # Publish this variable in the help.
11769 
11770 
11771   if [ -z "${TOUCH+x}" ]; then
11772     # The variable is not set by user, try to locate tool using the code snippet
11773     for ac_prog in touch
11774 do
11775   # Extract the first word of "$ac_prog", so it can be a program name with args.
11776 set dummy $ac_prog; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_path_TOUCH+:} false; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782   case $TOUCH in
11783   [\\/]* | ?:[\\/]*)
11784   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11785   ;;
11786   *)
11787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790   IFS=$as_save_IFS
11791   test -z "$as_dir" && as_dir=.
11792     for ac_exec_ext in '' $ac_executable_extensions; do
11793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799   done
11800 IFS=$as_save_IFS
11801 
11802   ;;
11803 esac
11804 fi
11805 TOUCH=$ac_cv_path_TOUCH
11806 if test -n "$TOUCH"; then
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11808 $as_echo "$TOUCH" >&6; }
11809 else
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 fi
11813 
11814 
11815   test -n "$TOUCH" && break
11816 done
11817 
11818   else
11819     # The variable is set, but is it from the command line or the environment?
11820 
11821     # Try to remove the string !TOUCH! from our list.
11822     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11823     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11824       # If it failed, the variable was not from the command line. Ignore it,
11825       # but warn the user (except for BASH, which is always set by the calling BASH).
11826       if test "xTOUCH" != xBASH; then
11827         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11828 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11829       fi
11830       # Try to locate tool using the code snippet
11831       for ac_prog in touch
11832 do
11833   # Extract the first word of "$ac_prog", so it can be a program name with args.
11834 set dummy $ac_prog; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_path_TOUCH+:} false; then :
11838   $as_echo_n "(cached) " >&6
11839 else
11840   case $TOUCH in
11841   [\\/]* | ?:[\\/]*)
11842   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11843   ;;
11844   *)
11845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848   IFS=$as_save_IFS
11849   test -z "$as_dir" && as_dir=.
11850     for ac_exec_ext in '' $ac_executable_extensions; do
11851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854     break 2
11855   fi
11856 done
11857   done
11858 IFS=$as_save_IFS
11859 
11860   ;;
11861 esac
11862 fi
11863 TOUCH=$ac_cv_path_TOUCH
11864 if test -n "$TOUCH"; then
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11866 $as_echo "$TOUCH" >&6; }
11867 else
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871 
11872 
11873   test -n "$TOUCH" && break
11874 done
11875 
11876     else
11877       # If it succeeded, then it was overridden by the user. We will use it
11878       # for the tool.
11879 
11880       # First remove it from the list of overridden variables, so we can test
11881       # for unknown variables in the end.
11882       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11883 
11884       # Check if we try to supply an empty value
11885       if test "x$TOUCH" = x; then
11886         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11887 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11889 $as_echo_n "checking for TOUCH... " >&6; }
11890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11891 $as_echo "disabled" >&6; }
11892       else
11893         # Check if the provided tool contains a complete path.
11894         tool_specified="$TOUCH"
11895         tool_basename="${tool_specified##*/}"
11896         if test "x$tool_basename" = "x$tool_specified"; then
11897           # A command without a complete path is provided, search $PATH.
11898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11899 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11900           # Extract the first word of "$tool_basename", so it can be a program name with args.
11901 set dummy $tool_basename; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_path_TOUCH+:} false; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   case $TOUCH in
11908   [\\/]* | ?:[\\/]*)
11909   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11910   ;;
11911   *)
11912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915   IFS=$as_save_IFS
11916   test -z "$as_dir" && as_dir=.
11917     for ac_exec_ext in '' $ac_executable_extensions; do
11918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921     break 2
11922   fi
11923 done
11924   done
11925 IFS=$as_save_IFS
11926 
11927   ;;
11928 esac
11929 fi
11930 TOUCH=$ac_cv_path_TOUCH
11931 if test -n "$TOUCH"; then
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11933 $as_echo "$TOUCH" >&6; }
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938 
11939 
11940           if test "x$TOUCH" = x; then
11941             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11942           fi
11943         else
11944           # Otherwise we believe it is a complete path. Use it as it is.
11945           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11946 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11947           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11948 $as_echo_n "checking for TOUCH... " >&6; }
11949           if test ! -x "$tool_specified"; then
11950             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11951 $as_echo "not found" >&6; }
11952             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11953           fi
11954           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11955 $as_echo "$tool_specified" >&6; }
11956         fi
11957       fi
11958     fi
11959 
11960   fi
11961 
11962 
11963 
11964   if test "x$TOUCH" = x; then
11965     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11966   fi
11967 
11968 
11969 
11970 
11971 
11972   # Publish this variable in the help.
11973 
11974 
11975   if [ -z "${TR+x}" ]; then
11976     # The variable is not set by user, try to locate tool using the code snippet
11977     for ac_prog in tr
11978 do
11979   # Extract the first word of "$ac_prog", so it can be a program name with args.
11980 set dummy $ac_prog; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_path_TR+:} false; then :
11984   $as_echo_n "(cached) " >&6
11985 else
11986   case $TR in
11987   [\\/]* | ?:[\\/]*)
11988   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11989   ;;
11990   *)
11991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11993 do
11994   IFS=$as_save_IFS
11995   test -z "$as_dir" && as_dir=.
11996     for ac_exec_ext in '' $ac_executable_extensions; do
11997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000     break 2
12001   fi
12002 done
12003   done
12004 IFS=$as_save_IFS
12005 
12006   ;;
12007 esac
12008 fi
12009 TR=$ac_cv_path_TR
12010 if test -n "$TR"; then
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12012 $as_echo "$TR" >&6; }
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 fi
12017 
12018 
12019   test -n "$TR" && break
12020 done
12021 
12022   else
12023     # The variable is set, but is it from the command line or the environment?
12024 
12025     # Try to remove the string !TR! from our list.
12026     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12027     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12028       # If it failed, the variable was not from the command line. Ignore it,
12029       # but warn the user (except for BASH, which is always set by the calling BASH).
12030       if test "xTR" != xBASH; then
12031         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12032 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12033       fi
12034       # Try to locate tool using the code snippet
12035       for ac_prog in tr
12036 do
12037   # Extract the first word of "$ac_prog", so it can be a program name with args.
12038 set dummy $ac_prog; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_path_TR+:} false; then :
12042   $as_echo_n "(cached) " >&6
12043 else
12044   case $TR in
12045   [\\/]* | ?:[\\/]*)
12046   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12047   ;;
12048   *)
12049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12051 do
12052   IFS=$as_save_IFS
12053   test -z "$as_dir" && as_dir=.
12054     for ac_exec_ext in '' $ac_executable_extensions; do
12055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058     break 2
12059   fi
12060 done
12061   done
12062 IFS=$as_save_IFS
12063 
12064   ;;
12065 esac
12066 fi
12067 TR=$ac_cv_path_TR
12068 if test -n "$TR"; then
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12070 $as_echo "$TR" >&6; }
12071 else
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075 
12076 
12077   test -n "$TR" && break
12078 done
12079 
12080     else
12081       # If it succeeded, then it was overridden by the user. We will use it
12082       # for the tool.
12083 
12084       # First remove it from the list of overridden variables, so we can test
12085       # for unknown variables in the end.
12086       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12087 
12088       # Check if we try to supply an empty value
12089       if test "x$TR" = x; then
12090         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12091 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12093 $as_echo_n "checking for TR... " >&6; }
12094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12095 $as_echo "disabled" >&6; }
12096       else
12097         # Check if the provided tool contains a complete path.
12098         tool_specified="$TR"
12099         tool_basename="${tool_specified##*/}"
12100         if test "x$tool_basename" = "x$tool_specified"; then
12101           # A command without a complete path is provided, search $PATH.
12102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12103 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12104           # Extract the first word of "$tool_basename", so it can be a program name with args.
12105 set dummy $tool_basename; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_TR+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   case $TR in
12112   [\\/]* | ?:[\\/]*)
12113   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12114   ;;
12115   *)
12116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119   IFS=$as_save_IFS
12120   test -z "$as_dir" && as_dir=.
12121     for ac_exec_ext in '' $ac_executable_extensions; do
12122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125     break 2
12126   fi
12127 done
12128   done
12129 IFS=$as_save_IFS
12130 
12131   ;;
12132 esac
12133 fi
12134 TR=$ac_cv_path_TR
12135 if test -n "$TR"; then
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12137 $as_echo "$TR" >&6; }
12138 else
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141 fi
12142 
12143 
12144           if test "x$TR" = x; then
12145             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12146           fi
12147         else
12148           # Otherwise we believe it is a complete path. Use it as it is.
12149           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12150 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12151           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12152 $as_echo_n "checking for TR... " >&6; }
12153           if test ! -x "$tool_specified"; then
12154             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12155 $as_echo "not found" >&6; }
12156             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12157           fi
12158           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12159 $as_echo "$tool_specified" >&6; }
12160         fi
12161       fi
12162     fi
12163 
12164   fi
12165 
12166 
12167 
12168   if test "x$TR" = x; then
12169     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12170   fi
12171 
12172 
12173 
12174 
12175 
12176   # Publish this variable in the help.
12177 
12178 
12179   if [ -z "${UNAME+x}" ]; then
12180     # The variable is not set by user, try to locate tool using the code snippet
12181     for ac_prog in uname
12182 do
12183   # Extract the first word of "$ac_prog", so it can be a program name with args.
12184 set dummy $ac_prog; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_path_UNAME+:} false; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   case $UNAME in
12191   [\\/]* | ?:[\\/]*)
12192   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12193   ;;
12194   *)
12195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200     for ac_exec_ext in '' $ac_executable_extensions; do
12201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207   done
12208 IFS=$as_save_IFS
12209 
12210   ;;
12211 esac
12212 fi
12213 UNAME=$ac_cv_path_UNAME
12214 if test -n "$UNAME"; then
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12216 $as_echo "$UNAME" >&6; }
12217 else
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220 fi
12221 
12222 
12223   test -n "$UNAME" && break
12224 done
12225 
12226   else
12227     # The variable is set, but is it from the command line or the environment?
12228 
12229     # Try to remove the string !UNAME! from our list.
12230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12232       # If it failed, the variable was not from the command line. Ignore it,
12233       # but warn the user (except for BASH, which is always set by the calling BASH).
12234       if test "xUNAME" != xBASH; then
12235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12236 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12237       fi
12238       # Try to locate tool using the code snippet
12239       for ac_prog in uname
12240 do
12241   # Extract the first word of "$ac_prog", so it can be a program name with args.
12242 set dummy $ac_prog; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_path_UNAME+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   case $UNAME in
12249   [\\/]* | ?:[\\/]*)
12250   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12251   ;;
12252   *)
12253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256   IFS=$as_save_IFS
12257   test -z "$as_dir" && as_dir=.
12258     for ac_exec_ext in '' $ac_executable_extensions; do
12259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12260     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262     break 2
12263   fi
12264 done
12265   done
12266 IFS=$as_save_IFS
12267 
12268   ;;
12269 esac
12270 fi
12271 UNAME=$ac_cv_path_UNAME
12272 if test -n "$UNAME"; then
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12274 $as_echo "$UNAME" >&6; }
12275 else
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279 
12280 
12281   test -n "$UNAME" && break
12282 done
12283 
12284     else
12285       # If it succeeded, then it was overridden by the user. We will use it
12286       # for the tool.
12287 
12288       # First remove it from the list of overridden variables, so we can test
12289       # for unknown variables in the end.
12290       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12291 
12292       # Check if we try to supply an empty value
12293       if test "x$UNAME" = x; then
12294         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12295 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12297 $as_echo_n "checking for UNAME... " >&6; }
12298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12299 $as_echo "disabled" >&6; }
12300       else
12301         # Check if the provided tool contains a complete path.
12302         tool_specified="$UNAME"
12303         tool_basename="${tool_specified##*/}"
12304         if test "x$tool_basename" = "x$tool_specified"; then
12305           # A command without a complete path is provided, search $PATH.
12306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12307 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12308           # Extract the first word of "$tool_basename", so it can be a program name with args.
12309 set dummy $tool_basename; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_path_UNAME+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   case $UNAME in
12316   [\\/]* | ?:[\\/]*)
12317   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12318   ;;
12319   *)
12320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323   IFS=$as_save_IFS
12324   test -z "$as_dir" && as_dir=.
12325     for ac_exec_ext in '' $ac_executable_extensions; do
12326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329     break 2
12330   fi
12331 done
12332   done
12333 IFS=$as_save_IFS
12334 
12335   ;;
12336 esac
12337 fi
12338 UNAME=$ac_cv_path_UNAME
12339 if test -n "$UNAME"; then
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12341 $as_echo "$UNAME" >&6; }
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 fi
12346 
12347 
12348           if test "x$UNAME" = x; then
12349             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12350           fi
12351         else
12352           # Otherwise we believe it is a complete path. Use it as it is.
12353           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12354 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12355           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12356 $as_echo_n "checking for UNAME... " >&6; }
12357           if test ! -x "$tool_specified"; then
12358             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12359 $as_echo "not found" >&6; }
12360             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12361           fi
12362           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12363 $as_echo "$tool_specified" >&6; }
12364         fi
12365       fi
12366     fi
12367 
12368   fi
12369 
12370 
12371 
12372   if test "x$UNAME" = x; then
12373     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12374   fi
12375 
12376 
12377 
12378 
12379 
12380   # Publish this variable in the help.
12381 
12382 
12383   if [ -z "${UNIQ+x}" ]; then
12384     # The variable is not set by user, try to locate tool using the code snippet
12385     for ac_prog in uniq
12386 do
12387   # Extract the first word of "$ac_prog", so it can be a program name with args.
12388 set dummy $ac_prog; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if ${ac_cv_path_UNIQ+:} false; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   case $UNIQ in
12395   [\\/]* | ?:[\\/]*)
12396   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12397   ;;
12398   *)
12399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413 
12414   ;;
12415 esac
12416 fi
12417 UNIQ=$ac_cv_path_UNIQ
12418 if test -n "$UNIQ"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12420 $as_echo "$UNIQ" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425 
12426 
12427   test -n "$UNIQ" && break
12428 done
12429 
12430   else
12431     # The variable is set, but is it from the command line or the environment?
12432 
12433     # Try to remove the string !UNIQ! from our list.
12434     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12435     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12436       # If it failed, the variable was not from the command line. Ignore it,
12437       # but warn the user (except for BASH, which is always set by the calling BASH).
12438       if test "xUNIQ" != xBASH; then
12439         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12440 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12441       fi
12442       # Try to locate tool using the code snippet
12443       for ac_prog in uniq
12444 do
12445   # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if ${ac_cv_path_UNIQ+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   case $UNIQ in
12453   [\\/]* | ?:[\\/]*)
12454   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12455   ;;
12456   *)
12457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460   IFS=$as_save_IFS
12461   test -z "$as_dir" && as_dir=.
12462     for ac_exec_ext in '' $ac_executable_extensions; do
12463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466     break 2
12467   fi
12468 done
12469   done
12470 IFS=$as_save_IFS
12471 
12472   ;;
12473 esac
12474 fi
12475 UNIQ=$ac_cv_path_UNIQ
12476 if test -n "$UNIQ"; then
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12478 $as_echo "$UNIQ" >&6; }
12479 else
12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483 
12484 
12485   test -n "$UNIQ" && break
12486 done
12487 
12488     else
12489       # If it succeeded, then it was overridden by the user. We will use it
12490       # for the tool.
12491 
12492       # First remove it from the list of overridden variables, so we can test
12493       # for unknown variables in the end.
12494       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12495 
12496       # Check if we try to supply an empty value
12497       if test "x$UNIQ" = x; then
12498         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12499 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12501 $as_echo_n "checking for UNIQ... " >&6; }
12502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12503 $as_echo "disabled" >&6; }
12504       else
12505         # Check if the provided tool contains a complete path.
12506         tool_specified="$UNIQ"
12507         tool_basename="${tool_specified##*/}"
12508         if test "x$tool_basename" = "x$tool_specified"; then
12509           # A command without a complete path is provided, search $PATH.
12510           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12511 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12512           # Extract the first word of "$tool_basename", so it can be a program name with args.
12513 set dummy $tool_basename; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_UNIQ+:} false; then :
12517   $as_echo_n "(cached) " >&6
12518 else
12519   case $UNIQ in
12520   [\\/]* | ?:[\\/]*)
12521   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12522   ;;
12523   *)
12524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527   IFS=$as_save_IFS
12528   test -z "$as_dir" && as_dir=.
12529     for ac_exec_ext in '' $ac_executable_extensions; do
12530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533     break 2
12534   fi
12535 done
12536   done
12537 IFS=$as_save_IFS
12538 
12539   ;;
12540 esac
12541 fi
12542 UNIQ=$ac_cv_path_UNIQ
12543 if test -n "$UNIQ"; then
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12545 $as_echo "$UNIQ" >&6; }
12546 else
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550 
12551 
12552           if test "x$UNIQ" = x; then
12553             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12554           fi
12555         else
12556           # Otherwise we believe it is a complete path. Use it as it is.
12557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12558 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12559           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12560 $as_echo_n "checking for UNIQ... " >&6; }
12561           if test ! -x "$tool_specified"; then
12562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12563 $as_echo "not found" >&6; }
12564             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12565           fi
12566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12567 $as_echo "$tool_specified" >&6; }
12568         fi
12569       fi
12570     fi
12571 
12572   fi
12573 
12574 
12575 
12576   if test "x$UNIQ" = x; then
12577     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12578   fi
12579 
12580 
12581 
12582 
12583 
12584   # Publish this variable in the help.
12585 
12586 
12587   if [ -z "${WC+x}" ]; then
12588     # The variable is not set by user, try to locate tool using the code snippet
12589     for ac_prog in wc
12590 do
12591   # Extract the first word of "$ac_prog", so it can be a program name with args.
12592 set dummy $ac_prog; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_path_WC+:} false; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598   case $WC in
12599   [\\/]* | ?:[\\/]*)
12600   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12601   ;;
12602   *)
12603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   test -z "$as_dir" && as_dir=.
12608     for ac_exec_ext in '' $ac_executable_extensions; do
12609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12610     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612     break 2
12613   fi
12614 done
12615   done
12616 IFS=$as_save_IFS
12617 
12618   ;;
12619 esac
12620 fi
12621 WC=$ac_cv_path_WC
12622 if test -n "$WC"; then
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12624 $as_echo "$WC" >&6; }
12625 else
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628 fi
12629 
12630 
12631   test -n "$WC" && break
12632 done
12633 
12634   else
12635     # The variable is set, but is it from the command line or the environment?
12636 
12637     # Try to remove the string !WC! from our list.
12638     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12639     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12640       # If it failed, the variable was not from the command line. Ignore it,
12641       # but warn the user (except for BASH, which is always set by the calling BASH).
12642       if test "xWC" != xBASH; then
12643         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12644 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12645       fi
12646       # Try to locate tool using the code snippet
12647       for ac_prog in wc
12648 do
12649   # Extract the first word of "$ac_prog", so it can be a program name with args.
12650 set dummy $ac_prog; ac_word=$2
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12652 $as_echo_n "checking for $ac_word... " >&6; }
12653 if ${ac_cv_path_WC+:} false; then :
12654   $as_echo_n "(cached) " >&6
12655 else
12656   case $WC in
12657   [\\/]* | ?:[\\/]*)
12658   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12659   ;;
12660   *)
12661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in $PATH
12663 do
12664   IFS=$as_save_IFS
12665   test -z "$as_dir" && as_dir=.
12666     for ac_exec_ext in '' $ac_executable_extensions; do
12667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670     break 2
12671   fi
12672 done
12673   done
12674 IFS=$as_save_IFS
12675 
12676   ;;
12677 esac
12678 fi
12679 WC=$ac_cv_path_WC
12680 if test -n "$WC"; then
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12682 $as_echo "$WC" >&6; }
12683 else
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686 fi
12687 
12688 
12689   test -n "$WC" && break
12690 done
12691 
12692     else
12693       # If it succeeded, then it was overridden by the user. We will use it
12694       # for the tool.
12695 
12696       # First remove it from the list of overridden variables, so we can test
12697       # for unknown variables in the end.
12698       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12699 
12700       # Check if we try to supply an empty value
12701       if test "x$WC" = x; then
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12703 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12705 $as_echo_n "checking for WC... " >&6; }
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12707 $as_echo "disabled" >&6; }
12708       else
12709         # Check if the provided tool contains a complete path.
12710         tool_specified="$WC"
12711         tool_basename="${tool_specified##*/}"
12712         if test "x$tool_basename" = "x$tool_specified"; then
12713           # A command without a complete path is provided, search $PATH.
12714           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12715 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12716           # Extract the first word of "$tool_basename", so it can be a program name with args.
12717 set dummy $tool_basename; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_path_WC+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   case $WC in
12724   [\\/]* | ?:[\\/]*)
12725   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12726   ;;
12727   *)
12728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12730 do
12731   IFS=$as_save_IFS
12732   test -z "$as_dir" && as_dir=.
12733     for ac_exec_ext in '' $ac_executable_extensions; do
12734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737     break 2
12738   fi
12739 done
12740   done
12741 IFS=$as_save_IFS
12742 
12743   ;;
12744 esac
12745 fi
12746 WC=$ac_cv_path_WC
12747 if test -n "$WC"; then
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12749 $as_echo "$WC" >&6; }
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754 
12755 
12756           if test "x$WC" = x; then
12757             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12758           fi
12759         else
12760           # Otherwise we believe it is a complete path. Use it as it is.
12761           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12762 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12764 $as_echo_n "checking for WC... " >&6; }
12765           if test ! -x "$tool_specified"; then
12766             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12767 $as_echo "not found" >&6; }
12768             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12769           fi
12770           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12771 $as_echo "$tool_specified" >&6; }
12772         fi
12773       fi
12774     fi
12775 
12776   fi
12777 
12778 
12779 
12780   if test "x$WC" = x; then
12781     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12782   fi
12783 
12784 
12785 
12786 
12787 
12788   # Publish this variable in the help.
12789 
12790 
12791   if [ -z "${WHICH+x}" ]; then
12792     # The variable is not set by user, try to locate tool using the code snippet
12793     for ac_prog in which
12794 do
12795   # Extract the first word of "$ac_prog", so it can be a program name with args.
12796 set dummy $ac_prog; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if ${ac_cv_path_WHICH+:} false; then :
12800   $as_echo_n "(cached) " >&6
12801 else
12802   case $WHICH in
12803   [\\/]* | ?:[\\/]*)
12804   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12805   ;;
12806   *)
12807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810   IFS=$as_save_IFS
12811   test -z "$as_dir" && as_dir=.
12812     for ac_exec_ext in '' $ac_executable_extensions; do
12813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816     break 2
12817   fi
12818 done
12819   done
12820 IFS=$as_save_IFS
12821 
12822   ;;
12823 esac
12824 fi
12825 WHICH=$ac_cv_path_WHICH
12826 if test -n "$WHICH"; then
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12828 $as_echo "$WHICH" >&6; }
12829 else
12830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833 
12834 
12835   test -n "$WHICH" && break
12836 done
12837 
12838   else
12839     # The variable is set, but is it from the command line or the environment?
12840 
12841     # Try to remove the string !WHICH! from our list.
12842     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12843     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12844       # If it failed, the variable was not from the command line. Ignore it,
12845       # but warn the user (except for BASH, which is always set by the calling BASH).
12846       if test "xWHICH" != xBASH; then
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12848 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12849       fi
12850       # Try to locate tool using the code snippet
12851       for ac_prog in which
12852 do
12853   # Extract the first word of "$ac_prog", so it can be a program name with args.
12854 set dummy $ac_prog; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_path_WHICH+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860   case $WHICH in
12861   [\\/]* | ?:[\\/]*)
12862   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12863   ;;
12864   *)
12865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12867 do
12868   IFS=$as_save_IFS
12869   test -z "$as_dir" && as_dir=.
12870     for ac_exec_ext in '' $ac_executable_extensions; do
12871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874     break 2
12875   fi
12876 done
12877   done
12878 IFS=$as_save_IFS
12879 
12880   ;;
12881 esac
12882 fi
12883 WHICH=$ac_cv_path_WHICH
12884 if test -n "$WHICH"; then
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12886 $as_echo "$WHICH" >&6; }
12887 else
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890 fi
12891 
12892 
12893   test -n "$WHICH" && break
12894 done
12895 
12896     else
12897       # If it succeeded, then it was overridden by the user. We will use it
12898       # for the tool.
12899 
12900       # First remove it from the list of overridden variables, so we can test
12901       # for unknown variables in the end.
12902       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12903 
12904       # Check if we try to supply an empty value
12905       if test "x$WHICH" = x; then
12906         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12907 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12909 $as_echo_n "checking for WHICH... " >&6; }
12910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12911 $as_echo "disabled" >&6; }
12912       else
12913         # Check if the provided tool contains a complete path.
12914         tool_specified="$WHICH"
12915         tool_basename="${tool_specified##*/}"
12916         if test "x$tool_basename" = "x$tool_specified"; then
12917           # A command without a complete path is provided, search $PATH.
12918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12919 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12920           # Extract the first word of "$tool_basename", so it can be a program name with args.
12921 set dummy $tool_basename; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if ${ac_cv_path_WHICH+:} false; then :
12925   $as_echo_n "(cached) " >&6
12926 else
12927   case $WHICH in
12928   [\\/]* | ?:[\\/]*)
12929   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12930   ;;
12931   *)
12932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935   IFS=$as_save_IFS
12936   test -z "$as_dir" && as_dir=.
12937     for ac_exec_ext in '' $ac_executable_extensions; do
12938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941     break 2
12942   fi
12943 done
12944   done
12945 IFS=$as_save_IFS
12946 
12947   ;;
12948 esac
12949 fi
12950 WHICH=$ac_cv_path_WHICH
12951 if test -n "$WHICH"; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12953 $as_echo "$WHICH" >&6; }
12954 else
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958 
12959 
12960           if test "x$WHICH" = x; then
12961             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12962           fi
12963         else
12964           # Otherwise we believe it is a complete path. Use it as it is.
12965           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12966 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12967           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12968 $as_echo_n "checking for WHICH... " >&6; }
12969           if test ! -x "$tool_specified"; then
12970             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12971 $as_echo "not found" >&6; }
12972             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12973           fi
12974           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12975 $as_echo "$tool_specified" >&6; }
12976         fi
12977       fi
12978     fi
12979 
12980   fi
12981 
12982 
12983 
12984   if test "x$WHICH" = x; then
12985     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12986   fi
12987 
12988 
12989 
12990 
12991 
12992   # Publish this variable in the help.
12993 
12994 
12995   if [ -z "${XARGS+x}" ]; then
12996     # The variable is not set by user, try to locate tool using the code snippet
12997     for ac_prog in xargs
12998 do
12999   # Extract the first word of "$ac_prog", so it can be a program name with args.
13000 set dummy $ac_prog; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if ${ac_cv_path_XARGS+:} false; then :
13004   $as_echo_n "(cached) " >&6
13005 else
13006   case $XARGS in
13007   [\\/]* | ?:[\\/]*)
13008   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13009   ;;
13010   *)
13011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13013 do
13014   IFS=$as_save_IFS
13015   test -z "$as_dir" && as_dir=.
13016     for ac_exec_ext in '' $ac_executable_extensions; do
13017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020     break 2
13021   fi
13022 done
13023   done
13024 IFS=$as_save_IFS
13025 
13026   ;;
13027 esac
13028 fi
13029 XARGS=$ac_cv_path_XARGS
13030 if test -n "$XARGS"; then
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13032 $as_echo "$XARGS" >&6; }
13033 else
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037 
13038 
13039   test -n "$XARGS" && break
13040 done
13041 
13042   else
13043     # The variable is set, but is it from the command line or the environment?
13044 
13045     # Try to remove the string !XARGS! from our list.
13046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13048       # If it failed, the variable was not from the command line. Ignore it,
13049       # but warn the user (except for BASH, which is always set by the calling BASH).
13050       if test "xXARGS" != xBASH; then
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13052 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13053       fi
13054       # Try to locate tool using the code snippet
13055       for ac_prog in xargs
13056 do
13057   # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 $as_echo_n "checking for $ac_word... " >&6; }
13061 if ${ac_cv_path_XARGS+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   case $XARGS in
13065   [\\/]* | ?:[\\/]*)
13066   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13067   ;;
13068   *)
13069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074     for ac_exec_ext in '' $ac_executable_extensions; do
13075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13076     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078     break 2
13079   fi
13080 done
13081   done
13082 IFS=$as_save_IFS
13083 
13084   ;;
13085 esac
13086 fi
13087 XARGS=$ac_cv_path_XARGS
13088 if test -n "$XARGS"; then
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13090 $as_echo "$XARGS" >&6; }
13091 else
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094 fi
13095 
13096 
13097   test -n "$XARGS" && break
13098 done
13099 
13100     else
13101       # If it succeeded, then it was overridden by the user. We will use it
13102       # for the tool.
13103 
13104       # First remove it from the list of overridden variables, so we can test
13105       # for unknown variables in the end.
13106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13107 
13108       # Check if we try to supply an empty value
13109       if test "x$XARGS" = x; then
13110         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13111 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13113 $as_echo_n "checking for XARGS... " >&6; }
13114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13115 $as_echo "disabled" >&6; }
13116       else
13117         # Check if the provided tool contains a complete path.
13118         tool_specified="$XARGS"
13119         tool_basename="${tool_specified##*/}"
13120         if test "x$tool_basename" = "x$tool_specified"; then
13121           # A command without a complete path is provided, search $PATH.
13122           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13123 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13124           # Extract the first word of "$tool_basename", so it can be a program name with args.
13125 set dummy $tool_basename; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_path_XARGS+:} false; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   case $XARGS in
13132   [\\/]* | ?:[\\/]*)
13133   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13134   ;;
13135   *)
13136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139   IFS=$as_save_IFS
13140   test -z "$as_dir" && as_dir=.
13141     for ac_exec_ext in '' $ac_executable_extensions; do
13142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145     break 2
13146   fi
13147 done
13148   done
13149 IFS=$as_save_IFS
13150 
13151   ;;
13152 esac
13153 fi
13154 XARGS=$ac_cv_path_XARGS
13155 if test -n "$XARGS"; then
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13157 $as_echo "$XARGS" >&6; }
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161 fi
13162 
13163 
13164           if test "x$XARGS" = x; then
13165             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13166           fi
13167         else
13168           # Otherwise we believe it is a complete path. Use it as it is.
13169           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13170 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13171           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13172 $as_echo_n "checking for XARGS... " >&6; }
13173           if test ! -x "$tool_specified"; then
13174             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13175 $as_echo "not found" >&6; }
13176             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13177           fi
13178           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13179 $as_echo "$tool_specified" >&6; }
13180         fi
13181       fi
13182     fi
13183 
13184   fi
13185 
13186 
13187 
13188   if test "x$XARGS" = x; then
13189     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13190   fi
13191 
13192 
13193 
13194   # Then required tools that require some special treatment.
13195 
13196 
13197   # Publish this variable in the help.
13198 
13199 
13200   if [ -z "${AWK+x}" ]; then
13201     # The variable is not set by user, try to locate tool using the code snippet
13202     for ac_prog in gawk mawk nawk awk
13203 do
13204   # Extract the first word of "$ac_prog", so it can be a program name with args.
13205 set dummy $ac_prog; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if ${ac_cv_prog_AWK+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   if test -n "$AWK"; then
13212   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13213 else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217   IFS=$as_save_IFS
13218   test -z "$as_dir" && as_dir=.
13219     for ac_exec_ext in '' $ac_executable_extensions; do
13220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221     ac_cv_prog_AWK="$ac_prog"
13222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223     break 2
13224   fi
13225 done
13226   done
13227 IFS=$as_save_IFS
13228 
13229 fi
13230 fi
13231 AWK=$ac_cv_prog_AWK
13232 if test -n "$AWK"; then
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13234 $as_echo "$AWK" >&6; }
13235 else
13236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237 $as_echo "no" >&6; }
13238 fi
13239 
13240 
13241   test -n "$AWK" && break
13242 done
13243 
13244   else
13245     # The variable is set, but is it from the command line or the environment?
13246 
13247     # Try to remove the string !AWK! from our list.
13248     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13249     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13250       # If it failed, the variable was not from the command line. Ignore it,
13251       # but warn the user (except for BASH, which is always set by the calling BASH).
13252       if test "xAWK" != xBASH; then
13253         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13254 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13255       fi
13256       # Try to locate tool using the code snippet
13257       for ac_prog in gawk mawk nawk awk
13258 do
13259   # Extract the first word of "$ac_prog", so it can be a program name with args.
13260 set dummy $ac_prog; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if ${ac_cv_prog_AWK+:} false; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266   if test -n "$AWK"; then
13267   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13268 else
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13271 do
13272   IFS=$as_save_IFS
13273   test -z "$as_dir" && as_dir=.
13274     for ac_exec_ext in '' $ac_executable_extensions; do
13275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276     ac_cv_prog_AWK="$ac_prog"
13277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278     break 2
13279   fi
13280 done
13281   done
13282 IFS=$as_save_IFS
13283 
13284 fi
13285 fi
13286 AWK=$ac_cv_prog_AWK
13287 if test -n "$AWK"; then
13288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13289 $as_echo "$AWK" >&6; }
13290 else
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293 fi
13294 
13295 
13296   test -n "$AWK" && break
13297 done
13298 
13299     else
13300       # If it succeeded, then it was overridden by the user. We will use it
13301       # for the tool.
13302 
13303       # First remove it from the list of overridden variables, so we can test
13304       # for unknown variables in the end.
13305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13306 
13307       # Check if we try to supply an empty value
13308       if test "x$AWK" = x; then
13309         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13310 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13312 $as_echo_n "checking for AWK... " >&6; }
13313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13314 $as_echo "disabled" >&6; }
13315       else
13316         # Check if the provided tool contains a complete path.
13317         tool_specified="$AWK"
13318         tool_basename="${tool_specified##*/}"
13319         if test "x$tool_basename" = "x$tool_specified"; then
13320           # A command without a complete path is provided, search $PATH.
13321           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13322 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13323           # Extract the first word of "$tool_basename", so it can be a program name with args.
13324 set dummy $tool_basename; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if ${ac_cv_path_AWK+:} false; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   case $AWK in
13331   [\\/]* | ?:[\\/]*)
13332   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13333   ;;
13334   *)
13335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13337 do
13338   IFS=$as_save_IFS
13339   test -z "$as_dir" && as_dir=.
13340     for ac_exec_ext in '' $ac_executable_extensions; do
13341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13342     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344     break 2
13345   fi
13346 done
13347   done
13348 IFS=$as_save_IFS
13349 
13350   ;;
13351 esac
13352 fi
13353 AWK=$ac_cv_path_AWK
13354 if test -n "$AWK"; then
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13356 $as_echo "$AWK" >&6; }
13357 else
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360 fi
13361 
13362 
13363           if test "x$AWK" = x; then
13364             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13365           fi
13366         else
13367           # Otherwise we believe it is a complete path. Use it as it is.
13368           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13369 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13370           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13371 $as_echo_n "checking for AWK... " >&6; }
13372           if test ! -x "$tool_specified"; then
13373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13374 $as_echo "not found" >&6; }
13375             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13376           fi
13377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13378 $as_echo "$tool_specified" >&6; }
13379         fi
13380       fi
13381     fi
13382 
13383   fi
13384 
13385 
13386   if test "x$AWK" = x; then
13387     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13388   fi
13389 
13390 
13391 
13392 
13393   # Publish this variable in the help.
13394 
13395 
13396   if [ -z "${GREP+x}" ]; then
13397     # The variable is not set by user, try to locate tool using the code snippet
13398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13399 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13400 if ${ac_cv_path_GREP+:} false; then :
13401   $as_echo_n "(cached) " >&6
13402 else
13403   if test -z "$GREP"; then
13404   ac_path_GREP_found=false
13405   # Loop through the user's path and test for each of PROGNAME-LIST
13406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13408 do
13409   IFS=$as_save_IFS
13410   test -z "$as_dir" && as_dir=.
13411     for ac_prog in grep ggrep; do
13412     for ac_exec_ext in '' $ac_executable_extensions; do
13413       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13414       as_fn_executable_p "$ac_path_GREP" || continue
13415 # Check for GNU ac_path_GREP and select it if it is found.
13416   # Check for GNU $ac_path_GREP
13417 case `"$ac_path_GREP" --version 2>&1` in
13418 *GNU*)
13419   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13420 *)
13421   ac_count=0
13422   $as_echo_n 0123456789 >"conftest.in"
13423   while :
13424   do
13425     cat "conftest.in" "conftest.in" >"conftest.tmp"
13426     mv "conftest.tmp" "conftest.in"
13427     cp "conftest.in" "conftest.nl"
13428     $as_echo 'GREP' >> "conftest.nl"
13429     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13430     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13431     as_fn_arith $ac_count + 1 && ac_count=$as_val
13432     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13433       # Best one so far, save it but keep looking for a better one
13434       ac_cv_path_GREP="$ac_path_GREP"
13435       ac_path_GREP_max=$ac_count
13436     fi
13437     # 10*(2^10) chars as input seems more than enough
13438     test $ac_count -gt 10 && break
13439   done
13440   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13441 esac
13442 
13443       $ac_path_GREP_found && break 3
13444     done
13445   done
13446   done
13447 IFS=$as_save_IFS
13448   if test -z "$ac_cv_path_GREP"; then
13449     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13450   fi
13451 else
13452   ac_cv_path_GREP=$GREP
13453 fi
13454 
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13457 $as_echo "$ac_cv_path_GREP" >&6; }
13458  GREP="$ac_cv_path_GREP"
13459 
13460 
13461   else
13462     # The variable is set, but is it from the command line or the environment?
13463 
13464     # Try to remove the string !GREP! from our list.
13465     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13466     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13467       # If it failed, the variable was not from the command line. Ignore it,
13468       # but warn the user (except for BASH, which is always set by the calling BASH).
13469       if test "xGREP" != xBASH; then
13470         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13471 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13472       fi
13473       # Try to locate tool using the code snippet
13474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13475 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13476 if ${ac_cv_path_GREP+:} false; then :
13477   $as_echo_n "(cached) " >&6
13478 else
13479   if test -z "$GREP"; then
13480   ac_path_GREP_found=false
13481   # Loop through the user's path and test for each of PROGNAME-LIST
13482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487     for ac_prog in grep ggrep; do
13488     for ac_exec_ext in '' $ac_executable_extensions; do
13489       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13490       as_fn_executable_p "$ac_path_GREP" || continue
13491 # Check for GNU ac_path_GREP and select it if it is found.
13492   # Check for GNU $ac_path_GREP
13493 case `"$ac_path_GREP" --version 2>&1` in
13494 *GNU*)
13495   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13496 *)
13497   ac_count=0
13498   $as_echo_n 0123456789 >"conftest.in"
13499   while :
13500   do
13501     cat "conftest.in" "conftest.in" >"conftest.tmp"
13502     mv "conftest.tmp" "conftest.in"
13503     cp "conftest.in" "conftest.nl"
13504     $as_echo 'GREP' >> "conftest.nl"
13505     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13506     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13507     as_fn_arith $ac_count + 1 && ac_count=$as_val
13508     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13509       # Best one so far, save it but keep looking for a better one
13510       ac_cv_path_GREP="$ac_path_GREP"
13511       ac_path_GREP_max=$ac_count
13512     fi
13513     # 10*(2^10) chars as input seems more than enough
13514     test $ac_count -gt 10 && break
13515   done
13516   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13517 esac
13518 
13519       $ac_path_GREP_found && break 3
13520     done
13521   done
13522   done
13523 IFS=$as_save_IFS
13524   if test -z "$ac_cv_path_GREP"; then
13525     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13526   fi
13527 else
13528   ac_cv_path_GREP=$GREP
13529 fi
13530 
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13533 $as_echo "$ac_cv_path_GREP" >&6; }
13534  GREP="$ac_cv_path_GREP"
13535 
13536 
13537     else
13538       # If it succeeded, then it was overridden by the user. We will use it
13539       # for the tool.
13540 
13541       # First remove it from the list of overridden variables, so we can test
13542       # for unknown variables in the end.
13543       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13544 
13545       # Check if we try to supply an empty value
13546       if test "x$GREP" = x; then
13547         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13548 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13550 $as_echo_n "checking for GREP... " >&6; }
13551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13552 $as_echo "disabled" >&6; }
13553       else
13554         # Check if the provided tool contains a complete path.
13555         tool_specified="$GREP"
13556         tool_basename="${tool_specified##*/}"
13557         if test "x$tool_basename" = "x$tool_specified"; then
13558           # A command without a complete path is provided, search $PATH.
13559           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13560 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13561           # Extract the first word of "$tool_basename", so it can be a program name with args.
13562 set dummy $tool_basename; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_path_GREP+:} false; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   case $GREP in
13569   [\\/]* | ?:[\\/]*)
13570   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13571   ;;
13572   *)
13573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576   IFS=$as_save_IFS
13577   test -z "$as_dir" && as_dir=.
13578     for ac_exec_ext in '' $ac_executable_extensions; do
13579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582     break 2
13583   fi
13584 done
13585   done
13586 IFS=$as_save_IFS
13587 
13588   ;;
13589 esac
13590 fi
13591 GREP=$ac_cv_path_GREP
13592 if test -n "$GREP"; then
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13594 $as_echo "$GREP" >&6; }
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599 
13600 
13601           if test "x$GREP" = x; then
13602             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13603           fi
13604         else
13605           # Otherwise we believe it is a complete path. Use it as it is.
13606           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13607 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13608           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13609 $as_echo_n "checking for GREP... " >&6; }
13610           if test ! -x "$tool_specified"; then
13611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13612 $as_echo "not found" >&6; }
13613             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13614           fi
13615           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13616 $as_echo "$tool_specified" >&6; }
13617         fi
13618       fi
13619     fi
13620 
13621   fi
13622 
13623 
13624   if test "x$GREP" = x; then
13625     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13626   fi
13627 
13628 
13629 
13630 
13631   # Publish this variable in the help.
13632 
13633 
13634   if [ -z "${EGREP+x}" ]; then
13635     # The variable is not set by user, try to locate tool using the code snippet
13636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13637 $as_echo_n "checking for egrep... " >&6; }
13638 if ${ac_cv_path_EGREP+:} false; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13642    then ac_cv_path_EGREP="$GREP -E"
13643    else
13644      if test -z "$EGREP"; then
13645   ac_path_EGREP_found=false
13646   # Loop through the user's path and test for each of PROGNAME-LIST
13647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13649 do
13650   IFS=$as_save_IFS
13651   test -z "$as_dir" && as_dir=.
13652     for ac_prog in egrep; do
13653     for ac_exec_ext in '' $ac_executable_extensions; do
13654       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13655       as_fn_executable_p "$ac_path_EGREP" || continue
13656 # Check for GNU ac_path_EGREP and select it if it is found.
13657   # Check for GNU $ac_path_EGREP
13658 case `"$ac_path_EGREP" --version 2>&1` in
13659 *GNU*)
13660   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13661 *)
13662   ac_count=0
13663   $as_echo_n 0123456789 >"conftest.in"
13664   while :
13665   do
13666     cat "conftest.in" "conftest.in" >"conftest.tmp"
13667     mv "conftest.tmp" "conftest.in"
13668     cp "conftest.in" "conftest.nl"
13669     $as_echo 'EGREP' >> "conftest.nl"
13670     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13671     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13672     as_fn_arith $ac_count + 1 && ac_count=$as_val
13673     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13674       # Best one so far, save it but keep looking for a better one
13675       ac_cv_path_EGREP="$ac_path_EGREP"
13676       ac_path_EGREP_max=$ac_count
13677     fi
13678     # 10*(2^10) chars as input seems more than enough
13679     test $ac_count -gt 10 && break
13680   done
13681   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13682 esac
13683 
13684       $ac_path_EGREP_found && break 3
13685     done
13686   done
13687   done
13688 IFS=$as_save_IFS
13689   if test -z "$ac_cv_path_EGREP"; then
13690     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13691   fi
13692 else
13693   ac_cv_path_EGREP=$EGREP
13694 fi
13695 
13696    fi
13697 fi
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13699 $as_echo "$ac_cv_path_EGREP" >&6; }
13700  EGREP="$ac_cv_path_EGREP"
13701 
13702 
13703   else
13704     # The variable is set, but is it from the command line or the environment?
13705 
13706     # Try to remove the string !EGREP! from our list.
13707     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13708     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13709       # If it failed, the variable was not from the command line. Ignore it,
13710       # but warn the user (except for BASH, which is always set by the calling BASH).
13711       if test "xEGREP" != xBASH; then
13712         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13713 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13714       fi
13715       # Try to locate tool using the code snippet
13716       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13717 $as_echo_n "checking for egrep... " >&6; }
13718 if ${ac_cv_path_EGREP+:} false; then :
13719   $as_echo_n "(cached) " >&6
13720 else
13721   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13722    then ac_cv_path_EGREP="$GREP -E"
13723    else
13724      if test -z "$EGREP"; then
13725   ac_path_EGREP_found=false
13726   # Loop through the user's path and test for each of PROGNAME-LIST
13727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13729 do
13730   IFS=$as_save_IFS
13731   test -z "$as_dir" && as_dir=.
13732     for ac_prog in egrep; do
13733     for ac_exec_ext in '' $ac_executable_extensions; do
13734       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13735       as_fn_executable_p "$ac_path_EGREP" || continue
13736 # Check for GNU ac_path_EGREP and select it if it is found.
13737   # Check for GNU $ac_path_EGREP
13738 case `"$ac_path_EGREP" --version 2>&1` in
13739 *GNU*)
13740   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13741 *)
13742   ac_count=0
13743   $as_echo_n 0123456789 >"conftest.in"
13744   while :
13745   do
13746     cat "conftest.in" "conftest.in" >"conftest.tmp"
13747     mv "conftest.tmp" "conftest.in"
13748     cp "conftest.in" "conftest.nl"
13749     $as_echo 'EGREP' >> "conftest.nl"
13750     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13751     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13752     as_fn_arith $ac_count + 1 && ac_count=$as_val
13753     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13754       # Best one so far, save it but keep looking for a better one
13755       ac_cv_path_EGREP="$ac_path_EGREP"
13756       ac_path_EGREP_max=$ac_count
13757     fi
13758     # 10*(2^10) chars as input seems more than enough
13759     test $ac_count -gt 10 && break
13760   done
13761   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13762 esac
13763 
13764       $ac_path_EGREP_found && break 3
13765     done
13766   done
13767   done
13768 IFS=$as_save_IFS
13769   if test -z "$ac_cv_path_EGREP"; then
13770     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13771   fi
13772 else
13773   ac_cv_path_EGREP=$EGREP
13774 fi
13775 
13776    fi
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13779 $as_echo "$ac_cv_path_EGREP" >&6; }
13780  EGREP="$ac_cv_path_EGREP"
13781 
13782 
13783     else
13784       # If it succeeded, then it was overridden by the user. We will use it
13785       # for the tool.
13786 
13787       # First remove it from the list of overridden variables, so we can test
13788       # for unknown variables in the end.
13789       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13790 
13791       # Check if we try to supply an empty value
13792       if test "x$EGREP" = x; then
13793         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13794 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13796 $as_echo_n "checking for EGREP... " >&6; }
13797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13798 $as_echo "disabled" >&6; }
13799       else
13800         # Check if the provided tool contains a complete path.
13801         tool_specified="$EGREP"
13802         tool_basename="${tool_specified##*/}"
13803         if test "x$tool_basename" = "x$tool_specified"; then
13804           # A command without a complete path is provided, search $PATH.
13805           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13806 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13807           # Extract the first word of "$tool_basename", so it can be a program name with args.
13808 set dummy $tool_basename; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if ${ac_cv_path_EGREP+:} false; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   case $EGREP in
13815   [\\/]* | ?:[\\/]*)
13816   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13817   ;;
13818   *)
13819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13821 do
13822   IFS=$as_save_IFS
13823   test -z "$as_dir" && as_dir=.
13824     for ac_exec_ext in '' $ac_executable_extensions; do
13825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828     break 2
13829   fi
13830 done
13831   done
13832 IFS=$as_save_IFS
13833 
13834   ;;
13835 esac
13836 fi
13837 EGREP=$ac_cv_path_EGREP
13838 if test -n "$EGREP"; then
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13840 $as_echo "$EGREP" >&6; }
13841 else
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845 
13846 
13847           if test "x$EGREP" = x; then
13848             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13849           fi
13850         else
13851           # Otherwise we believe it is a complete path. Use it as it is.
13852           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13853 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13854           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13855 $as_echo_n "checking for EGREP... " >&6; }
13856           if test ! -x "$tool_specified"; then
13857             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13858 $as_echo "not found" >&6; }
13859             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13860           fi
13861           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13862 $as_echo "$tool_specified" >&6; }
13863         fi
13864       fi
13865     fi
13866 
13867   fi
13868 
13869 
13870   if test "x$EGREP" = x; then
13871     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13872   fi
13873 
13874 
13875 
13876 
13877   # Publish this variable in the help.
13878 
13879 
13880   if [ -z "${FGREP+x}" ]; then
13881     # The variable is not set by user, try to locate tool using the code snippet
13882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13883 $as_echo_n "checking for fgrep... " >&6; }
13884 if ${ac_cv_path_FGREP+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13888    then ac_cv_path_FGREP="$GREP -F"
13889    else
13890      if test -z "$FGREP"; then
13891   ac_path_FGREP_found=false
13892   # Loop through the user's path and test for each of PROGNAME-LIST
13893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13895 do
13896   IFS=$as_save_IFS
13897   test -z "$as_dir" && as_dir=.
13898     for ac_prog in fgrep; do
13899     for ac_exec_ext in '' $ac_executable_extensions; do
13900       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13901       as_fn_executable_p "$ac_path_FGREP" || continue
13902 # Check for GNU ac_path_FGREP and select it if it is found.
13903   # Check for GNU $ac_path_FGREP
13904 case `"$ac_path_FGREP" --version 2>&1` in
13905 *GNU*)
13906   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13907 *)
13908   ac_count=0
13909   $as_echo_n 0123456789 >"conftest.in"
13910   while :
13911   do
13912     cat "conftest.in" "conftest.in" >"conftest.tmp"
13913     mv "conftest.tmp" "conftest.in"
13914     cp "conftest.in" "conftest.nl"
13915     $as_echo 'FGREP' >> "conftest.nl"
13916     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13917     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13918     as_fn_arith $ac_count + 1 && ac_count=$as_val
13919     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13920       # Best one so far, save it but keep looking for a better one
13921       ac_cv_path_FGREP="$ac_path_FGREP"
13922       ac_path_FGREP_max=$ac_count
13923     fi
13924     # 10*(2^10) chars as input seems more than enough
13925     test $ac_count -gt 10 && break
13926   done
13927   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13928 esac
13929 
13930       $ac_path_FGREP_found && break 3
13931     done
13932   done
13933   done
13934 IFS=$as_save_IFS
13935   if test -z "$ac_cv_path_FGREP"; then
13936     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13937   fi
13938 else
13939   ac_cv_path_FGREP=$FGREP
13940 fi
13941 
13942    fi
13943 fi
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13945 $as_echo "$ac_cv_path_FGREP" >&6; }
13946  FGREP="$ac_cv_path_FGREP"
13947 
13948 
13949   else
13950     # The variable is set, but is it from the command line or the environment?
13951 
13952     # Try to remove the string !FGREP! from our list.
13953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13955       # If it failed, the variable was not from the command line. Ignore it,
13956       # but warn the user (except for BASH, which is always set by the calling BASH).
13957       if test "xFGREP" != xBASH; then
13958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13959 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13960       fi
13961       # Try to locate tool using the code snippet
13962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13963 $as_echo_n "checking for fgrep... " >&6; }
13964 if ${ac_cv_path_FGREP+:} false; then :
13965   $as_echo_n "(cached) " >&6
13966 else
13967   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13968    then ac_cv_path_FGREP="$GREP -F"
13969    else
13970      if test -z "$FGREP"; then
13971   ac_path_FGREP_found=false
13972   # Loop through the user's path and test for each of PROGNAME-LIST
13973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13975 do
13976   IFS=$as_save_IFS
13977   test -z "$as_dir" && as_dir=.
13978     for ac_prog in fgrep; do
13979     for ac_exec_ext in '' $ac_executable_extensions; do
13980       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13981       as_fn_executable_p "$ac_path_FGREP" || continue
13982 # Check for GNU ac_path_FGREP and select it if it is found.
13983   # Check for GNU $ac_path_FGREP
13984 case `"$ac_path_FGREP" --version 2>&1` in
13985 *GNU*)
13986   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13987 *)
13988   ac_count=0
13989   $as_echo_n 0123456789 >"conftest.in"
13990   while :
13991   do
13992     cat "conftest.in" "conftest.in" >"conftest.tmp"
13993     mv "conftest.tmp" "conftest.in"
13994     cp "conftest.in" "conftest.nl"
13995     $as_echo 'FGREP' >> "conftest.nl"
13996     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13998     as_fn_arith $ac_count + 1 && ac_count=$as_val
13999     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14000       # Best one so far, save it but keep looking for a better one
14001       ac_cv_path_FGREP="$ac_path_FGREP"
14002       ac_path_FGREP_max=$ac_count
14003     fi
14004     # 10*(2^10) chars as input seems more than enough
14005     test $ac_count -gt 10 && break
14006   done
14007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14008 esac
14009 
14010       $ac_path_FGREP_found && break 3
14011     done
14012   done
14013   done
14014 IFS=$as_save_IFS
14015   if test -z "$ac_cv_path_FGREP"; then
14016     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14017   fi
14018 else
14019   ac_cv_path_FGREP=$FGREP
14020 fi
14021 
14022    fi
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14025 $as_echo "$ac_cv_path_FGREP" >&6; }
14026  FGREP="$ac_cv_path_FGREP"
14027 
14028 
14029     else
14030       # If it succeeded, then it was overridden by the user. We will use it
14031       # for the tool.
14032 
14033       # First remove it from the list of overridden variables, so we can test
14034       # for unknown variables in the end.
14035       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14036 
14037       # Check if we try to supply an empty value
14038       if test "x$FGREP" = x; then
14039         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14040 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14042 $as_echo_n "checking for FGREP... " >&6; }
14043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14044 $as_echo "disabled" >&6; }
14045       else
14046         # Check if the provided tool contains a complete path.
14047         tool_specified="$FGREP"
14048         tool_basename="${tool_specified##*/}"
14049         if test "x$tool_basename" = "x$tool_specified"; then
14050           # A command without a complete path is provided, search $PATH.
14051           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14052 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14053           # Extract the first word of "$tool_basename", so it can be a program name with args.
14054 set dummy $tool_basename; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if ${ac_cv_path_FGREP+:} false; then :
14058   $as_echo_n "(cached) " >&6
14059 else
14060   case $FGREP in
14061   [\\/]* | ?:[\\/]*)
14062   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14063   ;;
14064   *)
14065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14067 do
14068   IFS=$as_save_IFS
14069   test -z "$as_dir" && as_dir=.
14070     for ac_exec_ext in '' $ac_executable_extensions; do
14071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14072     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074     break 2
14075   fi
14076 done
14077   done
14078 IFS=$as_save_IFS
14079 
14080   ;;
14081 esac
14082 fi
14083 FGREP=$ac_cv_path_FGREP
14084 if test -n "$FGREP"; then
14085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14086 $as_echo "$FGREP" >&6; }
14087 else
14088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14090 fi
14091 
14092 
14093           if test "x$FGREP" = x; then
14094             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14095           fi
14096         else
14097           # Otherwise we believe it is a complete path. Use it as it is.
14098           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14099 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14100           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14101 $as_echo_n "checking for FGREP... " >&6; }
14102           if test ! -x "$tool_specified"; then
14103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14104 $as_echo "not found" >&6; }
14105             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14106           fi
14107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14108 $as_echo "$tool_specified" >&6; }
14109         fi
14110       fi
14111     fi
14112 
14113   fi
14114 
14115 
14116   if test "x$FGREP" = x; then
14117     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14118   fi
14119 
14120 
14121 
14122 
14123   # Publish this variable in the help.
14124 
14125 
14126   if [ -z "${SED+x}" ]; then
14127     # The variable is not set by user, try to locate tool using the code snippet
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14130 if ${ac_cv_path_SED+:} false; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14134      for ac_i in 1 2 3 4 5 6 7; do
14135        ac_script="$ac_script$as_nl$ac_script"
14136      done
14137      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14138      { ac_script=; unset ac_script;}
14139      if test -z "$SED"; then
14140   ac_path_SED_found=false
14141   # Loop through the user's path and test for each of PROGNAME-LIST
14142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145   IFS=$as_save_IFS
14146   test -z "$as_dir" && as_dir=.
14147     for ac_prog in sed gsed; do
14148     for ac_exec_ext in '' $ac_executable_extensions; do
14149       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14150       as_fn_executable_p "$ac_path_SED" || continue
14151 # Check for GNU ac_path_SED and select it if it is found.
14152   # Check for GNU $ac_path_SED
14153 case `"$ac_path_SED" --version 2>&1` in
14154 *GNU*)
14155   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14156 *)
14157   ac_count=0
14158   $as_echo_n 0123456789 >"conftest.in"
14159   while :
14160   do
14161     cat "conftest.in" "conftest.in" >"conftest.tmp"
14162     mv "conftest.tmp" "conftest.in"
14163     cp "conftest.in" "conftest.nl"
14164     $as_echo '' >> "conftest.nl"
14165     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14167     as_fn_arith $ac_count + 1 && ac_count=$as_val
14168     if test $ac_count -gt ${ac_path_SED_max-0}; then
14169       # Best one so far, save it but keep looking for a better one
14170       ac_cv_path_SED="$ac_path_SED"
14171       ac_path_SED_max=$ac_count
14172     fi
14173     # 10*(2^10) chars as input seems more than enough
14174     test $ac_count -gt 10 && break
14175   done
14176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14177 esac
14178 
14179       $ac_path_SED_found && break 3
14180     done
14181   done
14182   done
14183 IFS=$as_save_IFS
14184   if test -z "$ac_cv_path_SED"; then
14185     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14186   fi
14187 else
14188   ac_cv_path_SED=$SED
14189 fi
14190 
14191 fi
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14193 $as_echo "$ac_cv_path_SED" >&6; }
14194  SED="$ac_cv_path_SED"
14195   rm -f conftest.sed
14196 
14197   else
14198     # The variable is set, but is it from the command line or the environment?
14199 
14200     # Try to remove the string !SED! from our list.
14201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14203       # If it failed, the variable was not from the command line. Ignore it,
14204       # but warn the user (except for BASH, which is always set by the calling BASH).
14205       if test "xSED" != xBASH; then
14206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14207 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14208       fi
14209       # Try to locate tool using the code snippet
14210       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14211 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14212 if ${ac_cv_path_SED+:} false; then :
14213   $as_echo_n "(cached) " >&6
14214 else
14215             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14216      for ac_i in 1 2 3 4 5 6 7; do
14217        ac_script="$ac_script$as_nl$ac_script"
14218      done
14219      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14220      { ac_script=; unset ac_script;}
14221      if test -z "$SED"; then
14222   ac_path_SED_found=false
14223   # Loop through the user's path and test for each of PROGNAME-LIST
14224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227   IFS=$as_save_IFS
14228   test -z "$as_dir" && as_dir=.
14229     for ac_prog in sed gsed; do
14230     for ac_exec_ext in '' $ac_executable_extensions; do
14231       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14232       as_fn_executable_p "$ac_path_SED" || continue
14233 # Check for GNU ac_path_SED and select it if it is found.
14234   # Check for GNU $ac_path_SED
14235 case `"$ac_path_SED" --version 2>&1` in
14236 *GNU*)
14237   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14238 *)
14239   ac_count=0
14240   $as_echo_n 0123456789 >"conftest.in"
14241   while :
14242   do
14243     cat "conftest.in" "conftest.in" >"conftest.tmp"
14244     mv "conftest.tmp" "conftest.in"
14245     cp "conftest.in" "conftest.nl"
14246     $as_echo '' >> "conftest.nl"
14247     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14248     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14249     as_fn_arith $ac_count + 1 && ac_count=$as_val
14250     if test $ac_count -gt ${ac_path_SED_max-0}; then
14251       # Best one so far, save it but keep looking for a better one
14252       ac_cv_path_SED="$ac_path_SED"
14253       ac_path_SED_max=$ac_count
14254     fi
14255     # 10*(2^10) chars as input seems more than enough
14256     test $ac_count -gt 10 && break
14257   done
14258   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14259 esac
14260 
14261       $ac_path_SED_found && break 3
14262     done
14263   done
14264   done
14265 IFS=$as_save_IFS
14266   if test -z "$ac_cv_path_SED"; then
14267     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14268   fi
14269 else
14270   ac_cv_path_SED=$SED
14271 fi
14272 
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14275 $as_echo "$ac_cv_path_SED" >&6; }
14276  SED="$ac_cv_path_SED"
14277   rm -f conftest.sed
14278 
14279     else
14280       # If it succeeded, then it was overridden by the user. We will use it
14281       # for the tool.
14282 
14283       # First remove it from the list of overridden variables, so we can test
14284       # for unknown variables in the end.
14285       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14286 
14287       # Check if we try to supply an empty value
14288       if test "x$SED" = x; then
14289         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14290 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14292 $as_echo_n "checking for SED... " >&6; }
14293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14294 $as_echo "disabled" >&6; }
14295       else
14296         # Check if the provided tool contains a complete path.
14297         tool_specified="$SED"
14298         tool_basename="${tool_specified##*/}"
14299         if test "x$tool_basename" = "x$tool_specified"; then
14300           # A command without a complete path is provided, search $PATH.
14301           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14302 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14303           # Extract the first word of "$tool_basename", so it can be a program name with args.
14304 set dummy $tool_basename; ac_word=$2
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306 $as_echo_n "checking for $ac_word... " >&6; }
14307 if ${ac_cv_path_SED+:} false; then :
14308   $as_echo_n "(cached) " >&6
14309 else
14310   case $SED in
14311   [\\/]* | ?:[\\/]*)
14312   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14313   ;;
14314   *)
14315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14317 do
14318   IFS=$as_save_IFS
14319   test -z "$as_dir" && as_dir=.
14320     for ac_exec_ext in '' $ac_executable_extensions; do
14321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14322     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14324     break 2
14325   fi
14326 done
14327   done
14328 IFS=$as_save_IFS
14329 
14330   ;;
14331 esac
14332 fi
14333 SED=$ac_cv_path_SED
14334 if test -n "$SED"; then
14335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14336 $as_echo "$SED" >&6; }
14337 else
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 $as_echo "no" >&6; }
14340 fi
14341 
14342 
14343           if test "x$SED" = x; then
14344             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14345           fi
14346         else
14347           # Otherwise we believe it is a complete path. Use it as it is.
14348           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14349 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14350           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14351 $as_echo_n "checking for SED... " >&6; }
14352           if test ! -x "$tool_specified"; then
14353             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14354 $as_echo "not found" >&6; }
14355             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14356           fi
14357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14358 $as_echo "$tool_specified" >&6; }
14359         fi
14360       fi
14361     fi
14362 
14363   fi
14364 
14365 
14366   if test "x$SED" = x; then
14367     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14368   fi
14369 
14370 
14371 
14372   # Always force rm.
14373   RM="$RM -f"
14374 
14375   # pwd behaves differently on various platforms and some don't support the -L flag.
14376   # Always use the bash builtin pwd to get uniform behavior.
14377   THEPWDCMD=pwd
14378 
14379   # These are not required on all platforms
14380 
14381 
14382   # Publish this variable in the help.
14383 
14384 
14385   if [ -z "${CYGPATH+x}" ]; then
14386     # The variable is not set by user, try to locate tool using the code snippet
14387     for ac_prog in cygpath
14388 do
14389   # Extract the first word of "$ac_prog", so it can be a program name with args.
14390 set dummy $ac_prog; ac_word=$2
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14392 $as_echo_n "checking for $ac_word... " >&6; }
14393 if ${ac_cv_path_CYGPATH+:} false; then :
14394   $as_echo_n "(cached) " >&6
14395 else
14396   case $CYGPATH in
14397   [\\/]* | ?:[\\/]*)
14398   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14399   ;;
14400   *)
14401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14403 do
14404   IFS=$as_save_IFS
14405   test -z "$as_dir" && as_dir=.
14406     for ac_exec_ext in '' $ac_executable_extensions; do
14407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410     break 2
14411   fi
14412 done
14413   done
14414 IFS=$as_save_IFS
14415 
14416   ;;
14417 esac
14418 fi
14419 CYGPATH=$ac_cv_path_CYGPATH
14420 if test -n "$CYGPATH"; then
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14422 $as_echo "$CYGPATH" >&6; }
14423 else
14424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14425 $as_echo "no" >&6; }
14426 fi
14427 
14428 
14429   test -n "$CYGPATH" && break
14430 done
14431 
14432   else
14433     # The variable is set, but is it from the command line or the environment?
14434 
14435     # Try to remove the string !CYGPATH! from our list.
14436     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14437     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14438       # If it failed, the variable was not from the command line. Ignore it,
14439       # but warn the user (except for BASH, which is always set by the calling BASH).
14440       if test "xCYGPATH" != xBASH; then
14441         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14442 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14443       fi
14444       # Try to locate tool using the code snippet
14445       for ac_prog in cygpath
14446 do
14447   # Extract the first word of "$ac_prog", so it can be a program name with args.
14448 set dummy $ac_prog; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if ${ac_cv_path_CYGPATH+:} false; then :
14452   $as_echo_n "(cached) " >&6
14453 else
14454   case $CYGPATH in
14455   [\\/]* | ?:[\\/]*)
14456   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14457   ;;
14458   *)
14459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460 for as_dir in $PATH
14461 do
14462   IFS=$as_save_IFS
14463   test -z "$as_dir" && as_dir=.
14464     for ac_exec_ext in '' $ac_executable_extensions; do
14465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14466     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468     break 2
14469   fi
14470 done
14471   done
14472 IFS=$as_save_IFS
14473 
14474   ;;
14475 esac
14476 fi
14477 CYGPATH=$ac_cv_path_CYGPATH
14478 if test -n "$CYGPATH"; then
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14480 $as_echo "$CYGPATH" >&6; }
14481 else
14482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485 
14486 
14487   test -n "$CYGPATH" && break
14488 done
14489 
14490     else
14491       # If it succeeded, then it was overridden by the user. We will use it
14492       # for the tool.
14493 
14494       # First remove it from the list of overridden variables, so we can test
14495       # for unknown variables in the end.
14496       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14497 
14498       # Check if we try to supply an empty value
14499       if test "x$CYGPATH" = x; then
14500         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14501 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14503 $as_echo_n "checking for CYGPATH... " >&6; }
14504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14505 $as_echo "disabled" >&6; }
14506       else
14507         # Check if the provided tool contains a complete path.
14508         tool_specified="$CYGPATH"
14509         tool_basename="${tool_specified##*/}"
14510         if test "x$tool_basename" = "x$tool_specified"; then
14511           # A command without a complete path is provided, search $PATH.
14512           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14513 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14514           # Extract the first word of "$tool_basename", so it can be a program name with args.
14515 set dummy $tool_basename; ac_word=$2
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14517 $as_echo_n "checking for $ac_word... " >&6; }
14518 if ${ac_cv_path_CYGPATH+:} false; then :
14519   $as_echo_n "(cached) " >&6
14520 else
14521   case $CYGPATH in
14522   [\\/]* | ?:[\\/]*)
14523   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14524   ;;
14525   *)
14526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14528 do
14529   IFS=$as_save_IFS
14530   test -z "$as_dir" && as_dir=.
14531     for ac_exec_ext in '' $ac_executable_extensions; do
14532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14533     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14535     break 2
14536   fi
14537 done
14538   done
14539 IFS=$as_save_IFS
14540 
14541   ;;
14542 esac
14543 fi
14544 CYGPATH=$ac_cv_path_CYGPATH
14545 if test -n "$CYGPATH"; then
14546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14547 $as_echo "$CYGPATH" >&6; }
14548 else
14549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14550 $as_echo "no" >&6; }
14551 fi
14552 
14553 
14554           if test "x$CYGPATH" = x; then
14555             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14556           fi
14557         else
14558           # Otherwise we believe it is a complete path. Use it as it is.
14559           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14560 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14561           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14562 $as_echo_n "checking for CYGPATH... " >&6; }
14563           if test ! -x "$tool_specified"; then
14564             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14565 $as_echo "not found" >&6; }
14566             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14567           fi
14568           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14569 $as_echo "$tool_specified" >&6; }
14570         fi
14571       fi
14572     fi
14573 
14574   fi
14575 
14576 
14577 
14578 
14579   # Publish this variable in the help.
14580 
14581 
14582   if [ -z "${READLINK+x}" ]; then
14583     # The variable is not set by user, try to locate tool using the code snippet
14584     for ac_prog in greadlink readlink
14585 do
14586   # Extract the first word of "$ac_prog", so it can be a program name with args.
14587 set dummy $ac_prog; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_path_READLINK+:} false; then :
14591   $as_echo_n "(cached) " >&6
14592 else
14593   case $READLINK in
14594   [\\/]* | ?:[\\/]*)
14595   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14596   ;;
14597   *)
14598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14600 do
14601   IFS=$as_save_IFS
14602   test -z "$as_dir" && as_dir=.
14603     for ac_exec_ext in '' $ac_executable_extensions; do
14604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14607     break 2
14608   fi
14609 done
14610   done
14611 IFS=$as_save_IFS
14612 
14613   ;;
14614 esac
14615 fi
14616 READLINK=$ac_cv_path_READLINK
14617 if test -n "$READLINK"; then
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14619 $as_echo "$READLINK" >&6; }
14620 else
14621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14623 fi
14624 
14625 
14626   test -n "$READLINK" && break
14627 done
14628 
14629   else
14630     # The variable is set, but is it from the command line or the environment?
14631 
14632     # Try to remove the string !READLINK! from our list.
14633     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14634     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14635       # If it failed, the variable was not from the command line. Ignore it,
14636       # but warn the user (except for BASH, which is always set by the calling BASH).
14637       if test "xREADLINK" != xBASH; then
14638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14639 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14640       fi
14641       # Try to locate tool using the code snippet
14642       for ac_prog in greadlink readlink
14643 do
14644   # Extract the first word of "$ac_prog", so it can be a program name with args.
14645 set dummy $ac_prog; ac_word=$2
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14647 $as_echo_n "checking for $ac_word... " >&6; }
14648 if ${ac_cv_path_READLINK+:} false; then :
14649   $as_echo_n "(cached) " >&6
14650 else
14651   case $READLINK in
14652   [\\/]* | ?:[\\/]*)
14653   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14654   ;;
14655   *)
14656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14658 do
14659   IFS=$as_save_IFS
14660   test -z "$as_dir" && as_dir=.
14661     for ac_exec_ext in '' $ac_executable_extensions; do
14662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14663     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14665     break 2
14666   fi
14667 done
14668   done
14669 IFS=$as_save_IFS
14670 
14671   ;;
14672 esac
14673 fi
14674 READLINK=$ac_cv_path_READLINK
14675 if test -n "$READLINK"; then
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14677 $as_echo "$READLINK" >&6; }
14678 else
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680 $as_echo "no" >&6; }
14681 fi
14682 
14683 
14684   test -n "$READLINK" && break
14685 done
14686 
14687     else
14688       # If it succeeded, then it was overridden by the user. We will use it
14689       # for the tool.
14690 
14691       # First remove it from the list of overridden variables, so we can test
14692       # for unknown variables in the end.
14693       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14694 
14695       # Check if we try to supply an empty value
14696       if test "x$READLINK" = x; then
14697         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14698 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14700 $as_echo_n "checking for READLINK... " >&6; }
14701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14702 $as_echo "disabled" >&6; }
14703       else
14704         # Check if the provided tool contains a complete path.
14705         tool_specified="$READLINK"
14706         tool_basename="${tool_specified##*/}"
14707         if test "x$tool_basename" = "x$tool_specified"; then
14708           # A command without a complete path is provided, search $PATH.
14709           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14710 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14711           # Extract the first word of "$tool_basename", so it can be a program name with args.
14712 set dummy $tool_basename; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if ${ac_cv_path_READLINK+:} false; then :
14716   $as_echo_n "(cached) " >&6
14717 else
14718   case $READLINK in
14719   [\\/]* | ?:[\\/]*)
14720   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14721   ;;
14722   *)
14723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724 for as_dir in $PATH
14725 do
14726   IFS=$as_save_IFS
14727   test -z "$as_dir" && as_dir=.
14728     for ac_exec_ext in '' $ac_executable_extensions; do
14729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14730     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14732     break 2
14733   fi
14734 done
14735   done
14736 IFS=$as_save_IFS
14737 
14738   ;;
14739 esac
14740 fi
14741 READLINK=$ac_cv_path_READLINK
14742 if test -n "$READLINK"; then
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14744 $as_echo "$READLINK" >&6; }
14745 else
14746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14748 fi
14749 
14750 
14751           if test "x$READLINK" = x; then
14752             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14753           fi
14754         else
14755           # Otherwise we believe it is a complete path. Use it as it is.
14756           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14757 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14758           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14759 $as_echo_n "checking for READLINK... " >&6; }
14760           if test ! -x "$tool_specified"; then
14761             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14762 $as_echo "not found" >&6; }
14763             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14764           fi
14765           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14766 $as_echo "$tool_specified" >&6; }
14767         fi
14768       fi
14769     fi
14770 
14771   fi
14772 
14773 
14774 
14775 
14776   # Publish this variable in the help.
14777 
14778 
14779   if [ -z "${DF+x}" ]; then
14780     # The variable is not set by user, try to locate tool using the code snippet
14781     for ac_prog in df
14782 do
14783   # Extract the first word of "$ac_prog", so it can be a program name with args.
14784 set dummy $ac_prog; ac_word=$2
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786 $as_echo_n "checking for $ac_word... " >&6; }
14787 if ${ac_cv_path_DF+:} false; then :
14788   $as_echo_n "(cached) " >&6
14789 else
14790   case $DF in
14791   [\\/]* | ?:[\\/]*)
14792   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14793   ;;
14794   *)
14795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14797 do
14798   IFS=$as_save_IFS
14799   test -z "$as_dir" && as_dir=.
14800     for ac_exec_ext in '' $ac_executable_extensions; do
14801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804     break 2
14805   fi
14806 done
14807   done
14808 IFS=$as_save_IFS
14809 
14810   ;;
14811 esac
14812 fi
14813 DF=$ac_cv_path_DF
14814 if test -n "$DF"; then
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14816 $as_echo "$DF" >&6; }
14817 else
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14820 fi
14821 
14822 
14823   test -n "$DF" && break
14824 done
14825 
14826   else
14827     # The variable is set, but is it from the command line or the environment?
14828 
14829     # Try to remove the string !DF! from our list.
14830     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14831     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14832       # If it failed, the variable was not from the command line. Ignore it,
14833       # but warn the user (except for BASH, which is always set by the calling BASH).
14834       if test "xDF" != xBASH; then
14835         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14836 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14837       fi
14838       # Try to locate tool using the code snippet
14839       for ac_prog in df
14840 do
14841   # Extract the first word of "$ac_prog", so it can be a program name with args.
14842 set dummy $ac_prog; ac_word=$2
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14844 $as_echo_n "checking for $ac_word... " >&6; }
14845 if ${ac_cv_path_DF+:} false; then :
14846   $as_echo_n "(cached) " >&6
14847 else
14848   case $DF in
14849   [\\/]* | ?:[\\/]*)
14850   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14851   ;;
14852   *)
14853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14855 do
14856   IFS=$as_save_IFS
14857   test -z "$as_dir" && as_dir=.
14858     for ac_exec_ext in '' $ac_executable_extensions; do
14859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14860     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14862     break 2
14863   fi
14864 done
14865   done
14866 IFS=$as_save_IFS
14867 
14868   ;;
14869 esac
14870 fi
14871 DF=$ac_cv_path_DF
14872 if test -n "$DF"; then
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14874 $as_echo "$DF" >&6; }
14875 else
14876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877 $as_echo "no" >&6; }
14878 fi
14879 
14880 
14881   test -n "$DF" && break
14882 done
14883 
14884     else
14885       # If it succeeded, then it was overridden by the user. We will use it
14886       # for the tool.
14887 
14888       # First remove it from the list of overridden variables, so we can test
14889       # for unknown variables in the end.
14890       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14891 
14892       # Check if we try to supply an empty value
14893       if test "x$DF" = x; then
14894         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14895 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14897 $as_echo_n "checking for DF... " >&6; }
14898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14899 $as_echo "disabled" >&6; }
14900       else
14901         # Check if the provided tool contains a complete path.
14902         tool_specified="$DF"
14903         tool_basename="${tool_specified##*/}"
14904         if test "x$tool_basename" = "x$tool_specified"; then
14905           # A command without a complete path is provided, search $PATH.
14906           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14907 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14908           # Extract the first word of "$tool_basename", so it can be a program name with args.
14909 set dummy $tool_basename; ac_word=$2
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14911 $as_echo_n "checking for $ac_word... " >&6; }
14912 if ${ac_cv_path_DF+:} false; then :
14913   $as_echo_n "(cached) " >&6
14914 else
14915   case $DF in
14916   [\\/]* | ?:[\\/]*)
14917   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14918   ;;
14919   *)
14920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14922 do
14923   IFS=$as_save_IFS
14924   test -z "$as_dir" && as_dir=.
14925     for ac_exec_ext in '' $ac_executable_extensions; do
14926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929     break 2
14930   fi
14931 done
14932   done
14933 IFS=$as_save_IFS
14934 
14935   ;;
14936 esac
14937 fi
14938 DF=$ac_cv_path_DF
14939 if test -n "$DF"; then
14940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14941 $as_echo "$DF" >&6; }
14942 else
14943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14945 fi
14946 
14947 
14948           if test "x$DF" = x; then
14949             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14950           fi
14951         else
14952           # Otherwise we believe it is a complete path. Use it as it is.
14953           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14954 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14955           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14956 $as_echo_n "checking for DF... " >&6; }
14957           if test ! -x "$tool_specified"; then
14958             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14959 $as_echo "not found" >&6; }
14960             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14961           fi
14962           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14963 $as_echo "$tool_specified" >&6; }
14964         fi
14965       fi
14966     fi
14967 
14968   fi
14969 
14970 
14971 
14972 
14973   # Publish this variable in the help.
14974 
14975 
14976   if [ -z "${CPIO+x}" ]; then
14977     # The variable is not set by user, try to locate tool using the code snippet
14978     for ac_prog in cpio bsdcpio
14979 do
14980   # Extract the first word of "$ac_prog", so it can be a program name with args.
14981 set dummy $ac_prog; ac_word=$2
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14983 $as_echo_n "checking for $ac_word... " >&6; }
14984 if ${ac_cv_path_CPIO+:} false; then :
14985   $as_echo_n "(cached) " >&6
14986 else
14987   case $CPIO in
14988   [\\/]* | ?:[\\/]*)
14989   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14990   ;;
14991   *)
14992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993 for as_dir in $PATH
14994 do
14995   IFS=$as_save_IFS
14996   test -z "$as_dir" && as_dir=.
14997     for ac_exec_ext in '' $ac_executable_extensions; do
14998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14999     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15001     break 2
15002   fi
15003 done
15004   done
15005 IFS=$as_save_IFS
15006 
15007   ;;
15008 esac
15009 fi
15010 CPIO=$ac_cv_path_CPIO
15011 if test -n "$CPIO"; then
15012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15013 $as_echo "$CPIO" >&6; }
15014 else
15015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15017 fi
15018 
15019 
15020   test -n "$CPIO" && break
15021 done
15022 
15023   else
15024     # The variable is set, but is it from the command line or the environment?
15025 
15026     # Try to remove the string !CPIO! from our list.
15027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15029       # If it failed, the variable was not from the command line. Ignore it,
15030       # but warn the user (except for BASH, which is always set by the calling BASH).
15031       if test "xCPIO" != xBASH; then
15032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15033 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15034       fi
15035       # Try to locate tool using the code snippet
15036       for ac_prog in cpio bsdcpio
15037 do
15038   # Extract the first word of "$ac_prog", so it can be a program name with args.
15039 set dummy $ac_prog; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_path_CPIO+:} false; then :
15043   $as_echo_n "(cached) " >&6
15044 else
15045   case $CPIO in
15046   [\\/]* | ?:[\\/]*)
15047   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15048   ;;
15049   *)
15050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15052 do
15053   IFS=$as_save_IFS
15054   test -z "$as_dir" && as_dir=.
15055     for ac_exec_ext in '' $ac_executable_extensions; do
15056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059     break 2
15060   fi
15061 done
15062   done
15063 IFS=$as_save_IFS
15064 
15065   ;;
15066 esac
15067 fi
15068 CPIO=$ac_cv_path_CPIO
15069 if test -n "$CPIO"; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15071 $as_echo "$CPIO" >&6; }
15072 else
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15075 fi
15076 
15077 
15078   test -n "$CPIO" && break
15079 done
15080 
15081     else
15082       # If it succeeded, then it was overridden by the user. We will use it
15083       # for the tool.
15084 
15085       # First remove it from the list of overridden variables, so we can test
15086       # for unknown variables in the end.
15087       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15088 
15089       # Check if we try to supply an empty value
15090       if test "x$CPIO" = x; then
15091         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15092 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15094 $as_echo_n "checking for CPIO... " >&6; }
15095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15096 $as_echo "disabled" >&6; }
15097       else
15098         # Check if the provided tool contains a complete path.
15099         tool_specified="$CPIO"
15100         tool_basename="${tool_specified##*/}"
15101         if test "x$tool_basename" = "x$tool_specified"; then
15102           # A command without a complete path is provided, search $PATH.
15103           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15104 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15105           # Extract the first word of "$tool_basename", so it can be a program name with args.
15106 set dummy $tool_basename; ac_word=$2
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15108 $as_echo_n "checking for $ac_word... " >&6; }
15109 if ${ac_cv_path_CPIO+:} false; then :
15110   $as_echo_n "(cached) " >&6
15111 else
15112   case $CPIO in
15113   [\\/]* | ?:[\\/]*)
15114   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15115   ;;
15116   *)
15117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15119 do
15120   IFS=$as_save_IFS
15121   test -z "$as_dir" && as_dir=.
15122     for ac_exec_ext in '' $ac_executable_extensions; do
15123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15126     break 2
15127   fi
15128 done
15129   done
15130 IFS=$as_save_IFS
15131 
15132   ;;
15133 esac
15134 fi
15135 CPIO=$ac_cv_path_CPIO
15136 if test -n "$CPIO"; then
15137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15138 $as_echo "$CPIO" >&6; }
15139 else
15140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15141 $as_echo "no" >&6; }
15142 fi
15143 
15144 
15145           if test "x$CPIO" = x; then
15146             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15147           fi
15148         else
15149           # Otherwise we believe it is a complete path. Use it as it is.
15150           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15151 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15152           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15153 $as_echo_n "checking for CPIO... " >&6; }
15154           if test ! -x "$tool_specified"; then
15155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15156 $as_echo "not found" >&6; }
15157             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15158           fi
15159           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15160 $as_echo "$tool_specified" >&6; }
15161         fi
15162       fi
15163     fi
15164 
15165   fi
15166 
15167 
15168 
15169 
15170   # Publish this variable in the help.
15171 
15172 
15173   if [ -z "${NICE+x}" ]; then
15174     # The variable is not set by user, try to locate tool using the code snippet
15175     for ac_prog in nice
15176 do
15177   # Extract the first word of "$ac_prog", so it can be a program name with args.
15178 set dummy $ac_prog; ac_word=$2
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15180 $as_echo_n "checking for $ac_word... " >&6; }
15181 if ${ac_cv_path_NICE+:} false; then :
15182   $as_echo_n "(cached) " >&6
15183 else
15184   case $NICE in
15185   [\\/]* | ?:[\\/]*)
15186   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15187   ;;
15188   *)
15189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15190 for as_dir in $PATH
15191 do
15192   IFS=$as_save_IFS
15193   test -z "$as_dir" && as_dir=.
15194     for ac_exec_ext in '' $ac_executable_extensions; do
15195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15196     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15198     break 2
15199   fi
15200 done
15201   done
15202 IFS=$as_save_IFS
15203 
15204   ;;
15205 esac
15206 fi
15207 NICE=$ac_cv_path_NICE
15208 if test -n "$NICE"; then
15209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15210 $as_echo "$NICE" >&6; }
15211 else
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15213 $as_echo "no" >&6; }
15214 fi
15215 
15216 
15217   test -n "$NICE" && break
15218 done
15219 
15220   else
15221     # The variable is set, but is it from the command line or the environment?
15222 
15223     # Try to remove the string !NICE! from our list.
15224     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15225     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15226       # If it failed, the variable was not from the command line. Ignore it,
15227       # but warn the user (except for BASH, which is always set by the calling BASH).
15228       if test "xNICE" != xBASH; then
15229         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15230 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15231       fi
15232       # Try to locate tool using the code snippet
15233       for ac_prog in nice
15234 do
15235   # Extract the first word of "$ac_prog", so it can be a program name with args.
15236 set dummy $ac_prog; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238 $as_echo_n "checking for $ac_word... " >&6; }
15239 if ${ac_cv_path_NICE+:} false; then :
15240   $as_echo_n "(cached) " >&6
15241 else
15242   case $NICE in
15243   [\\/]* | ?:[\\/]*)
15244   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15245   ;;
15246   *)
15247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248 for as_dir in $PATH
15249 do
15250   IFS=$as_save_IFS
15251   test -z "$as_dir" && as_dir=.
15252     for ac_exec_ext in '' $ac_executable_extensions; do
15253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15256     break 2
15257   fi
15258 done
15259   done
15260 IFS=$as_save_IFS
15261 
15262   ;;
15263 esac
15264 fi
15265 NICE=$ac_cv_path_NICE
15266 if test -n "$NICE"; then
15267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15268 $as_echo "$NICE" >&6; }
15269 else
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15272 fi
15273 
15274 
15275   test -n "$NICE" && break
15276 done
15277 
15278     else
15279       # If it succeeded, then it was overridden by the user. We will use it
15280       # for the tool.
15281 
15282       # First remove it from the list of overridden variables, so we can test
15283       # for unknown variables in the end.
15284       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15285 
15286       # Check if we try to supply an empty value
15287       if test "x$NICE" = x; then
15288         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15289 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15291 $as_echo_n "checking for NICE... " >&6; }
15292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15293 $as_echo "disabled" >&6; }
15294       else
15295         # Check if the provided tool contains a complete path.
15296         tool_specified="$NICE"
15297         tool_basename="${tool_specified##*/}"
15298         if test "x$tool_basename" = "x$tool_specified"; then
15299           # A command without a complete path is provided, search $PATH.
15300           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15301 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15302           # Extract the first word of "$tool_basename", so it can be a program name with args.
15303 set dummy $tool_basename; ac_word=$2
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15305 $as_echo_n "checking for $ac_word... " >&6; }
15306 if ${ac_cv_path_NICE+:} false; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309   case $NICE in
15310   [\\/]* | ?:[\\/]*)
15311   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15312   ;;
15313   *)
15314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315 for as_dir in $PATH
15316 do
15317   IFS=$as_save_IFS
15318   test -z "$as_dir" && as_dir=.
15319     for ac_exec_ext in '' $ac_executable_extensions; do
15320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15321     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15323     break 2
15324   fi
15325 done
15326   done
15327 IFS=$as_save_IFS
15328 
15329   ;;
15330 esac
15331 fi
15332 NICE=$ac_cv_path_NICE
15333 if test -n "$NICE"; then
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15335 $as_echo "$NICE" >&6; }
15336 else
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338 $as_echo "no" >&6; }
15339 fi
15340 
15341 
15342           if test "x$NICE" = x; then
15343             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15344           fi
15345         else
15346           # Otherwise we believe it is a complete path. Use it as it is.
15347           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15348 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15349           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15350 $as_echo_n "checking for NICE... " >&6; }
15351           if test ! -x "$tool_specified"; then
15352             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15353 $as_echo "not found" >&6; }
15354             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15355           fi
15356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15357 $as_echo "$tool_specified" >&6; }
15358         fi
15359       fi
15360     fi
15361 
15362   fi
15363 
15364 
15365 
15366 
15367   # Publish this variable in the help.
15368 
15369 
15370   if [ -z "${PANDOC+x}" ]; then
15371     # The variable is not set by user, try to locate tool using the code snippet
15372     for ac_prog in pandoc
15373 do
15374   # Extract the first word of "$ac_prog", so it can be a program name with args.
15375 set dummy $ac_prog; ac_word=$2
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15377 $as_echo_n "checking for $ac_word... " >&6; }
15378 if ${ac_cv_path_PANDOC+:} false; then :
15379   $as_echo_n "(cached) " >&6
15380 else
15381   case $PANDOC in
15382   [\\/]* | ?:[\\/]*)
15383   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15384   ;;
15385   *)
15386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387 for as_dir in $PATH
15388 do
15389   IFS=$as_save_IFS
15390   test -z "$as_dir" && as_dir=.
15391     for ac_exec_ext in '' $ac_executable_extensions; do
15392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15393     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395     break 2
15396   fi
15397 done
15398   done
15399 IFS=$as_save_IFS
15400 
15401   ;;
15402 esac
15403 fi
15404 PANDOC=$ac_cv_path_PANDOC
15405 if test -n "$PANDOC"; then
15406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15407 $as_echo "$PANDOC" >&6; }
15408 else
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15411 fi
15412 
15413 
15414   test -n "$PANDOC" && break
15415 done
15416 
15417   else
15418     # The variable is set, but is it from the command line or the environment?
15419 
15420     # Try to remove the string !PANDOC! from our list.
15421     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15422     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15423       # If it failed, the variable was not from the command line. Ignore it,
15424       # but warn the user (except for BASH, which is always set by the calling BASH).
15425       if test "xPANDOC" != xBASH; then
15426         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15427 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15428       fi
15429       # Try to locate tool using the code snippet
15430       for ac_prog in pandoc
15431 do
15432   # Extract the first word of "$ac_prog", so it can be a program name with args.
15433 set dummy $ac_prog; ac_word=$2
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15435 $as_echo_n "checking for $ac_word... " >&6; }
15436 if ${ac_cv_path_PANDOC+:} false; then :
15437   $as_echo_n "(cached) " >&6
15438 else
15439   case $PANDOC in
15440   [\\/]* | ?:[\\/]*)
15441   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15442   ;;
15443   *)
15444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15445 for as_dir in $PATH
15446 do
15447   IFS=$as_save_IFS
15448   test -z "$as_dir" && as_dir=.
15449     for ac_exec_ext in '' $ac_executable_extensions; do
15450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15451     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15453     break 2
15454   fi
15455 done
15456   done
15457 IFS=$as_save_IFS
15458 
15459   ;;
15460 esac
15461 fi
15462 PANDOC=$ac_cv_path_PANDOC
15463 if test -n "$PANDOC"; then
15464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15465 $as_echo "$PANDOC" >&6; }
15466 else
15467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468 $as_echo "no" >&6; }
15469 fi
15470 
15471 
15472   test -n "$PANDOC" && break
15473 done
15474 
15475     else
15476       # If it succeeded, then it was overridden by the user. We will use it
15477       # for the tool.
15478 
15479       # First remove it from the list of overridden variables, so we can test
15480       # for unknown variables in the end.
15481       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15482 
15483       # Check if we try to supply an empty value
15484       if test "x$PANDOC" = x; then
15485         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15486 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15488 $as_echo_n "checking for PANDOC... " >&6; }
15489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15490 $as_echo "disabled" >&6; }
15491       else
15492         # Check if the provided tool contains a complete path.
15493         tool_specified="$PANDOC"
15494         tool_basename="${tool_specified##*/}"
15495         if test "x$tool_basename" = "x$tool_specified"; then
15496           # A command without a complete path is provided, search $PATH.
15497           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15498 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15499           # Extract the first word of "$tool_basename", so it can be a program name with args.
15500 set dummy $tool_basename; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15502 $as_echo_n "checking for $ac_word... " >&6; }
15503 if ${ac_cv_path_PANDOC+:} false; then :
15504   $as_echo_n "(cached) " >&6
15505 else
15506   case $PANDOC in
15507   [\\/]* | ?:[\\/]*)
15508   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15509   ;;
15510   *)
15511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15513 do
15514   IFS=$as_save_IFS
15515   test -z "$as_dir" && as_dir=.
15516     for ac_exec_ext in '' $ac_executable_extensions; do
15517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15520     break 2
15521   fi
15522 done
15523   done
15524 IFS=$as_save_IFS
15525 
15526   ;;
15527 esac
15528 fi
15529 PANDOC=$ac_cv_path_PANDOC
15530 if test -n "$PANDOC"; then
15531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15532 $as_echo "$PANDOC" >&6; }
15533 else
15534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15535 $as_echo "no" >&6; }
15536 fi
15537 
15538 
15539           if test "x$PANDOC" = x; then
15540             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15541           fi
15542         else
15543           # Otherwise we believe it is a complete path. Use it as it is.
15544           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15545 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15546           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15547 $as_echo_n "checking for PANDOC... " >&6; }
15548           if test ! -x "$tool_specified"; then
15549             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15550 $as_echo "not found" >&6; }
15551             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15552           fi
15553           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15554 $as_echo "$tool_specified" >&6; }
15555         fi
15556       fi
15557     fi
15558 
15559   fi
15560 
15561 
15562 
15563 
15564 # Now we can determine OpenJDK build and target platforms. This is required to
15565 # have early on.
15566 # Make sure we can run config.sub.
15567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15568   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15569 
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15571 $as_echo_n "checking build system type... " >&6; }
15572 if ${ac_cv_build+:} false; then :
15573   $as_echo_n "(cached) " >&6
15574 else
15575   ac_build_alias=$build_alias
15576 test "x$ac_build_alias" = x &&
15577   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15578 test "x$ac_build_alias" = x &&
15579   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15580 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15581   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15582 
15583 fi
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15585 $as_echo "$ac_cv_build" >&6; }
15586 case $ac_cv_build in
15587 *-*-*) ;;
15588 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15589 esac
15590 build=$ac_cv_build
15591 ac_save_IFS=$IFS; IFS='-'
15592 set x $ac_cv_build
15593 shift
15594 build_cpu=$1
15595 build_vendor=$2
15596 shift; shift
15597 # Remember, the first character of IFS is used to create $*,
15598 # except with old shells:
15599 build_os=$*
15600 IFS=$ac_save_IFS
15601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15602 
15603 
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15605 $as_echo_n "checking host system type... " >&6; }
15606 if ${ac_cv_host+:} false; then :
15607   $as_echo_n "(cached) " >&6
15608 else
15609   if test "x$host_alias" = x; then
15610   ac_cv_host=$ac_cv_build
15611 else
15612   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15613     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15614 fi
15615 
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15618 $as_echo "$ac_cv_host" >&6; }
15619 case $ac_cv_host in
15620 *-*-*) ;;
15621 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15622 esac
15623 host=$ac_cv_host
15624 ac_save_IFS=$IFS; IFS='-'
15625 set x $ac_cv_host
15626 shift
15627 host_cpu=$1
15628 host_vendor=$2
15629 shift; shift
15630 # Remember, the first character of IFS is used to create $*,
15631 # except with old shells:
15632 host_os=$*
15633 IFS=$ac_save_IFS
15634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15635 
15636 
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15638 $as_echo_n "checking target system type... " >&6; }
15639 if ${ac_cv_target+:} false; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   if test "x$target_alias" = x; then
15643   ac_cv_target=$ac_cv_host
15644 else
15645   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15646     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15647 fi
15648 
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15651 $as_echo "$ac_cv_target" >&6; }
15652 case $ac_cv_target in
15653 *-*-*) ;;
15654 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15655 esac
15656 target=$ac_cv_target
15657 ac_save_IFS=$IFS; IFS='-'
15658 set x $ac_cv_target
15659 shift
15660 target_cpu=$1
15661 target_vendor=$2
15662 shift; shift
15663 # Remember, the first character of IFS is used to create $*,
15664 # except with old shells:
15665 target_os=$*
15666 IFS=$ac_save_IFS
15667 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15668 
15669 
15670 # The aliases save the names the user supplied, while $host etc.
15671 # will get canonicalized.
15672 test -n "$target_alias" &&
15673   test "$program_prefix$program_suffix$program_transform_name" = \
15674     NONENONEs,x,x, &&
15675   program_prefix=${target_alias}-
15676 
15677   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15678   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15679   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15680   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15681   # to use the configure naming style.
15682 
15683 
15684 
15685 
15686 
15687   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15688   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15689   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15690   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15691   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15692   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15693 
15694 
15695 
15696   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15697 
15698   case "$build_os" in
15699     *linux*)
15700       VAR_OS=linux
15701       VAR_OS_TYPE=unix
15702       ;;
15703     *solaris*)
15704       VAR_OS=solaris
15705       VAR_OS_TYPE=unix
15706       ;;
15707     *darwin*)
15708       VAR_OS=macosx
15709       VAR_OS_TYPE=unix
15710       ;;
15711     *bsd*)
15712       VAR_OS=bsd
15713       VAR_OS_TYPE=unix
15714       ;;
15715     *cygwin*)
15716       VAR_OS=windows
15717       VAR_OS_ENV=windows.cygwin
15718       ;;
15719     *mingw*)
15720       VAR_OS=windows
15721       VAR_OS_ENV=windows.msys
15722       ;;
15723     *aix*)
15724       VAR_OS=aix
15725       VAR_OS_TYPE=unix
15726       ;;
15727     *)
15728       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15729       ;;
15730   esac
15731 
15732 
15733   # First argument is the cpu name from the trip/quad
15734   case "$build_cpu" in
15735     x86_64)
15736       VAR_CPU=x86_64
15737       VAR_CPU_ARCH=x86
15738       VAR_CPU_BITS=64
15739       VAR_CPU_ENDIAN=little
15740       ;;
15741     i?86)
15742       VAR_CPU=x86
15743       VAR_CPU_ARCH=x86
15744       VAR_CPU_BITS=32
15745       VAR_CPU_ENDIAN=little
15746       ;;
15747     alpha*)
15748       VAR_CPU=alpha
15749       VAR_CPU_ARCH=alpha
15750       VAR_CPU_BITS=64
15751       VAR_CPU_ENDIAN=little
15752       ;;
15753     arm*)
15754       VAR_CPU=arm
15755       VAR_CPU_ARCH=arm
15756       VAR_CPU_BITS=32
15757       VAR_CPU_ENDIAN=little
15758       ;;
15759     aarch64)
15760       VAR_CPU=aarch64
15761       VAR_CPU_ARCH=aarch64
15762       VAR_CPU_BITS=64
15763       VAR_CPU_ENDIAN=little
15764       ;;
15765     m68k)
15766       VAR_CPU=m68k
15767       VAR_CPU_ARCH=m68k
15768       VAR_CPU_BITS=32
15769       VAR_CPU_ENDIAN=big
15770       ;;
15771     mips)
15772       VAR_CPU=mips
15773       VAR_CPU_ARCH=mips
15774       VAR_CPU_BITS=32
15775       VAR_CPU_ENDIAN=big
15776       ;;
15777     mipsel)
15778       VAR_CPU=mipsel
15779       VAR_CPU_ARCH=mipsel
15780       VAR_CPU_BITS=32
15781       VAR_CPU_ENDIAN=little
15782       ;;
15783     mips64)
15784       VAR_CPU=mips64
15785       VAR_CPU_ARCH=mips64
15786       VAR_CPU_BITS=64
15787       VAR_CPU_ENDIAN=big
15788       ;;
15789     mips64el)
15790       VAR_CPU=mips64el
15791       VAR_CPU_ARCH=mips64el
15792       VAR_CPU_BITS=64
15793       VAR_CPU_ENDIAN=little
15794       ;;
15795     powerpc)
15796       VAR_CPU=ppc
15797       VAR_CPU_ARCH=ppc
15798       VAR_CPU_BITS=32
15799       VAR_CPU_ENDIAN=big
15800       ;;
15801     powerpc64)
15802       VAR_CPU=ppc64
15803       VAR_CPU_ARCH=ppc
15804       VAR_CPU_BITS=64
15805       VAR_CPU_ENDIAN=big
15806       ;;
15807     powerpc64le)
15808       VAR_CPU=ppc64le
15809       VAR_CPU_ARCH=ppc
15810       VAR_CPU_BITS=64
15811       VAR_CPU_ENDIAN=little
15812       ;;
15813     s390)
15814       VAR_CPU=s390
15815       VAR_CPU_ARCH=s390
15816       VAR_CPU_BITS=32
15817       VAR_CPU_ENDIAN=big
15818       ;;
15819     s390x)
15820       VAR_CPU=s390x
15821       VAR_CPU_ARCH=s390
15822       VAR_CPU_BITS=64
15823       VAR_CPU_ENDIAN=big
15824       ;;
15825     sh*eb)
15826       VAR_CPU=sh
15827       VAR_CPU_ARCH=sh
15828       VAR_CPU_BITS=32
15829       VAR_CPU_ENDIAN=big
15830       ;;
15831     sh*)
15832       VAR_CPU=sh
15833       VAR_CPU_ARCH=sh
15834       VAR_CPU_BITS=32
15835       VAR_CPU_ENDIAN=little
15836       ;;
15837     sparc)
15838       VAR_CPU=sparc
15839       VAR_CPU_ARCH=sparc
15840       VAR_CPU_BITS=32
15841       VAR_CPU_ENDIAN=big
15842       ;;
15843     sparcv9|sparc64)
15844       VAR_CPU=sparcv9
15845       VAR_CPU_ARCH=sparc
15846       VAR_CPU_BITS=64
15847       VAR_CPU_ENDIAN=big
15848       ;;
15849     *)
15850       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15851       ;;
15852   esac
15853 
15854   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15855   OPENJDK_BUILD_OS="$VAR_OS"
15856   if test "x$VAR_OS_TYPE" != x; then
15857     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15858   else
15859     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15860   fi
15861   if test "x$VAR_OS_ENV" != x; then
15862     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15863   else
15864     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15865   fi
15866   OPENJDK_BUILD_CPU="$VAR_CPU"
15867   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15868   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15869   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15870 
15871 
15872 
15873 
15874 
15875 
15876 
15877 
15878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15879 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15881 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15882 
15883   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15884 
15885   case "$host_os" in
15886     *linux*)
15887       VAR_OS=linux
15888       VAR_OS_TYPE=unix
15889       ;;
15890     *solaris*)
15891       VAR_OS=solaris
15892       VAR_OS_TYPE=unix
15893       ;;
15894     *darwin*)
15895       VAR_OS=macosx
15896       VAR_OS_TYPE=unix
15897       ;;
15898     *bsd*)
15899       VAR_OS=bsd
15900       VAR_OS_TYPE=unix
15901       ;;
15902     *cygwin*)
15903       VAR_OS=windows
15904       VAR_OS_ENV=windows.cygwin
15905       ;;
15906     *mingw*)
15907       VAR_OS=windows
15908       VAR_OS_ENV=windows.msys
15909       ;;
15910     *aix*)
15911       VAR_OS=aix
15912       VAR_OS_TYPE=unix
15913       ;;
15914     *)
15915       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15916       ;;
15917   esac
15918 
15919 
15920   # First argument is the cpu name from the trip/quad
15921   case "$host_cpu" in
15922     x86_64)
15923       VAR_CPU=x86_64
15924       VAR_CPU_ARCH=x86
15925       VAR_CPU_BITS=64
15926       VAR_CPU_ENDIAN=little
15927       ;;
15928     i?86)
15929       VAR_CPU=x86
15930       VAR_CPU_ARCH=x86
15931       VAR_CPU_BITS=32
15932       VAR_CPU_ENDIAN=little
15933       ;;
15934     alpha*)
15935       VAR_CPU=alpha
15936       VAR_CPU_ARCH=alpha
15937       VAR_CPU_BITS=64
15938       VAR_CPU_ENDIAN=little
15939       ;;
15940     arm*)
15941       VAR_CPU=arm
15942       VAR_CPU_ARCH=arm
15943       VAR_CPU_BITS=32
15944       VAR_CPU_ENDIAN=little
15945       ;;
15946     aarch64)
15947       VAR_CPU=aarch64
15948       VAR_CPU_ARCH=aarch64
15949       VAR_CPU_BITS=64
15950       VAR_CPU_ENDIAN=little
15951       ;;
15952     m68k)
15953       VAR_CPU=m68k
15954       VAR_CPU_ARCH=m68k
15955       VAR_CPU_BITS=32
15956       VAR_CPU_ENDIAN=big
15957       ;;
15958     mips)
15959       VAR_CPU=mips
15960       VAR_CPU_ARCH=mips
15961       VAR_CPU_BITS=32
15962       VAR_CPU_ENDIAN=big
15963       ;;
15964     mipsel)
15965       VAR_CPU=mipsel
15966       VAR_CPU_ARCH=mipsel
15967       VAR_CPU_BITS=32
15968       VAR_CPU_ENDIAN=little
15969       ;;
15970     mips64)
15971       VAR_CPU=mips64
15972       VAR_CPU_ARCH=mips64
15973       VAR_CPU_BITS=64
15974       VAR_CPU_ENDIAN=big
15975       ;;
15976     mips64el)
15977       VAR_CPU=mips64el
15978       VAR_CPU_ARCH=mips64el
15979       VAR_CPU_BITS=64
15980       VAR_CPU_ENDIAN=little
15981       ;;
15982     powerpc)
15983       VAR_CPU=ppc
15984       VAR_CPU_ARCH=ppc
15985       VAR_CPU_BITS=32
15986       VAR_CPU_ENDIAN=big
15987       ;;
15988     powerpc64)
15989       VAR_CPU=ppc64
15990       VAR_CPU_ARCH=ppc
15991       VAR_CPU_BITS=64
15992       VAR_CPU_ENDIAN=big
15993       ;;
15994     powerpc64le)
15995       VAR_CPU=ppc64le
15996       VAR_CPU_ARCH=ppc
15997       VAR_CPU_BITS=64
15998       VAR_CPU_ENDIAN=little
15999       ;;
16000     s390)
16001       VAR_CPU=s390
16002       VAR_CPU_ARCH=s390
16003       VAR_CPU_BITS=32
16004       VAR_CPU_ENDIAN=big
16005       ;;
16006     s390x)
16007       VAR_CPU=s390x
16008       VAR_CPU_ARCH=s390
16009       VAR_CPU_BITS=64
16010       VAR_CPU_ENDIAN=big
16011       ;;
16012     sh*eb)
16013       VAR_CPU=sh
16014       VAR_CPU_ARCH=sh
16015       VAR_CPU_BITS=32
16016       VAR_CPU_ENDIAN=big
16017       ;;
16018     sh*)
16019       VAR_CPU=sh
16020       VAR_CPU_ARCH=sh
16021       VAR_CPU_BITS=32
16022       VAR_CPU_ENDIAN=little
16023       ;;
16024     sparc)
16025       VAR_CPU=sparc
16026       VAR_CPU_ARCH=sparc
16027       VAR_CPU_BITS=32
16028       VAR_CPU_ENDIAN=big
16029       ;;
16030     sparcv9|sparc64)
16031       VAR_CPU=sparcv9
16032       VAR_CPU_ARCH=sparc
16033       VAR_CPU_BITS=64
16034       VAR_CPU_ENDIAN=big
16035       ;;
16036     *)
16037       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16038       ;;
16039   esac
16040 
16041   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16042   OPENJDK_TARGET_OS="$VAR_OS"
16043   if test "x$VAR_OS_TYPE" != x; then
16044     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16045   else
16046     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16047   fi
16048   if test "x$VAR_OS_ENV" != x; then
16049     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16050   else
16051     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16052   fi
16053   OPENJDK_TARGET_CPU="$VAR_CPU"
16054   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16055   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16056   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16057 
16058 
16059 
16060 
16061 
16062 
16063 
16064 
16065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16066 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16068 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16069 
16070 
16071 
16072 # Check whether --with-target-bits was given.
16073 if test "${with_target_bits+set}" = set; then :
16074   withval=$with_target_bits;
16075 fi
16076 
16077 
16078   # We have three types of compiles:
16079   # native  == normal compilation, target system == build system
16080   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16081   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16082   #
16083   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16084     # We're doing a proper cross-compilation
16085     COMPILE_TYPE="cross"
16086   else
16087     COMPILE_TYPE="native"
16088   fi
16089 
16090   if test "x$with_target_bits" != x; then
16091     if test "x$COMPILE_TYPE" = "xcross"; then
16092       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16093     fi
16094 
16095     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16096       # A reduced build is requested
16097       COMPILE_TYPE="reduced"
16098       OPENJDK_TARGET_CPU_BITS=32
16099       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16100         OPENJDK_TARGET_CPU=x86
16101       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16102         OPENJDK_TARGET_CPU=sparc
16103       else
16104         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16105       fi
16106     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16107       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
16108     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16109       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16110 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16111     else
16112       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16113     fi
16114   fi
16115 
16116 
16117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16118 $as_echo_n "checking compilation type... " >&6; }
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16120 $as_echo "$COMPILE_TYPE" >&6; }
16121 
16122 
16123   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16124     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16125   else
16126     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16127   fi
16128 
16129   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16130     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16131   else
16132     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16133   fi
16134 
16135   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16136 
16137 
16138 
16139   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16140     RELEASE_FILE_OS_NAME=SunOS
16141   fi
16142   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16143     RELEASE_FILE_OS_NAME=Linux
16144   fi
16145   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16146     RELEASE_FILE_OS_NAME=Windows
16147   fi
16148   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16149     RELEASE_FILE_OS_NAME="Darwin"
16150   fi
16151   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16152     RELEASE_FILE_OS_NAME="AIX"
16153   fi
16154   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16155 
16156 
16157 
16158 
16159 
16160 
16161   # Also store the legacy naming of the cpu.
16162   # Ie i586 and amd64 instead of x86 and x86_64
16163   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16164   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16165     OPENJDK_TARGET_CPU_LEGACY="i586"
16166   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16167     # On all platforms except MacOSX replace x86_64 with amd64.
16168     OPENJDK_TARGET_CPU_LEGACY="amd64"
16169   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16170     # Avoid name collisions with variables named alpha
16171     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16172   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16173     # Avoid name collisions with variables named sh
16174     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16175   fi
16176 
16177 
16178   # And the second legacy naming of the cpu.
16179   # Ie i386 and amd64 instead of x86 and x86_64.
16180   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16181   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16182     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16183   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16184     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16185   fi
16186 
16187 
16188   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16189   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16190   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16191   OPENJDK_TARGET_CPU_ISADIR=""
16192   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16193     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16194       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16195     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16196       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16197     fi
16198   fi
16199 
16200 
16201   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16202   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16203   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16204     # On linux only, we replace x86 with i386.
16205     OPENJDK_TARGET_CPU_OSARCH="i386"
16206   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16207     # On all platforms except macosx, we replace x86_64 with amd64.
16208     OPENJDK_TARGET_CPU_OSARCH="amd64"
16209   fi
16210 
16211 
16212   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16213   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16214     OPENJDK_TARGET_CPU_JLI="i386"
16215   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16216     # On all platforms except macosx, we replace x86_64 with amd64.
16217     OPENJDK_TARGET_CPU_JLI="amd64"
16218   fi
16219 
16220   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16221   # Macosx is osx and x86_64 is x64
16222   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16223     OPENJDK_TARGET_OS_BUNDLE="osx"
16224   else
16225     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16226   fi
16227   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16228     OPENJDK_TARGET_CPU_BUNDLE="x64"
16229   else
16230     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16231   fi
16232   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16233 
16234 
16235   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16236     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16237     # unpack200.exe. This variable is used in
16238     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16239     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16240       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16241     fi
16242   fi
16243 
16244   if test "x$COMPILE_TYPE" = "xcross"; then
16245     # FIXME: ... or should this include reduced builds..?
16246     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16247   else
16248     DEFINE_CROSS_COMPILE_ARCH=""
16249   fi
16250 
16251 
16252   # Convert openjdk platform names to hotspot names
16253 
16254   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16255   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16256     HOTSPOT_TARGET_OS=bsd
16257   fi
16258 
16259 
16260   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16261   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16262     HOTSPOT_TARGET_OS_TYPE=posix
16263   fi
16264 
16265 
16266   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16267   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16268     HOTSPOT_TARGET_CPU=x86_32
16269   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16270     HOTSPOT_TARGET_CPU=sparc
16271   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16272     HOTSPOT_TARGET_CPU=ppc_64
16273   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16274     HOTSPOT_TARGET_CPU=ppc_64
16275   fi
16276 
16277 
16278   # This is identical with OPENJDK_*, but define anyway for consistency.
16279   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16280 
16281 
16282   # Setup HOTSPOT_TARGET_CPU_DEFINE
16283   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16284     HOTSPOT_TARGET_CPU_DEFINE=IA32
16285   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16286     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16287   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16288     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16289   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16290     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16291   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16292     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16293   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16294     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16295 
16296   # The cpu defines below are for zero, we don't support them directly.
16297   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16298     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16299   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16300     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16301   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16302     HOTSPOT_TARGET_CPU_DEFINE=S390
16303   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16304     HOTSPOT_TARGET_CPU_DEFINE=S390
16305   elif test "x$OPENJDK_TARGET_CPU" != x; then
16306     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16307   fi
16308 
16309 
16310   # For historical reasons, the OS include directories have odd names.
16311   OPENJDK_TARGET_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
16312   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16313     OPENJDK_TARGET_OS_INCLUDE_SUBDIR="win32"
16314   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16315     OPENJDK_TARGET_OS_INCLUDE_SUBDIR="darwin"
16316   fi
16317 
16318 
16319 
16320   # Also store the legacy naming of the cpu.
16321   # Ie i586 and amd64 instead of x86 and x86_64
16322   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16323   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16324     OPENJDK_BUILD_CPU_LEGACY="i586"
16325   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16326     # On all platforms except MacOSX replace x86_64 with amd64.
16327     OPENJDK_BUILD_CPU_LEGACY="amd64"
16328   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16329     # Avoid name collisions with variables named alpha
16330     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16331   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16332     # Avoid name collisions with variables named sh
16333     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16334   fi
16335 
16336 
16337   # And the second legacy naming of the cpu.
16338   # Ie i386 and amd64 instead of x86 and x86_64.
16339   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16340   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16341     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16342   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16343     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16344   fi
16345 
16346 
16347   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16348   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16349   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16350   OPENJDK_BUILD_CPU_ISADIR=""
16351   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16352     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16353       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16354     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16355       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16356     fi
16357   fi
16358 
16359 
16360   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16361   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16362   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16363     # On linux only, we replace x86 with i386.
16364     OPENJDK_BUILD_CPU_OSARCH="i386"
16365   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16366     # On all platforms except macosx, we replace x86_64 with amd64.
16367     OPENJDK_BUILD_CPU_OSARCH="amd64"
16368   fi
16369 
16370 
16371   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16372   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16373     OPENJDK_BUILD_CPU_JLI="i386"
16374   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16375     # On all platforms except macosx, we replace x86_64 with amd64.
16376     OPENJDK_BUILD_CPU_JLI="amd64"
16377   fi
16378 
16379   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16380   # Macosx is osx and x86_64 is x64
16381   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16382     OPENJDK_BUILD_OS_BUNDLE="osx"
16383   else
16384     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16385   fi
16386   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16387     OPENJDK_BUILD_CPU_BUNDLE="x64"
16388   else
16389     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16390   fi
16391   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16392 
16393 
16394   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16395     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16396     # unpack200.exe. This variable is used in
16397     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16398     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16399       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16400     fi
16401   fi
16402 
16403   if test "x$COMPILE_TYPE" = "xcross"; then
16404     # FIXME: ... or should this include reduced builds..?
16405     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16406   else
16407     DEFINE_CROSS_COMPILE_ARCH=""
16408   fi
16409 
16410 
16411   # Convert openjdk platform names to hotspot names
16412 
16413   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16414   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16415     HOTSPOT_BUILD_OS=bsd
16416   fi
16417 
16418 
16419   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16420   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16421     HOTSPOT_BUILD_OS_TYPE=posix
16422   fi
16423 
16424 
16425   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16426   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16427     HOTSPOT_BUILD_CPU=x86_32
16428   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16429     HOTSPOT_BUILD_CPU=sparc
16430   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16431     HOTSPOT_BUILD_CPU=ppc_64
16432   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16433     HOTSPOT_BUILD_CPU=ppc_64
16434   fi
16435 
16436 
16437   # This is identical with OPENJDK_*, but define anyway for consistency.
16438   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16439 
16440 
16441   # Setup HOTSPOT_BUILD_CPU_DEFINE
16442   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16443     HOTSPOT_BUILD_CPU_DEFINE=IA32
16444   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16445     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16446   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16447     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16448   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16449     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16450   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16451     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16452   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16453     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16454 
16455   # The cpu defines below are for zero, we don't support them directly.
16456   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16457     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16458   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16459     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16460   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16461     HOTSPOT_BUILD_CPU_DEFINE=S390
16462   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16463     HOTSPOT_BUILD_CPU_DEFINE=S390
16464   elif test "x$OPENJDK_BUILD_CPU" != x; then
16465     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16466   fi
16467 
16468 
16469   # For historical reasons, the OS include directories have odd names.
16470   OPENJDK_BUILD_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
16471   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16472     OPENJDK_BUILD_OS_INCLUDE_SUBDIR="win32"
16473   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16474     OPENJDK_BUILD_OS_INCLUDE_SUBDIR="darwin"
16475   fi
16476 
16477 
16478 
16479 
16480 
16481 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16482 
16483   # Save the current directory this script was started from
16484   CURDIR="$PWD"
16485 
16486   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16487   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16488   # was not available at that time.
16489   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16490   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16491     ORIGINAL_PATH="$REWRITTEN_PATH"
16492     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16493 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16494   fi
16495 
16496   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16497     PATH_SEP=";"
16498 
16499   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16500   if test $SRC_ROOT_LENGTH -gt 100; then
16501     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16502   fi
16503 
16504   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16506 $as_echo_n "checking cygwin release... " >&6; }
16507     CYGWIN_VERSION=`$UNAME -r`
16508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16509 $as_echo "$CYGWIN_VERSION" >&6; }
16510     WINDOWS_ENV_VENDOR='cygwin'
16511     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16512 
16513     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16514     if test "x$CYGWIN_VERSION_OLD" != x; then
16515       { $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
16516 $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;}
16517       as_fn_error $? "Cannot continue" "$LINENO" 5
16518     fi
16519     if test "x$CYGPATH" = x; then
16520       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16521     fi
16522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16523 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16524     # The cmd output ends with Windows line endings (CR/LF)
16525     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16526     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16527     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16529 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16530     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16531     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16532     if test "x$test_cygdrive_prefix" = x; then
16533       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16534     fi
16535   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16537 $as_echo_n "checking msys release... " >&6; }
16538     MSYS_VERSION=`$UNAME -r`
16539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16540 $as_echo "$MSYS_VERSION" >&6; }
16541 
16542     WINDOWS_ENV_VENDOR='msys'
16543     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16544 
16545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16546 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16547     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16548     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16549 
16550   windows_path="$MSYS_ROOT_PATH"
16551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16552     unix_path=`$CYGPATH -u "$windows_path"`
16553     MSYS_ROOT_PATH="$unix_path"
16554   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16555     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16556     MSYS_ROOT_PATH="$unix_path"
16557   fi
16558 
16559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16560 $as_echo "$MSYS_ROOT_PATH" >&6; }
16561     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16562   else
16563     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16564   fi
16565 
16566   # Test if windows or unix (cygwin/msys) find is first in path.
16567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16568 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16569   FIND_BINARY_OUTPUT=`find --version 2>&1`
16570   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16572 $as_echo "unix style" >&6; }
16573   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16575 $as_echo "Windows" >&6; }
16576     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16577 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16578     { $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
16579 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16580     as_fn_error $? "Cannot continue" "$LINENO" 5
16581   else
16582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16583 $as_echo "unknown" >&6; }
16584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16585 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16586   fi
16587 
16588   else
16589     PATH_SEP=":"
16590   fi
16591 
16592 
16593   # We get the top-level directory from the supporting wrappers.
16594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16595 $as_echo_n "checking for top-level directory... " >&6; }
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16597 $as_echo "$TOPDIR" >&6; }
16598 
16599 
16600   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16601 
16602   # Only process if variable expands to non-empty
16603 
16604   if test "x$CURDIR" != x; then
16605     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16606 
16607   # Input might be given as Windows format, start by converting to
16608   # unix format.
16609   path="$CURDIR"
16610   new_path=`$CYGPATH -u "$path"`
16611 
16612   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16613   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16614   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16615   # "foo.exe" is OK but "foo" is an error.
16616   #
16617   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16618   # It is also a way to make sure we got the proper file name for the real test later on.
16619   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16620   if test "x$test_shortpath" = x; then
16621     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16622 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16623     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16624   fi
16625 
16626   # Call helper function which possibly converts this using DOS-style short mode.
16627   # If so, the updated path is stored in $new_path.
16628 
16629   input_path="$new_path"
16630   # Check if we need to convert this using DOS-style short mode. If the path
16631   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16632   # take no chances and rewrite it.
16633   # Note: m4 eats our [], so we need to use [ and ] instead.
16634   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16635   if test "x$has_forbidden_chars" != x; then
16636     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16637     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16638     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16639     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16640       # Going to short mode and back again did indeed matter. Since short mode is
16641       # case insensitive, let's make it lowercase to improve readability.
16642       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16643       # Now convert it back to Unix-style (cygpath)
16644       input_path=`$CYGPATH -u "$shortmode_path"`
16645       new_path="$input_path"
16646     fi
16647   fi
16648 
16649   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16650   if test "x$test_cygdrive_prefix" = x; then
16651     # As a simple fix, exclude /usr/bin since it's not a real path.
16652     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16653       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16654       # a path prefixed by /cygdrive for fixpath to work.
16655       new_path="$CYGWIN_ROOT_PATH$input_path"
16656     fi
16657   fi
16658 
16659 
16660   if test "x$path" != "x$new_path"; then
16661     CURDIR="$new_path"
16662     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16663 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16664   fi
16665 
16666     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16667 
16668   path="$CURDIR"
16669   has_colon=`$ECHO $path | $GREP ^.:`
16670   new_path="$path"
16671   if test "x$has_colon" = x; then
16672     # Not in mixed or Windows style, start by that.
16673     new_path=`cmd //c echo $path`
16674   fi
16675 
16676 
16677   input_path="$new_path"
16678   # Check if we need to convert this using DOS-style short mode. If the path
16679   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16680   # take no chances and rewrite it.
16681   # Note: m4 eats our [], so we need to use [ and ] instead.
16682   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16683   if test "x$has_forbidden_chars" != x; then
16684     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16685     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16686   fi
16687 
16688 
16689   windows_path="$new_path"
16690   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16691     unix_path=`$CYGPATH -u "$windows_path"`
16692     new_path="$unix_path"
16693   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16694     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16695     new_path="$unix_path"
16696   fi
16697 
16698   if test "x$path" != "x$new_path"; then
16699     CURDIR="$new_path"
16700     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16701 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16702   fi
16703 
16704   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16705   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16706 
16707     else
16708       # We're on a unix platform. Hooray! :)
16709       path="$CURDIR"
16710       has_space=`$ECHO "$path" | $GREP " "`
16711       if test "x$has_space" != x; then
16712         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16713 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16714         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16715       fi
16716 
16717       # Use eval to expand a potential ~
16718       eval path="$path"
16719       if test ! -f "$path" && test ! -d "$path"; then
16720         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16721       fi
16722 
16723       if test -d "$path"; then
16724         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16725       else
16726         dir="`$DIRNAME "$path"`"
16727         base="`$BASENAME "$path"`"
16728         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16729       fi
16730     fi
16731   fi
16732 
16733 
16734   # Only process if variable expands to non-empty
16735 
16736   if test "x$TOPDIR" != x; then
16737     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16738 
16739   # Input might be given as Windows format, start by converting to
16740   # unix format.
16741   path="$TOPDIR"
16742   new_path=`$CYGPATH -u "$path"`
16743 
16744   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16745   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16746   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16747   # "foo.exe" is OK but "foo" is an error.
16748   #
16749   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16750   # It is also a way to make sure we got the proper file name for the real test later on.
16751   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16752   if test "x$test_shortpath" = x; then
16753     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16754 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16755     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16756   fi
16757 
16758   # Call helper function which possibly converts this using DOS-style short mode.
16759   # If so, the updated path is stored in $new_path.
16760 
16761   input_path="$new_path"
16762   # Check if we need to convert this using DOS-style short mode. If the path
16763   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16764   # take no chances and rewrite it.
16765   # Note: m4 eats our [], so we need to use [ and ] instead.
16766   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16767   if test "x$has_forbidden_chars" != x; then
16768     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16769     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16770     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16771     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16772       # Going to short mode and back again did indeed matter. Since short mode is
16773       # case insensitive, let's make it lowercase to improve readability.
16774       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16775       # Now convert it back to Unix-style (cygpath)
16776       input_path=`$CYGPATH -u "$shortmode_path"`
16777       new_path="$input_path"
16778     fi
16779   fi
16780 
16781   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16782   if test "x$test_cygdrive_prefix" = x; then
16783     # As a simple fix, exclude /usr/bin since it's not a real path.
16784     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16785       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16786       # a path prefixed by /cygdrive for fixpath to work.
16787       new_path="$CYGWIN_ROOT_PATH$input_path"
16788     fi
16789   fi
16790 
16791 
16792   if test "x$path" != "x$new_path"; then
16793     TOPDIR="$new_path"
16794     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16795 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16796   fi
16797 
16798     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16799 
16800   path="$TOPDIR"
16801   has_colon=`$ECHO $path | $GREP ^.:`
16802   new_path="$path"
16803   if test "x$has_colon" = x; then
16804     # Not in mixed or Windows style, start by that.
16805     new_path=`cmd //c echo $path`
16806   fi
16807 
16808 
16809   input_path="$new_path"
16810   # Check if we need to convert this using DOS-style short mode. If the path
16811   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16812   # take no chances and rewrite it.
16813   # Note: m4 eats our [], so we need to use [ and ] instead.
16814   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16815   if test "x$has_forbidden_chars" != x; then
16816     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16817     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16818   fi
16819 
16820 
16821   windows_path="$new_path"
16822   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16823     unix_path=`$CYGPATH -u "$windows_path"`
16824     new_path="$unix_path"
16825   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16826     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16827     new_path="$unix_path"
16828   fi
16829 
16830   if test "x$path" != "x$new_path"; then
16831     TOPDIR="$new_path"
16832     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16833 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16834   fi
16835 
16836   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16837   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16838 
16839     else
16840       # We're on a unix platform. Hooray! :)
16841       path="$TOPDIR"
16842       has_space=`$ECHO "$path" | $GREP " "`
16843       if test "x$has_space" != x; then
16844         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16845 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16846         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16847       fi
16848 
16849       # Use eval to expand a potential ~
16850       eval path="$path"
16851       if test ! -f "$path" && test ! -d "$path"; then
16852         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16853       fi
16854 
16855       if test -d "$path"; then
16856         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16857       else
16858         dir="`$DIRNAME "$path"`"
16859         base="`$BASENAME "$path"`"
16860         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16861       fi
16862     fi
16863   fi
16864 
16865 
16866   # Locate the directory of this script.
16867   AUTOCONF_DIR=$TOPDIR/make/autoconf
16868 
16869   # Setup username (for use in adhoc version strings etc)
16870   # Outer [ ] to quote m4.
16871    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16872 
16873 
16874 
16875 # Check if it's a pure open build or if custom sources are to be used.
16876 
16877   # Check whether --enable-openjdk-only was given.
16878 if test "${enable_openjdk_only+set}" = set; then :
16879   enableval=$enable_openjdk_only;
16880 else
16881   enable_openjdk_only="no"
16882 fi
16883 
16884 
16885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16886 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16888 $as_echo "$enable_openjdk_only" >&6; }
16889   if test "x$enable_openjdk_only" = "xyes"; then
16890     SUPPRESS_CUSTOM_EXTENSIONS="true"
16891   elif test "x$enable_openjdk_only" = "xno"; then
16892     SUPPRESS_CUSTOM_EXTENSIONS="false"
16893   else
16894     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16895   fi
16896 
16897   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16898   # the IncludeCustomExtension macro.
16899 
16900 
16901 # Check whether --with-custom-make-dir was given.
16902 if test "${with_custom_make_dir+set}" = set; then :
16903   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
16904 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16905 fi
16906 
16907 
16908 
16909 
16910 # These are needed to be able to create a configuration name (and thus the output directory)
16911 
16912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16913 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16914 
16915 # Check whether --with-jdk-variant was given.
16916 if test "${with_jdk_variant+set}" = set; then :
16917   withval=$with_jdk_variant;
16918 fi
16919 
16920 
16921   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16922     JDK_VARIANT="normal"
16923   else
16924     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16925   fi
16926 
16927 
16928 
16929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16930 $as_echo "$JDK_VARIANT" >&6; }
16931 
16932 
16933   DEBUG_LEVEL="release"
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16935 $as_echo_n "checking which debug level to use... " >&6; }
16936   # Check whether --enable-debug was given.
16937 if test "${enable_debug+set}" = set; then :
16938   enableval=$enable_debug;
16939         ENABLE_DEBUG="${enableval}"
16940         DEBUG_LEVEL="fastdebug"
16941 
16942 else
16943   ENABLE_DEBUG="no"
16944 fi
16945 
16946 
16947 
16948 # Check whether --with-debug-level was given.
16949 if test "${with_debug_level+set}" = set; then :
16950   withval=$with_debug_level;
16951         DEBUG_LEVEL="${withval}"
16952         if test "x$ENABLE_DEBUG" = xyes; then
16953           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16954         fi
16955 
16956 fi
16957 
16958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16959 $as_echo "$DEBUG_LEVEL" >&6; }
16960 
16961   if test "x$DEBUG_LEVEL" != xrelease && \
16962       test "x$DEBUG_LEVEL" != xoptimized && \
16963       test "x$DEBUG_LEVEL" != xfastdebug && \
16964       test "x$DEBUG_LEVEL" != xslowdebug; then
16965     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16966   fi
16967 
16968   # Translate DEBUG_LEVEL to debug level used by Hotspot
16969   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16970   if test "x$DEBUG_LEVEL" = xrelease; then
16971     HOTSPOT_DEBUG_LEVEL="product"
16972   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16973     HOTSPOT_DEBUG_LEVEL="debug"
16974   fi
16975 
16976   if test "x$DEBUG_LEVEL" = xoptimized; then
16977     # The debug level 'optimized' is a little special because it is currently only
16978     # applicable to the HotSpot build where it means to build a completely
16979     # optimized version of the VM without any debugging code (like for the
16980     # 'release' debug level which is called 'product' in the HotSpot build) but
16981     # with the exception that it can contain additional code which is otherwise
16982     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16983     # test new and/or experimental features which are not intended for customer
16984     # shipment. Because these new features need to be tested and benchmarked in
16985     # real world scenarios, we want to build the containing JDK at the 'release'
16986     # debug level.
16987     DEBUG_LEVEL="release"
16988   fi
16989 
16990 
16991 
16992 
16993 
16994 
16995 # Check whether --with-jvm-variants was given.
16996 if test "${with_jvm_variants+set}" = set; then :
16997   withval=$with_jvm_variants;
16998 fi
16999 
17000 
17001 
17002 
17003 # Check whether --with-cpu-port was given.
17004 if test "${with_cpu_port+set}" = set; then :
17005   withval=$with_cpu_port;
17006 fi
17007 
17008 
17009   if test "x$with_cpu_port" != x; then
17010     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
17011       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
17012     fi
17013     if test "x$with_cpu_port" != xarm64 && \
17014         test "x$with_cpu_port" != xaarch64; then
17015       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
17016     fi
17017     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
17018   fi
17019 
17020 
17021   if test "x$with_jvm_variants" = x; then
17022     with_jvm_variants="server"
17023   fi
17024   JVM_VARIANTS_OPT="$with_jvm_variants"
17025 
17026   # Has the user listed more than one variant?
17027   # Additional [] needed to keep m4 from mangling shell constructs.
17028   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17029     BUILDING_MULTIPLE_JVM_VARIANTS=true
17030   else
17031     BUILDING_MULTIPLE_JVM_VARIANTS=false
17032   fi
17033   # Replace the commas with AND for use in the build directory name.
17034   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17035 
17036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17037 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17038   # JVM_VARIANTS is a space-separated list.
17039   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17040   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17042 $as_echo "$JVM_VARIANTS" >&6; }
17043 
17044   # Check that the selected variants are valid
17045 
17046   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17047   # Notice that the original variant failes on SLES 10 and 11
17048   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17049   STACK=${JVM_VARIANTS// /$'\n'}
17050   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17051   if test "x$INVALID_VARIANTS" != x; then
17052     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17053 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17054     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17055   fi
17056 
17057   # All "special" variants share the same output directory ("server")
17058   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17059   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17060   STACK=${JVM_VARIANTS// /$'\n'}
17061   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17062   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17063     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17064   fi
17065 
17066   # The "main" variant is the one used by other libs to link against during the
17067   # build.
17068   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17069     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17070     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17071       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17072         JVM_VARIANT_MAIN="$variant"
17073         break
17074       fi
17075     done
17076   else
17077     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17078   fi
17079 
17080 
17081 
17082 
17083 
17084   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17085     # zero behaves as a platform and rewrites these values. This is really weird. :(
17086     # We are guaranteed that we do not build any other variants when building zero.
17087     HOTSPOT_TARGET_CPU=zero
17088     HOTSPOT_TARGET_CPU_ARCH=zero
17089   fi
17090 
17091 
17092 # With basic setup done, call the custom early hook.
17093 
17094 
17095 # Check if we have devkits, extra paths or sysroot set.
17096 
17097 
17098 # Check whether --with-devkit was given.
17099 if test "${with_devkit+set}" = set; then :
17100   withval=$with_devkit;
17101 
17102   # Only process if variable expands to non-empty
17103 
17104   if test "x$with_devkit" != x; then
17105     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17106 
17107   # Input might be given as Windows format, start by converting to
17108   # unix format.
17109   path="$with_devkit"
17110   new_path=`$CYGPATH -u "$path"`
17111 
17112   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17113   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17114   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17115   # "foo.exe" is OK but "foo" is an error.
17116   #
17117   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17118   # It is also a way to make sure we got the proper file name for the real test later on.
17119   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17120   if test "x$test_shortpath" = x; then
17121     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17122 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17123     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17124   fi
17125 
17126   # Call helper function which possibly converts this using DOS-style short mode.
17127   # If so, the updated path is stored in $new_path.
17128 
17129   input_path="$new_path"
17130   # Check if we need to convert this using DOS-style short mode. If the path
17131   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17132   # take no chances and rewrite it.
17133   # Note: m4 eats our [], so we need to use [ and ] instead.
17134   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17135   if test "x$has_forbidden_chars" != x; then
17136     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17137     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17138     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17139     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17140       # Going to short mode and back again did indeed matter. Since short mode is
17141       # case insensitive, let's make it lowercase to improve readability.
17142       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17143       # Now convert it back to Unix-style (cygpath)
17144       input_path=`$CYGPATH -u "$shortmode_path"`
17145       new_path="$input_path"
17146     fi
17147   fi
17148 
17149   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17150   if test "x$test_cygdrive_prefix" = x; then
17151     # As a simple fix, exclude /usr/bin since it's not a real path.
17152     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17153       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17154       # a path prefixed by /cygdrive for fixpath to work.
17155       new_path="$CYGWIN_ROOT_PATH$input_path"
17156     fi
17157   fi
17158 
17159 
17160   if test "x$path" != "x$new_path"; then
17161     with_devkit="$new_path"
17162     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17163 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17164   fi
17165 
17166     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17167 
17168   path="$with_devkit"
17169   has_colon=`$ECHO $path | $GREP ^.:`
17170   new_path="$path"
17171   if test "x$has_colon" = x; then
17172     # Not in mixed or Windows style, start by that.
17173     new_path=`cmd //c echo $path`
17174   fi
17175 
17176 
17177   input_path="$new_path"
17178   # Check if we need to convert this using DOS-style short mode. If the path
17179   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17180   # take no chances and rewrite it.
17181   # Note: m4 eats our [], so we need to use [ and ] instead.
17182   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17183   if test "x$has_forbidden_chars" != x; then
17184     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17185     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17186   fi
17187 
17188 
17189   windows_path="$new_path"
17190   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17191     unix_path=`$CYGPATH -u "$windows_path"`
17192     new_path="$unix_path"
17193   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17194     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17195     new_path="$unix_path"
17196   fi
17197 
17198   if test "x$path" != "x$new_path"; then
17199     with_devkit="$new_path"
17200     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17201 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17202   fi
17203 
17204   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17205   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17206 
17207     else
17208       # We're on a unix platform. Hooray! :)
17209       path="$with_devkit"
17210       has_space=`$ECHO "$path" | $GREP " "`
17211       if test "x$has_space" != x; then
17212         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17213 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17214         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17215       fi
17216 
17217       # Use eval to expand a potential ~
17218       eval path="$path"
17219       if test ! -f "$path" && test ! -d "$path"; then
17220         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17221       fi
17222 
17223       if test -d "$path"; then
17224         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17225       else
17226         dir="`$DIRNAME "$path"`"
17227         base="`$BASENAME "$path"`"
17228         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17229       fi
17230     fi
17231   fi
17232 
17233         DEVKIT_ROOT="$with_devkit"
17234         # Check for a meta data info file in the root of the devkit
17235         if test -f "$DEVKIT_ROOT/devkit.info"; then
17236           . $DEVKIT_ROOT/devkit.info
17237           # This potentially sets the following:
17238           # A descriptive name of the devkit
17239 
17240   if test "x$DEVKIT_NAME" = x; then
17241     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17242   fi
17243 
17244           # Corresponds to --with-extra-path
17245 
17246   if test "x$DEVKIT_EXTRA_PATH" = x; then
17247     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17248   fi
17249 
17250           # Corresponds to --with-toolchain-path
17251 
17252   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17253     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17254   fi
17255 
17256           # Corresponds to --with-sysroot
17257 
17258   if test "x$DEVKIT_SYSROOT" = x; then
17259     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17260   fi
17261 
17262 
17263           # Identifies the Visual Studio version in the devkit
17264 
17265   if test "x$DEVKIT_VS_VERSION" = x; then
17266     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17267   fi
17268 
17269           # The Visual Studio include environment variable
17270 
17271   if test "x$DEVKIT_VS_INCLUDE" = x; then
17272     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17273   fi
17274 
17275           # The Visual Studio lib environment variable
17276 
17277   if test "x$DEVKIT_VS_LIB" = x; then
17278     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17279   fi
17280 
17281           # Corresponds to --with-msvcr-dll
17282 
17283   if test "x$DEVKIT_MSVCR_DLL" = x; then
17284     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17285   fi
17286 
17287           # Corresponds to --with-msvcp-dll
17288 
17289   if test "x$DEVKIT_MSVCP_DLL" = x; then
17290     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17291   fi
17292 
17293         fi
17294 
17295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17296 $as_echo_n "checking for devkit... " >&6; }
17297         if test "x$DEVKIT_NAME" != x; then
17298           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17299 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17300         else
17301           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17302 $as_echo "$DEVKIT_ROOT" >&6; }
17303         fi
17304 
17305 
17306   if test "x$DEVKIT_EXTRA_PATH" != x; then
17307     if test "x$EXTRA_PATH" = x; then
17308       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17309     else
17310       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17311     fi
17312   fi
17313 
17314 
17315         # Fallback default of just /bin if DEVKIT_PATH is not defined
17316         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17317           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17318         fi
17319 
17320   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17321     if test "x$TOOLCHAIN_PATH" = x; then
17322       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17323     else
17324       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17325     fi
17326   fi
17327 
17328 
17329         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17330         # places for backwards compatiblity.
17331         if test "x$DEVKIT_SYSROOT" != x; then
17332           SYSROOT="$DEVKIT_SYSROOT"
17333         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17334           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17335         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17336           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17337         fi
17338 
17339         if test "x$DEVKIT_ROOT" != x; then
17340           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17341           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17342             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17343           fi
17344 
17345         fi
17346 
17347 
17348 fi
17349 
17350 
17351   # You can force the sysroot if the sysroot encoded into the compiler tools
17352   # is not correct.
17353 
17354 # Check whether --with-sys-root was given.
17355 if test "${with_sys_root+set}" = set; then :
17356   withval=$with_sys_root; SYSROOT=$with_sys_root
17357 
17358 fi
17359 
17360 
17361 
17362 # Check whether --with-sysroot was given.
17363 if test "${with_sysroot+set}" = set; then :
17364   withval=$with_sysroot; SYSROOT=$with_sysroot
17365 
17366 fi
17367 
17368 
17369 
17370 # Check whether --with-tools-dir was given.
17371 if test "${with_tools_dir+set}" = set; then :
17372   withval=$with_tools_dir;
17373   if test "x$with_tools_dir" != x; then
17374     if test "x$TOOLCHAIN_PATH" = x; then
17375       TOOLCHAIN_PATH="$with_tools_dir"
17376     else
17377       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17378     fi
17379   fi
17380 
17381 
17382 fi
17383 
17384 
17385 
17386 # Check whether --with-toolchain-path was given.
17387 if test "${with_toolchain_path+set}" = set; then :
17388   withval=$with_toolchain_path;
17389   if test "x$with_toolchain_path" != x; then
17390     if test "x$TOOLCHAIN_PATH" = x; then
17391       TOOLCHAIN_PATH="$with_toolchain_path"
17392     else
17393       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17394     fi
17395   fi
17396 
17397 
17398 fi
17399 
17400 
17401 
17402 # Check whether --with-extra-path was given.
17403 if test "${with_extra_path+set}" = set; then :
17404   withval=$with_extra_path;
17405   if test "x$with_extra_path" != x; then
17406     if test "x$EXTRA_PATH" = x; then
17407       EXTRA_PATH="$with_extra_path"
17408     else
17409       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17410     fi
17411   fi
17412 
17413 
17414 fi
17415 
17416 
17417   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17418     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17419     # If not, detect if Xcode is installed by running xcodebuild -version
17420     # if no Xcode installed, xcodebuild exits with 1
17421     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17422     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17423       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17424       # fall back on the stub binary in /usr/bin/xcodebuild
17425       # Extract the first word of "xcodebuild", so it can be a program name with args.
17426 set dummy xcodebuild; ac_word=$2
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17428 $as_echo_n "checking for $ac_word... " >&6; }
17429 if ${ac_cv_path_XCODEBUILD+:} false; then :
17430   $as_echo_n "(cached) " >&6
17431 else
17432   case $XCODEBUILD in
17433   [\\/]* | ?:[\\/]*)
17434   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17435   ;;
17436   *)
17437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17438 for as_dir in $TOOLCHAIN_PATH
17439 do
17440   IFS=$as_save_IFS
17441   test -z "$as_dir" && as_dir=.
17442     for ac_exec_ext in '' $ac_executable_extensions; do
17443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17444     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17446     break 2
17447   fi
17448 done
17449   done
17450 IFS=$as_save_IFS
17451 
17452   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17453   ;;
17454 esac
17455 fi
17456 XCODEBUILD=$ac_cv_path_XCODEBUILD
17457 if test -n "$XCODEBUILD"; then
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17459 $as_echo "$XCODEBUILD" >&6; }
17460 else
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 fi
17464 
17465 
17466     else
17467       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17468       # when only the command line tools are installed there are no SDKs, so headers
17469       # are copied into the system frameworks
17470       XCODEBUILD=
17471 
17472     fi
17473 
17474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17475 $as_echo_n "checking for sdk name... " >&6; }
17476 
17477 # Check whether --with-sdk-name was given.
17478 if test "${with_sdk_name+set}" = set; then :
17479   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17480 
17481 fi
17482 
17483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17484 $as_echo "$SDKNAME" >&6; }
17485 
17486     # if toolchain path is specified then don't rely on system headers, they may not compile
17487     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17488     test -z "$TOOLCHAIN_PATH" && \
17489       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17490 
17491     if test -z "$SYSROOT"; then
17492       if test -n "$XCODEBUILD"; then
17493         # if we don't have system headers, use default SDK name (last resort)
17494         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17495           SDKNAME=${SDKNAME:-macosx}
17496         fi
17497 
17498         if test -n "$SDKNAME"; then
17499           # Call xcodebuild to determine SYSROOT
17500           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17501         fi
17502       else
17503         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17504           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
17505         fi
17506       fi
17507     else
17508       # warn user if --with-sdk-name was also set
17509       if test -n "$with_sdk_name"; then
17510         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17511 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17512       fi
17513     fi
17514 
17515     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17516       # If no system framework headers, then SYSROOT must be set, or we won't build
17517       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
17518     fi
17519 
17520     # Perform a basic sanity test
17521     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17522       if test -z "$SYSROOT"; then
17523         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
17524       else
17525         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17526       fi
17527     fi
17528 
17529     # set SDKROOT too, Xcode tools will pick it up
17530     SDKROOT="$SYSROOT"
17531 
17532   fi
17533 
17534   # Prepend the extra path to the global path
17535 
17536   if test "x$EXTRA_PATH" != x; then
17537     if test "x$PATH" = x; then
17538       PATH="$EXTRA_PATH"
17539     else
17540       PATH="$EXTRA_PATH:$PATH"
17541     fi
17542   fi
17543 
17544 
17545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17546 $as_echo_n "checking for sysroot... " >&6; }
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17548 $as_echo "$SYSROOT" >&6; }
17549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17550 $as_echo_n "checking for toolchain path... " >&6; }
17551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17552 $as_echo "$TOOLCHAIN_PATH" >&6; }
17553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17554 $as_echo_n "checking for extra path... " >&6; }
17555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17556 $as_echo "$EXTRA_PATH" >&6; }
17557 
17558 
17559 # To properly create a configuration name, we need to have the OpenJDK target
17560 # and options (variants and debug level) parsed.
17561 
17562 
17563 
17564 # Check whether --with-conf-name was given.
17565 if test "${with_conf_name+set}" = set; then :
17566   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17567 fi
17568 
17569 
17570   # Test from where we are running configure, in or outside of src root.
17571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17572 $as_echo_n "checking where to store configuration... " >&6; }
17573   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17574       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17575       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17576     # We are running configure from the src root.
17577     # Create a default ./build/target-variant-debuglevel output root.
17578     if test "x${CONF_NAME}" = x; then
17579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17580 $as_echo "in default location" >&6; }
17581       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17582     else
17583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17584 $as_echo "in build directory with custom name" >&6; }
17585     fi
17586 
17587     if test "x$CUSTOM_ROOT" != x; then
17588       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17589     else
17590       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17591     fi
17592     $MKDIR -p "$OUTPUTDIR"
17593     if test ! -d "$OUTPUTDIR"; then
17594       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17595     fi
17596   else
17597     # We are running configure from outside of the src dir.
17598     # Then use the current directory as output dir!
17599     # If configuration is situated in normal build directory, just use the build
17600     # directory name as configuration name, otherwise use the complete path.
17601     if test "x${CONF_NAME}" = x; then
17602       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17603     fi
17604     OUTPUTDIR="$CURDIR"
17605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17606 $as_echo "in current directory" >&6; }
17607 
17608     # WARNING: This might be a bad thing to do. You need to be sure you want to
17609     # have a configuration in this directory. Do some sanity checks!
17610 
17611     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17612       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17613       # other files
17614       files_present=`$LS $OUTPUTDIR`
17615       # Configure has already touched config.log and confdefs.h in the current dir when this check
17616       # is performed.
17617       filtered_files=`$ECHO "$files_present" \
17618           | $SED -e 's/config.log//g' \
17619               -e 's/configure.log//g' \
17620               -e 's/confdefs.h//g' \
17621               -e 's/ //g' \
17622           | $TR -d '\n'`
17623       if test "x$filtered_files" != x; then
17624         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17625 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17626         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17627 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17628         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17629 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17630         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17631 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17632         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17633 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17634         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17635 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17636         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17637 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17638         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17639       fi
17640     fi
17641   fi
17642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17643 $as_echo_n "checking what configuration name to use... " >&6; }
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17645 $as_echo "$CONF_NAME" >&6; }
17646 
17647 
17648   # Only process if variable expands to non-empty
17649 
17650   if test "x$OUTPUTDIR" != x; then
17651     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17652 
17653   # Input might be given as Windows format, start by converting to
17654   # unix format.
17655   path="$OUTPUTDIR"
17656   new_path=`$CYGPATH -u "$path"`
17657 
17658   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17659   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17660   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17661   # "foo.exe" is OK but "foo" is an error.
17662   #
17663   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17664   # It is also a way to make sure we got the proper file name for the real test later on.
17665   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17666   if test "x$test_shortpath" = x; then
17667     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17668 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17669     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17670   fi
17671 
17672   # Call helper function which possibly converts this using DOS-style short mode.
17673   # If so, the updated path is stored in $new_path.
17674 
17675   input_path="$new_path"
17676   # Check if we need to convert this using DOS-style short mode. If the path
17677   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17678   # take no chances and rewrite it.
17679   # Note: m4 eats our [], so we need to use [ and ] instead.
17680   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17681   if test "x$has_forbidden_chars" != x; then
17682     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17683     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17684     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17685     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17686       # Going to short mode and back again did indeed matter. Since short mode is
17687       # case insensitive, let's make it lowercase to improve readability.
17688       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17689       # Now convert it back to Unix-style (cygpath)
17690       input_path=`$CYGPATH -u "$shortmode_path"`
17691       new_path="$input_path"
17692     fi
17693   fi
17694 
17695   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17696   if test "x$test_cygdrive_prefix" = x; then
17697     # As a simple fix, exclude /usr/bin since it's not a real path.
17698     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17699       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17700       # a path prefixed by /cygdrive for fixpath to work.
17701       new_path="$CYGWIN_ROOT_PATH$input_path"
17702     fi
17703   fi
17704 
17705 
17706   if test "x$path" != "x$new_path"; then
17707     OUTPUTDIR="$new_path"
17708     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17709 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17710   fi
17711 
17712     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17713 
17714   path="$OUTPUTDIR"
17715   has_colon=`$ECHO $path | $GREP ^.:`
17716   new_path="$path"
17717   if test "x$has_colon" = x; then
17718     # Not in mixed or Windows style, start by that.
17719     new_path=`cmd //c echo $path`
17720   fi
17721 
17722 
17723   input_path="$new_path"
17724   # Check if we need to convert this using DOS-style short mode. If the path
17725   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17726   # take no chances and rewrite it.
17727   # Note: m4 eats our [], so we need to use [ and ] instead.
17728   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17729   if test "x$has_forbidden_chars" != x; then
17730     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17731     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17732   fi
17733 
17734 
17735   windows_path="$new_path"
17736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17737     unix_path=`$CYGPATH -u "$windows_path"`
17738     new_path="$unix_path"
17739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17741     new_path="$unix_path"
17742   fi
17743 
17744   if test "x$path" != "x$new_path"; then
17745     OUTPUTDIR="$new_path"
17746     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17747 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17748   fi
17749 
17750   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17751   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17752 
17753     else
17754       # We're on a unix platform. Hooray! :)
17755       path="$OUTPUTDIR"
17756       has_space=`$ECHO "$path" | $GREP " "`
17757       if test "x$has_space" != x; then
17758         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17759 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17760         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17761       fi
17762 
17763       # Use eval to expand a potential ~
17764       eval path="$path"
17765       if test ! -f "$path" && test ! -d "$path"; then
17766         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17767       fi
17768 
17769       if test -d "$path"; then
17770         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17771       else
17772         dir="`$DIRNAME "$path"`"
17773         base="`$BASENAME "$path"`"
17774         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17775       fi
17776     fi
17777   fi
17778 
17779 
17780   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17781   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17782 
17783   SPEC="$OUTPUTDIR/spec.gmk"
17784 
17785 
17786 
17787 
17788 
17789   # The spec.gmk file contains all variables for the make system.
17790   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17791 
17792   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17793   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17794 
17795   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17796   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17797 
17798   # The compare.sh is used to compare the build output to other builds.
17799   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17800 
17801   # The generated Makefile knows where the spec.gmk is and where the source is.
17802   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17803   # which will look for generated configurations
17804   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17805 
17806 
17807 
17808 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17809 
17810   for ac_prog in apt-get yum brew port pkgutil pkgadd
17811 do
17812   # Extract the first word of "$ac_prog", so it can be a program name with args.
17813 set dummy $ac_prog; ac_word=$2
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17815 $as_echo_n "checking for $ac_word... " >&6; }
17816 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17817   $as_echo_n "(cached) " >&6
17818 else
17819   if test -n "$PKGHANDLER"; then
17820   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17821 else
17822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17823 for as_dir in $PATH
17824 do
17825   IFS=$as_save_IFS
17826   test -z "$as_dir" && as_dir=.
17827     for ac_exec_ext in '' $ac_executable_extensions; do
17828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17829     ac_cv_prog_PKGHANDLER="$ac_prog"
17830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17831     break 2
17832   fi
17833 done
17834   done
17835 IFS=$as_save_IFS
17836 
17837 fi
17838 fi
17839 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17840 if test -n "$PKGHANDLER"; then
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17842 $as_echo "$PKGHANDLER" >&6; }
17843 else
17844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17845 $as_echo "no" >&6; }
17846 fi
17847 
17848 
17849   test -n "$PKGHANDLER" && break
17850 done
17851 
17852 
17853 
17854 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17855 
17856 
17857 
17858   # Publish this variable in the help.
17859 
17860 
17861   if [ -z "${MAKE+x}" ]; then
17862     # The variable is not set by user, try to locate tool using the code snippet
17863 
17864     # Try our hardest to locate a correct version of GNU make
17865     for ac_prog in gmake
17866 do
17867   # Extract the first word of "$ac_prog", so it can be a program name with args.
17868 set dummy $ac_prog; ac_word=$2
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17870 $as_echo_n "checking for $ac_word... " >&6; }
17871 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17872   $as_echo_n "(cached) " >&6
17873 else
17874   case $CHECK_GMAKE in
17875   [\\/]* | ?:[\\/]*)
17876   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17877   ;;
17878   *)
17879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $PATH
17881 do
17882   IFS=$as_save_IFS
17883   test -z "$as_dir" && as_dir=.
17884     for ac_exec_ext in '' $ac_executable_extensions; do
17885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17886     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17888     break 2
17889   fi
17890 done
17891   done
17892 IFS=$as_save_IFS
17893 
17894   ;;
17895 esac
17896 fi
17897 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17898 if test -n "$CHECK_GMAKE"; then
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17900 $as_echo "$CHECK_GMAKE" >&6; }
17901 else
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903 $as_echo "no" >&6; }
17904 fi
17905 
17906 
17907   test -n "$CHECK_GMAKE" && break
17908 done
17909 
17910 
17911   MAKE_CANDIDATE=""$CHECK_GMAKE""
17912   DESCRIPTION="gmake in PATH"
17913 
17914   # On Cygwin, we require a newer version of make than on other platforms
17915   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17916     MAKE_VERSION_EXPR="-e 4\."
17917     MAKE_REQUIRED_VERSION="4.0"
17918    else
17919     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17920     MAKE_REQUIRED_VERSION="3.81"
17921   fi
17922 
17923   if test "x$MAKE_CANDIDATE" != x; then
17924     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17925 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17926     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17927     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17928     if test "x$IS_GNU_MAKE" = x; then
17929       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17930 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17931     else
17932       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17933       if test "x$IS_MODERN_MAKE" = x; then
17934         { $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
17935 $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;}
17936       else
17937         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17938           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17939             MAKE_EXPECTED_ENV='cygwin'
17940           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17941             MAKE_EXPECTED_ENV='msys'
17942           else
17943             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17944           fi
17945           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17946           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17947         else
17948           # Not relevant for non-Windows
17949           IS_MAKE_CORRECT_ENV=true
17950         fi
17951         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17952           { $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
17953 $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;}
17954         else
17955           FOUND_MAKE=$MAKE_CANDIDATE
17956 
17957   # Only process if variable expands to non-empty
17958 
17959   if test "x$FOUND_MAKE" != x; then
17960     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17961 
17962   # First separate the path from the arguments. This will split at the first
17963   # space.
17964   complete="$FOUND_MAKE"
17965   path="${complete%% *}"
17966   tmp="$complete EOL"
17967   arguments="${tmp#* }"
17968 
17969   # Input might be given as Windows format, start by converting to
17970   # unix format.
17971   new_path=`$CYGPATH -u "$path"`
17972 
17973   # Now try to locate executable using which
17974   new_path=`$WHICH "$new_path" 2> /dev/null`
17975   # bat and cmd files are not always considered executable in cygwin causing which
17976   # to not find them
17977   if test "x$new_path" = x \
17978       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17979       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17980     new_path=`$CYGPATH -u "$path"`
17981   fi
17982   if test "x$new_path" = x; then
17983     # Oops. Which didn't find the executable.
17984     # The splitting of arguments from the executable at a space might have been incorrect,
17985     # since paths with space are more likely in Windows. Give it another try with the whole
17986     # argument.
17987     path="$complete"
17988     arguments="EOL"
17989     new_path=`$CYGPATH -u "$path"`
17990     new_path=`$WHICH "$new_path" 2> /dev/null`
17991     # bat and cmd files are not always considered executable in cygwin causing which
17992     # to not find them
17993     if test "x$new_path" = x \
17994         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17995         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17996       new_path=`$CYGPATH -u "$path"`
17997     fi
17998     if test "x$new_path" = x; then
17999       # It's still not found. Now this is an unrecoverable error.
18000       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18001 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18002       has_space=`$ECHO "$complete" | $GREP " "`
18003       if test "x$has_space" != x; then
18004         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18005 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18006       fi
18007       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18008     fi
18009   fi
18010 
18011   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18012   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18013   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18014   # "foo.exe" is OK but "foo" is an error.
18015   #
18016   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18017   # It is also a way to make sure we got the proper file name for the real test later on.
18018   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18019   if test "x$test_shortpath" = x; then
18020     # Short path failed, file does not exist as specified.
18021     # Try adding .exe or .cmd
18022     if test -f "${new_path}.exe"; then
18023       input_to_shortpath="${new_path}.exe"
18024     elif test -f "${new_path}.cmd"; then
18025       input_to_shortpath="${new_path}.cmd"
18026     else
18027       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18029       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18030 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18031       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18032     fi
18033   else
18034     input_to_shortpath="$new_path"
18035   fi
18036 
18037   # Call helper function which possibly converts this using DOS-style short mode.
18038   # If so, the updated path is stored in $new_path.
18039   new_path="$input_to_shortpath"
18040 
18041   input_path="$input_to_shortpath"
18042   # Check if we need to convert this using DOS-style short mode. If the path
18043   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18044   # take no chances and rewrite it.
18045   # Note: m4 eats our [], so we need to use [ and ] instead.
18046   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18047   if test "x$has_forbidden_chars" != x; then
18048     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18049     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18050     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18051     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18052       # Going to short mode and back again did indeed matter. Since short mode is
18053       # case insensitive, let's make it lowercase to improve readability.
18054       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18055       # Now convert it back to Unix-style (cygpath)
18056       input_path=`$CYGPATH -u "$shortmode_path"`
18057       new_path="$input_path"
18058     fi
18059   fi
18060 
18061   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18062   if test "x$test_cygdrive_prefix" = x; then
18063     # As a simple fix, exclude /usr/bin since it's not a real path.
18064     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18065       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18066       # a path prefixed by /cygdrive for fixpath to work.
18067       new_path="$CYGWIN_ROOT_PATH$input_path"
18068     fi
18069   fi
18070 
18071   # remove trailing .exe if any
18072   new_path="${new_path/%.exe/}"
18073 
18074     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18075 
18076   # First separate the path from the arguments. This will split at the first
18077   # space.
18078   complete="$FOUND_MAKE"
18079   path="${complete%% *}"
18080   tmp="$complete EOL"
18081   arguments="${tmp#* }"
18082 
18083   # Input might be given as Windows format, start by converting to
18084   # unix format.
18085   new_path="$path"
18086 
18087   windows_path="$new_path"
18088   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18089     unix_path=`$CYGPATH -u "$windows_path"`
18090     new_path="$unix_path"
18091   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18092     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18093     new_path="$unix_path"
18094   fi
18095 
18096 
18097   # Now try to locate executable using which
18098   new_path=`$WHICH "$new_path" 2> /dev/null`
18099 
18100   if test "x$new_path" = x; then
18101     # Oops. Which didn't find the executable.
18102     # The splitting of arguments from the executable at a space might have been incorrect,
18103     # since paths with space are more likely in Windows. Give it another try with the whole
18104     # argument.
18105     path="$complete"
18106     arguments="EOL"
18107     new_path="$path"
18108 
18109   windows_path="$new_path"
18110   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18111     unix_path=`$CYGPATH -u "$windows_path"`
18112     new_path="$unix_path"
18113   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18114     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18115     new_path="$unix_path"
18116   fi
18117 
18118 
18119     new_path=`$WHICH "$new_path" 2> /dev/null`
18120     # bat and cmd files are not always considered executable in MSYS causing which
18121     # to not find them
18122     if test "x$new_path" = x \
18123         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18124         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18125       new_path="$path"
18126 
18127   windows_path="$new_path"
18128   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18129     unix_path=`$CYGPATH -u "$windows_path"`
18130     new_path="$unix_path"
18131   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18132     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18133     new_path="$unix_path"
18134   fi
18135 
18136     fi
18137 
18138     if test "x$new_path" = x; then
18139       # It's still not found. Now this is an unrecoverable error.
18140       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18141 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18142       has_space=`$ECHO "$complete" | $GREP " "`
18143       if test "x$has_space" != x; then
18144         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18145 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18146       fi
18147       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18148     fi
18149   fi
18150 
18151   # Now new_path has a complete unix path to the binary
18152   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18153     # Keep paths in /bin as-is, but remove trailing .exe if any
18154     new_path="${new_path/%.exe/}"
18155     # Do not save /bin paths to all_fixpath_prefixes!
18156   else
18157     # Not in mixed or Windows style, start by that.
18158     new_path=`cmd //c echo $new_path`
18159 
18160   input_path="$new_path"
18161   # Check if we need to convert this using DOS-style short mode. If the path
18162   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18163   # take no chances and rewrite it.
18164   # Note: m4 eats our [], so we need to use [ and ] instead.
18165   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18166   if test "x$has_forbidden_chars" != x; then
18167     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18168     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18169   fi
18170 
18171     # Output is in $new_path
18172 
18173   windows_path="$new_path"
18174   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18175     unix_path=`$CYGPATH -u "$windows_path"`
18176     new_path="$unix_path"
18177   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18178     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18179     new_path="$unix_path"
18180   fi
18181 
18182     # remove trailing .exe if any
18183     new_path="${new_path/%.exe/}"
18184 
18185     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18186     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18187   fi
18188 
18189     else
18190       # We're on a unix platform. Hooray! :)
18191       # First separate the path from the arguments. This will split at the first
18192       # space.
18193       complete="$FOUND_MAKE"
18194       path="${complete%% *}"
18195       tmp="$complete EOL"
18196       arguments="${tmp#* }"
18197 
18198       # Cannot rely on the command "which" here since it doesn't always work.
18199       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18200       if test -z "$is_absolute_path"; then
18201         # Path to executable is not absolute. Find it.
18202         IFS_save="$IFS"
18203         IFS=:
18204         for p in $PATH; do
18205           if test -f "$p/$path" && test -x "$p/$path"; then
18206             new_path="$p/$path"
18207             break
18208           fi
18209         done
18210         IFS="$IFS_save"
18211       else
18212         # This is an absolute path, we can use it without further modifications.
18213         new_path="$path"
18214       fi
18215 
18216       if test "x$new_path" = x; then
18217         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18218 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18219         has_space=`$ECHO "$complete" | $GREP " "`
18220         if test "x$has_space" != x; then
18221           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18222 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18223         fi
18224         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18225       fi
18226     fi
18227 
18228     # Now join together the path and the arguments once again
18229     if test "x$arguments" != xEOL; then
18230       new_complete="$new_path ${arguments% *}"
18231     else
18232       new_complete="$new_path"
18233     fi
18234 
18235     if test "x$complete" != "x$new_complete"; then
18236       FOUND_MAKE="$new_complete"
18237       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18238 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18239     fi
18240   fi
18241 
18242         fi
18243       fi
18244     fi
18245   fi
18246 
18247 
18248     if test "x$FOUND_MAKE" = x; then
18249       for ac_prog in make
18250 do
18251   # Extract the first word of "$ac_prog", so it can be a program name with args.
18252 set dummy $ac_prog; ac_word=$2
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18254 $as_echo_n "checking for $ac_word... " >&6; }
18255 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18256   $as_echo_n "(cached) " >&6
18257 else
18258   case $CHECK_MAKE in
18259   [\\/]* | ?:[\\/]*)
18260   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18261   ;;
18262   *)
18263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18264 for as_dir in $PATH
18265 do
18266   IFS=$as_save_IFS
18267   test -z "$as_dir" && as_dir=.
18268     for ac_exec_ext in '' $ac_executable_extensions; do
18269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18270     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18272     break 2
18273   fi
18274 done
18275   done
18276 IFS=$as_save_IFS
18277 
18278   ;;
18279 esac
18280 fi
18281 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18282 if test -n "$CHECK_MAKE"; then
18283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18284 $as_echo "$CHECK_MAKE" >&6; }
18285 else
18286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18287 $as_echo "no" >&6; }
18288 fi
18289 
18290 
18291   test -n "$CHECK_MAKE" && break
18292 done
18293 
18294 
18295   MAKE_CANDIDATE=""$CHECK_MAKE""
18296   DESCRIPTION="make in PATH"
18297 
18298   # On Cygwin, we require a newer version of make than on other platforms
18299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18300     MAKE_VERSION_EXPR="-e 4\."
18301     MAKE_REQUIRED_VERSION="4.0"
18302    else
18303     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18304     MAKE_REQUIRED_VERSION="3.81"
18305   fi
18306 
18307   if test "x$MAKE_CANDIDATE" != x; then
18308     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18309 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18310     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18311     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18312     if test "x$IS_GNU_MAKE" = x; then
18313       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18314 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18315     else
18316       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18317       if test "x$IS_MODERN_MAKE" = x; then
18318         { $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
18319 $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;}
18320       else
18321         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18322           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18323             MAKE_EXPECTED_ENV='cygwin'
18324           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18325             MAKE_EXPECTED_ENV='msys'
18326           else
18327             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18328           fi
18329           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18330           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18331         else
18332           # Not relevant for non-Windows
18333           IS_MAKE_CORRECT_ENV=true
18334         fi
18335         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18336           { $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
18337 $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;}
18338         else
18339           FOUND_MAKE=$MAKE_CANDIDATE
18340 
18341   # Only process if variable expands to non-empty
18342 
18343   if test "x$FOUND_MAKE" != x; then
18344     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18345 
18346   # First separate the path from the arguments. This will split at the first
18347   # space.
18348   complete="$FOUND_MAKE"
18349   path="${complete%% *}"
18350   tmp="$complete EOL"
18351   arguments="${tmp#* }"
18352 
18353   # Input might be given as Windows format, start by converting to
18354   # unix format.
18355   new_path=`$CYGPATH -u "$path"`
18356 
18357   # Now try to locate executable using which
18358   new_path=`$WHICH "$new_path" 2> /dev/null`
18359   # bat and cmd files are not always considered executable in cygwin causing which
18360   # to not find them
18361   if test "x$new_path" = x \
18362       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18363       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18364     new_path=`$CYGPATH -u "$path"`
18365   fi
18366   if test "x$new_path" = x; then
18367     # Oops. Which didn't find the executable.
18368     # The splitting of arguments from the executable at a space might have been incorrect,
18369     # since paths with space are more likely in Windows. Give it another try with the whole
18370     # argument.
18371     path="$complete"
18372     arguments="EOL"
18373     new_path=`$CYGPATH -u "$path"`
18374     new_path=`$WHICH "$new_path" 2> /dev/null`
18375     # bat and cmd files are not always considered executable in cygwin causing which
18376     # to not find them
18377     if test "x$new_path" = x \
18378         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18379         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18380       new_path=`$CYGPATH -u "$path"`
18381     fi
18382     if test "x$new_path" = x; then
18383       # It's still not found. Now this is an unrecoverable error.
18384       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18386       has_space=`$ECHO "$complete" | $GREP " "`
18387       if test "x$has_space" != x; then
18388         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18390       fi
18391       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18392     fi
18393   fi
18394 
18395   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18396   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18397   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18398   # "foo.exe" is OK but "foo" is an error.
18399   #
18400   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18401   # It is also a way to make sure we got the proper file name for the real test later on.
18402   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18403   if test "x$test_shortpath" = x; then
18404     # Short path failed, file does not exist as specified.
18405     # Try adding .exe or .cmd
18406     if test -f "${new_path}.exe"; then
18407       input_to_shortpath="${new_path}.exe"
18408     elif test -f "${new_path}.cmd"; then
18409       input_to_shortpath="${new_path}.cmd"
18410     else
18411       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18413       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18414 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18416     fi
18417   else
18418     input_to_shortpath="$new_path"
18419   fi
18420 
18421   # Call helper function which possibly converts this using DOS-style short mode.
18422   # If so, the updated path is stored in $new_path.
18423   new_path="$input_to_shortpath"
18424 
18425   input_path="$input_to_shortpath"
18426   # Check if we need to convert this using DOS-style short mode. If the path
18427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18428   # take no chances and rewrite it.
18429   # Note: m4 eats our [], so we need to use [ and ] instead.
18430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18431   if test "x$has_forbidden_chars" != x; then
18432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18436       # Going to short mode and back again did indeed matter. Since short mode is
18437       # case insensitive, let's make it lowercase to improve readability.
18438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18439       # Now convert it back to Unix-style (cygpath)
18440       input_path=`$CYGPATH -u "$shortmode_path"`
18441       new_path="$input_path"
18442     fi
18443   fi
18444 
18445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18446   if test "x$test_cygdrive_prefix" = x; then
18447     # As a simple fix, exclude /usr/bin since it's not a real path.
18448     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18450       # a path prefixed by /cygdrive for fixpath to work.
18451       new_path="$CYGWIN_ROOT_PATH$input_path"
18452     fi
18453   fi
18454 
18455   # remove trailing .exe if any
18456   new_path="${new_path/%.exe/}"
18457 
18458     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18459 
18460   # First separate the path from the arguments. This will split at the first
18461   # space.
18462   complete="$FOUND_MAKE"
18463   path="${complete%% *}"
18464   tmp="$complete EOL"
18465   arguments="${tmp#* }"
18466 
18467   # Input might be given as Windows format, start by converting to
18468   # unix format.
18469   new_path="$path"
18470 
18471   windows_path="$new_path"
18472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18473     unix_path=`$CYGPATH -u "$windows_path"`
18474     new_path="$unix_path"
18475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18477     new_path="$unix_path"
18478   fi
18479 
18480 
18481   # Now try to locate executable using which
18482   new_path=`$WHICH "$new_path" 2> /dev/null`
18483 
18484   if test "x$new_path" = x; then
18485     # Oops. Which didn't find the executable.
18486     # The splitting of arguments from the executable at a space might have been incorrect,
18487     # since paths with space are more likely in Windows. Give it another try with the whole
18488     # argument.
18489     path="$complete"
18490     arguments="EOL"
18491     new_path="$path"
18492 
18493   windows_path="$new_path"
18494   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18495     unix_path=`$CYGPATH -u "$windows_path"`
18496     new_path="$unix_path"
18497   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18498     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18499     new_path="$unix_path"
18500   fi
18501 
18502 
18503     new_path=`$WHICH "$new_path" 2> /dev/null`
18504     # bat and cmd files are not always considered executable in MSYS causing which
18505     # to not find them
18506     if test "x$new_path" = x \
18507         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18508         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18509       new_path="$path"
18510 
18511   windows_path="$new_path"
18512   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18513     unix_path=`$CYGPATH -u "$windows_path"`
18514     new_path="$unix_path"
18515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18516     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18517     new_path="$unix_path"
18518   fi
18519 
18520     fi
18521 
18522     if test "x$new_path" = x; then
18523       # It's still not found. Now this is an unrecoverable error.
18524       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18525 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18526       has_space=`$ECHO "$complete" | $GREP " "`
18527       if test "x$has_space" != x; then
18528         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18530       fi
18531       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18532     fi
18533   fi
18534 
18535   # Now new_path has a complete unix path to the binary
18536   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18537     # Keep paths in /bin as-is, but remove trailing .exe if any
18538     new_path="${new_path/%.exe/}"
18539     # Do not save /bin paths to all_fixpath_prefixes!
18540   else
18541     # Not in mixed or Windows style, start by that.
18542     new_path=`cmd //c echo $new_path`
18543 
18544   input_path="$new_path"
18545   # Check if we need to convert this using DOS-style short mode. If the path
18546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18547   # take no chances and rewrite it.
18548   # Note: m4 eats our [], so we need to use [ and ] instead.
18549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18550   if test "x$has_forbidden_chars" != x; then
18551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18552     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18553   fi
18554 
18555     # Output is in $new_path
18556 
18557   windows_path="$new_path"
18558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18559     unix_path=`$CYGPATH -u "$windows_path"`
18560     new_path="$unix_path"
18561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18562     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18563     new_path="$unix_path"
18564   fi
18565 
18566     # remove trailing .exe if any
18567     new_path="${new_path/%.exe/}"
18568 
18569     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18570     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18571   fi
18572 
18573     else
18574       # We're on a unix platform. Hooray! :)
18575       # First separate the path from the arguments. This will split at the first
18576       # space.
18577       complete="$FOUND_MAKE"
18578       path="${complete%% *}"
18579       tmp="$complete EOL"
18580       arguments="${tmp#* }"
18581 
18582       # Cannot rely on the command "which" here since it doesn't always work.
18583       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18584       if test -z "$is_absolute_path"; then
18585         # Path to executable is not absolute. Find it.
18586         IFS_save="$IFS"
18587         IFS=:
18588         for p in $PATH; do
18589           if test -f "$p/$path" && test -x "$p/$path"; then
18590             new_path="$p/$path"
18591             break
18592           fi
18593         done
18594         IFS="$IFS_save"
18595       else
18596         # This is an absolute path, we can use it without further modifications.
18597         new_path="$path"
18598       fi
18599 
18600       if test "x$new_path" = x; then
18601         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18602 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18603         has_space=`$ECHO "$complete" | $GREP " "`
18604         if test "x$has_space" != x; then
18605           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18606 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18607         fi
18608         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18609       fi
18610     fi
18611 
18612     # Now join together the path and the arguments once again
18613     if test "x$arguments" != xEOL; then
18614       new_complete="$new_path ${arguments% *}"
18615     else
18616       new_complete="$new_path"
18617     fi
18618 
18619     if test "x$complete" != "x$new_complete"; then
18620       FOUND_MAKE="$new_complete"
18621       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18622 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18623     fi
18624   fi
18625 
18626         fi
18627       fi
18628     fi
18629   fi
18630 
18631     fi
18632 
18633     if test "x$FOUND_MAKE" = x; then
18634       if test "x$TOOLCHAIN_PATH" != x; then
18635         # We have a toolchain path, check that as well before giving up.
18636         OLD_PATH=$PATH
18637         PATH=$TOOLCHAIN_PATH:$PATH
18638         for ac_prog in gmake
18639 do
18640   # Extract the first word of "$ac_prog", so it can be a program name with args.
18641 set dummy $ac_prog; ac_word=$2
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18643 $as_echo_n "checking for $ac_word... " >&6; }
18644 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   case $CHECK_TOOLSDIR_GMAKE in
18648   [\\/]* | ?:[\\/]*)
18649   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18650   ;;
18651   *)
18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655   IFS=$as_save_IFS
18656   test -z "$as_dir" && as_dir=.
18657     for ac_exec_ext in '' $ac_executable_extensions; do
18658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661     break 2
18662   fi
18663 done
18664   done
18665 IFS=$as_save_IFS
18666 
18667   ;;
18668 esac
18669 fi
18670 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18671 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18673 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18674 else
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677 fi
18678 
18679 
18680   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18681 done
18682 
18683 
18684   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18685   DESCRIPTION="gmake in tools-dir"
18686 
18687   # On Cygwin, we require a newer version of make than on other platforms
18688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18689     MAKE_VERSION_EXPR="-e 4\."
18690     MAKE_REQUIRED_VERSION="4.0"
18691    else
18692     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18693     MAKE_REQUIRED_VERSION="3.81"
18694   fi
18695 
18696   if test "x$MAKE_CANDIDATE" != x; then
18697     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18698 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18699     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18700     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18701     if test "x$IS_GNU_MAKE" = x; then
18702       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18703 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18704     else
18705       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18706       if test "x$IS_MODERN_MAKE" = x; then
18707         { $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
18708 $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;}
18709       else
18710         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18711           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18712             MAKE_EXPECTED_ENV='cygwin'
18713           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18714             MAKE_EXPECTED_ENV='msys'
18715           else
18716             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18717           fi
18718           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18719           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18720         else
18721           # Not relevant for non-Windows
18722           IS_MAKE_CORRECT_ENV=true
18723         fi
18724         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18725           { $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
18726 $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;}
18727         else
18728           FOUND_MAKE=$MAKE_CANDIDATE
18729 
18730   # Only process if variable expands to non-empty
18731 
18732   if test "x$FOUND_MAKE" != x; then
18733     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18734 
18735   # First separate the path from the arguments. This will split at the first
18736   # space.
18737   complete="$FOUND_MAKE"
18738   path="${complete%% *}"
18739   tmp="$complete EOL"
18740   arguments="${tmp#* }"
18741 
18742   # Input might be given as Windows format, start by converting to
18743   # unix format.
18744   new_path=`$CYGPATH -u "$path"`
18745 
18746   # Now try to locate executable using which
18747   new_path=`$WHICH "$new_path" 2> /dev/null`
18748   # bat and cmd files are not always considered executable in cygwin causing which
18749   # to not find them
18750   if test "x$new_path" = x \
18751       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18752       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18753     new_path=`$CYGPATH -u "$path"`
18754   fi
18755   if test "x$new_path" = x; then
18756     # Oops. Which didn't find the executable.
18757     # The splitting of arguments from the executable at a space might have been incorrect,
18758     # since paths with space are more likely in Windows. Give it another try with the whole
18759     # argument.
18760     path="$complete"
18761     arguments="EOL"
18762     new_path=`$CYGPATH -u "$path"`
18763     new_path=`$WHICH "$new_path" 2> /dev/null`
18764     # bat and cmd files are not always considered executable in cygwin causing which
18765     # to not find them
18766     if test "x$new_path" = x \
18767         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18768         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18769       new_path=`$CYGPATH -u "$path"`
18770     fi
18771     if test "x$new_path" = x; then
18772       # It's still not found. Now this is an unrecoverable error.
18773       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18774 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18775       has_space=`$ECHO "$complete" | $GREP " "`
18776       if test "x$has_space" != x; then
18777         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18778 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18779       fi
18780       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18781     fi
18782   fi
18783 
18784   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18785   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18786   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18787   # "foo.exe" is OK but "foo" is an error.
18788   #
18789   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18790   # It is also a way to make sure we got the proper file name for the real test later on.
18791   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18792   if test "x$test_shortpath" = x; then
18793     # Short path failed, file does not exist as specified.
18794     # Try adding .exe or .cmd
18795     if test -f "${new_path}.exe"; then
18796       input_to_shortpath="${new_path}.exe"
18797     elif test -f "${new_path}.cmd"; then
18798       input_to_shortpath="${new_path}.cmd"
18799     else
18800       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18801 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18802       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18803 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18804       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18805     fi
18806   else
18807     input_to_shortpath="$new_path"
18808   fi
18809 
18810   # Call helper function which possibly converts this using DOS-style short mode.
18811   # If so, the updated path is stored in $new_path.
18812   new_path="$input_to_shortpath"
18813 
18814   input_path="$input_to_shortpath"
18815   # Check if we need to convert this using DOS-style short mode. If the path
18816   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18817   # take no chances and rewrite it.
18818   # Note: m4 eats our [], so we need to use [ and ] instead.
18819   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18820   if test "x$has_forbidden_chars" != x; then
18821     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18822     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18823     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18824     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18825       # Going to short mode and back again did indeed matter. Since short mode is
18826       # case insensitive, let's make it lowercase to improve readability.
18827       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18828       # Now convert it back to Unix-style (cygpath)
18829       input_path=`$CYGPATH -u "$shortmode_path"`
18830       new_path="$input_path"
18831     fi
18832   fi
18833 
18834   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18835   if test "x$test_cygdrive_prefix" = x; then
18836     # As a simple fix, exclude /usr/bin since it's not a real path.
18837     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18838       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18839       # a path prefixed by /cygdrive for fixpath to work.
18840       new_path="$CYGWIN_ROOT_PATH$input_path"
18841     fi
18842   fi
18843 
18844   # remove trailing .exe if any
18845   new_path="${new_path/%.exe/}"
18846 
18847     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18848 
18849   # First separate the path from the arguments. This will split at the first
18850   # space.
18851   complete="$FOUND_MAKE"
18852   path="${complete%% *}"
18853   tmp="$complete EOL"
18854   arguments="${tmp#* }"
18855 
18856   # Input might be given as Windows format, start by converting to
18857   # unix format.
18858   new_path="$path"
18859 
18860   windows_path="$new_path"
18861   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18862     unix_path=`$CYGPATH -u "$windows_path"`
18863     new_path="$unix_path"
18864   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18865     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18866     new_path="$unix_path"
18867   fi
18868 
18869 
18870   # Now try to locate executable using which
18871   new_path=`$WHICH "$new_path" 2> /dev/null`
18872 
18873   if test "x$new_path" = x; then
18874     # Oops. Which didn't find the executable.
18875     # The splitting of arguments from the executable at a space might have been incorrect,
18876     # since paths with space are more likely in Windows. Give it another try with the whole
18877     # argument.
18878     path="$complete"
18879     arguments="EOL"
18880     new_path="$path"
18881 
18882   windows_path="$new_path"
18883   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18884     unix_path=`$CYGPATH -u "$windows_path"`
18885     new_path="$unix_path"
18886   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18887     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18888     new_path="$unix_path"
18889   fi
18890 
18891 
18892     new_path=`$WHICH "$new_path" 2> /dev/null`
18893     # bat and cmd files are not always considered executable in MSYS causing which
18894     # to not find them
18895     if test "x$new_path" = x \
18896         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18897         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18898       new_path="$path"
18899 
18900   windows_path="$new_path"
18901   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18902     unix_path=`$CYGPATH -u "$windows_path"`
18903     new_path="$unix_path"
18904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18905     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18906     new_path="$unix_path"
18907   fi
18908 
18909     fi
18910 
18911     if test "x$new_path" = x; then
18912       # It's still not found. Now this is an unrecoverable error.
18913       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18914 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18915       has_space=`$ECHO "$complete" | $GREP " "`
18916       if test "x$has_space" != x; then
18917         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18918 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18919       fi
18920       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18921     fi
18922   fi
18923 
18924   # Now new_path has a complete unix path to the binary
18925   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18926     # Keep paths in /bin as-is, but remove trailing .exe if any
18927     new_path="${new_path/%.exe/}"
18928     # Do not save /bin paths to all_fixpath_prefixes!
18929   else
18930     # Not in mixed or Windows style, start by that.
18931     new_path=`cmd //c echo $new_path`
18932 
18933   input_path="$new_path"
18934   # Check if we need to convert this using DOS-style short mode. If the path
18935   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18936   # take no chances and rewrite it.
18937   # Note: m4 eats our [], so we need to use [ and ] instead.
18938   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18939   if test "x$has_forbidden_chars" != x; then
18940     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18941     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18942   fi
18943 
18944     # Output is in $new_path
18945 
18946   windows_path="$new_path"
18947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18948     unix_path=`$CYGPATH -u "$windows_path"`
18949     new_path="$unix_path"
18950   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18951     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18952     new_path="$unix_path"
18953   fi
18954 
18955     # remove trailing .exe if any
18956     new_path="${new_path/%.exe/}"
18957 
18958     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18959     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18960   fi
18961 
18962     else
18963       # We're on a unix platform. Hooray! :)
18964       # First separate the path from the arguments. This will split at the first
18965       # space.
18966       complete="$FOUND_MAKE"
18967       path="${complete%% *}"
18968       tmp="$complete EOL"
18969       arguments="${tmp#* }"
18970 
18971       # Cannot rely on the command "which" here since it doesn't always work.
18972       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18973       if test -z "$is_absolute_path"; then
18974         # Path to executable is not absolute. Find it.
18975         IFS_save="$IFS"
18976         IFS=:
18977         for p in $PATH; do
18978           if test -f "$p/$path" && test -x "$p/$path"; then
18979             new_path="$p/$path"
18980             break
18981           fi
18982         done
18983         IFS="$IFS_save"
18984       else
18985         # This is an absolute path, we can use it without further modifications.
18986         new_path="$path"
18987       fi
18988 
18989       if test "x$new_path" = x; then
18990         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18991 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18992         has_space=`$ECHO "$complete" | $GREP " "`
18993         if test "x$has_space" != x; then
18994           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18995 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18996         fi
18997         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18998       fi
18999     fi
19000 
19001     # Now join together the path and the arguments once again
19002     if test "x$arguments" != xEOL; then
19003       new_complete="$new_path ${arguments% *}"
19004     else
19005       new_complete="$new_path"
19006     fi
19007 
19008     if test "x$complete" != "x$new_complete"; then
19009       FOUND_MAKE="$new_complete"
19010       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19011 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19012     fi
19013   fi
19014 
19015         fi
19016       fi
19017     fi
19018   fi
19019 
19020         if test "x$FOUND_MAKE" = x; then
19021           for ac_prog in make
19022 do
19023   # Extract the first word of "$ac_prog", so it can be a program name with args.
19024 set dummy $ac_prog; ac_word=$2
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19026 $as_echo_n "checking for $ac_word... " >&6; }
19027 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19028   $as_echo_n "(cached) " >&6
19029 else
19030   case $CHECK_TOOLSDIR_MAKE in
19031   [\\/]* | ?:[\\/]*)
19032   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19033   ;;
19034   *)
19035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19036 for as_dir in $PATH
19037 do
19038   IFS=$as_save_IFS
19039   test -z "$as_dir" && as_dir=.
19040     for ac_exec_ext in '' $ac_executable_extensions; do
19041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19042     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044     break 2
19045   fi
19046 done
19047   done
19048 IFS=$as_save_IFS
19049 
19050   ;;
19051 esac
19052 fi
19053 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19054 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19056 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19057 else
19058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060 fi
19061 
19062 
19063   test -n "$CHECK_TOOLSDIR_MAKE" && break
19064 done
19065 
19066 
19067   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19068   DESCRIPTION="make in tools-dir"
19069 
19070   # On Cygwin, we require a newer version of make than on other platforms
19071   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19072     MAKE_VERSION_EXPR="-e 4\."
19073     MAKE_REQUIRED_VERSION="4.0"
19074    else
19075     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19076     MAKE_REQUIRED_VERSION="3.81"
19077   fi
19078 
19079   if test "x$MAKE_CANDIDATE" != x; then
19080     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19081 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19082     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19083     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19084     if test "x$IS_GNU_MAKE" = x; then
19085       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19086 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19087     else
19088       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19089       if test "x$IS_MODERN_MAKE" = x; then
19090         { $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
19091 $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;}
19092       else
19093         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19094           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19095             MAKE_EXPECTED_ENV='cygwin'
19096           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19097             MAKE_EXPECTED_ENV='msys'
19098           else
19099             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19100           fi
19101           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19102           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19103         else
19104           # Not relevant for non-Windows
19105           IS_MAKE_CORRECT_ENV=true
19106         fi
19107         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19108           { $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
19109 $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;}
19110         else
19111           FOUND_MAKE=$MAKE_CANDIDATE
19112 
19113   # Only process if variable expands to non-empty
19114 
19115   if test "x$FOUND_MAKE" != x; then
19116     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19117 
19118   # First separate the path from the arguments. This will split at the first
19119   # space.
19120   complete="$FOUND_MAKE"
19121   path="${complete%% *}"
19122   tmp="$complete EOL"
19123   arguments="${tmp#* }"
19124 
19125   # Input might be given as Windows format, start by converting to
19126   # unix format.
19127   new_path=`$CYGPATH -u "$path"`
19128 
19129   # Now try to locate executable using which
19130   new_path=`$WHICH "$new_path" 2> /dev/null`
19131   # bat and cmd files are not always considered executable in cygwin causing which
19132   # to not find them
19133   if test "x$new_path" = x \
19134       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19135       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19136     new_path=`$CYGPATH -u "$path"`
19137   fi
19138   if test "x$new_path" = x; then
19139     # Oops. Which didn't find the executable.
19140     # The splitting of arguments from the executable at a space might have been incorrect,
19141     # since paths with space are more likely in Windows. Give it another try with the whole
19142     # argument.
19143     path="$complete"
19144     arguments="EOL"
19145     new_path=`$CYGPATH -u "$path"`
19146     new_path=`$WHICH "$new_path" 2> /dev/null`
19147     # bat and cmd files are not always considered executable in cygwin causing which
19148     # to not find them
19149     if test "x$new_path" = x \
19150         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19151         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19152       new_path=`$CYGPATH -u "$path"`
19153     fi
19154     if test "x$new_path" = x; then
19155       # It's still not found. Now this is an unrecoverable error.
19156       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19158       has_space=`$ECHO "$complete" | $GREP " "`
19159       if test "x$has_space" != x; then
19160         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19161 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19162       fi
19163       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19164     fi
19165   fi
19166 
19167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19170   # "foo.exe" is OK but "foo" is an error.
19171   #
19172   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19173   # It is also a way to make sure we got the proper file name for the real test later on.
19174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19175   if test "x$test_shortpath" = x; then
19176     # Short path failed, file does not exist as specified.
19177     # Try adding .exe or .cmd
19178     if test -f "${new_path}.exe"; then
19179       input_to_shortpath="${new_path}.exe"
19180     elif test -f "${new_path}.cmd"; then
19181       input_to_shortpath="${new_path}.cmd"
19182     else
19183       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19184 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19185       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19186 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19187       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19188     fi
19189   else
19190     input_to_shortpath="$new_path"
19191   fi
19192 
19193   # Call helper function which possibly converts this using DOS-style short mode.
19194   # If so, the updated path is stored in $new_path.
19195   new_path="$input_to_shortpath"
19196 
19197   input_path="$input_to_shortpath"
19198   # Check if we need to convert this using DOS-style short mode. If the path
19199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19200   # take no chances and rewrite it.
19201   # Note: m4 eats our [], so we need to use [ and ] instead.
19202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19203   if test "x$has_forbidden_chars" != x; then
19204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19205     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19206     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19207     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19208       # Going to short mode and back again did indeed matter. Since short mode is
19209       # case insensitive, let's make it lowercase to improve readability.
19210       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19211       # Now convert it back to Unix-style (cygpath)
19212       input_path=`$CYGPATH -u "$shortmode_path"`
19213       new_path="$input_path"
19214     fi
19215   fi
19216 
19217   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19218   if test "x$test_cygdrive_prefix" = x; then
19219     # As a simple fix, exclude /usr/bin since it's not a real path.
19220     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19221       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19222       # a path prefixed by /cygdrive for fixpath to work.
19223       new_path="$CYGWIN_ROOT_PATH$input_path"
19224     fi
19225   fi
19226 
19227   # remove trailing .exe if any
19228   new_path="${new_path/%.exe/}"
19229 
19230     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19231 
19232   # First separate the path from the arguments. This will split at the first
19233   # space.
19234   complete="$FOUND_MAKE"
19235   path="${complete%% *}"
19236   tmp="$complete EOL"
19237   arguments="${tmp#* }"
19238 
19239   # Input might be given as Windows format, start by converting to
19240   # unix format.
19241   new_path="$path"
19242 
19243   windows_path="$new_path"
19244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19245     unix_path=`$CYGPATH -u "$windows_path"`
19246     new_path="$unix_path"
19247   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19248     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19249     new_path="$unix_path"
19250   fi
19251 
19252 
19253   # Now try to locate executable using which
19254   new_path=`$WHICH "$new_path" 2> /dev/null`
19255 
19256   if test "x$new_path" = x; then
19257     # Oops. Which didn't find the executable.
19258     # The splitting of arguments from the executable at a space might have been incorrect,
19259     # since paths with space are more likely in Windows. Give it another try with the whole
19260     # argument.
19261     path="$complete"
19262     arguments="EOL"
19263     new_path="$path"
19264 
19265   windows_path="$new_path"
19266   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19267     unix_path=`$CYGPATH -u "$windows_path"`
19268     new_path="$unix_path"
19269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19270     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19271     new_path="$unix_path"
19272   fi
19273 
19274 
19275     new_path=`$WHICH "$new_path" 2> /dev/null`
19276     # bat and cmd files are not always considered executable in MSYS causing which
19277     # to not find them
19278     if test "x$new_path" = x \
19279         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19280         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19281       new_path="$path"
19282 
19283   windows_path="$new_path"
19284   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19285     unix_path=`$CYGPATH -u "$windows_path"`
19286     new_path="$unix_path"
19287   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19288     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19289     new_path="$unix_path"
19290   fi
19291 
19292     fi
19293 
19294     if test "x$new_path" = x; then
19295       # It's still not found. Now this is an unrecoverable error.
19296       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19297 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19298       has_space=`$ECHO "$complete" | $GREP " "`
19299       if test "x$has_space" != x; then
19300         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19301 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19302       fi
19303       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19304     fi
19305   fi
19306 
19307   # Now new_path has a complete unix path to the binary
19308   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19309     # Keep paths in /bin as-is, but remove trailing .exe if any
19310     new_path="${new_path/%.exe/}"
19311     # Do not save /bin paths to all_fixpath_prefixes!
19312   else
19313     # Not in mixed or Windows style, start by that.
19314     new_path=`cmd //c echo $new_path`
19315 
19316   input_path="$new_path"
19317   # Check if we need to convert this using DOS-style short mode. If the path
19318   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19319   # take no chances and rewrite it.
19320   # Note: m4 eats our [], so we need to use [ and ] instead.
19321   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19322   if test "x$has_forbidden_chars" != x; then
19323     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19324     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19325   fi
19326 
19327     # Output is in $new_path
19328 
19329   windows_path="$new_path"
19330   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19331     unix_path=`$CYGPATH -u "$windows_path"`
19332     new_path="$unix_path"
19333   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19334     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19335     new_path="$unix_path"
19336   fi
19337 
19338     # remove trailing .exe if any
19339     new_path="${new_path/%.exe/}"
19340 
19341     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19342     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19343   fi
19344 
19345     else
19346       # We're on a unix platform. Hooray! :)
19347       # First separate the path from the arguments. This will split at the first
19348       # space.
19349       complete="$FOUND_MAKE"
19350       path="${complete%% *}"
19351       tmp="$complete EOL"
19352       arguments="${tmp#* }"
19353 
19354       # Cannot rely on the command "which" here since it doesn't always work.
19355       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19356       if test -z "$is_absolute_path"; then
19357         # Path to executable is not absolute. Find it.
19358         IFS_save="$IFS"
19359         IFS=:
19360         for p in $PATH; do
19361           if test -f "$p/$path" && test -x "$p/$path"; then
19362             new_path="$p/$path"
19363             break
19364           fi
19365         done
19366         IFS="$IFS_save"
19367       else
19368         # This is an absolute path, we can use it without further modifications.
19369         new_path="$path"
19370       fi
19371 
19372       if test "x$new_path" = x; then
19373         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19374 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19375         has_space=`$ECHO "$complete" | $GREP " "`
19376         if test "x$has_space" != x; then
19377           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19378 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19379         fi
19380         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19381       fi
19382     fi
19383 
19384     # Now join together the path and the arguments once again
19385     if test "x$arguments" != xEOL; then
19386       new_complete="$new_path ${arguments% *}"
19387     else
19388       new_complete="$new_path"
19389     fi
19390 
19391     if test "x$complete" != "x$new_complete"; then
19392       FOUND_MAKE="$new_complete"
19393       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19394 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19395     fi
19396   fi
19397 
19398         fi
19399       fi
19400     fi
19401   fi
19402 
19403         fi
19404         PATH=$OLD_PATH
19405       fi
19406     fi
19407 
19408     if test "x$FOUND_MAKE" = x; then
19409       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
19410     fi
19411 
19412   else
19413     # The variable is set, but is it from the command line or the environment?
19414 
19415     # Try to remove the string !MAKE! from our list.
19416     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19417     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19418       # If it failed, the variable was not from the command line. Ignore it,
19419       # but warn the user (except for BASH, which is always set by the calling BASH).
19420       if test "xMAKE" != xBASH; then
19421         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19422 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19423       fi
19424       # Try to locate tool using the code snippet
19425 
19426     # Try our hardest to locate a correct version of GNU make
19427     for ac_prog in gmake
19428 do
19429   # Extract the first word of "$ac_prog", so it can be a program name with args.
19430 set dummy $ac_prog; ac_word=$2
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19432 $as_echo_n "checking for $ac_word... " >&6; }
19433 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   case $CHECK_GMAKE in
19437   [\\/]* | ?:[\\/]*)
19438   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19439   ;;
19440   *)
19441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19442 for as_dir in $PATH
19443 do
19444   IFS=$as_save_IFS
19445   test -z "$as_dir" && as_dir=.
19446     for ac_exec_ext in '' $ac_executable_extensions; do
19447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19448     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19450     break 2
19451   fi
19452 done
19453   done
19454 IFS=$as_save_IFS
19455 
19456   ;;
19457 esac
19458 fi
19459 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19460 if test -n "$CHECK_GMAKE"; then
19461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19462 $as_echo "$CHECK_GMAKE" >&6; }
19463 else
19464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465 $as_echo "no" >&6; }
19466 fi
19467 
19468 
19469   test -n "$CHECK_GMAKE" && break
19470 done
19471 
19472 
19473   MAKE_CANDIDATE=""$CHECK_GMAKE""
19474   DESCRIPTION="gmake in PATH"
19475 
19476   # On Cygwin, we require a newer version of make than on other platforms
19477   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19478     MAKE_VERSION_EXPR="-e 4\."
19479     MAKE_REQUIRED_VERSION="4.0"
19480    else
19481     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19482     MAKE_REQUIRED_VERSION="3.81"
19483   fi
19484 
19485   if test "x$MAKE_CANDIDATE" != x; then
19486     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19487 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19488     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19489     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19490     if test "x$IS_GNU_MAKE" = x; then
19491       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19492 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19493     else
19494       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19495       if test "x$IS_MODERN_MAKE" = x; then
19496         { $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
19497 $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;}
19498       else
19499         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19500           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19501             MAKE_EXPECTED_ENV='cygwin'
19502           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19503             MAKE_EXPECTED_ENV='msys'
19504           else
19505             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19506           fi
19507           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19508           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19509         else
19510           # Not relevant for non-Windows
19511           IS_MAKE_CORRECT_ENV=true
19512         fi
19513         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19514           { $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
19515 $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;}
19516         else
19517           FOUND_MAKE=$MAKE_CANDIDATE
19518 
19519   # Only process if variable expands to non-empty
19520 
19521   if test "x$FOUND_MAKE" != x; then
19522     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19523 
19524   # First separate the path from the arguments. This will split at the first
19525   # space.
19526   complete="$FOUND_MAKE"
19527   path="${complete%% *}"
19528   tmp="$complete EOL"
19529   arguments="${tmp#* }"
19530 
19531   # Input might be given as Windows format, start by converting to
19532   # unix format.
19533   new_path=`$CYGPATH -u "$path"`
19534 
19535   # Now try to locate executable using which
19536   new_path=`$WHICH "$new_path" 2> /dev/null`
19537   # bat and cmd files are not always considered executable in cygwin causing which
19538   # to not find them
19539   if test "x$new_path" = x \
19540       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19541       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19542     new_path=`$CYGPATH -u "$path"`
19543   fi
19544   if test "x$new_path" = x; then
19545     # Oops. Which didn't find the executable.
19546     # The splitting of arguments from the executable at a space might have been incorrect,
19547     # since paths with space are more likely in Windows. Give it another try with the whole
19548     # argument.
19549     path="$complete"
19550     arguments="EOL"
19551     new_path=`$CYGPATH -u "$path"`
19552     new_path=`$WHICH "$new_path" 2> /dev/null`
19553     # bat and cmd files are not always considered executable in cygwin causing which
19554     # to not find them
19555     if test "x$new_path" = x \
19556         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19557         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19558       new_path=`$CYGPATH -u "$path"`
19559     fi
19560     if test "x$new_path" = x; then
19561       # It's still not found. Now this is an unrecoverable error.
19562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19563 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19564       has_space=`$ECHO "$complete" | $GREP " "`
19565       if test "x$has_space" != x; then
19566         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19568       fi
19569       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19570     fi
19571   fi
19572 
19573   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19574   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19575   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19576   # "foo.exe" is OK but "foo" is an error.
19577   #
19578   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19579   # It is also a way to make sure we got the proper file name for the real test later on.
19580   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19581   if test "x$test_shortpath" = x; then
19582     # Short path failed, file does not exist as specified.
19583     # Try adding .exe or .cmd
19584     if test -f "${new_path}.exe"; then
19585       input_to_shortpath="${new_path}.exe"
19586     elif test -f "${new_path}.cmd"; then
19587       input_to_shortpath="${new_path}.cmd"
19588     else
19589       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19590 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19591       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19592 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19593       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19594     fi
19595   else
19596     input_to_shortpath="$new_path"
19597   fi
19598 
19599   # Call helper function which possibly converts this using DOS-style short mode.
19600   # If so, the updated path is stored in $new_path.
19601   new_path="$input_to_shortpath"
19602 
19603   input_path="$input_to_shortpath"
19604   # Check if we need to convert this using DOS-style short mode. If the path
19605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19606   # take no chances and rewrite it.
19607   # Note: m4 eats our [], so we need to use [ and ] instead.
19608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19609   if test "x$has_forbidden_chars" != x; then
19610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19611     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19612     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19613     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19614       # Going to short mode and back again did indeed matter. Since short mode is
19615       # case insensitive, let's make it lowercase to improve readability.
19616       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19617       # Now convert it back to Unix-style (cygpath)
19618       input_path=`$CYGPATH -u "$shortmode_path"`
19619       new_path="$input_path"
19620     fi
19621   fi
19622 
19623   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19624   if test "x$test_cygdrive_prefix" = x; then
19625     # As a simple fix, exclude /usr/bin since it's not a real path.
19626     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19627       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19628       # a path prefixed by /cygdrive for fixpath to work.
19629       new_path="$CYGWIN_ROOT_PATH$input_path"
19630     fi
19631   fi
19632 
19633   # remove trailing .exe if any
19634   new_path="${new_path/%.exe/}"
19635 
19636     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19637 
19638   # First separate the path from the arguments. This will split at the first
19639   # space.
19640   complete="$FOUND_MAKE"
19641   path="${complete%% *}"
19642   tmp="$complete EOL"
19643   arguments="${tmp#* }"
19644 
19645   # Input might be given as Windows format, start by converting to
19646   # unix format.
19647   new_path="$path"
19648 
19649   windows_path="$new_path"
19650   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19651     unix_path=`$CYGPATH -u "$windows_path"`
19652     new_path="$unix_path"
19653   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19654     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19655     new_path="$unix_path"
19656   fi
19657 
19658 
19659   # Now try to locate executable using which
19660   new_path=`$WHICH "$new_path" 2> /dev/null`
19661 
19662   if test "x$new_path" = x; then
19663     # Oops. Which didn't find the executable.
19664     # The splitting of arguments from the executable at a space might have been incorrect,
19665     # since paths with space are more likely in Windows. Give it another try with the whole
19666     # argument.
19667     path="$complete"
19668     arguments="EOL"
19669     new_path="$path"
19670 
19671   windows_path="$new_path"
19672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19673     unix_path=`$CYGPATH -u "$windows_path"`
19674     new_path="$unix_path"
19675   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19676     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19677     new_path="$unix_path"
19678   fi
19679 
19680 
19681     new_path=`$WHICH "$new_path" 2> /dev/null`
19682     # bat and cmd files are not always considered executable in MSYS causing which
19683     # to not find them
19684     if test "x$new_path" = x \
19685         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19686         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19687       new_path="$path"
19688 
19689   windows_path="$new_path"
19690   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19691     unix_path=`$CYGPATH -u "$windows_path"`
19692     new_path="$unix_path"
19693   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19694     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19695     new_path="$unix_path"
19696   fi
19697 
19698     fi
19699 
19700     if test "x$new_path" = x; then
19701       # It's still not found. Now this is an unrecoverable error.
19702       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19703 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19704       has_space=`$ECHO "$complete" | $GREP " "`
19705       if test "x$has_space" != x; then
19706         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19707 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19708       fi
19709       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19710     fi
19711   fi
19712 
19713   # Now new_path has a complete unix path to the binary
19714   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19715     # Keep paths in /bin as-is, but remove trailing .exe if any
19716     new_path="${new_path/%.exe/}"
19717     # Do not save /bin paths to all_fixpath_prefixes!
19718   else
19719     # Not in mixed or Windows style, start by that.
19720     new_path=`cmd //c echo $new_path`
19721 
19722   input_path="$new_path"
19723   # Check if we need to convert this using DOS-style short mode. If the path
19724   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19725   # take no chances and rewrite it.
19726   # Note: m4 eats our [], so we need to use [ and ] instead.
19727   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19728   if test "x$has_forbidden_chars" != x; then
19729     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19730     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19731   fi
19732 
19733     # Output is in $new_path
19734 
19735   windows_path="$new_path"
19736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19737     unix_path=`$CYGPATH -u "$windows_path"`
19738     new_path="$unix_path"
19739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19741     new_path="$unix_path"
19742   fi
19743 
19744     # remove trailing .exe if any
19745     new_path="${new_path/%.exe/}"
19746 
19747     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19748     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19749   fi
19750 
19751     else
19752       # We're on a unix platform. Hooray! :)
19753       # First separate the path from the arguments. This will split at the first
19754       # space.
19755       complete="$FOUND_MAKE"
19756       path="${complete%% *}"
19757       tmp="$complete EOL"
19758       arguments="${tmp#* }"
19759 
19760       # Cannot rely on the command "which" here since it doesn't always work.
19761       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19762       if test -z "$is_absolute_path"; then
19763         # Path to executable is not absolute. Find it.
19764         IFS_save="$IFS"
19765         IFS=:
19766         for p in $PATH; do
19767           if test -f "$p/$path" && test -x "$p/$path"; then
19768             new_path="$p/$path"
19769             break
19770           fi
19771         done
19772         IFS="$IFS_save"
19773       else
19774         # This is an absolute path, we can use it without further modifications.
19775         new_path="$path"
19776       fi
19777 
19778       if test "x$new_path" = x; then
19779         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19780 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19781         has_space=`$ECHO "$complete" | $GREP " "`
19782         if test "x$has_space" != x; then
19783           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19784 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19785         fi
19786         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19787       fi
19788     fi
19789 
19790     # Now join together the path and the arguments once again
19791     if test "x$arguments" != xEOL; then
19792       new_complete="$new_path ${arguments% *}"
19793     else
19794       new_complete="$new_path"
19795     fi
19796 
19797     if test "x$complete" != "x$new_complete"; then
19798       FOUND_MAKE="$new_complete"
19799       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19800 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19801     fi
19802   fi
19803 
19804         fi
19805       fi
19806     fi
19807   fi
19808 
19809 
19810     if test "x$FOUND_MAKE" = x; then
19811       for ac_prog in make
19812 do
19813   # Extract the first word of "$ac_prog", so it can be a program name with args.
19814 set dummy $ac_prog; ac_word=$2
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19816 $as_echo_n "checking for $ac_word... " >&6; }
19817 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19818   $as_echo_n "(cached) " >&6
19819 else
19820   case $CHECK_MAKE in
19821   [\\/]* | ?:[\\/]*)
19822   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19823   ;;
19824   *)
19825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19826 for as_dir in $PATH
19827 do
19828   IFS=$as_save_IFS
19829   test -z "$as_dir" && as_dir=.
19830     for ac_exec_ext in '' $ac_executable_extensions; do
19831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19832     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19834     break 2
19835   fi
19836 done
19837   done
19838 IFS=$as_save_IFS
19839 
19840   ;;
19841 esac
19842 fi
19843 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19844 if test -n "$CHECK_MAKE"; then
19845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19846 $as_echo "$CHECK_MAKE" >&6; }
19847 else
19848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19849 $as_echo "no" >&6; }
19850 fi
19851 
19852 
19853   test -n "$CHECK_MAKE" && break
19854 done
19855 
19856 
19857   MAKE_CANDIDATE=""$CHECK_MAKE""
19858   DESCRIPTION="make in PATH"
19859 
19860   # On Cygwin, we require a newer version of make than on other platforms
19861   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19862     MAKE_VERSION_EXPR="-e 4\."
19863     MAKE_REQUIRED_VERSION="4.0"
19864    else
19865     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19866     MAKE_REQUIRED_VERSION="3.81"
19867   fi
19868 
19869   if test "x$MAKE_CANDIDATE" != x; then
19870     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19871 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19872     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19873     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19874     if test "x$IS_GNU_MAKE" = x; then
19875       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19876 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19877     else
19878       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19879       if test "x$IS_MODERN_MAKE" = x; then
19880         { $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
19881 $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;}
19882       else
19883         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19884           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19885             MAKE_EXPECTED_ENV='cygwin'
19886           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19887             MAKE_EXPECTED_ENV='msys'
19888           else
19889             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19890           fi
19891           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19892           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19893         else
19894           # Not relevant for non-Windows
19895           IS_MAKE_CORRECT_ENV=true
19896         fi
19897         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19898           { $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
19899 $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;}
19900         else
19901           FOUND_MAKE=$MAKE_CANDIDATE
19902 
19903   # Only process if variable expands to non-empty
19904 
19905   if test "x$FOUND_MAKE" != x; then
19906     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19907 
19908   # First separate the path from the arguments. This will split at the first
19909   # space.
19910   complete="$FOUND_MAKE"
19911   path="${complete%% *}"
19912   tmp="$complete EOL"
19913   arguments="${tmp#* }"
19914 
19915   # Input might be given as Windows format, start by converting to
19916   # unix format.
19917   new_path=`$CYGPATH -u "$path"`
19918 
19919   # Now try to locate executable using which
19920   new_path=`$WHICH "$new_path" 2> /dev/null`
19921   # bat and cmd files are not always considered executable in cygwin causing which
19922   # to not find them
19923   if test "x$new_path" = x \
19924       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19925       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19926     new_path=`$CYGPATH -u "$path"`
19927   fi
19928   if test "x$new_path" = x; then
19929     # Oops. Which didn't find the executable.
19930     # The splitting of arguments from the executable at a space might have been incorrect,
19931     # since paths with space are more likely in Windows. Give it another try with the whole
19932     # argument.
19933     path="$complete"
19934     arguments="EOL"
19935     new_path=`$CYGPATH -u "$path"`
19936     new_path=`$WHICH "$new_path" 2> /dev/null`
19937     # bat and cmd files are not always considered executable in cygwin causing which
19938     # to not find them
19939     if test "x$new_path" = x \
19940         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19941         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19942       new_path=`$CYGPATH -u "$path"`
19943     fi
19944     if test "x$new_path" = x; then
19945       # It's still not found. Now this is an unrecoverable error.
19946       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19947 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19948       has_space=`$ECHO "$complete" | $GREP " "`
19949       if test "x$has_space" != x; then
19950         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19951 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19952       fi
19953       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19954     fi
19955   fi
19956 
19957   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19958   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19959   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19960   # "foo.exe" is OK but "foo" is an error.
19961   #
19962   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19963   # It is also a way to make sure we got the proper file name for the real test later on.
19964   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19965   if test "x$test_shortpath" = x; then
19966     # Short path failed, file does not exist as specified.
19967     # Try adding .exe or .cmd
19968     if test -f "${new_path}.exe"; then
19969       input_to_shortpath="${new_path}.exe"
19970     elif test -f "${new_path}.cmd"; then
19971       input_to_shortpath="${new_path}.cmd"
19972     else
19973       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19974 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19975       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19976 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19977       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19978     fi
19979   else
19980     input_to_shortpath="$new_path"
19981   fi
19982 
19983   # Call helper function which possibly converts this using DOS-style short mode.
19984   # If so, the updated path is stored in $new_path.
19985   new_path="$input_to_shortpath"
19986 
19987   input_path="$input_to_shortpath"
19988   # Check if we need to convert this using DOS-style short mode. If the path
19989   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19990   # take no chances and rewrite it.
19991   # Note: m4 eats our [], so we need to use [ and ] instead.
19992   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19993   if test "x$has_forbidden_chars" != x; then
19994     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19995     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19996     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19997     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19998       # Going to short mode and back again did indeed matter. Since short mode is
19999       # case insensitive, let's make it lowercase to improve readability.
20000       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20001       # Now convert it back to Unix-style (cygpath)
20002       input_path=`$CYGPATH -u "$shortmode_path"`
20003       new_path="$input_path"
20004     fi
20005   fi
20006 
20007   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20008   if test "x$test_cygdrive_prefix" = x; then
20009     # As a simple fix, exclude /usr/bin since it's not a real path.
20010     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20011       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20012       # a path prefixed by /cygdrive for fixpath to work.
20013       new_path="$CYGWIN_ROOT_PATH$input_path"
20014     fi
20015   fi
20016 
20017   # remove trailing .exe if any
20018   new_path="${new_path/%.exe/}"
20019 
20020     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20021 
20022   # First separate the path from the arguments. This will split at the first
20023   # space.
20024   complete="$FOUND_MAKE"
20025   path="${complete%% *}"
20026   tmp="$complete EOL"
20027   arguments="${tmp#* }"
20028 
20029   # Input might be given as Windows format, start by converting to
20030   # unix format.
20031   new_path="$path"
20032 
20033   windows_path="$new_path"
20034   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20035     unix_path=`$CYGPATH -u "$windows_path"`
20036     new_path="$unix_path"
20037   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20038     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20039     new_path="$unix_path"
20040   fi
20041 
20042 
20043   # Now try to locate executable using which
20044   new_path=`$WHICH "$new_path" 2> /dev/null`
20045 
20046   if test "x$new_path" = x; then
20047     # Oops. Which didn't find the executable.
20048     # The splitting of arguments from the executable at a space might have been incorrect,
20049     # since paths with space are more likely in Windows. Give it another try with the whole
20050     # argument.
20051     path="$complete"
20052     arguments="EOL"
20053     new_path="$path"
20054 
20055   windows_path="$new_path"
20056   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20057     unix_path=`$CYGPATH -u "$windows_path"`
20058     new_path="$unix_path"
20059   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20060     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20061     new_path="$unix_path"
20062   fi
20063 
20064 
20065     new_path=`$WHICH "$new_path" 2> /dev/null`
20066     # bat and cmd files are not always considered executable in MSYS causing which
20067     # to not find them
20068     if test "x$new_path" = x \
20069         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20070         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20071       new_path="$path"
20072 
20073   windows_path="$new_path"
20074   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20075     unix_path=`$CYGPATH -u "$windows_path"`
20076     new_path="$unix_path"
20077   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20078     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20079     new_path="$unix_path"
20080   fi
20081 
20082     fi
20083 
20084     if test "x$new_path" = x; then
20085       # It's still not found. Now this is an unrecoverable error.
20086       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20087 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20088       has_space=`$ECHO "$complete" | $GREP " "`
20089       if test "x$has_space" != x; then
20090         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20091 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20092       fi
20093       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20094     fi
20095   fi
20096 
20097   # Now new_path has a complete unix path to the binary
20098   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20099     # Keep paths in /bin as-is, but remove trailing .exe if any
20100     new_path="${new_path/%.exe/}"
20101     # Do not save /bin paths to all_fixpath_prefixes!
20102   else
20103     # Not in mixed or Windows style, start by that.
20104     new_path=`cmd //c echo $new_path`
20105 
20106   input_path="$new_path"
20107   # Check if we need to convert this using DOS-style short mode. If the path
20108   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20109   # take no chances and rewrite it.
20110   # Note: m4 eats our [], so we need to use [ and ] instead.
20111   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20112   if test "x$has_forbidden_chars" != x; then
20113     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20114     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20115   fi
20116 
20117     # Output is in $new_path
20118 
20119   windows_path="$new_path"
20120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20121     unix_path=`$CYGPATH -u "$windows_path"`
20122     new_path="$unix_path"
20123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20124     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20125     new_path="$unix_path"
20126   fi
20127 
20128     # remove trailing .exe if any
20129     new_path="${new_path/%.exe/}"
20130 
20131     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20132     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20133   fi
20134 
20135     else
20136       # We're on a unix platform. Hooray! :)
20137       # First separate the path from the arguments. This will split at the first
20138       # space.
20139       complete="$FOUND_MAKE"
20140       path="${complete%% *}"
20141       tmp="$complete EOL"
20142       arguments="${tmp#* }"
20143 
20144       # Cannot rely on the command "which" here since it doesn't always work.
20145       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20146       if test -z "$is_absolute_path"; then
20147         # Path to executable is not absolute. Find it.
20148         IFS_save="$IFS"
20149         IFS=:
20150         for p in $PATH; do
20151           if test -f "$p/$path" && test -x "$p/$path"; then
20152             new_path="$p/$path"
20153             break
20154           fi
20155         done
20156         IFS="$IFS_save"
20157       else
20158         # This is an absolute path, we can use it without further modifications.
20159         new_path="$path"
20160       fi
20161 
20162       if test "x$new_path" = x; then
20163         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20164 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20165         has_space=`$ECHO "$complete" | $GREP " "`
20166         if test "x$has_space" != x; then
20167           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20168 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20169         fi
20170         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20171       fi
20172     fi
20173 
20174     # Now join together the path and the arguments once again
20175     if test "x$arguments" != xEOL; then
20176       new_complete="$new_path ${arguments% *}"
20177     else
20178       new_complete="$new_path"
20179     fi
20180 
20181     if test "x$complete" != "x$new_complete"; then
20182       FOUND_MAKE="$new_complete"
20183       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20184 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20185     fi
20186   fi
20187 
20188         fi
20189       fi
20190     fi
20191   fi
20192 
20193     fi
20194 
20195     if test "x$FOUND_MAKE" = x; then
20196       if test "x$TOOLCHAIN_PATH" != x; then
20197         # We have a toolchain path, check that as well before giving up.
20198         OLD_PATH=$PATH
20199         PATH=$TOOLCHAIN_PATH:$PATH
20200         for ac_prog in gmake
20201 do
20202   # Extract the first word of "$ac_prog", so it can be a program name with args.
20203 set dummy $ac_prog; ac_word=$2
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20205 $as_echo_n "checking for $ac_word... " >&6; }
20206 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20207   $as_echo_n "(cached) " >&6
20208 else
20209   case $CHECK_TOOLSDIR_GMAKE in
20210   [\\/]* | ?:[\\/]*)
20211   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20212   ;;
20213   *)
20214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20215 for as_dir in $PATH
20216 do
20217   IFS=$as_save_IFS
20218   test -z "$as_dir" && as_dir=.
20219     for ac_exec_ext in '' $ac_executable_extensions; do
20220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20221     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20223     break 2
20224   fi
20225 done
20226   done
20227 IFS=$as_save_IFS
20228 
20229   ;;
20230 esac
20231 fi
20232 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20233 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20235 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20236 else
20237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20239 fi
20240 
20241 
20242   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20243 done
20244 
20245 
20246   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20247   DESCRIPTION="gmake in tools-dir"
20248 
20249   # On Cygwin, we require a newer version of make than on other platforms
20250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20251     MAKE_VERSION_EXPR="-e 4\."
20252     MAKE_REQUIRED_VERSION="4.0"
20253    else
20254     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20255     MAKE_REQUIRED_VERSION="3.81"
20256   fi
20257 
20258   if test "x$MAKE_CANDIDATE" != x; then
20259     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20260 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20261     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20262     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20263     if test "x$IS_GNU_MAKE" = x; then
20264       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20265 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20266     else
20267       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20268       if test "x$IS_MODERN_MAKE" = x; then
20269         { $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
20270 $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;}
20271       else
20272         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20273           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20274             MAKE_EXPECTED_ENV='cygwin'
20275           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20276             MAKE_EXPECTED_ENV='msys'
20277           else
20278             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20279           fi
20280           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20281           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20282         else
20283           # Not relevant for non-Windows
20284           IS_MAKE_CORRECT_ENV=true
20285         fi
20286         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20287           { $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
20288 $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;}
20289         else
20290           FOUND_MAKE=$MAKE_CANDIDATE
20291 
20292   # Only process if variable expands to non-empty
20293 
20294   if test "x$FOUND_MAKE" != x; then
20295     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20296 
20297   # First separate the path from the arguments. This will split at the first
20298   # space.
20299   complete="$FOUND_MAKE"
20300   path="${complete%% *}"
20301   tmp="$complete EOL"
20302   arguments="${tmp#* }"
20303 
20304   # Input might be given as Windows format, start by converting to
20305   # unix format.
20306   new_path=`$CYGPATH -u "$path"`
20307 
20308   # Now try to locate executable using which
20309   new_path=`$WHICH "$new_path" 2> /dev/null`
20310   # bat and cmd files are not always considered executable in cygwin causing which
20311   # to not find them
20312   if test "x$new_path" = x \
20313       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20314       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20315     new_path=`$CYGPATH -u "$path"`
20316   fi
20317   if test "x$new_path" = x; then
20318     # Oops. Which didn't find the executable.
20319     # The splitting of arguments from the executable at a space might have been incorrect,
20320     # since paths with space are more likely in Windows. Give it another try with the whole
20321     # argument.
20322     path="$complete"
20323     arguments="EOL"
20324     new_path=`$CYGPATH -u "$path"`
20325     new_path=`$WHICH "$new_path" 2> /dev/null`
20326     # bat and cmd files are not always considered executable in cygwin causing which
20327     # to not find them
20328     if test "x$new_path" = x \
20329         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20330         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20331       new_path=`$CYGPATH -u "$path"`
20332     fi
20333     if test "x$new_path" = x; then
20334       # It's still not found. Now this is an unrecoverable error.
20335       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20336 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20337       has_space=`$ECHO "$complete" | $GREP " "`
20338       if test "x$has_space" != x; then
20339         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20341       fi
20342       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20343     fi
20344   fi
20345 
20346   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20347   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20348   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20349   # "foo.exe" is OK but "foo" is an error.
20350   #
20351   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20352   # It is also a way to make sure we got the proper file name for the real test later on.
20353   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20354   if test "x$test_shortpath" = x; then
20355     # Short path failed, file does not exist as specified.
20356     # Try adding .exe or .cmd
20357     if test -f "${new_path}.exe"; then
20358       input_to_shortpath="${new_path}.exe"
20359     elif test -f "${new_path}.cmd"; then
20360       input_to_shortpath="${new_path}.cmd"
20361     else
20362       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20363 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20364       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20365 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20366       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20367     fi
20368   else
20369     input_to_shortpath="$new_path"
20370   fi
20371 
20372   # Call helper function which possibly converts this using DOS-style short mode.
20373   # If so, the updated path is stored in $new_path.
20374   new_path="$input_to_shortpath"
20375 
20376   input_path="$input_to_shortpath"
20377   # Check if we need to convert this using DOS-style short mode. If the path
20378   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20379   # take no chances and rewrite it.
20380   # Note: m4 eats our [], so we need to use [ and ] instead.
20381   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20382   if test "x$has_forbidden_chars" != x; then
20383     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20384     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20385     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20386     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20387       # Going to short mode and back again did indeed matter. Since short mode is
20388       # case insensitive, let's make it lowercase to improve readability.
20389       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20390       # Now convert it back to Unix-style (cygpath)
20391       input_path=`$CYGPATH -u "$shortmode_path"`
20392       new_path="$input_path"
20393     fi
20394   fi
20395 
20396   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20397   if test "x$test_cygdrive_prefix" = x; then
20398     # As a simple fix, exclude /usr/bin since it's not a real path.
20399     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20400       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20401       # a path prefixed by /cygdrive for fixpath to work.
20402       new_path="$CYGWIN_ROOT_PATH$input_path"
20403     fi
20404   fi
20405 
20406   # remove trailing .exe if any
20407   new_path="${new_path/%.exe/}"
20408 
20409     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20410 
20411   # First separate the path from the arguments. This will split at the first
20412   # space.
20413   complete="$FOUND_MAKE"
20414   path="${complete%% *}"
20415   tmp="$complete EOL"
20416   arguments="${tmp#* }"
20417 
20418   # Input might be given as Windows format, start by converting to
20419   # unix format.
20420   new_path="$path"
20421 
20422   windows_path="$new_path"
20423   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20424     unix_path=`$CYGPATH -u "$windows_path"`
20425     new_path="$unix_path"
20426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20427     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20428     new_path="$unix_path"
20429   fi
20430 
20431 
20432   # Now try to locate executable using which
20433   new_path=`$WHICH "$new_path" 2> /dev/null`
20434 
20435   if test "x$new_path" = x; then
20436     # Oops. Which didn't find the executable.
20437     # The splitting of arguments from the executable at a space might have been incorrect,
20438     # since paths with space are more likely in Windows. Give it another try with the whole
20439     # argument.
20440     path="$complete"
20441     arguments="EOL"
20442     new_path="$path"
20443 
20444   windows_path="$new_path"
20445   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20446     unix_path=`$CYGPATH -u "$windows_path"`
20447     new_path="$unix_path"
20448   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20449     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20450     new_path="$unix_path"
20451   fi
20452 
20453 
20454     new_path=`$WHICH "$new_path" 2> /dev/null`
20455     # bat and cmd files are not always considered executable in MSYS causing which
20456     # to not find them
20457     if test "x$new_path" = x \
20458         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20459         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20460       new_path="$path"
20461 
20462   windows_path="$new_path"
20463   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20464     unix_path=`$CYGPATH -u "$windows_path"`
20465     new_path="$unix_path"
20466   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20467     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20468     new_path="$unix_path"
20469   fi
20470 
20471     fi
20472 
20473     if test "x$new_path" = x; then
20474       # It's still not found. Now this is an unrecoverable error.
20475       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20476 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20477       has_space=`$ECHO "$complete" | $GREP " "`
20478       if test "x$has_space" != x; then
20479         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20480 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20481       fi
20482       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20483     fi
20484   fi
20485 
20486   # Now new_path has a complete unix path to the binary
20487   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20488     # Keep paths in /bin as-is, but remove trailing .exe if any
20489     new_path="${new_path/%.exe/}"
20490     # Do not save /bin paths to all_fixpath_prefixes!
20491   else
20492     # Not in mixed or Windows style, start by that.
20493     new_path=`cmd //c echo $new_path`
20494 
20495   input_path="$new_path"
20496   # Check if we need to convert this using DOS-style short mode. If the path
20497   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20498   # take no chances and rewrite it.
20499   # Note: m4 eats our [], so we need to use [ and ] instead.
20500   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20501   if test "x$has_forbidden_chars" != x; then
20502     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20503     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20504   fi
20505 
20506     # Output is in $new_path
20507 
20508   windows_path="$new_path"
20509   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20510     unix_path=`$CYGPATH -u "$windows_path"`
20511     new_path="$unix_path"
20512   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20513     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20514     new_path="$unix_path"
20515   fi
20516 
20517     # remove trailing .exe if any
20518     new_path="${new_path/%.exe/}"
20519 
20520     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20521     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20522   fi
20523 
20524     else
20525       # We're on a unix platform. Hooray! :)
20526       # First separate the path from the arguments. This will split at the first
20527       # space.
20528       complete="$FOUND_MAKE"
20529       path="${complete%% *}"
20530       tmp="$complete EOL"
20531       arguments="${tmp#* }"
20532 
20533       # Cannot rely on the command "which" here since it doesn't always work.
20534       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20535       if test -z "$is_absolute_path"; then
20536         # Path to executable is not absolute. Find it.
20537         IFS_save="$IFS"
20538         IFS=:
20539         for p in $PATH; do
20540           if test -f "$p/$path" && test -x "$p/$path"; then
20541             new_path="$p/$path"
20542             break
20543           fi
20544         done
20545         IFS="$IFS_save"
20546       else
20547         # This is an absolute path, we can use it without further modifications.
20548         new_path="$path"
20549       fi
20550 
20551       if test "x$new_path" = x; then
20552         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20553 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20554         has_space=`$ECHO "$complete" | $GREP " "`
20555         if test "x$has_space" != x; then
20556           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20557 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20558         fi
20559         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20560       fi
20561     fi
20562 
20563     # Now join together the path and the arguments once again
20564     if test "x$arguments" != xEOL; then
20565       new_complete="$new_path ${arguments% *}"
20566     else
20567       new_complete="$new_path"
20568     fi
20569 
20570     if test "x$complete" != "x$new_complete"; then
20571       FOUND_MAKE="$new_complete"
20572       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20573 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20574     fi
20575   fi
20576 
20577         fi
20578       fi
20579     fi
20580   fi
20581 
20582         if test "x$FOUND_MAKE" = x; then
20583           for ac_prog in make
20584 do
20585   # Extract the first word of "$ac_prog", so it can be a program name with args.
20586 set dummy $ac_prog; ac_word=$2
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20588 $as_echo_n "checking for $ac_word... " >&6; }
20589 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20590   $as_echo_n "(cached) " >&6
20591 else
20592   case $CHECK_TOOLSDIR_MAKE in
20593   [\\/]* | ?:[\\/]*)
20594   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20595   ;;
20596   *)
20597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20598 for as_dir in $PATH
20599 do
20600   IFS=$as_save_IFS
20601   test -z "$as_dir" && as_dir=.
20602     for ac_exec_ext in '' $ac_executable_extensions; do
20603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20604     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20606     break 2
20607   fi
20608 done
20609   done
20610 IFS=$as_save_IFS
20611 
20612   ;;
20613 esac
20614 fi
20615 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20616 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20618 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20619 else
20620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621 $as_echo "no" >&6; }
20622 fi
20623 
20624 
20625   test -n "$CHECK_TOOLSDIR_MAKE" && break
20626 done
20627 
20628 
20629   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20630   DESCRIPTION="make in tools-dir"
20631 
20632   # On Cygwin, we require a newer version of make than on other platforms
20633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20634     MAKE_VERSION_EXPR="-e 4\."
20635     MAKE_REQUIRED_VERSION="4.0"
20636    else
20637     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20638     MAKE_REQUIRED_VERSION="3.81"
20639   fi
20640 
20641   if test "x$MAKE_CANDIDATE" != x; then
20642     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20643 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20644     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20645     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20646     if test "x$IS_GNU_MAKE" = x; then
20647       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20648 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20649     else
20650       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20651       if test "x$IS_MODERN_MAKE" = x; then
20652         { $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
20653 $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;}
20654       else
20655         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20656           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20657             MAKE_EXPECTED_ENV='cygwin'
20658           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20659             MAKE_EXPECTED_ENV='msys'
20660           else
20661             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20662           fi
20663           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20664           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20665         else
20666           # Not relevant for non-Windows
20667           IS_MAKE_CORRECT_ENV=true
20668         fi
20669         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20670           { $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
20671 $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;}
20672         else
20673           FOUND_MAKE=$MAKE_CANDIDATE
20674 
20675   # Only process if variable expands to non-empty
20676 
20677   if test "x$FOUND_MAKE" != x; then
20678     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20679 
20680   # First separate the path from the arguments. This will split at the first
20681   # space.
20682   complete="$FOUND_MAKE"
20683   path="${complete%% *}"
20684   tmp="$complete EOL"
20685   arguments="${tmp#* }"
20686 
20687   # Input might be given as Windows format, start by converting to
20688   # unix format.
20689   new_path=`$CYGPATH -u "$path"`
20690 
20691   # Now try to locate executable using which
20692   new_path=`$WHICH "$new_path" 2> /dev/null`
20693   # bat and cmd files are not always considered executable in cygwin causing which
20694   # to not find them
20695   if test "x$new_path" = x \
20696       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20697       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20698     new_path=`$CYGPATH -u "$path"`
20699   fi
20700   if test "x$new_path" = x; then
20701     # Oops. Which didn't find the executable.
20702     # The splitting of arguments from the executable at a space might have been incorrect,
20703     # since paths with space are more likely in Windows. Give it another try with the whole
20704     # argument.
20705     path="$complete"
20706     arguments="EOL"
20707     new_path=`$CYGPATH -u "$path"`
20708     new_path=`$WHICH "$new_path" 2> /dev/null`
20709     # bat and cmd files are not always considered executable in cygwin causing which
20710     # to not find them
20711     if test "x$new_path" = x \
20712         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20713         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20714       new_path=`$CYGPATH -u "$path"`
20715     fi
20716     if test "x$new_path" = x; then
20717       # It's still not found. Now this is an unrecoverable error.
20718       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20719 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20720       has_space=`$ECHO "$complete" | $GREP " "`
20721       if test "x$has_space" != x; then
20722         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20723 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20724       fi
20725       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20726     fi
20727   fi
20728 
20729   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20730   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20731   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20732   # "foo.exe" is OK but "foo" is an error.
20733   #
20734   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20735   # It is also a way to make sure we got the proper file name for the real test later on.
20736   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20737   if test "x$test_shortpath" = x; then
20738     # Short path failed, file does not exist as specified.
20739     # Try adding .exe or .cmd
20740     if test -f "${new_path}.exe"; then
20741       input_to_shortpath="${new_path}.exe"
20742     elif test -f "${new_path}.cmd"; then
20743       input_to_shortpath="${new_path}.cmd"
20744     else
20745       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20746 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20747       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20748 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20749       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20750     fi
20751   else
20752     input_to_shortpath="$new_path"
20753   fi
20754 
20755   # Call helper function which possibly converts this using DOS-style short mode.
20756   # If so, the updated path is stored in $new_path.
20757   new_path="$input_to_shortpath"
20758 
20759   input_path="$input_to_shortpath"
20760   # Check if we need to convert this using DOS-style short mode. If the path
20761   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20762   # take no chances and rewrite it.
20763   # Note: m4 eats our [], so we need to use [ and ] instead.
20764   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20765   if test "x$has_forbidden_chars" != x; then
20766     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20767     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20768     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20769     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20770       # Going to short mode and back again did indeed matter. Since short mode is
20771       # case insensitive, let's make it lowercase to improve readability.
20772       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20773       # Now convert it back to Unix-style (cygpath)
20774       input_path=`$CYGPATH -u "$shortmode_path"`
20775       new_path="$input_path"
20776     fi
20777   fi
20778 
20779   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20780   if test "x$test_cygdrive_prefix" = x; then
20781     # As a simple fix, exclude /usr/bin since it's not a real path.
20782     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20783       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20784       # a path prefixed by /cygdrive for fixpath to work.
20785       new_path="$CYGWIN_ROOT_PATH$input_path"
20786     fi
20787   fi
20788 
20789   # remove trailing .exe if any
20790   new_path="${new_path/%.exe/}"
20791 
20792     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20793 
20794   # First separate the path from the arguments. This will split at the first
20795   # space.
20796   complete="$FOUND_MAKE"
20797   path="${complete%% *}"
20798   tmp="$complete EOL"
20799   arguments="${tmp#* }"
20800 
20801   # Input might be given as Windows format, start by converting to
20802   # unix format.
20803   new_path="$path"
20804 
20805   windows_path="$new_path"
20806   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20807     unix_path=`$CYGPATH -u "$windows_path"`
20808     new_path="$unix_path"
20809   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20810     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20811     new_path="$unix_path"
20812   fi
20813 
20814 
20815   # Now try to locate executable using which
20816   new_path=`$WHICH "$new_path" 2> /dev/null`
20817 
20818   if test "x$new_path" = x; then
20819     # Oops. Which didn't find the executable.
20820     # The splitting of arguments from the executable at a space might have been incorrect,
20821     # since paths with space are more likely in Windows. Give it another try with the whole
20822     # argument.
20823     path="$complete"
20824     arguments="EOL"
20825     new_path="$path"
20826 
20827   windows_path="$new_path"
20828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20829     unix_path=`$CYGPATH -u "$windows_path"`
20830     new_path="$unix_path"
20831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20832     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20833     new_path="$unix_path"
20834   fi
20835 
20836 
20837     new_path=`$WHICH "$new_path" 2> /dev/null`
20838     # bat and cmd files are not always considered executable in MSYS causing which
20839     # to not find them
20840     if test "x$new_path" = x \
20841         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20842         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20843       new_path="$path"
20844 
20845   windows_path="$new_path"
20846   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20847     unix_path=`$CYGPATH -u "$windows_path"`
20848     new_path="$unix_path"
20849   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20850     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20851     new_path="$unix_path"
20852   fi
20853 
20854     fi
20855 
20856     if test "x$new_path" = x; then
20857       # It's still not found. Now this is an unrecoverable error.
20858       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20859 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20860       has_space=`$ECHO "$complete" | $GREP " "`
20861       if test "x$has_space" != x; then
20862         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20863 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20864       fi
20865       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20866     fi
20867   fi
20868 
20869   # Now new_path has a complete unix path to the binary
20870   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20871     # Keep paths in /bin as-is, but remove trailing .exe if any
20872     new_path="${new_path/%.exe/}"
20873     # Do not save /bin paths to all_fixpath_prefixes!
20874   else
20875     # Not in mixed or Windows style, start by that.
20876     new_path=`cmd //c echo $new_path`
20877 
20878   input_path="$new_path"
20879   # Check if we need to convert this using DOS-style short mode. If the path
20880   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20881   # take no chances and rewrite it.
20882   # Note: m4 eats our [], so we need to use [ and ] instead.
20883   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20884   if test "x$has_forbidden_chars" != x; then
20885     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20886     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20887   fi
20888 
20889     # Output is in $new_path
20890 
20891   windows_path="$new_path"
20892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20893     unix_path=`$CYGPATH -u "$windows_path"`
20894     new_path="$unix_path"
20895   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20896     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20897     new_path="$unix_path"
20898   fi
20899 
20900     # remove trailing .exe if any
20901     new_path="${new_path/%.exe/}"
20902 
20903     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20904     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20905   fi
20906 
20907     else
20908       # We're on a unix platform. Hooray! :)
20909       # First separate the path from the arguments. This will split at the first
20910       # space.
20911       complete="$FOUND_MAKE"
20912       path="${complete%% *}"
20913       tmp="$complete EOL"
20914       arguments="${tmp#* }"
20915 
20916       # Cannot rely on the command "which" here since it doesn't always work.
20917       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20918       if test -z "$is_absolute_path"; then
20919         # Path to executable is not absolute. Find it.
20920         IFS_save="$IFS"
20921         IFS=:
20922         for p in $PATH; do
20923           if test -f "$p/$path" && test -x "$p/$path"; then
20924             new_path="$p/$path"
20925             break
20926           fi
20927         done
20928         IFS="$IFS_save"
20929       else
20930         # This is an absolute path, we can use it without further modifications.
20931         new_path="$path"
20932       fi
20933 
20934       if test "x$new_path" = x; then
20935         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20936 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20937         has_space=`$ECHO "$complete" | $GREP " "`
20938         if test "x$has_space" != x; then
20939           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20940 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20941         fi
20942         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20943       fi
20944     fi
20945 
20946     # Now join together the path and the arguments once again
20947     if test "x$arguments" != xEOL; then
20948       new_complete="$new_path ${arguments% *}"
20949     else
20950       new_complete="$new_path"
20951     fi
20952 
20953     if test "x$complete" != "x$new_complete"; then
20954       FOUND_MAKE="$new_complete"
20955       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20956 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20957     fi
20958   fi
20959 
20960         fi
20961       fi
20962     fi
20963   fi
20964 
20965         fi
20966         PATH=$OLD_PATH
20967       fi
20968     fi
20969 
20970     if test "x$FOUND_MAKE" = x; then
20971       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
20972     fi
20973 
20974     else
20975       # If it succeeded, then it was overridden by the user. We will use it
20976       # for the tool.
20977 
20978       # First remove it from the list of overridden variables, so we can test
20979       # for unknown variables in the end.
20980       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20981 
20982       # Check if we try to supply an empty value
20983       if test "x$MAKE" = x; then
20984         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20985 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20987 $as_echo_n "checking for MAKE... " >&6; }
20988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20989 $as_echo "disabled" >&6; }
20990       else
20991         # Check if the provided tool contains a complete path.
20992         tool_specified="$MAKE"
20993         tool_basename="${tool_specified##*/}"
20994         if test "x$tool_basename" = "x$tool_specified"; then
20995           # A command without a complete path is provided, search $PATH.
20996           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20997 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20998           # Extract the first word of "$tool_basename", so it can be a program name with args.
20999 set dummy $tool_basename; ac_word=$2
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21001 $as_echo_n "checking for $ac_word... " >&6; }
21002 if ${ac_cv_path_MAKE+:} false; then :
21003   $as_echo_n "(cached) " >&6
21004 else
21005   case $MAKE in
21006   [\\/]* | ?:[\\/]*)
21007   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
21008   ;;
21009   *)
21010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21011 for as_dir in $PATH
21012 do
21013   IFS=$as_save_IFS
21014   test -z "$as_dir" && as_dir=.
21015     for ac_exec_ext in '' $ac_executable_extensions; do
21016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21017     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
21018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21019     break 2
21020   fi
21021 done
21022   done
21023 IFS=$as_save_IFS
21024 
21025   ;;
21026 esac
21027 fi
21028 MAKE=$ac_cv_path_MAKE
21029 if test -n "$MAKE"; then
21030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21031 $as_echo "$MAKE" >&6; }
21032 else
21033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034 $as_echo "no" >&6; }
21035 fi
21036 
21037 
21038           if test "x$MAKE" = x; then
21039             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21040           fi
21041         else
21042           # Otherwise we believe it is a complete path. Use it as it is.
21043           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21044 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21045           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21046 $as_echo_n "checking for MAKE... " >&6; }
21047           if test ! -x "$tool_specified"; then
21048             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21049 $as_echo "not found" >&6; }
21050             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21051           fi
21052           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21053 $as_echo "$tool_specified" >&6; }
21054         fi
21055       fi
21056     fi
21057 
21058     # If MAKE was set by user, verify the version
21059 
21060   MAKE_CANDIDATE=""$MAKE""
21061   DESCRIPTION="user supplied MAKE=$MAKE"
21062 
21063   # On Cygwin, we require a newer version of make than on other platforms
21064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21065     MAKE_VERSION_EXPR="-e 4\."
21066     MAKE_REQUIRED_VERSION="4.0"
21067    else
21068     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21069     MAKE_REQUIRED_VERSION="3.81"
21070   fi
21071 
21072   if test "x$MAKE_CANDIDATE" != x; then
21073     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21074 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21075     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21076     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21077     if test "x$IS_GNU_MAKE" = x; then
21078       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21079 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21080     else
21081       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21082       if test "x$IS_MODERN_MAKE" = x; then
21083         { $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
21084 $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;}
21085       else
21086         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21087           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21088             MAKE_EXPECTED_ENV='cygwin'
21089           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21090             MAKE_EXPECTED_ENV='msys'
21091           else
21092             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21093           fi
21094           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21095           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21096         else
21097           # Not relevant for non-Windows
21098           IS_MAKE_CORRECT_ENV=true
21099         fi
21100         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21101           { $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
21102 $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;}
21103         else
21104           FOUND_MAKE=$MAKE_CANDIDATE
21105 
21106   # Only process if variable expands to non-empty
21107 
21108   if test "x$FOUND_MAKE" != x; then
21109     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21110 
21111   # First separate the path from the arguments. This will split at the first
21112   # space.
21113   complete="$FOUND_MAKE"
21114   path="${complete%% *}"
21115   tmp="$complete EOL"
21116   arguments="${tmp#* }"
21117 
21118   # Input might be given as Windows format, start by converting to
21119   # unix format.
21120   new_path=`$CYGPATH -u "$path"`
21121 
21122   # Now try to locate executable using which
21123   new_path=`$WHICH "$new_path" 2> /dev/null`
21124   # bat and cmd files are not always considered executable in cygwin causing which
21125   # to not find them
21126   if test "x$new_path" = x \
21127       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21128       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21129     new_path=`$CYGPATH -u "$path"`
21130   fi
21131   if test "x$new_path" = x; then
21132     # Oops. Which didn't find the executable.
21133     # The splitting of arguments from the executable at a space might have been incorrect,
21134     # since paths with space are more likely in Windows. Give it another try with the whole
21135     # argument.
21136     path="$complete"
21137     arguments="EOL"
21138     new_path=`$CYGPATH -u "$path"`
21139     new_path=`$WHICH "$new_path" 2> /dev/null`
21140     # bat and cmd files are not always considered executable in cygwin causing which
21141     # to not find them
21142     if test "x$new_path" = x \
21143         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21144         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21145       new_path=`$CYGPATH -u "$path"`
21146     fi
21147     if test "x$new_path" = x; then
21148       # It's still not found. Now this is an unrecoverable error.
21149       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21150 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21151       has_space=`$ECHO "$complete" | $GREP " "`
21152       if test "x$has_space" != x; then
21153         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21155       fi
21156       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21157     fi
21158   fi
21159 
21160   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21161   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21162   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21163   # "foo.exe" is OK but "foo" is an error.
21164   #
21165   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21166   # It is also a way to make sure we got the proper file name for the real test later on.
21167   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21168   if test "x$test_shortpath" = x; then
21169     # Short path failed, file does not exist as specified.
21170     # Try adding .exe or .cmd
21171     if test -f "${new_path}.exe"; then
21172       input_to_shortpath="${new_path}.exe"
21173     elif test -f "${new_path}.cmd"; then
21174       input_to_shortpath="${new_path}.cmd"
21175     else
21176       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21177 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21178       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21179 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21180       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21181     fi
21182   else
21183     input_to_shortpath="$new_path"
21184   fi
21185 
21186   # Call helper function which possibly converts this using DOS-style short mode.
21187   # If so, the updated path is stored in $new_path.
21188   new_path="$input_to_shortpath"
21189 
21190   input_path="$input_to_shortpath"
21191   # Check if we need to convert this using DOS-style short mode. If the path
21192   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21193   # take no chances and rewrite it.
21194   # Note: m4 eats our [], so we need to use [ and ] instead.
21195   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21196   if test "x$has_forbidden_chars" != x; then
21197     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21198     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21199     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21200     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21201       # Going to short mode and back again did indeed matter. Since short mode is
21202       # case insensitive, let's make it lowercase to improve readability.
21203       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21204       # Now convert it back to Unix-style (cygpath)
21205       input_path=`$CYGPATH -u "$shortmode_path"`
21206       new_path="$input_path"
21207     fi
21208   fi
21209 
21210   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21211   if test "x$test_cygdrive_prefix" = x; then
21212     # As a simple fix, exclude /usr/bin since it's not a real path.
21213     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21214       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21215       # a path prefixed by /cygdrive for fixpath to work.
21216       new_path="$CYGWIN_ROOT_PATH$input_path"
21217     fi
21218   fi
21219 
21220   # remove trailing .exe if any
21221   new_path="${new_path/%.exe/}"
21222 
21223     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21224 
21225   # First separate the path from the arguments. This will split at the first
21226   # space.
21227   complete="$FOUND_MAKE"
21228   path="${complete%% *}"
21229   tmp="$complete EOL"
21230   arguments="${tmp#* }"
21231 
21232   # Input might be given as Windows format, start by converting to
21233   # unix format.
21234   new_path="$path"
21235 
21236   windows_path="$new_path"
21237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21238     unix_path=`$CYGPATH -u "$windows_path"`
21239     new_path="$unix_path"
21240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21242     new_path="$unix_path"
21243   fi
21244 
21245 
21246   # Now try to locate executable using which
21247   new_path=`$WHICH "$new_path" 2> /dev/null`
21248 
21249   if test "x$new_path" = x; then
21250     # Oops. Which didn't find the executable.
21251     # The splitting of arguments from the executable at a space might have been incorrect,
21252     # since paths with space are more likely in Windows. Give it another try with the whole
21253     # argument.
21254     path="$complete"
21255     arguments="EOL"
21256     new_path="$path"
21257 
21258   windows_path="$new_path"
21259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21260     unix_path=`$CYGPATH -u "$windows_path"`
21261     new_path="$unix_path"
21262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21263     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21264     new_path="$unix_path"
21265   fi
21266 
21267 
21268     new_path=`$WHICH "$new_path" 2> /dev/null`
21269     # bat and cmd files are not always considered executable in MSYS causing which
21270     # to not find them
21271     if test "x$new_path" = x \
21272         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21273         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21274       new_path="$path"
21275 
21276   windows_path="$new_path"
21277   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21278     unix_path=`$CYGPATH -u "$windows_path"`
21279     new_path="$unix_path"
21280   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21281     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21282     new_path="$unix_path"
21283   fi
21284 
21285     fi
21286 
21287     if test "x$new_path" = x; then
21288       # It's still not found. Now this is an unrecoverable error.
21289       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21291       has_space=`$ECHO "$complete" | $GREP " "`
21292       if test "x$has_space" != x; then
21293         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21295       fi
21296       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21297     fi
21298   fi
21299 
21300   # Now new_path has a complete unix path to the binary
21301   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21302     # Keep paths in /bin as-is, but remove trailing .exe if any
21303     new_path="${new_path/%.exe/}"
21304     # Do not save /bin paths to all_fixpath_prefixes!
21305   else
21306     # Not in mixed or Windows style, start by that.
21307     new_path=`cmd //c echo $new_path`
21308 
21309   input_path="$new_path"
21310   # Check if we need to convert this using DOS-style short mode. If the path
21311   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21312   # take no chances and rewrite it.
21313   # Note: m4 eats our [], so we need to use [ and ] instead.
21314   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21315   if test "x$has_forbidden_chars" != x; then
21316     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21317     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21318   fi
21319 
21320     # Output is in $new_path
21321 
21322   windows_path="$new_path"
21323   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21324     unix_path=`$CYGPATH -u "$windows_path"`
21325     new_path="$unix_path"
21326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21327     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21328     new_path="$unix_path"
21329   fi
21330 
21331     # remove trailing .exe if any
21332     new_path="${new_path/%.exe/}"
21333 
21334     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21335     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21336   fi
21337 
21338     else
21339       # We're on a unix platform. Hooray! :)
21340       # First separate the path from the arguments. This will split at the first
21341       # space.
21342       complete="$FOUND_MAKE"
21343       path="${complete%% *}"
21344       tmp="$complete EOL"
21345       arguments="${tmp#* }"
21346 
21347       # Cannot rely on the command "which" here since it doesn't always work.
21348       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21349       if test -z "$is_absolute_path"; then
21350         # Path to executable is not absolute. Find it.
21351         IFS_save="$IFS"
21352         IFS=:
21353         for p in $PATH; do
21354           if test -f "$p/$path" && test -x "$p/$path"; then
21355             new_path="$p/$path"
21356             break
21357           fi
21358         done
21359         IFS="$IFS_save"
21360       else
21361         # This is an absolute path, we can use it without further modifications.
21362         new_path="$path"
21363       fi
21364 
21365       if test "x$new_path" = x; then
21366         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21367 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21368         has_space=`$ECHO "$complete" | $GREP " "`
21369         if test "x$has_space" != x; then
21370           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21371 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21372         fi
21373         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21374       fi
21375     fi
21376 
21377     # Now join together the path and the arguments once again
21378     if test "x$arguments" != xEOL; then
21379       new_complete="$new_path ${arguments% *}"
21380     else
21381       new_complete="$new_path"
21382     fi
21383 
21384     if test "x$complete" != "x$new_complete"; then
21385       FOUND_MAKE="$new_complete"
21386       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21387 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21388     fi
21389   fi
21390 
21391         fi
21392       fi
21393     fi
21394   fi
21395 
21396     if test "x$FOUND_MAKE" = x; then
21397       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21398     fi
21399 
21400   fi
21401 
21402 
21403   MAKE=$FOUND_MAKE
21404 
21405   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21406 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21407 
21408 
21409   # Check if make supports the output sync option and if so, setup using it.
21410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21411 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21412   if $MAKE --version -O > /dev/null 2>&1; then
21413     OUTPUT_SYNC_SUPPORTED=true
21414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21415 $as_echo "yes" >&6; }
21416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21417 $as_echo_n "checking for output-sync value... " >&6; }
21418 
21419 # Check whether --with-output-sync was given.
21420 if test "${with_output_sync+set}" = set; then :
21421   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21422 fi
21423 
21424     if test "x$OUTPUT_SYNC" = "x"; then
21425       OUTPUT_SYNC=none
21426     fi
21427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21428 $as_echo "$OUTPUT_SYNC" >&6; }
21429     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21430       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21431     fi
21432   else
21433     OUTPUT_SYNC_SUPPORTED=false
21434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21436   fi
21437 
21438 
21439 
21440 
21441 
21442 
21443   # Test if find supports -delete
21444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21445 $as_echo_n "checking if find supports -delete... " >&6; }
21446   FIND_DELETE="-delete"
21447 
21448   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21449 
21450   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21451 
21452   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21453   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21454     # No, it does not.
21455     $RM $DELETEDIR/TestIfFindSupportsDelete
21456     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21457       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21458       FIND_DELETE="-print | $XARGS $RM"
21459     else
21460       FIND_DELETE="-exec $RM \{\} \+"
21461     fi
21462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21463 $as_echo "no" >&6; }
21464   else
21465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21466 $as_echo "yes" >&6; }
21467   fi
21468   $RMDIR $DELETEDIR
21469 
21470 
21471 
21472   # Test which kind of tar was found
21473   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21474     TAR_TYPE="gnu"
21475   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21476     TAR_TYPE="bsd"
21477   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21478     TAR_TYPE="bsd"
21479   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21480     TAR_TYPE="solaris"
21481   fi
21482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21483 $as_echo_n "checking what type of tar was found... " >&6; }
21484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21485 $as_echo "$TAR_TYPE" >&6; }
21486 
21487   TAR_CREATE_FILE_PARAM=""
21488 
21489   if test "x$TAR_TYPE" = "xgnu"; then
21490     TAR_INCLUDE_PARAM="T"
21491     TAR_SUPPORTS_TRANSFORM="true"
21492     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21493       # When using gnu tar for Solaris targets, need to use compatibility mode
21494       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21495     fi
21496   else
21497     TAR_INCLUDE_PARAM="I"
21498     TAR_SUPPORTS_TRANSFORM="false"
21499   fi
21500 
21501 
21502 
21503 
21504 
21505 
21506   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21507   # This is a problem for the grep resident on AIX.
21508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21509 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21510   # Multiple subsequent spaces..
21511   STACK_SPACES='aaa   bbb   ccc'
21512   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21513   # patterns in it.
21514   STACK_LIST=${STACK_SPACES// /$'\n'}
21515   NEEDLE_SPACES='ccc bbb aaa'
21516   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21517   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21518   if test "x$RESULT" == "x"; then
21519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21520 $as_echo "yes" >&6; }
21521   else
21522     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21523       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21524     fi
21525     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21526   fi
21527 
21528 
21529   # These tools might not be installed by default,
21530   # need hint on how to install them.
21531 
21532 
21533 
21534   # Publish this variable in the help.
21535 
21536 
21537   if [ -z "${UNZIP+x}" ]; then
21538     # The variable is not set by user, try to locate tool using the code snippet
21539     for ac_prog in unzip
21540 do
21541   # Extract the first word of "$ac_prog", so it can be a program name with args.
21542 set dummy $ac_prog; ac_word=$2
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21544 $as_echo_n "checking for $ac_word... " >&6; }
21545 if ${ac_cv_path_UNZIP+:} false; then :
21546   $as_echo_n "(cached) " >&6
21547 else
21548   case $UNZIP in
21549   [\\/]* | ?:[\\/]*)
21550   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21551   ;;
21552   *)
21553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21554 for as_dir in $PATH
21555 do
21556   IFS=$as_save_IFS
21557   test -z "$as_dir" && as_dir=.
21558     for ac_exec_ext in '' $ac_executable_extensions; do
21559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21560     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21562     break 2
21563   fi
21564 done
21565   done
21566 IFS=$as_save_IFS
21567 
21568   ;;
21569 esac
21570 fi
21571 UNZIP=$ac_cv_path_UNZIP
21572 if test -n "$UNZIP"; then
21573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21574 $as_echo "$UNZIP" >&6; }
21575 else
21576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21577 $as_echo "no" >&6; }
21578 fi
21579 
21580 
21581   test -n "$UNZIP" && break
21582 done
21583 
21584   else
21585     # The variable is set, but is it from the command line or the environment?
21586 
21587     # Try to remove the string !UNZIP! from our list.
21588     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21589     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21590       # If it failed, the variable was not from the command line. Ignore it,
21591       # but warn the user (except for BASH, which is always set by the calling BASH).
21592       if test "xUNZIP" != xBASH; then
21593         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21594 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21595       fi
21596       # Try to locate tool using the code snippet
21597       for ac_prog in unzip
21598 do
21599   # Extract the first word of "$ac_prog", so it can be a program name with args.
21600 set dummy $ac_prog; ac_word=$2
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21602 $as_echo_n "checking for $ac_word... " >&6; }
21603 if ${ac_cv_path_UNZIP+:} false; then :
21604   $as_echo_n "(cached) " >&6
21605 else
21606   case $UNZIP in
21607   [\\/]* | ?:[\\/]*)
21608   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21609   ;;
21610   *)
21611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21612 for as_dir in $PATH
21613 do
21614   IFS=$as_save_IFS
21615   test -z "$as_dir" && as_dir=.
21616     for ac_exec_ext in '' $ac_executable_extensions; do
21617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21618     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21620     break 2
21621   fi
21622 done
21623   done
21624 IFS=$as_save_IFS
21625 
21626   ;;
21627 esac
21628 fi
21629 UNZIP=$ac_cv_path_UNZIP
21630 if test -n "$UNZIP"; then
21631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21632 $as_echo "$UNZIP" >&6; }
21633 else
21634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21635 $as_echo "no" >&6; }
21636 fi
21637 
21638 
21639   test -n "$UNZIP" && break
21640 done
21641 
21642     else
21643       # If it succeeded, then it was overridden by the user. We will use it
21644       # for the tool.
21645 
21646       # First remove it from the list of overridden variables, so we can test
21647       # for unknown variables in the end.
21648       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21649 
21650       # Check if we try to supply an empty value
21651       if test "x$UNZIP" = x; then
21652         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21653 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21655 $as_echo_n "checking for UNZIP... " >&6; }
21656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21657 $as_echo "disabled" >&6; }
21658       else
21659         # Check if the provided tool contains a complete path.
21660         tool_specified="$UNZIP"
21661         tool_basename="${tool_specified##*/}"
21662         if test "x$tool_basename" = "x$tool_specified"; then
21663           # A command without a complete path is provided, search $PATH.
21664           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21665 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21666           # Extract the first word of "$tool_basename", so it can be a program name with args.
21667 set dummy $tool_basename; ac_word=$2
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21669 $as_echo_n "checking for $ac_word... " >&6; }
21670 if ${ac_cv_path_UNZIP+:} false; then :
21671   $as_echo_n "(cached) " >&6
21672 else
21673   case $UNZIP in
21674   [\\/]* | ?:[\\/]*)
21675   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21676   ;;
21677   *)
21678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21679 for as_dir in $PATH
21680 do
21681   IFS=$as_save_IFS
21682   test -z "$as_dir" && as_dir=.
21683     for ac_exec_ext in '' $ac_executable_extensions; do
21684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21685     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21687     break 2
21688   fi
21689 done
21690   done
21691 IFS=$as_save_IFS
21692 
21693   ;;
21694 esac
21695 fi
21696 UNZIP=$ac_cv_path_UNZIP
21697 if test -n "$UNZIP"; then
21698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21699 $as_echo "$UNZIP" >&6; }
21700 else
21701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21702 $as_echo "no" >&6; }
21703 fi
21704 
21705 
21706           if test "x$UNZIP" = x; then
21707             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21708           fi
21709         else
21710           # Otherwise we believe it is a complete path. Use it as it is.
21711           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21712 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21713           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21714 $as_echo_n "checking for UNZIP... " >&6; }
21715           if test ! -x "$tool_specified"; then
21716             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21717 $as_echo "not found" >&6; }
21718             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21719           fi
21720           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21721 $as_echo "$tool_specified" >&6; }
21722         fi
21723       fi
21724     fi
21725 
21726   fi
21727 
21728 
21729 
21730   if test "x$UNZIP" = x; then
21731     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21732   fi
21733 
21734 
21735   # Since zip uses "ZIP" as a environment variable for passing options, we need
21736   # to name our variable differently, hence ZIPEXE.
21737 
21738 
21739 
21740   # Publish this variable in the help.
21741 
21742 
21743   if [ -z "${ZIPEXE+x}" ]; then
21744     # The variable is not set by user, try to locate tool using the code snippet
21745     for ac_prog in zip
21746 do
21747   # Extract the first word of "$ac_prog", so it can be a program name with args.
21748 set dummy $ac_prog; ac_word=$2
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21750 $as_echo_n "checking for $ac_word... " >&6; }
21751 if ${ac_cv_path_ZIPEXE+:} false; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754   case $ZIPEXE in
21755   [\\/]* | ?:[\\/]*)
21756   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21757   ;;
21758   *)
21759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21761 do
21762   IFS=$as_save_IFS
21763   test -z "$as_dir" && as_dir=.
21764     for ac_exec_ext in '' $ac_executable_extensions; do
21765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21766     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21768     break 2
21769   fi
21770 done
21771   done
21772 IFS=$as_save_IFS
21773 
21774   ;;
21775 esac
21776 fi
21777 ZIPEXE=$ac_cv_path_ZIPEXE
21778 if test -n "$ZIPEXE"; then
21779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21780 $as_echo "$ZIPEXE" >&6; }
21781 else
21782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21783 $as_echo "no" >&6; }
21784 fi
21785 
21786 
21787   test -n "$ZIPEXE" && break
21788 done
21789 
21790   else
21791     # The variable is set, but is it from the command line or the environment?
21792 
21793     # Try to remove the string !ZIPEXE! from our list.
21794     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21795     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21796       # If it failed, the variable was not from the command line. Ignore it,
21797       # but warn the user (except for BASH, which is always set by the calling BASH).
21798       if test "xZIPEXE" != xBASH; then
21799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21800 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21801       fi
21802       # Try to locate tool using the code snippet
21803       for ac_prog in zip
21804 do
21805   # Extract the first word of "$ac_prog", so it can be a program name with args.
21806 set dummy $ac_prog; ac_word=$2
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21808 $as_echo_n "checking for $ac_word... " >&6; }
21809 if ${ac_cv_path_ZIPEXE+:} false; then :
21810   $as_echo_n "(cached) " >&6
21811 else
21812   case $ZIPEXE in
21813   [\\/]* | ?:[\\/]*)
21814   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21815   ;;
21816   *)
21817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21818 for as_dir in $PATH
21819 do
21820   IFS=$as_save_IFS
21821   test -z "$as_dir" && as_dir=.
21822     for ac_exec_ext in '' $ac_executable_extensions; do
21823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21824     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21826     break 2
21827   fi
21828 done
21829   done
21830 IFS=$as_save_IFS
21831 
21832   ;;
21833 esac
21834 fi
21835 ZIPEXE=$ac_cv_path_ZIPEXE
21836 if test -n "$ZIPEXE"; then
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21838 $as_echo "$ZIPEXE" >&6; }
21839 else
21840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21841 $as_echo "no" >&6; }
21842 fi
21843 
21844 
21845   test -n "$ZIPEXE" && break
21846 done
21847 
21848     else
21849       # If it succeeded, then it was overridden by the user. We will use it
21850       # for the tool.
21851 
21852       # First remove it from the list of overridden variables, so we can test
21853       # for unknown variables in the end.
21854       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21855 
21856       # Check if we try to supply an empty value
21857       if test "x$ZIPEXE" = x; then
21858         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21859 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21861 $as_echo_n "checking for ZIPEXE... " >&6; }
21862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21863 $as_echo "disabled" >&6; }
21864       else
21865         # Check if the provided tool contains a complete path.
21866         tool_specified="$ZIPEXE"
21867         tool_basename="${tool_specified##*/}"
21868         if test "x$tool_basename" = "x$tool_specified"; then
21869           # A command without a complete path is provided, search $PATH.
21870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21871 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21872           # Extract the first word of "$tool_basename", so it can be a program name with args.
21873 set dummy $tool_basename; ac_word=$2
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21875 $as_echo_n "checking for $ac_word... " >&6; }
21876 if ${ac_cv_path_ZIPEXE+:} false; then :
21877   $as_echo_n "(cached) " >&6
21878 else
21879   case $ZIPEXE in
21880   [\\/]* | ?:[\\/]*)
21881   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21882   ;;
21883   *)
21884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21885 for as_dir in $PATH
21886 do
21887   IFS=$as_save_IFS
21888   test -z "$as_dir" && as_dir=.
21889     for ac_exec_ext in '' $ac_executable_extensions; do
21890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21891     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21893     break 2
21894   fi
21895 done
21896   done
21897 IFS=$as_save_IFS
21898 
21899   ;;
21900 esac
21901 fi
21902 ZIPEXE=$ac_cv_path_ZIPEXE
21903 if test -n "$ZIPEXE"; then
21904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21905 $as_echo "$ZIPEXE" >&6; }
21906 else
21907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21908 $as_echo "no" >&6; }
21909 fi
21910 
21911 
21912           if test "x$ZIPEXE" = x; then
21913             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21914           fi
21915         else
21916           # Otherwise we believe it is a complete path. Use it as it is.
21917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21918 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21920 $as_echo_n "checking for ZIPEXE... " >&6; }
21921           if test ! -x "$tool_specified"; then
21922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21923 $as_echo "not found" >&6; }
21924             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21925           fi
21926           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21927 $as_echo "$tool_specified" >&6; }
21928         fi
21929       fi
21930     fi
21931 
21932   fi
21933 
21934 
21935 
21936   if test "x$ZIPEXE" = x; then
21937     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21938   fi
21939 
21940 
21941 
21942   # Non-required basic tools
21943 
21944 
21945 
21946   # Publish this variable in the help.
21947 
21948 
21949   if [ -z "${LDD+x}" ]; then
21950     # The variable is not set by user, try to locate tool using the code snippet
21951     for ac_prog in ldd
21952 do
21953   # Extract the first word of "$ac_prog", so it can be a program name with args.
21954 set dummy $ac_prog; ac_word=$2
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21956 $as_echo_n "checking for $ac_word... " >&6; }
21957 if ${ac_cv_path_LDD+:} false; then :
21958   $as_echo_n "(cached) " >&6
21959 else
21960   case $LDD in
21961   [\\/]* | ?:[\\/]*)
21962   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21963   ;;
21964   *)
21965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21966 for as_dir in $PATH
21967 do
21968   IFS=$as_save_IFS
21969   test -z "$as_dir" && as_dir=.
21970     for ac_exec_ext in '' $ac_executable_extensions; do
21971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21972     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21974     break 2
21975   fi
21976 done
21977   done
21978 IFS=$as_save_IFS
21979 
21980   ;;
21981 esac
21982 fi
21983 LDD=$ac_cv_path_LDD
21984 if test -n "$LDD"; then
21985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21986 $as_echo "$LDD" >&6; }
21987 else
21988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21990 fi
21991 
21992 
21993   test -n "$LDD" && break
21994 done
21995 
21996   else
21997     # The variable is set, but is it from the command line or the environment?
21998 
21999     # Try to remove the string !LDD! from our list.
22000     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
22001     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22002       # If it failed, the variable was not from the command line. Ignore it,
22003       # but warn the user (except for BASH, which is always set by the calling BASH).
22004       if test "xLDD" != xBASH; then
22005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
22006 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
22007       fi
22008       # Try to locate tool using the code snippet
22009       for ac_prog in ldd
22010 do
22011   # Extract the first word of "$ac_prog", so it can be a program name with args.
22012 set dummy $ac_prog; ac_word=$2
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22014 $as_echo_n "checking for $ac_word... " >&6; }
22015 if ${ac_cv_path_LDD+:} false; then :
22016   $as_echo_n "(cached) " >&6
22017 else
22018   case $LDD in
22019   [\\/]* | ?:[\\/]*)
22020   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22021   ;;
22022   *)
22023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22024 for as_dir in $PATH
22025 do
22026   IFS=$as_save_IFS
22027   test -z "$as_dir" && as_dir=.
22028     for ac_exec_ext in '' $ac_executable_extensions; do
22029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22030     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22032     break 2
22033   fi
22034 done
22035   done
22036 IFS=$as_save_IFS
22037 
22038   ;;
22039 esac
22040 fi
22041 LDD=$ac_cv_path_LDD
22042 if test -n "$LDD"; then
22043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22044 $as_echo "$LDD" >&6; }
22045 else
22046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22047 $as_echo "no" >&6; }
22048 fi
22049 
22050 
22051   test -n "$LDD" && break
22052 done
22053 
22054     else
22055       # If it succeeded, then it was overridden by the user. We will use it
22056       # for the tool.
22057 
22058       # First remove it from the list of overridden variables, so we can test
22059       # for unknown variables in the end.
22060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22061 
22062       # Check if we try to supply an empty value
22063       if test "x$LDD" = x; then
22064         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22065 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22067 $as_echo_n "checking for LDD... " >&6; }
22068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22069 $as_echo "disabled" >&6; }
22070       else
22071         # Check if the provided tool contains a complete path.
22072         tool_specified="$LDD"
22073         tool_basename="${tool_specified##*/}"
22074         if test "x$tool_basename" = "x$tool_specified"; then
22075           # A command without a complete path is provided, search $PATH.
22076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22077 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22078           # Extract the first word of "$tool_basename", so it can be a program name with args.
22079 set dummy $tool_basename; ac_word=$2
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22081 $as_echo_n "checking for $ac_word... " >&6; }
22082 if ${ac_cv_path_LDD+:} false; then :
22083   $as_echo_n "(cached) " >&6
22084 else
22085   case $LDD in
22086   [\\/]* | ?:[\\/]*)
22087   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22088   ;;
22089   *)
22090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22091 for as_dir in $PATH
22092 do
22093   IFS=$as_save_IFS
22094   test -z "$as_dir" && as_dir=.
22095     for ac_exec_ext in '' $ac_executable_extensions; do
22096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22097     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22099     break 2
22100   fi
22101 done
22102   done
22103 IFS=$as_save_IFS
22104 
22105   ;;
22106 esac
22107 fi
22108 LDD=$ac_cv_path_LDD
22109 if test -n "$LDD"; then
22110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22111 $as_echo "$LDD" >&6; }
22112 else
22113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22115 fi
22116 
22117 
22118           if test "x$LDD" = x; then
22119             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22120           fi
22121         else
22122           # Otherwise we believe it is a complete path. Use it as it is.
22123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22124 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22125           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22126 $as_echo_n "checking for LDD... " >&6; }
22127           if test ! -x "$tool_specified"; then
22128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22129 $as_echo "not found" >&6; }
22130             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22131           fi
22132           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22133 $as_echo "$tool_specified" >&6; }
22134         fi
22135       fi
22136     fi
22137 
22138   fi
22139 
22140 
22141   if test "x$LDD" = "x"; then
22142     # List shared lib dependencies is used for
22143     # debug output and checking for forbidden dependencies.
22144     # We can build without it.
22145     LDD="true"
22146   fi
22147 
22148 
22149   # Publish this variable in the help.
22150 
22151 
22152   if [ -z "${READELF+x}" ]; then
22153     # The variable is not set by user, try to locate tool using the code snippet
22154     for ac_prog in greadelf readelf
22155 do
22156   # Extract the first word of "$ac_prog", so it can be a program name with args.
22157 set dummy $ac_prog; ac_word=$2
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22159 $as_echo_n "checking for $ac_word... " >&6; }
22160 if ${ac_cv_path_READELF+:} false; then :
22161   $as_echo_n "(cached) " >&6
22162 else
22163   case $READELF in
22164   [\\/]* | ?:[\\/]*)
22165   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22166   ;;
22167   *)
22168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22169 for as_dir in $PATH
22170 do
22171   IFS=$as_save_IFS
22172   test -z "$as_dir" && as_dir=.
22173     for ac_exec_ext in '' $ac_executable_extensions; do
22174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22175     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22177     break 2
22178   fi
22179 done
22180   done
22181 IFS=$as_save_IFS
22182 
22183   ;;
22184 esac
22185 fi
22186 READELF=$ac_cv_path_READELF
22187 if test -n "$READELF"; then
22188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22189 $as_echo "$READELF" >&6; }
22190 else
22191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22192 $as_echo "no" >&6; }
22193 fi
22194 
22195 
22196   test -n "$READELF" && break
22197 done
22198 
22199   else
22200     # The variable is set, but is it from the command line or the environment?
22201 
22202     # Try to remove the string !READELF! from our list.
22203     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22204     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22205       # If it failed, the variable was not from the command line. Ignore it,
22206       # but warn the user (except for BASH, which is always set by the calling BASH).
22207       if test "xREADELF" != xBASH; then
22208         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22209 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22210       fi
22211       # Try to locate tool using the code snippet
22212       for ac_prog in greadelf readelf
22213 do
22214   # Extract the first word of "$ac_prog", so it can be a program name with args.
22215 set dummy $ac_prog; ac_word=$2
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22217 $as_echo_n "checking for $ac_word... " >&6; }
22218 if ${ac_cv_path_READELF+:} false; then :
22219   $as_echo_n "(cached) " >&6
22220 else
22221   case $READELF in
22222   [\\/]* | ?:[\\/]*)
22223   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22224   ;;
22225   *)
22226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22227 for as_dir in $PATH
22228 do
22229   IFS=$as_save_IFS
22230   test -z "$as_dir" && as_dir=.
22231     for ac_exec_ext in '' $ac_executable_extensions; do
22232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22233     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22235     break 2
22236   fi
22237 done
22238   done
22239 IFS=$as_save_IFS
22240 
22241   ;;
22242 esac
22243 fi
22244 READELF=$ac_cv_path_READELF
22245 if test -n "$READELF"; then
22246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22247 $as_echo "$READELF" >&6; }
22248 else
22249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22250 $as_echo "no" >&6; }
22251 fi
22252 
22253 
22254   test -n "$READELF" && break
22255 done
22256 
22257     else
22258       # If it succeeded, then it was overridden by the user. We will use it
22259       # for the tool.
22260 
22261       # First remove it from the list of overridden variables, so we can test
22262       # for unknown variables in the end.
22263       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22264 
22265       # Check if we try to supply an empty value
22266       if test "x$READELF" = x; then
22267         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22268 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22270 $as_echo_n "checking for READELF... " >&6; }
22271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22272 $as_echo "disabled" >&6; }
22273       else
22274         # Check if the provided tool contains a complete path.
22275         tool_specified="$READELF"
22276         tool_basename="${tool_specified##*/}"
22277         if test "x$tool_basename" = "x$tool_specified"; then
22278           # A command without a complete path is provided, search $PATH.
22279           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22280 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22281           # Extract the first word of "$tool_basename", so it can be a program name with args.
22282 set dummy $tool_basename; ac_word=$2
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if ${ac_cv_path_READELF+:} false; then :
22286   $as_echo_n "(cached) " >&6
22287 else
22288   case $READELF in
22289   [\\/]* | ?:[\\/]*)
22290   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22291   ;;
22292   *)
22293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294 for as_dir in $PATH
22295 do
22296   IFS=$as_save_IFS
22297   test -z "$as_dir" && as_dir=.
22298     for ac_exec_ext in '' $ac_executable_extensions; do
22299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22300     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22302     break 2
22303   fi
22304 done
22305   done
22306 IFS=$as_save_IFS
22307 
22308   ;;
22309 esac
22310 fi
22311 READELF=$ac_cv_path_READELF
22312 if test -n "$READELF"; then
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22314 $as_echo "$READELF" >&6; }
22315 else
22316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22317 $as_echo "no" >&6; }
22318 fi
22319 
22320 
22321           if test "x$READELF" = x; then
22322             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22323           fi
22324         else
22325           # Otherwise we believe it is a complete path. Use it as it is.
22326           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22327 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22328           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22329 $as_echo_n "checking for READELF... " >&6; }
22330           if test ! -x "$tool_specified"; then
22331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22332 $as_echo "not found" >&6; }
22333             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22334           fi
22335           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22336 $as_echo "$tool_specified" >&6; }
22337         fi
22338       fi
22339     fi
22340 
22341   fi
22342 
22343 
22344 
22345 
22346   # Publish this variable in the help.
22347 
22348 
22349   if [ -z "${DOT+x}" ]; then
22350     # The variable is not set by user, try to locate tool using the code snippet
22351     for ac_prog in dot
22352 do
22353   # Extract the first word of "$ac_prog", so it can be a program name with args.
22354 set dummy $ac_prog; ac_word=$2
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22356 $as_echo_n "checking for $ac_word... " >&6; }
22357 if ${ac_cv_path_DOT+:} false; then :
22358   $as_echo_n "(cached) " >&6
22359 else
22360   case $DOT in
22361   [\\/]* | ?:[\\/]*)
22362   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22363   ;;
22364   *)
22365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22367 do
22368   IFS=$as_save_IFS
22369   test -z "$as_dir" && as_dir=.
22370     for ac_exec_ext in '' $ac_executable_extensions; do
22371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22372     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22374     break 2
22375   fi
22376 done
22377   done
22378 IFS=$as_save_IFS
22379 
22380   ;;
22381 esac
22382 fi
22383 DOT=$ac_cv_path_DOT
22384 if test -n "$DOT"; then
22385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22386 $as_echo "$DOT" >&6; }
22387 else
22388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22389 $as_echo "no" >&6; }
22390 fi
22391 
22392 
22393   test -n "$DOT" && break
22394 done
22395 
22396   else
22397     # The variable is set, but is it from the command line or the environment?
22398 
22399     # Try to remove the string !DOT! from our list.
22400     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22401     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22402       # If it failed, the variable was not from the command line. Ignore it,
22403       # but warn the user (except for BASH, which is always set by the calling BASH).
22404       if test "xDOT" != xBASH; then
22405         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22406 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22407       fi
22408       # Try to locate tool using the code snippet
22409       for ac_prog in dot
22410 do
22411   # Extract the first word of "$ac_prog", so it can be a program name with args.
22412 set dummy $ac_prog; ac_word=$2
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22414 $as_echo_n "checking for $ac_word... " >&6; }
22415 if ${ac_cv_path_DOT+:} false; then :
22416   $as_echo_n "(cached) " >&6
22417 else
22418   case $DOT in
22419   [\\/]* | ?:[\\/]*)
22420   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22421   ;;
22422   *)
22423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424 for as_dir in $PATH
22425 do
22426   IFS=$as_save_IFS
22427   test -z "$as_dir" && as_dir=.
22428     for ac_exec_ext in '' $ac_executable_extensions; do
22429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22430     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22432     break 2
22433   fi
22434 done
22435   done
22436 IFS=$as_save_IFS
22437 
22438   ;;
22439 esac
22440 fi
22441 DOT=$ac_cv_path_DOT
22442 if test -n "$DOT"; then
22443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22444 $as_echo "$DOT" >&6; }
22445 else
22446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22447 $as_echo "no" >&6; }
22448 fi
22449 
22450 
22451   test -n "$DOT" && break
22452 done
22453 
22454     else
22455       # If it succeeded, then it was overridden by the user. We will use it
22456       # for the tool.
22457 
22458       # First remove it from the list of overridden variables, so we can test
22459       # for unknown variables in the end.
22460       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22461 
22462       # Check if we try to supply an empty value
22463       if test "x$DOT" = x; then
22464         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22465 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22467 $as_echo_n "checking for DOT... " >&6; }
22468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22469 $as_echo "disabled" >&6; }
22470       else
22471         # Check if the provided tool contains a complete path.
22472         tool_specified="$DOT"
22473         tool_basename="${tool_specified##*/}"
22474         if test "x$tool_basename" = "x$tool_specified"; then
22475           # A command without a complete path is provided, search $PATH.
22476           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22477 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22478           # Extract the first word of "$tool_basename", so it can be a program name with args.
22479 set dummy $tool_basename; ac_word=$2
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22481 $as_echo_n "checking for $ac_word... " >&6; }
22482 if ${ac_cv_path_DOT+:} false; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   case $DOT in
22486   [\\/]* | ?:[\\/]*)
22487   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22488   ;;
22489   *)
22490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22491 for as_dir in $PATH
22492 do
22493   IFS=$as_save_IFS
22494   test -z "$as_dir" && as_dir=.
22495     for ac_exec_ext in '' $ac_executable_extensions; do
22496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22497     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22499     break 2
22500   fi
22501 done
22502   done
22503 IFS=$as_save_IFS
22504 
22505   ;;
22506 esac
22507 fi
22508 DOT=$ac_cv_path_DOT
22509 if test -n "$DOT"; then
22510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22511 $as_echo "$DOT" >&6; }
22512 else
22513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22514 $as_echo "no" >&6; }
22515 fi
22516 
22517 
22518           if test "x$DOT" = x; then
22519             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22520           fi
22521         else
22522           # Otherwise we believe it is a complete path. Use it as it is.
22523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22524 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22525           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22526 $as_echo_n "checking for DOT... " >&6; }
22527           if test ! -x "$tool_specified"; then
22528             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22529 $as_echo "not found" >&6; }
22530             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22531           fi
22532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22533 $as_echo "$tool_specified" >&6; }
22534         fi
22535       fi
22536     fi
22537 
22538   fi
22539 
22540 
22541 
22542 
22543   # Publish this variable in the help.
22544 
22545 
22546   if [ -z "${HG+x}" ]; then
22547     # The variable is not set by user, try to locate tool using the code snippet
22548     for ac_prog in hg
22549 do
22550   # Extract the first word of "$ac_prog", so it can be a program name with args.
22551 set dummy $ac_prog; ac_word=$2
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22553 $as_echo_n "checking for $ac_word... " >&6; }
22554 if ${ac_cv_path_HG+:} false; then :
22555   $as_echo_n "(cached) " >&6
22556 else
22557   case $HG in
22558   [\\/]* | ?:[\\/]*)
22559   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22560   ;;
22561   *)
22562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22563 for as_dir in $PATH
22564 do
22565   IFS=$as_save_IFS
22566   test -z "$as_dir" && as_dir=.
22567     for ac_exec_ext in '' $ac_executable_extensions; do
22568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22569     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22571     break 2
22572   fi
22573 done
22574   done
22575 IFS=$as_save_IFS
22576 
22577   ;;
22578 esac
22579 fi
22580 HG=$ac_cv_path_HG
22581 if test -n "$HG"; then
22582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22583 $as_echo "$HG" >&6; }
22584 else
22585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586 $as_echo "no" >&6; }
22587 fi
22588 
22589 
22590   test -n "$HG" && break
22591 done
22592 
22593   else
22594     # The variable is set, but is it from the command line or the environment?
22595 
22596     # Try to remove the string !HG! from our list.
22597     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22598     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22599       # If it failed, the variable was not from the command line. Ignore it,
22600       # but warn the user (except for BASH, which is always set by the calling BASH).
22601       if test "xHG" != xBASH; then
22602         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22603 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22604       fi
22605       # Try to locate tool using the code snippet
22606       for ac_prog in hg
22607 do
22608   # Extract the first word of "$ac_prog", so it can be a program name with args.
22609 set dummy $ac_prog; ac_word=$2
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22611 $as_echo_n "checking for $ac_word... " >&6; }
22612 if ${ac_cv_path_HG+:} false; then :
22613   $as_echo_n "(cached) " >&6
22614 else
22615   case $HG in
22616   [\\/]* | ?:[\\/]*)
22617   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22618   ;;
22619   *)
22620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22622 do
22623   IFS=$as_save_IFS
22624   test -z "$as_dir" && as_dir=.
22625     for ac_exec_ext in '' $ac_executable_extensions; do
22626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22627     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22629     break 2
22630   fi
22631 done
22632   done
22633 IFS=$as_save_IFS
22634 
22635   ;;
22636 esac
22637 fi
22638 HG=$ac_cv_path_HG
22639 if test -n "$HG"; then
22640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22641 $as_echo "$HG" >&6; }
22642 else
22643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644 $as_echo "no" >&6; }
22645 fi
22646 
22647 
22648   test -n "$HG" && break
22649 done
22650 
22651     else
22652       # If it succeeded, then it was overridden by the user. We will use it
22653       # for the tool.
22654 
22655       # First remove it from the list of overridden variables, so we can test
22656       # for unknown variables in the end.
22657       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22658 
22659       # Check if we try to supply an empty value
22660       if test "x$HG" = x; then
22661         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22662 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22664 $as_echo_n "checking for HG... " >&6; }
22665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22666 $as_echo "disabled" >&6; }
22667       else
22668         # Check if the provided tool contains a complete path.
22669         tool_specified="$HG"
22670         tool_basename="${tool_specified##*/}"
22671         if test "x$tool_basename" = "x$tool_specified"; then
22672           # A command without a complete path is provided, search $PATH.
22673           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22674 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22675           # Extract the first word of "$tool_basename", so it can be a program name with args.
22676 set dummy $tool_basename; ac_word=$2
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22678 $as_echo_n "checking for $ac_word... " >&6; }
22679 if ${ac_cv_path_HG+:} false; then :
22680   $as_echo_n "(cached) " >&6
22681 else
22682   case $HG in
22683   [\\/]* | ?:[\\/]*)
22684   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22685   ;;
22686   *)
22687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22688 for as_dir in $PATH
22689 do
22690   IFS=$as_save_IFS
22691   test -z "$as_dir" && as_dir=.
22692     for ac_exec_ext in '' $ac_executable_extensions; do
22693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22694     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22696     break 2
22697   fi
22698 done
22699   done
22700 IFS=$as_save_IFS
22701 
22702   ;;
22703 esac
22704 fi
22705 HG=$ac_cv_path_HG
22706 if test -n "$HG"; then
22707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22708 $as_echo "$HG" >&6; }
22709 else
22710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22711 $as_echo "no" >&6; }
22712 fi
22713 
22714 
22715           if test "x$HG" = x; then
22716             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22717           fi
22718         else
22719           # Otherwise we believe it is a complete path. Use it as it is.
22720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22721 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22722           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22723 $as_echo_n "checking for HG... " >&6; }
22724           if test ! -x "$tool_specified"; then
22725             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22726 $as_echo "not found" >&6; }
22727             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22728           fi
22729           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22730 $as_echo "$tool_specified" >&6; }
22731         fi
22732       fi
22733     fi
22734 
22735   fi
22736 
22737 
22738 
22739 
22740   # Publish this variable in the help.
22741 
22742 
22743   if [ -z "${STAT+x}" ]; then
22744     # The variable is not set by user, try to locate tool using the code snippet
22745     for ac_prog in stat
22746 do
22747   # Extract the first word of "$ac_prog", so it can be a program name with args.
22748 set dummy $ac_prog; ac_word=$2
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22750 $as_echo_n "checking for $ac_word... " >&6; }
22751 if ${ac_cv_path_STAT+:} false; then :
22752   $as_echo_n "(cached) " >&6
22753 else
22754   case $STAT in
22755   [\\/]* | ?:[\\/]*)
22756   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22757   ;;
22758   *)
22759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22760 for as_dir in $PATH
22761 do
22762   IFS=$as_save_IFS
22763   test -z "$as_dir" && as_dir=.
22764     for ac_exec_ext in '' $ac_executable_extensions; do
22765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22766     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22768     break 2
22769   fi
22770 done
22771   done
22772 IFS=$as_save_IFS
22773 
22774   ;;
22775 esac
22776 fi
22777 STAT=$ac_cv_path_STAT
22778 if test -n "$STAT"; then
22779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22780 $as_echo "$STAT" >&6; }
22781 else
22782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22783 $as_echo "no" >&6; }
22784 fi
22785 
22786 
22787   test -n "$STAT" && break
22788 done
22789 
22790   else
22791     # The variable is set, but is it from the command line or the environment?
22792 
22793     # Try to remove the string !STAT! from our list.
22794     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22795     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22796       # If it failed, the variable was not from the command line. Ignore it,
22797       # but warn the user (except for BASH, which is always set by the calling BASH).
22798       if test "xSTAT" != xBASH; then
22799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22800 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22801       fi
22802       # Try to locate tool using the code snippet
22803       for ac_prog in stat
22804 do
22805   # Extract the first word of "$ac_prog", so it can be a program name with args.
22806 set dummy $ac_prog; ac_word=$2
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22808 $as_echo_n "checking for $ac_word... " >&6; }
22809 if ${ac_cv_path_STAT+:} false; then :
22810   $as_echo_n "(cached) " >&6
22811 else
22812   case $STAT in
22813   [\\/]* | ?:[\\/]*)
22814   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22815   ;;
22816   *)
22817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in $PATH
22819 do
22820   IFS=$as_save_IFS
22821   test -z "$as_dir" && as_dir=.
22822     for ac_exec_ext in '' $ac_executable_extensions; do
22823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22824     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22826     break 2
22827   fi
22828 done
22829   done
22830 IFS=$as_save_IFS
22831 
22832   ;;
22833 esac
22834 fi
22835 STAT=$ac_cv_path_STAT
22836 if test -n "$STAT"; then
22837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22838 $as_echo "$STAT" >&6; }
22839 else
22840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22841 $as_echo "no" >&6; }
22842 fi
22843 
22844 
22845   test -n "$STAT" && break
22846 done
22847 
22848     else
22849       # If it succeeded, then it was overridden by the user. We will use it
22850       # for the tool.
22851 
22852       # First remove it from the list of overridden variables, so we can test
22853       # for unknown variables in the end.
22854       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22855 
22856       # Check if we try to supply an empty value
22857       if test "x$STAT" = x; then
22858         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22859 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22861 $as_echo_n "checking for STAT... " >&6; }
22862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22863 $as_echo "disabled" >&6; }
22864       else
22865         # Check if the provided tool contains a complete path.
22866         tool_specified="$STAT"
22867         tool_basename="${tool_specified##*/}"
22868         if test "x$tool_basename" = "x$tool_specified"; then
22869           # A command without a complete path is provided, search $PATH.
22870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22871 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22872           # Extract the first word of "$tool_basename", so it can be a program name with args.
22873 set dummy $tool_basename; ac_word=$2
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22875 $as_echo_n "checking for $ac_word... " >&6; }
22876 if ${ac_cv_path_STAT+:} false; then :
22877   $as_echo_n "(cached) " >&6
22878 else
22879   case $STAT in
22880   [\\/]* | ?:[\\/]*)
22881   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22882   ;;
22883   *)
22884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22885 for as_dir in $PATH
22886 do
22887   IFS=$as_save_IFS
22888   test -z "$as_dir" && as_dir=.
22889     for ac_exec_ext in '' $ac_executable_extensions; do
22890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22891     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22893     break 2
22894   fi
22895 done
22896   done
22897 IFS=$as_save_IFS
22898 
22899   ;;
22900 esac
22901 fi
22902 STAT=$ac_cv_path_STAT
22903 if test -n "$STAT"; then
22904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22905 $as_echo "$STAT" >&6; }
22906 else
22907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22908 $as_echo "no" >&6; }
22909 fi
22910 
22911 
22912           if test "x$STAT" = x; then
22913             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22914           fi
22915         else
22916           # Otherwise we believe it is a complete path. Use it as it is.
22917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22918 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22920 $as_echo_n "checking for STAT... " >&6; }
22921           if test ! -x "$tool_specified"; then
22922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22923 $as_echo "not found" >&6; }
22924             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22925           fi
22926           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22927 $as_echo "$tool_specified" >&6; }
22928         fi
22929       fi
22930     fi
22931 
22932   fi
22933 
22934 
22935 
22936 
22937   # Publish this variable in the help.
22938 
22939 
22940   if [ -z "${TIME+x}" ]; then
22941     # The variable is not set by user, try to locate tool using the code snippet
22942     for ac_prog in time
22943 do
22944   # Extract the first word of "$ac_prog", so it can be a program name with args.
22945 set dummy $ac_prog; ac_word=$2
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if ${ac_cv_path_TIME+:} false; then :
22949   $as_echo_n "(cached) " >&6
22950 else
22951   case $TIME in
22952   [\\/]* | ?:[\\/]*)
22953   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22954   ;;
22955   *)
22956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22957 for as_dir in $PATH
22958 do
22959   IFS=$as_save_IFS
22960   test -z "$as_dir" && as_dir=.
22961     for ac_exec_ext in '' $ac_executable_extensions; do
22962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22963     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22965     break 2
22966   fi
22967 done
22968   done
22969 IFS=$as_save_IFS
22970 
22971   ;;
22972 esac
22973 fi
22974 TIME=$ac_cv_path_TIME
22975 if test -n "$TIME"; then
22976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22977 $as_echo "$TIME" >&6; }
22978 else
22979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22981 fi
22982 
22983 
22984   test -n "$TIME" && break
22985 done
22986 
22987   else
22988     # The variable is set, but is it from the command line or the environment?
22989 
22990     # Try to remove the string !TIME! from our list.
22991     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22992     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22993       # If it failed, the variable was not from the command line. Ignore it,
22994       # but warn the user (except for BASH, which is always set by the calling BASH).
22995       if test "xTIME" != xBASH; then
22996         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22997 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22998       fi
22999       # Try to locate tool using the code snippet
23000       for ac_prog in time
23001 do
23002   # Extract the first word of "$ac_prog", so it can be a program name with args.
23003 set dummy $ac_prog; ac_word=$2
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23005 $as_echo_n "checking for $ac_word... " >&6; }
23006 if ${ac_cv_path_TIME+:} false; then :
23007   $as_echo_n "(cached) " >&6
23008 else
23009   case $TIME in
23010   [\\/]* | ?:[\\/]*)
23011   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23012   ;;
23013   *)
23014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23015 for as_dir in $PATH
23016 do
23017   IFS=$as_save_IFS
23018   test -z "$as_dir" && as_dir=.
23019     for ac_exec_ext in '' $ac_executable_extensions; do
23020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23021     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23023     break 2
23024   fi
23025 done
23026   done
23027 IFS=$as_save_IFS
23028 
23029   ;;
23030 esac
23031 fi
23032 TIME=$ac_cv_path_TIME
23033 if test -n "$TIME"; then
23034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23035 $as_echo "$TIME" >&6; }
23036 else
23037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038 $as_echo "no" >&6; }
23039 fi
23040 
23041 
23042   test -n "$TIME" && break
23043 done
23044 
23045     else
23046       # If it succeeded, then it was overridden by the user. We will use it
23047       # for the tool.
23048 
23049       # First remove it from the list of overridden variables, so we can test
23050       # for unknown variables in the end.
23051       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23052 
23053       # Check if we try to supply an empty value
23054       if test "x$TIME" = x; then
23055         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23056 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23058 $as_echo_n "checking for TIME... " >&6; }
23059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23060 $as_echo "disabled" >&6; }
23061       else
23062         # Check if the provided tool contains a complete path.
23063         tool_specified="$TIME"
23064         tool_basename="${tool_specified##*/}"
23065         if test "x$tool_basename" = "x$tool_specified"; then
23066           # A command without a complete path is provided, search $PATH.
23067           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23068 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23069           # Extract the first word of "$tool_basename", so it can be a program name with args.
23070 set dummy $tool_basename; ac_word=$2
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23072 $as_echo_n "checking for $ac_word... " >&6; }
23073 if ${ac_cv_path_TIME+:} false; then :
23074   $as_echo_n "(cached) " >&6
23075 else
23076   case $TIME in
23077   [\\/]* | ?:[\\/]*)
23078   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23079   ;;
23080   *)
23081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23082 for as_dir in $PATH
23083 do
23084   IFS=$as_save_IFS
23085   test -z "$as_dir" && as_dir=.
23086     for ac_exec_ext in '' $ac_executable_extensions; do
23087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23088     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23090     break 2
23091   fi
23092 done
23093   done
23094 IFS=$as_save_IFS
23095 
23096   ;;
23097 esac
23098 fi
23099 TIME=$ac_cv_path_TIME
23100 if test -n "$TIME"; then
23101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23102 $as_echo "$TIME" >&6; }
23103 else
23104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23105 $as_echo "no" >&6; }
23106 fi
23107 
23108 
23109           if test "x$TIME" = x; then
23110             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23111           fi
23112         else
23113           # Otherwise we believe it is a complete path. Use it as it is.
23114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23115 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23116           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23117 $as_echo_n "checking for TIME... " >&6; }
23118           if test ! -x "$tool_specified"; then
23119             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23120 $as_echo "not found" >&6; }
23121             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23122           fi
23123           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23124 $as_echo "$tool_specified" >&6; }
23125         fi
23126       fi
23127     fi
23128 
23129   fi
23130 
23131 
23132 
23133 
23134   # Publish this variable in the help.
23135 
23136 
23137   if [ -z "${FLOCK+x}" ]; then
23138     # The variable is not set by user, try to locate tool using the code snippet
23139     for ac_prog in flock
23140 do
23141   # Extract the first word of "$ac_prog", so it can be a program name with args.
23142 set dummy $ac_prog; ac_word=$2
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23144 $as_echo_n "checking for $ac_word... " >&6; }
23145 if ${ac_cv_path_FLOCK+:} false; then :
23146   $as_echo_n "(cached) " >&6
23147 else
23148   case $FLOCK in
23149   [\\/]* | ?:[\\/]*)
23150   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23151   ;;
23152   *)
23153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23154 for as_dir in $PATH
23155 do
23156   IFS=$as_save_IFS
23157   test -z "$as_dir" && as_dir=.
23158     for ac_exec_ext in '' $ac_executable_extensions; do
23159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23160     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23162     break 2
23163   fi
23164 done
23165   done
23166 IFS=$as_save_IFS
23167 
23168   ;;
23169 esac
23170 fi
23171 FLOCK=$ac_cv_path_FLOCK
23172 if test -n "$FLOCK"; then
23173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23174 $as_echo "$FLOCK" >&6; }
23175 else
23176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23177 $as_echo "no" >&6; }
23178 fi
23179 
23180 
23181   test -n "$FLOCK" && break
23182 done
23183 
23184   else
23185     # The variable is set, but is it from the command line or the environment?
23186 
23187     # Try to remove the string !FLOCK! from our list.
23188     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23189     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23190       # If it failed, the variable was not from the command line. Ignore it,
23191       # but warn the user (except for BASH, which is always set by the calling BASH).
23192       if test "xFLOCK" != xBASH; then
23193         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23194 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23195       fi
23196       # Try to locate tool using the code snippet
23197       for ac_prog in flock
23198 do
23199   # Extract the first word of "$ac_prog", so it can be a program name with args.
23200 set dummy $ac_prog; ac_word=$2
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23202 $as_echo_n "checking for $ac_word... " >&6; }
23203 if ${ac_cv_path_FLOCK+:} false; then :
23204   $as_echo_n "(cached) " >&6
23205 else
23206   case $FLOCK in
23207   [\\/]* | ?:[\\/]*)
23208   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23209   ;;
23210   *)
23211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23212 for as_dir in $PATH
23213 do
23214   IFS=$as_save_IFS
23215   test -z "$as_dir" && as_dir=.
23216     for ac_exec_ext in '' $ac_executable_extensions; do
23217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23218     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23220     break 2
23221   fi
23222 done
23223   done
23224 IFS=$as_save_IFS
23225 
23226   ;;
23227 esac
23228 fi
23229 FLOCK=$ac_cv_path_FLOCK
23230 if test -n "$FLOCK"; then
23231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23232 $as_echo "$FLOCK" >&6; }
23233 else
23234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235 $as_echo "no" >&6; }
23236 fi
23237 
23238 
23239   test -n "$FLOCK" && break
23240 done
23241 
23242     else
23243       # If it succeeded, then it was overridden by the user. We will use it
23244       # for the tool.
23245 
23246       # First remove it from the list of overridden variables, so we can test
23247       # for unknown variables in the end.
23248       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23249 
23250       # Check if we try to supply an empty value
23251       if test "x$FLOCK" = x; then
23252         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23253 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23255 $as_echo_n "checking for FLOCK... " >&6; }
23256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23257 $as_echo "disabled" >&6; }
23258       else
23259         # Check if the provided tool contains a complete path.
23260         tool_specified="$FLOCK"
23261         tool_basename="${tool_specified##*/}"
23262         if test "x$tool_basename" = "x$tool_specified"; then
23263           # A command without a complete path is provided, search $PATH.
23264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23265 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23266           # Extract the first word of "$tool_basename", so it can be a program name with args.
23267 set dummy $tool_basename; ac_word=$2
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23269 $as_echo_n "checking for $ac_word... " >&6; }
23270 if ${ac_cv_path_FLOCK+:} false; then :
23271   $as_echo_n "(cached) " >&6
23272 else
23273   case $FLOCK in
23274   [\\/]* | ?:[\\/]*)
23275   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23276   ;;
23277   *)
23278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23279 for as_dir in $PATH
23280 do
23281   IFS=$as_save_IFS
23282   test -z "$as_dir" && as_dir=.
23283     for ac_exec_ext in '' $ac_executable_extensions; do
23284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23285     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23287     break 2
23288   fi
23289 done
23290   done
23291 IFS=$as_save_IFS
23292 
23293   ;;
23294 esac
23295 fi
23296 FLOCK=$ac_cv_path_FLOCK
23297 if test -n "$FLOCK"; then
23298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23299 $as_echo "$FLOCK" >&6; }
23300 else
23301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23303 fi
23304 
23305 
23306           if test "x$FLOCK" = x; then
23307             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23308           fi
23309         else
23310           # Otherwise we believe it is a complete path. Use it as it is.
23311           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23312 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23313           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23314 $as_echo_n "checking for FLOCK... " >&6; }
23315           if test ! -x "$tool_specified"; then
23316             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23317 $as_echo "not found" >&6; }
23318             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23319           fi
23320           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23321 $as_echo "$tool_specified" >&6; }
23322         fi
23323       fi
23324     fi
23325 
23326   fi
23327 
23328 
23329   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23330   # be in the user path.
23331 
23332 
23333   # Publish this variable in the help.
23334 
23335 
23336   if [ -z "${DTRACE+x}" ]; then
23337     # The variable is not set by user, try to locate tool using the code snippet
23338     for ac_prog in dtrace
23339 do
23340   # Extract the first word of "$ac_prog", so it can be a program name with args.
23341 set dummy $ac_prog; ac_word=$2
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23343 $as_echo_n "checking for $ac_word... " >&6; }
23344 if ${ac_cv_path_DTRACE+:} false; then :
23345   $as_echo_n "(cached) " >&6
23346 else
23347   case $DTRACE in
23348   [\\/]* | ?:[\\/]*)
23349   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23350   ;;
23351   *)
23352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23353 as_dummy="$PATH:/usr/sbin"
23354 for as_dir in $as_dummy
23355 do
23356   IFS=$as_save_IFS
23357   test -z "$as_dir" && as_dir=.
23358     for ac_exec_ext in '' $ac_executable_extensions; do
23359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23360     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23362     break 2
23363   fi
23364 done
23365   done
23366 IFS=$as_save_IFS
23367 
23368   ;;
23369 esac
23370 fi
23371 DTRACE=$ac_cv_path_DTRACE
23372 if test -n "$DTRACE"; then
23373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23374 $as_echo "$DTRACE" >&6; }
23375 else
23376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377 $as_echo "no" >&6; }
23378 fi
23379 
23380 
23381   test -n "$DTRACE" && break
23382 done
23383 
23384   else
23385     # The variable is set, but is it from the command line or the environment?
23386 
23387     # Try to remove the string !DTRACE! from our list.
23388     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23389     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23390       # If it failed, the variable was not from the command line. Ignore it,
23391       # but warn the user (except for BASH, which is always set by the calling BASH).
23392       if test "xDTRACE" != xBASH; then
23393         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23394 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23395       fi
23396       # Try to locate tool using the code snippet
23397       for ac_prog in dtrace
23398 do
23399   # Extract the first word of "$ac_prog", so it can be a program name with args.
23400 set dummy $ac_prog; ac_word=$2
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23402 $as_echo_n "checking for $ac_word... " >&6; }
23403 if ${ac_cv_path_DTRACE+:} false; then :
23404   $as_echo_n "(cached) " >&6
23405 else
23406   case $DTRACE in
23407   [\\/]* | ?:[\\/]*)
23408   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23409   ;;
23410   *)
23411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23412 as_dummy="$PATH:/usr/sbin"
23413 for as_dir in $as_dummy
23414 do
23415   IFS=$as_save_IFS
23416   test -z "$as_dir" && as_dir=.
23417     for ac_exec_ext in '' $ac_executable_extensions; do
23418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23419     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23421     break 2
23422   fi
23423 done
23424   done
23425 IFS=$as_save_IFS
23426 
23427   ;;
23428 esac
23429 fi
23430 DTRACE=$ac_cv_path_DTRACE
23431 if test -n "$DTRACE"; then
23432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23433 $as_echo "$DTRACE" >&6; }
23434 else
23435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436 $as_echo "no" >&6; }
23437 fi
23438 
23439 
23440   test -n "$DTRACE" && break
23441 done
23442 
23443     else
23444       # If it succeeded, then it was overridden by the user. We will use it
23445       # for the tool.
23446 
23447       # First remove it from the list of overridden variables, so we can test
23448       # for unknown variables in the end.
23449       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23450 
23451       # Check if we try to supply an empty value
23452       if test "x$DTRACE" = x; then
23453         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23454 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23456 $as_echo_n "checking for DTRACE... " >&6; }
23457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23458 $as_echo "disabled" >&6; }
23459       else
23460         # Check if the provided tool contains a complete path.
23461         tool_specified="$DTRACE"
23462         tool_basename="${tool_specified##*/}"
23463         if test "x$tool_basename" = "x$tool_specified"; then
23464           # A command without a complete path is provided, search $PATH.
23465           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23466 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23467           # Extract the first word of "$tool_basename", so it can be a program name with args.
23468 set dummy $tool_basename; ac_word=$2
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470 $as_echo_n "checking for $ac_word... " >&6; }
23471 if ${ac_cv_path_DTRACE+:} false; then :
23472   $as_echo_n "(cached) " >&6
23473 else
23474   case $DTRACE in
23475   [\\/]* | ?:[\\/]*)
23476   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23477   ;;
23478   *)
23479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23480 for as_dir in $PATH
23481 do
23482   IFS=$as_save_IFS
23483   test -z "$as_dir" && as_dir=.
23484     for ac_exec_ext in '' $ac_executable_extensions; do
23485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23486     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23488     break 2
23489   fi
23490 done
23491   done
23492 IFS=$as_save_IFS
23493 
23494   ;;
23495 esac
23496 fi
23497 DTRACE=$ac_cv_path_DTRACE
23498 if test -n "$DTRACE"; then
23499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23500 $as_echo "$DTRACE" >&6; }
23501 else
23502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23503 $as_echo "no" >&6; }
23504 fi
23505 
23506 
23507           if test "x$DTRACE" = x; then
23508             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23509           fi
23510         else
23511           # Otherwise we believe it is a complete path. Use it as it is.
23512           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23513 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23514           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23515 $as_echo_n "checking for DTRACE... " >&6; }
23516           if test ! -x "$tool_specified"; then
23517             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23518 $as_echo "not found" >&6; }
23519             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23520           fi
23521           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23522 $as_echo "$tool_specified" >&6; }
23523         fi
23524       fi
23525     fi
23526 
23527   fi
23528 
23529 
23530 
23531 
23532   # Publish this variable in the help.
23533 
23534 
23535   if [ -z "${PATCH+x}" ]; then
23536     # The variable is not set by user, try to locate tool using the code snippet
23537     for ac_prog in gpatch patch
23538 do
23539   # Extract the first word of "$ac_prog", so it can be a program name with args.
23540 set dummy $ac_prog; ac_word=$2
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23542 $as_echo_n "checking for $ac_word... " >&6; }
23543 if ${ac_cv_path_PATCH+:} false; then :
23544   $as_echo_n "(cached) " >&6
23545 else
23546   case $PATCH in
23547   [\\/]* | ?:[\\/]*)
23548   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23549   ;;
23550   *)
23551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23552 for as_dir in $PATH
23553 do
23554   IFS=$as_save_IFS
23555   test -z "$as_dir" && as_dir=.
23556     for ac_exec_ext in '' $ac_executable_extensions; do
23557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23558     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23560     break 2
23561   fi
23562 done
23563   done
23564 IFS=$as_save_IFS
23565 
23566   ;;
23567 esac
23568 fi
23569 PATCH=$ac_cv_path_PATCH
23570 if test -n "$PATCH"; then
23571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23572 $as_echo "$PATCH" >&6; }
23573 else
23574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576 fi
23577 
23578 
23579   test -n "$PATCH" && break
23580 done
23581 
23582   else
23583     # The variable is set, but is it from the command line or the environment?
23584 
23585     # Try to remove the string !PATCH! from our list.
23586     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23587     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23588       # If it failed, the variable was not from the command line. Ignore it,
23589       # but warn the user (except for BASH, which is always set by the calling BASH).
23590       if test "xPATCH" != xBASH; then
23591         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23592 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23593       fi
23594       # Try to locate tool using the code snippet
23595       for ac_prog in gpatch patch
23596 do
23597   # Extract the first word of "$ac_prog", so it can be a program name with args.
23598 set dummy $ac_prog; ac_word=$2
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23600 $as_echo_n "checking for $ac_word... " >&6; }
23601 if ${ac_cv_path_PATCH+:} false; then :
23602   $as_echo_n "(cached) " >&6
23603 else
23604   case $PATCH in
23605   [\\/]* | ?:[\\/]*)
23606   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23607   ;;
23608   *)
23609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23610 for as_dir in $PATH
23611 do
23612   IFS=$as_save_IFS
23613   test -z "$as_dir" && as_dir=.
23614     for ac_exec_ext in '' $ac_executable_extensions; do
23615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23616     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23618     break 2
23619   fi
23620 done
23621   done
23622 IFS=$as_save_IFS
23623 
23624   ;;
23625 esac
23626 fi
23627 PATCH=$ac_cv_path_PATCH
23628 if test -n "$PATCH"; then
23629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23630 $as_echo "$PATCH" >&6; }
23631 else
23632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23634 fi
23635 
23636 
23637   test -n "$PATCH" && break
23638 done
23639 
23640     else
23641       # If it succeeded, then it was overridden by the user. We will use it
23642       # for the tool.
23643 
23644       # First remove it from the list of overridden variables, so we can test
23645       # for unknown variables in the end.
23646       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23647 
23648       # Check if we try to supply an empty value
23649       if test "x$PATCH" = x; then
23650         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23651 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23653 $as_echo_n "checking for PATCH... " >&6; }
23654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23655 $as_echo "disabled" >&6; }
23656       else
23657         # Check if the provided tool contains a complete path.
23658         tool_specified="$PATCH"
23659         tool_basename="${tool_specified##*/}"
23660         if test "x$tool_basename" = "x$tool_specified"; then
23661           # A command without a complete path is provided, search $PATH.
23662           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23663 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23664           # Extract the first word of "$tool_basename", so it can be a program name with args.
23665 set dummy $tool_basename; ac_word=$2
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23667 $as_echo_n "checking for $ac_word... " >&6; }
23668 if ${ac_cv_path_PATCH+:} false; then :
23669   $as_echo_n "(cached) " >&6
23670 else
23671   case $PATCH in
23672   [\\/]* | ?:[\\/]*)
23673   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23674   ;;
23675   *)
23676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23677 for as_dir in $PATH
23678 do
23679   IFS=$as_save_IFS
23680   test -z "$as_dir" && as_dir=.
23681     for ac_exec_ext in '' $ac_executable_extensions; do
23682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23683     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23685     break 2
23686   fi
23687 done
23688   done
23689 IFS=$as_save_IFS
23690 
23691   ;;
23692 esac
23693 fi
23694 PATCH=$ac_cv_path_PATCH
23695 if test -n "$PATCH"; then
23696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23697 $as_echo "$PATCH" >&6; }
23698 else
23699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700 $as_echo "no" >&6; }
23701 fi
23702 
23703 
23704           if test "x$PATCH" = x; then
23705             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23706           fi
23707         else
23708           # Otherwise we believe it is a complete path. Use it as it is.
23709           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23710 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23711           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23712 $as_echo_n "checking for PATCH... " >&6; }
23713           if test ! -x "$tool_specified"; then
23714             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23715 $as_echo "not found" >&6; }
23716             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23717           fi
23718           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23719 $as_echo "$tool_specified" >&6; }
23720         fi
23721       fi
23722     fi
23723 
23724   fi
23725 
23726 
23727   # Check if it's GNU time
23728   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23729   if test "x$IS_GNU_TIME" != x; then
23730     IS_GNU_TIME=yes
23731   else
23732     IS_GNU_TIME=no
23733   fi
23734 
23735 
23736   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23737 
23738 
23739 
23740   # Publish this variable in the help.
23741 
23742 
23743   if [ -z "${DSYMUTIL+x}" ]; then
23744     # The variable is not set by user, try to locate tool using the code snippet
23745     for ac_prog in dsymutil
23746 do
23747   # Extract the first word of "$ac_prog", so it can be a program name with args.
23748 set dummy $ac_prog; ac_word=$2
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23750 $as_echo_n "checking for $ac_word... " >&6; }
23751 if ${ac_cv_path_DSYMUTIL+:} false; then :
23752   $as_echo_n "(cached) " >&6
23753 else
23754   case $DSYMUTIL in
23755   [\\/]* | ?:[\\/]*)
23756   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23757   ;;
23758   *)
23759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23760 for as_dir in $PATH
23761 do
23762   IFS=$as_save_IFS
23763   test -z "$as_dir" && as_dir=.
23764     for ac_exec_ext in '' $ac_executable_extensions; do
23765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23766     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23768     break 2
23769   fi
23770 done
23771   done
23772 IFS=$as_save_IFS
23773 
23774   ;;
23775 esac
23776 fi
23777 DSYMUTIL=$ac_cv_path_DSYMUTIL
23778 if test -n "$DSYMUTIL"; then
23779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23780 $as_echo "$DSYMUTIL" >&6; }
23781 else
23782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23783 $as_echo "no" >&6; }
23784 fi
23785 
23786 
23787   test -n "$DSYMUTIL" && break
23788 done
23789 
23790   else
23791     # The variable is set, but is it from the command line or the environment?
23792 
23793     # Try to remove the string !DSYMUTIL! from our list.
23794     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23795     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23796       # If it failed, the variable was not from the command line. Ignore it,
23797       # but warn the user (except for BASH, which is always set by the calling BASH).
23798       if test "xDSYMUTIL" != xBASH; then
23799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23800 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23801       fi
23802       # Try to locate tool using the code snippet
23803       for ac_prog in dsymutil
23804 do
23805   # Extract the first word of "$ac_prog", so it can be a program name with args.
23806 set dummy $ac_prog; ac_word=$2
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23808 $as_echo_n "checking for $ac_word... " >&6; }
23809 if ${ac_cv_path_DSYMUTIL+:} false; then :
23810   $as_echo_n "(cached) " >&6
23811 else
23812   case $DSYMUTIL in
23813   [\\/]* | ?:[\\/]*)
23814   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23815   ;;
23816   *)
23817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23818 for as_dir in $PATH
23819 do
23820   IFS=$as_save_IFS
23821   test -z "$as_dir" && as_dir=.
23822     for ac_exec_ext in '' $ac_executable_extensions; do
23823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23824     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23826     break 2
23827   fi
23828 done
23829   done
23830 IFS=$as_save_IFS
23831 
23832   ;;
23833 esac
23834 fi
23835 DSYMUTIL=$ac_cv_path_DSYMUTIL
23836 if test -n "$DSYMUTIL"; then
23837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23838 $as_echo "$DSYMUTIL" >&6; }
23839 else
23840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23841 $as_echo "no" >&6; }
23842 fi
23843 
23844 
23845   test -n "$DSYMUTIL" && break
23846 done
23847 
23848     else
23849       # If it succeeded, then it was overridden by the user. We will use it
23850       # for the tool.
23851 
23852       # First remove it from the list of overridden variables, so we can test
23853       # for unknown variables in the end.
23854       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23855 
23856       # Check if we try to supply an empty value
23857       if test "x$DSYMUTIL" = x; then
23858         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23859 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23861 $as_echo_n "checking for DSYMUTIL... " >&6; }
23862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23863 $as_echo "disabled" >&6; }
23864       else
23865         # Check if the provided tool contains a complete path.
23866         tool_specified="$DSYMUTIL"
23867         tool_basename="${tool_specified##*/}"
23868         if test "x$tool_basename" = "x$tool_specified"; then
23869           # A command without a complete path is provided, search $PATH.
23870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23871 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23872           # Extract the first word of "$tool_basename", so it can be a program name with args.
23873 set dummy $tool_basename; ac_word=$2
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23875 $as_echo_n "checking for $ac_word... " >&6; }
23876 if ${ac_cv_path_DSYMUTIL+:} false; then :
23877   $as_echo_n "(cached) " >&6
23878 else
23879   case $DSYMUTIL in
23880   [\\/]* | ?:[\\/]*)
23881   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23882   ;;
23883   *)
23884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885 for as_dir in $PATH
23886 do
23887   IFS=$as_save_IFS
23888   test -z "$as_dir" && as_dir=.
23889     for ac_exec_ext in '' $ac_executable_extensions; do
23890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23891     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23893     break 2
23894   fi
23895 done
23896   done
23897 IFS=$as_save_IFS
23898 
23899   ;;
23900 esac
23901 fi
23902 DSYMUTIL=$ac_cv_path_DSYMUTIL
23903 if test -n "$DSYMUTIL"; then
23904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23905 $as_echo "$DSYMUTIL" >&6; }
23906 else
23907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23908 $as_echo "no" >&6; }
23909 fi
23910 
23911 
23912           if test "x$DSYMUTIL" = x; then
23913             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23914           fi
23915         else
23916           # Otherwise we believe it is a complete path. Use it as it is.
23917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23918 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23920 $as_echo_n "checking for DSYMUTIL... " >&6; }
23921           if test ! -x "$tool_specified"; then
23922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23923 $as_echo "not found" >&6; }
23924             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23925           fi
23926           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23927 $as_echo "$tool_specified" >&6; }
23928         fi
23929       fi
23930     fi
23931 
23932   fi
23933 
23934 
23935 
23936   if test "x$DSYMUTIL" = x; then
23937     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23938   fi
23939 
23940 
23941 
23942 
23943 
23944   # Publish this variable in the help.
23945 
23946 
23947   if [ -z "${XATTR+x}" ]; then
23948     # The variable is not set by user, try to locate tool using the code snippet
23949     for ac_prog in xattr
23950 do
23951   # Extract the first word of "$ac_prog", so it can be a program name with args.
23952 set dummy $ac_prog; ac_word=$2
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23954 $as_echo_n "checking for $ac_word... " >&6; }
23955 if ${ac_cv_path_XATTR+:} false; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958   case $XATTR in
23959   [\\/]* | ?:[\\/]*)
23960   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23961   ;;
23962   *)
23963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23964 for as_dir in $PATH
23965 do
23966   IFS=$as_save_IFS
23967   test -z "$as_dir" && as_dir=.
23968     for ac_exec_ext in '' $ac_executable_extensions; do
23969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23970     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23972     break 2
23973   fi
23974 done
23975   done
23976 IFS=$as_save_IFS
23977 
23978   ;;
23979 esac
23980 fi
23981 XATTR=$ac_cv_path_XATTR
23982 if test -n "$XATTR"; then
23983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23984 $as_echo "$XATTR" >&6; }
23985 else
23986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23987 $as_echo "no" >&6; }
23988 fi
23989 
23990 
23991   test -n "$XATTR" && break
23992 done
23993 
23994   else
23995     # The variable is set, but is it from the command line or the environment?
23996 
23997     # Try to remove the string !XATTR! from our list.
23998     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23999     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24000       # If it failed, the variable was not from the command line. Ignore it,
24001       # but warn the user (except for BASH, which is always set by the calling BASH).
24002       if test "xXATTR" != xBASH; then
24003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
24004 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
24005       fi
24006       # Try to locate tool using the code snippet
24007       for ac_prog in xattr
24008 do
24009   # Extract the first word of "$ac_prog", so it can be a program name with args.
24010 set dummy $ac_prog; ac_word=$2
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24012 $as_echo_n "checking for $ac_word... " >&6; }
24013 if ${ac_cv_path_XATTR+:} false; then :
24014   $as_echo_n "(cached) " >&6
24015 else
24016   case $XATTR in
24017   [\\/]* | ?:[\\/]*)
24018   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24019   ;;
24020   *)
24021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24022 for as_dir in $PATH
24023 do
24024   IFS=$as_save_IFS
24025   test -z "$as_dir" && as_dir=.
24026     for ac_exec_ext in '' $ac_executable_extensions; do
24027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24028     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24030     break 2
24031   fi
24032 done
24033   done
24034 IFS=$as_save_IFS
24035 
24036   ;;
24037 esac
24038 fi
24039 XATTR=$ac_cv_path_XATTR
24040 if test -n "$XATTR"; then
24041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24042 $as_echo "$XATTR" >&6; }
24043 else
24044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24045 $as_echo "no" >&6; }
24046 fi
24047 
24048 
24049   test -n "$XATTR" && break
24050 done
24051 
24052     else
24053       # If it succeeded, then it was overridden by the user. We will use it
24054       # for the tool.
24055 
24056       # First remove it from the list of overridden variables, so we can test
24057       # for unknown variables in the end.
24058       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24059 
24060       # Check if we try to supply an empty value
24061       if test "x$XATTR" = x; then
24062         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24063 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24065 $as_echo_n "checking for XATTR... " >&6; }
24066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24067 $as_echo "disabled" >&6; }
24068       else
24069         # Check if the provided tool contains a complete path.
24070         tool_specified="$XATTR"
24071         tool_basename="${tool_specified##*/}"
24072         if test "x$tool_basename" = "x$tool_specified"; then
24073           # A command without a complete path is provided, search $PATH.
24074           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24075 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24076           # Extract the first word of "$tool_basename", so it can be a program name with args.
24077 set dummy $tool_basename; ac_word=$2
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24079 $as_echo_n "checking for $ac_word... " >&6; }
24080 if ${ac_cv_path_XATTR+:} false; then :
24081   $as_echo_n "(cached) " >&6
24082 else
24083   case $XATTR in
24084   [\\/]* | ?:[\\/]*)
24085   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24086   ;;
24087   *)
24088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24089 for as_dir in $PATH
24090 do
24091   IFS=$as_save_IFS
24092   test -z "$as_dir" && as_dir=.
24093     for ac_exec_ext in '' $ac_executable_extensions; do
24094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24095     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24097     break 2
24098   fi
24099 done
24100   done
24101 IFS=$as_save_IFS
24102 
24103   ;;
24104 esac
24105 fi
24106 XATTR=$ac_cv_path_XATTR
24107 if test -n "$XATTR"; then
24108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24109 $as_echo "$XATTR" >&6; }
24110 else
24111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24112 $as_echo "no" >&6; }
24113 fi
24114 
24115 
24116           if test "x$XATTR" = x; then
24117             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24118           fi
24119         else
24120           # Otherwise we believe it is a complete path. Use it as it is.
24121           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24122 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24124 $as_echo_n "checking for XATTR... " >&6; }
24125           if test ! -x "$tool_specified"; then
24126             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24127 $as_echo "not found" >&6; }
24128             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24129           fi
24130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24131 $as_echo "$tool_specified" >&6; }
24132         fi
24133       fi
24134     fi
24135 
24136   fi
24137 
24138 
24139 
24140   if test "x$XATTR" = x; then
24141     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24142   fi
24143 
24144 
24145 
24146 
24147   # Publish this variable in the help.
24148 
24149 
24150   if [ -z "${CODESIGN+x}" ]; then
24151     # The variable is not set by user, try to locate tool using the code snippet
24152     for ac_prog in codesign
24153 do
24154   # Extract the first word of "$ac_prog", so it can be a program name with args.
24155 set dummy $ac_prog; ac_word=$2
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24157 $as_echo_n "checking for $ac_word... " >&6; }
24158 if ${ac_cv_path_CODESIGN+:} false; then :
24159   $as_echo_n "(cached) " >&6
24160 else
24161   case $CODESIGN in
24162   [\\/]* | ?:[\\/]*)
24163   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24164   ;;
24165   *)
24166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24167 for as_dir in $PATH
24168 do
24169   IFS=$as_save_IFS
24170   test -z "$as_dir" && as_dir=.
24171     for ac_exec_ext in '' $ac_executable_extensions; do
24172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24173     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24175     break 2
24176   fi
24177 done
24178   done
24179 IFS=$as_save_IFS
24180 
24181   ;;
24182 esac
24183 fi
24184 CODESIGN=$ac_cv_path_CODESIGN
24185 if test -n "$CODESIGN"; then
24186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24187 $as_echo "$CODESIGN" >&6; }
24188 else
24189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24190 $as_echo "no" >&6; }
24191 fi
24192 
24193 
24194   test -n "$CODESIGN" && break
24195 done
24196 
24197   else
24198     # The variable is set, but is it from the command line or the environment?
24199 
24200     # Try to remove the string !CODESIGN! from our list.
24201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24203       # If it failed, the variable was not from the command line. Ignore it,
24204       # but warn the user (except for BASH, which is always set by the calling BASH).
24205       if test "xCODESIGN" != xBASH; then
24206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24207 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24208       fi
24209       # Try to locate tool using the code snippet
24210       for ac_prog in codesign
24211 do
24212   # Extract the first word of "$ac_prog", so it can be a program name with args.
24213 set dummy $ac_prog; ac_word=$2
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24215 $as_echo_n "checking for $ac_word... " >&6; }
24216 if ${ac_cv_path_CODESIGN+:} false; then :
24217   $as_echo_n "(cached) " >&6
24218 else
24219   case $CODESIGN in
24220   [\\/]* | ?:[\\/]*)
24221   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24222   ;;
24223   *)
24224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24225 for as_dir in $PATH
24226 do
24227   IFS=$as_save_IFS
24228   test -z "$as_dir" && as_dir=.
24229     for ac_exec_ext in '' $ac_executable_extensions; do
24230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24231     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24233     break 2
24234   fi
24235 done
24236   done
24237 IFS=$as_save_IFS
24238 
24239   ;;
24240 esac
24241 fi
24242 CODESIGN=$ac_cv_path_CODESIGN
24243 if test -n "$CODESIGN"; then
24244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24245 $as_echo "$CODESIGN" >&6; }
24246 else
24247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24248 $as_echo "no" >&6; }
24249 fi
24250 
24251 
24252   test -n "$CODESIGN" && break
24253 done
24254 
24255     else
24256       # If it succeeded, then it was overridden by the user. We will use it
24257       # for the tool.
24258 
24259       # First remove it from the list of overridden variables, so we can test
24260       # for unknown variables in the end.
24261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24262 
24263       # Check if we try to supply an empty value
24264       if test "x$CODESIGN" = x; then
24265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24266 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24268 $as_echo_n "checking for CODESIGN... " >&6; }
24269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24270 $as_echo "disabled" >&6; }
24271       else
24272         # Check if the provided tool contains a complete path.
24273         tool_specified="$CODESIGN"
24274         tool_basename="${tool_specified##*/}"
24275         if test "x$tool_basename" = "x$tool_specified"; then
24276           # A command without a complete path is provided, search $PATH.
24277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24278 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24279           # Extract the first word of "$tool_basename", so it can be a program name with args.
24280 set dummy $tool_basename; ac_word=$2
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24282 $as_echo_n "checking for $ac_word... " >&6; }
24283 if ${ac_cv_path_CODESIGN+:} false; then :
24284   $as_echo_n "(cached) " >&6
24285 else
24286   case $CODESIGN in
24287   [\\/]* | ?:[\\/]*)
24288   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24289   ;;
24290   *)
24291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24292 for as_dir in $PATH
24293 do
24294   IFS=$as_save_IFS
24295   test -z "$as_dir" && as_dir=.
24296     for ac_exec_ext in '' $ac_executable_extensions; do
24297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24298     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24300     break 2
24301   fi
24302 done
24303   done
24304 IFS=$as_save_IFS
24305 
24306   ;;
24307 esac
24308 fi
24309 CODESIGN=$ac_cv_path_CODESIGN
24310 if test -n "$CODESIGN"; then
24311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24312 $as_echo "$CODESIGN" >&6; }
24313 else
24314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24315 $as_echo "no" >&6; }
24316 fi
24317 
24318 
24319           if test "x$CODESIGN" = x; then
24320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24321           fi
24322         else
24323           # Otherwise we believe it is a complete path. Use it as it is.
24324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24325 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24327 $as_echo_n "checking for CODESIGN... " >&6; }
24328           if test ! -x "$tool_specified"; then
24329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24330 $as_echo "not found" >&6; }
24331             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24332           fi
24333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24334 $as_echo "$tool_specified" >&6; }
24335         fi
24336       fi
24337     fi
24338 
24339   fi
24340 
24341 
24342     if test "x$CODESIGN" != "x"; then
24343       # Verify that the openjdk_codesign certificate is present
24344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24345 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24346       $RM codesign-testfile
24347       $TOUCH codesign-testfile
24348       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24349       $RM codesign-testfile
24350       if test "x$CODESIGN" = x; then
24351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24352 $as_echo "no" >&6; }
24353       else
24354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24355 $as_echo "yes" >&6; }
24356       fi
24357     fi
24358 
24359 
24360 
24361   # Publish this variable in the help.
24362 
24363 
24364   if [ -z "${SETFILE+x}" ]; then
24365     # The variable is not set by user, try to locate tool using the code snippet
24366     for ac_prog in SetFile
24367 do
24368   # Extract the first word of "$ac_prog", so it can be a program name with args.
24369 set dummy $ac_prog; ac_word=$2
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24371 $as_echo_n "checking for $ac_word... " >&6; }
24372 if ${ac_cv_path_SETFILE+:} false; then :
24373   $as_echo_n "(cached) " >&6
24374 else
24375   case $SETFILE in
24376   [\\/]* | ?:[\\/]*)
24377   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24378   ;;
24379   *)
24380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24381 for as_dir in $PATH
24382 do
24383   IFS=$as_save_IFS
24384   test -z "$as_dir" && as_dir=.
24385     for ac_exec_ext in '' $ac_executable_extensions; do
24386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24387     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24389     break 2
24390   fi
24391 done
24392   done
24393 IFS=$as_save_IFS
24394 
24395   ;;
24396 esac
24397 fi
24398 SETFILE=$ac_cv_path_SETFILE
24399 if test -n "$SETFILE"; then
24400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24401 $as_echo "$SETFILE" >&6; }
24402 else
24403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24404 $as_echo "no" >&6; }
24405 fi
24406 
24407 
24408   test -n "$SETFILE" && break
24409 done
24410 
24411   else
24412     # The variable is set, but is it from the command line or the environment?
24413 
24414     # Try to remove the string !SETFILE! from our list.
24415     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24416     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24417       # If it failed, the variable was not from the command line. Ignore it,
24418       # but warn the user (except for BASH, which is always set by the calling BASH).
24419       if test "xSETFILE" != xBASH; then
24420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24421 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24422       fi
24423       # Try to locate tool using the code snippet
24424       for ac_prog in SetFile
24425 do
24426   # Extract the first word of "$ac_prog", so it can be a program name with args.
24427 set dummy $ac_prog; ac_word=$2
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24429 $as_echo_n "checking for $ac_word... " >&6; }
24430 if ${ac_cv_path_SETFILE+:} false; then :
24431   $as_echo_n "(cached) " >&6
24432 else
24433   case $SETFILE in
24434   [\\/]* | ?:[\\/]*)
24435   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24436   ;;
24437   *)
24438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24439 for as_dir in $PATH
24440 do
24441   IFS=$as_save_IFS
24442   test -z "$as_dir" && as_dir=.
24443     for ac_exec_ext in '' $ac_executable_extensions; do
24444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24445     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24447     break 2
24448   fi
24449 done
24450   done
24451 IFS=$as_save_IFS
24452 
24453   ;;
24454 esac
24455 fi
24456 SETFILE=$ac_cv_path_SETFILE
24457 if test -n "$SETFILE"; then
24458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24459 $as_echo "$SETFILE" >&6; }
24460 else
24461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462 $as_echo "no" >&6; }
24463 fi
24464 
24465 
24466   test -n "$SETFILE" && break
24467 done
24468 
24469     else
24470       # If it succeeded, then it was overridden by the user. We will use it
24471       # for the tool.
24472 
24473       # First remove it from the list of overridden variables, so we can test
24474       # for unknown variables in the end.
24475       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24476 
24477       # Check if we try to supply an empty value
24478       if test "x$SETFILE" = x; then
24479         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24480 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24482 $as_echo_n "checking for SETFILE... " >&6; }
24483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24484 $as_echo "disabled" >&6; }
24485       else
24486         # Check if the provided tool contains a complete path.
24487         tool_specified="$SETFILE"
24488         tool_basename="${tool_specified##*/}"
24489         if test "x$tool_basename" = "x$tool_specified"; then
24490           # A command without a complete path is provided, search $PATH.
24491           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24492 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24493           # Extract the first word of "$tool_basename", so it can be a program name with args.
24494 set dummy $tool_basename; ac_word=$2
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24496 $as_echo_n "checking for $ac_word... " >&6; }
24497 if ${ac_cv_path_SETFILE+:} false; then :
24498   $as_echo_n "(cached) " >&6
24499 else
24500   case $SETFILE in
24501   [\\/]* | ?:[\\/]*)
24502   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24503   ;;
24504   *)
24505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24506 for as_dir in $PATH
24507 do
24508   IFS=$as_save_IFS
24509   test -z "$as_dir" && as_dir=.
24510     for ac_exec_ext in '' $ac_executable_extensions; do
24511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24512     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24514     break 2
24515   fi
24516 done
24517   done
24518 IFS=$as_save_IFS
24519 
24520   ;;
24521 esac
24522 fi
24523 SETFILE=$ac_cv_path_SETFILE
24524 if test -n "$SETFILE"; then
24525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24526 $as_echo "$SETFILE" >&6; }
24527 else
24528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24529 $as_echo "no" >&6; }
24530 fi
24531 
24532 
24533           if test "x$SETFILE" = x; then
24534             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24535           fi
24536         else
24537           # Otherwise we believe it is a complete path. Use it as it is.
24538           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24539 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24540           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24541 $as_echo_n "checking for SETFILE... " >&6; }
24542           if test ! -x "$tool_specified"; then
24543             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24544 $as_echo "not found" >&6; }
24545             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24546           fi
24547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24548 $as_echo "$tool_specified" >&6; }
24549         fi
24550       fi
24551     fi
24552 
24553   fi
24554 
24555 
24556 
24557   if test "x$SETFILE" = x; then
24558     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24559   fi
24560 
24561 
24562   fi
24563 
24564 
24565   # Check bash version
24566   # Extra [ ] to stop m4 mangling
24567    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24569 $as_echo_n "checking bash version... " >&6; }
24570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24571 $as_echo "$BASH_VER" >&6; }
24572 
24573   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24574   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24575   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24576     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24577   fi
24578 
24579   # Test if bash supports pipefail.
24580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24581 $as_echo_n "checking if bash supports pipefail... " >&6; }
24582   if ${BASH} -c 'set -o pipefail'; then
24583     BASH_ARGS="$BASH_ARGS -o pipefail"
24584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24585 $as_echo "yes" >&6; }
24586   else
24587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24588 $as_echo "no" >&6; }
24589   fi
24590 
24591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24592 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24593   if ${BASH} -e -c 'true'; then
24594     BASH_ARGS="$BASH_ARGS -e"
24595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24596 $as_echo "yes" >&6; }
24597   else
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599 $as_echo "no" >&6; }
24600   fi
24601 
24602 
24603 
24604 
24605 # Check if pkg-config is available.
24606 
24607 
24608 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24609         if test -n "$ac_tool_prefix"; then
24610   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24611 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24613 $as_echo_n "checking for $ac_word... " >&6; }
24614 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24615   $as_echo_n "(cached) " >&6
24616 else
24617   case $PKG_CONFIG in
24618   [\\/]* | ?:[\\/]*)
24619   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24620   ;;
24621   *)
24622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24623 for as_dir in $PATH
24624 do
24625   IFS=$as_save_IFS
24626   test -z "$as_dir" && as_dir=.
24627     for ac_exec_ext in '' $ac_executable_extensions; do
24628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24629     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24631     break 2
24632   fi
24633 done
24634   done
24635 IFS=$as_save_IFS
24636 
24637   ;;
24638 esac
24639 fi
24640 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24641 if test -n "$PKG_CONFIG"; then
24642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24643 $as_echo "$PKG_CONFIG" >&6; }
24644 else
24645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24646 $as_echo "no" >&6; }
24647 fi
24648 
24649 
24650 fi
24651 if test -z "$ac_cv_path_PKG_CONFIG"; then
24652   ac_pt_PKG_CONFIG=$PKG_CONFIG
24653   # Extract the first word of "pkg-config", so it can be a program name with args.
24654 set dummy pkg-config; ac_word=$2
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24656 $as_echo_n "checking for $ac_word... " >&6; }
24657 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   case $ac_pt_PKG_CONFIG in
24661   [\\/]* | ?:[\\/]*)
24662   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24663   ;;
24664   *)
24665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24666 for as_dir in $PATH
24667 do
24668   IFS=$as_save_IFS
24669   test -z "$as_dir" && as_dir=.
24670     for ac_exec_ext in '' $ac_executable_extensions; do
24671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24672     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24674     break 2
24675   fi
24676 done
24677   done
24678 IFS=$as_save_IFS
24679 
24680   ;;
24681 esac
24682 fi
24683 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24684 if test -n "$ac_pt_PKG_CONFIG"; then
24685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24686 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24687 else
24688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24689 $as_echo "no" >&6; }
24690 fi
24691 
24692   if test "x$ac_pt_PKG_CONFIG" = x; then
24693     PKG_CONFIG=""
24694   else
24695     case $cross_compiling:$ac_tool_warned in
24696 yes:)
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24699 ac_tool_warned=yes ;;
24700 esac
24701     PKG_CONFIG=$ac_pt_PKG_CONFIG
24702   fi
24703 else
24704   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24705 fi
24706 
24707 fi
24708 if test -n "$PKG_CONFIG"; then
24709         _pkg_min_version=0.9.0
24710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24711 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24712         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24713                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24714 $as_echo "yes" >&6; }
24715         else
24716                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24717 $as_echo "no" >&6; }
24718                 PKG_CONFIG=""
24719         fi
24720 
24721 fi
24722 
24723 # After basic tools have been setup, we can check build os specific details.
24724 
24725   ###############################################################################
24726 
24727   # Note that this is the build platform OS version!
24728 
24729   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24730   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24731   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24732   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24733 
24734 
24735 
24736 
24737 
24738 # Misc basic settings
24739 
24740 
24741 # Check whether --with-default-make-target was given.
24742 if test "${with_default_make_target+set}" = set; then :
24743   withval=$with_default_make_target;
24744 fi
24745 
24746   if test "x$with_default_make_target" = "x" \
24747       || test "x$with_default_make_target" = "xyes"; then
24748     DEFAULT_MAKE_TARGET="exploded-image"
24749   elif test "x$with_default_make_target" = "xno"; then
24750     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24751   else
24752     DEFAULT_MAKE_TARGET="$with_default_make_target"
24753   fi
24754 
24755 
24756 
24757 
24758 ###############################################################################
24759 #
24760 # Determine OpenJDK variants, options and version numbers.
24761 #
24762 ###############################################################################
24763 
24764 # We need build & target for this.
24765 
24766   # Should we build a JDK without a graphical UI?
24767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24768 $as_echo_n "checking headless only... " >&6; }
24769   # Check whether --enable-headless-only was given.
24770 if test "${enable_headless_only+set}" = set; then :
24771   enableval=$enable_headless_only;
24772 fi
24773 
24774 
24775   if test "x$enable_headless_only" = "xyes"; then
24776     ENABLE_HEADLESS_ONLY="true"
24777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24778 $as_echo "yes" >&6; }
24779   elif test "x$enable_headless_only" = "xno"; then
24780     ENABLE_HEADLESS_ONLY="false"
24781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24782 $as_echo "no" >&6; }
24783   elif test "x$enable_headless_only" = "x"; then
24784     ENABLE_HEADLESS_ONLY="false"
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24786 $as_echo "no" >&6; }
24787   else
24788     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24789   fi
24790 
24791 
24792 
24793   # Should we build the complete docs, or just a lightweight version?
24794   # Check whether --enable-full-docs was given.
24795 if test "${enable_full_docs+set}" = set; then :
24796   enableval=$enable_full_docs;
24797 fi
24798 
24799 
24800   # Verify dependencies
24801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24802 $as_echo_n "checking for graphviz dot... " >&6; }
24803   if test "x$DOT" != "x"; then
24804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24805 $as_echo "yes" >&6; }
24806   else
24807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24808 $as_echo "no, cannot generate full docs" >&6; }
24809     FULL_DOCS_DEP_MISSING=true
24810   fi
24811 
24812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24813 $as_echo_n "checking for pandoc... " >&6; }
24814   if test "x$PANDOC" != "x"; then
24815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24816 $as_echo "yes" >&6; }
24817   else
24818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24819 $as_echo "no, cannot generate full docs" >&6; }
24820     FULL_DOCS_DEP_MISSING=true
24821   fi
24822 
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24824 $as_echo_n "checking full docs... " >&6; }
24825   if test "x$enable_full_docs" = xyes; then
24826     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24828 $as_echo "no, missing dependencies" >&6; }
24829 
24830   # Print a helpful message on how to acquire the necessary build dependency.
24831   # dot is the help tag: freetype, cups, alsa etc
24832   MISSING_DEPENDENCY=dot
24833 
24834   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24835     cygwin_help $MISSING_DEPENDENCY
24836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24837     msys_help $MISSING_DEPENDENCY
24838   else
24839     PKGHANDLER_COMMAND=
24840 
24841     case $PKGHANDLER in
24842       apt-get)
24843         apt_help     $MISSING_DEPENDENCY ;;
24844       yum)
24845         yum_help     $MISSING_DEPENDENCY ;;
24846       brew)
24847         brew_help    $MISSING_DEPENDENCY ;;
24848       port)
24849         port_help    $MISSING_DEPENDENCY ;;
24850       pkgutil)
24851         pkgutil_help $MISSING_DEPENDENCY ;;
24852       pkgadd)
24853         pkgadd_help  $MISSING_DEPENDENCY ;;
24854     esac
24855 
24856     if test "x$PKGHANDLER_COMMAND" != x; then
24857       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24858     fi
24859   fi
24860 
24861       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24862     else
24863       ENABLE_FULL_DOCS=true
24864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24865 $as_echo "yes, forced" >&6; }
24866     fi
24867   elif test "x$enable_full_docs" = xno; then
24868     ENABLE_FULL_DOCS=false
24869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24870 $as_echo "no, forced" >&6; }
24871   elif test "x$enable_full_docs" = x; then
24872     # Check for prerequisites
24873     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24874       ENABLE_FULL_DOCS=false
24875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24876 $as_echo "no, missing dependencies" >&6; }
24877     else
24878       ENABLE_FULL_DOCS=true
24879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24880 $as_echo "yes, dependencies present" >&6; }
24881     fi
24882   else
24883     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24884   fi
24885 
24886 
24887 
24888   # Choose cacerts source file
24889 
24890 # Check whether --with-cacerts-file was given.
24891 if test "${with_cacerts_file+set}" = set; then :
24892   withval=$with_cacerts_file;
24893 fi
24894 
24895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24896 $as_echo_n "checking for cacerts file... " >&6; }
24897   if test "x$with_cacerts_file" == x; then
24898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24899 $as_echo "default" >&6; }
24900   else
24901     CACERTS_FILE=$with_cacerts_file
24902     if test ! -f "$CACERTS_FILE"; then
24903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24904 $as_echo "fail" >&6; }
24905       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24906     fi
24907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24908 $as_echo "$CACERTS_FILE" >&6; }
24909   fi
24910 
24911 
24912   # Enable or disable unlimited crypto
24913   # Check whether --enable-unlimited-crypto was given.
24914 if test "${enable_unlimited_crypto+set}" = set; then :
24915   enableval=$enable_unlimited_crypto;
24916 else
24917   enable_unlimited_crypto=yes
24918 fi
24919 
24920   if test "x$enable_unlimited_crypto" = "xyes"; then
24921     UNLIMITED_CRYPTO=true
24922   else
24923     UNLIMITED_CRYPTO=false
24924   fi
24925 
24926 
24927   # Should we build the serviceability agent (SA)?
24928   INCLUDE_SA=true
24929   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24930     INCLUDE_SA=false
24931   fi
24932   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24933     INCLUDE_SA=false
24934   fi
24935 
24936 
24937   # Compress jars
24938   COMPRESS_JARS=false
24939 
24940 
24941 
24942   # Setup default copyright year. Mostly overridden when building close to a new year.
24943 
24944 # Check whether --with-copyright-year was given.
24945 if test "${with_copyright_year+set}" = set; then :
24946   withval=$with_copyright_year;
24947 fi
24948 
24949   if test "x$with_copyright_year" = xyes; then
24950     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24951   elif test "x$with_copyright_year" != x; then
24952     COPYRIGHT_YEAR="$with_copyright_year"
24953   else
24954     COPYRIGHT_YEAR=`$DATE +'%Y'`
24955   fi
24956 
24957 
24958 
24959   # Check whether --enable-keep-packaged-modules was given.
24960 if test "${enable_keep_packaged_modules+set}" = set; then :
24961   enableval=$enable_keep_packaged_modules;
24962 fi
24963 
24964 
24965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24966 $as_echo_n "checking if packaged modules are kept... " >&6; }
24967   if test "x$enable_keep_packaged_modules" = "xyes"; then
24968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24969 $as_echo "yes" >&6; }
24970     JLINK_KEEP_PACKAGED_MODULES=true
24971   elif test "x$enable_keep_packaged_modules" = "xno"; then
24972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24973 $as_echo "no" >&6; }
24974     JLINK_KEEP_PACKAGED_MODULES=false
24975   elif test "x$enable_keep_packaged_modules" = "x"; then
24976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24977 $as_echo "yes (default)" >&6; }
24978     JLINK_KEEP_PACKAGED_MODULES=true
24979   else
24980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24981 $as_echo "error" >&6; }
24982     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24983   fi
24984 
24985 
24986 
24987 
24988   # Warn user that old version arguments are deprecated.
24989 
24990 
24991 # Check whether --with-milestone was given.
24992 if test "${with_milestone+set}" = set; then :
24993   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24994 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24995 fi
24996 
24997 
24998 
24999 
25000 # Check whether --with-update-version was given.
25001 if test "${with_update_version+set}" = set; then :
25002   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
25003 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
25004 fi
25005 
25006 
25007 
25008 
25009 # Check whether --with-user-release-suffix was given.
25010 if test "${with_user_release_suffix+set}" = set; then :
25011   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
25012 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25013 fi
25014 
25015 
25016 
25017 
25018 # Check whether --with-build-number was given.
25019 if test "${with_build_number+set}" = set; then :
25020   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25021 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25022 fi
25023 
25024 
25025 
25026 
25027 # Check whether --with-version-major was given.
25028 if test "${with_version_major+set}" = set; then :
25029   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25030 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25031 fi
25032 
25033 
25034 
25035 
25036 # Check whether --with-version-minor was given.
25037 if test "${with_version_minor+set}" = set; then :
25038   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25039 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25040 fi
25041 
25042 
25043 
25044 
25045 # Check whether --with-version-security was given.
25046 if test "${with_version_security+set}" = set; then :
25047   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25048 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25049 fi
25050 
25051 
25052 
25053   # Source the version numbers file
25054   . $AUTOCONF_DIR/version-numbers
25055 
25056   # Some non-version number information is set in that file
25057 
25058 
25059 
25060 
25061 
25062 
25063 
25064 
25065   # The vendor name, if any
25066 
25067 # Check whether --with-vendor-name was given.
25068 if test "${with_vendor_name+set}" = set; then :
25069   withval=$with_vendor_name;
25070 fi
25071 
25072   if test "x$with_vendor_name" = xyes; then
25073     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
25074   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
25075     as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
25076   else
25077     COMPANY_NAME="$with_vendor_name"
25078   fi
25079 
25080 
25081   # Override version from arguments
25082 
25083   # If --with-version-string is set, process it first. It is possible to
25084   # override parts with more specific flags, since these are processed later.
25085 
25086 # Check whether --with-version-string was given.
25087 if test "${with_version_string+set}" = set; then :
25088   withval=$with_version_string;
25089 fi
25090 
25091   if test "x$with_version_string" = xyes; then
25092     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25093   elif test "x$with_version_string" != x; then
25094     # Additional [] needed to keep m4 from mangling shell constructs.
25095     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25096       VERSION_FEATURE=${BASH_REMATCH[1]}
25097       VERSION_INTERIM=${BASH_REMATCH[3]}
25098       VERSION_UPDATE=${BASH_REMATCH[5]}
25099       VERSION_PATCH=${BASH_REMATCH[7]}
25100       VERSION_PRE=${BASH_REMATCH[9]}
25101       version_plus_separator=${BASH_REMATCH[11]}
25102       VERSION_BUILD=${BASH_REMATCH[12]}
25103       VERSION_OPT=${BASH_REMATCH[14]}
25104       # Unspecified numerical fields are interpreted as 0.
25105       if test "x$VERSION_INTERIM" = x; then
25106         VERSION_INTERIM=0
25107       fi
25108       if test "x$VERSION_UPDATE" = x; then
25109         VERSION_UPDATE=0
25110       fi
25111       if test "x$VERSION_PATCH" = x; then
25112         VERSION_PATCH=0
25113       fi
25114       if test "x$version_plus_separator" != x \
25115           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25116         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25117       fi
25118       # Stop the version part process from setting default values.
25119       # We still allow them to explicitly override though.
25120       NO_DEFAULT_VERSION_PARTS=true
25121     else
25122       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25123     fi
25124   fi
25125 
25126 
25127 # Check whether --with-version-pre was given.
25128 if test "${with_version_pre+set}" = set; then :
25129   withval=$with_version_pre; with_version_pre_present=true
25130 else
25131   with_version_pre_present=false
25132 fi
25133 
25134 
25135   if test "x$with_version_pre_present" = xtrue; then
25136     if test "x$with_version_pre" = xyes; then
25137       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25138     elif test "x$with_version_pre" = xno; then
25139       # Interpret --without-* as empty string instead of the literal "no"
25140       VERSION_PRE=
25141     else
25142       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25143        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25144       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25145         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25146 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25147       fi
25148     fi
25149   else
25150     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25151       # Default is to use "internal" as pre
25152       VERSION_PRE="internal"
25153     fi
25154   fi
25155 
25156 
25157 # Check whether --with-version-opt was given.
25158 if test "${with_version_opt+set}" = set; then :
25159   withval=$with_version_opt; with_version_opt_present=true
25160 else
25161   with_version_opt_present=false
25162 fi
25163 
25164 
25165   if test "x$with_version_opt_present" = xtrue; then
25166     if test "x$with_version_opt" = xyes; then
25167       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25168     elif test "x$with_version_opt" = xno; then
25169       # Interpret --without-* as empty string instead of the literal "no"
25170       VERSION_OPT=
25171     else
25172       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25173        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25174       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25176 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25177       fi
25178     fi
25179   else
25180     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25181       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25182       # Outer [ ] to quote m4.
25183        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25184       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25185     fi
25186   fi
25187 
25188 
25189 # Check whether --with-version-build was given.
25190 if test "${with_version_build+set}" = set; then :
25191   withval=$with_version_build; with_version_build_present=true
25192 else
25193   with_version_build_present=false
25194 fi
25195 
25196 
25197   if test "x$with_version_build_present" = xtrue; then
25198     if test "x$with_version_build" = xyes; then
25199       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25200     elif test "x$with_version_build" = xno; then
25201       # Interpret --without-* as empty string instead of the literal "no"
25202       VERSION_BUILD=
25203     elif test "x$with_version_build" = x; then
25204       VERSION_BUILD=
25205     else
25206 
25207   # Additional [] needed to keep m4 from mangling shell constructs.
25208   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25209     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25210   fi
25211   # Extract the version number without leading zeros.
25212   cleaned_value=${BASH_REMATCH[1]}
25213   if test "x$cleaned_value" = x; then
25214     # Special case for zero
25215     cleaned_value=${BASH_REMATCH[2]}
25216   fi
25217 
25218   if test $cleaned_value -gt 255; then
25219     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25220   fi
25221   if test "x$cleaned_value" != "x$with_version_build"; then
25222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25223 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25224   fi
25225   VERSION_BUILD=$cleaned_value
25226 
25227     fi
25228   else
25229     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25230       # Default is to not have a build number.
25231       VERSION_BUILD=""
25232       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25233       VERSION_BUILD=0
25234     fi
25235   fi
25236 
25237 
25238 # Check whether --with-version-feature was given.
25239 if test "${with_version_feature+set}" = set; then :
25240   withval=$with_version_feature; with_version_feature_present=true
25241 else
25242   with_version_feature_present=false
25243 fi
25244 
25245 
25246   if test "x$with_version_feature_present" = xtrue; then
25247     if test "x$with_version_feature" = xyes; then
25248       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25249     else
25250 
25251   # Additional [] needed to keep m4 from mangling shell constructs.
25252   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25253     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25254   fi
25255   # Extract the version number without leading zeros.
25256   cleaned_value=${BASH_REMATCH[1]}
25257   if test "x$cleaned_value" = x; then
25258     # Special case for zero
25259     cleaned_value=${BASH_REMATCH[2]}
25260   fi
25261 
25262   if test $cleaned_value -gt 255; then
25263     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25264   fi
25265   if test "x$cleaned_value" != "x$with_version_feature"; then
25266     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25267 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25268   fi
25269   VERSION_FEATURE=$cleaned_value
25270 
25271     fi
25272   else
25273     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25274       # Default is to get value from version-numbers
25275       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25276     fi
25277   fi
25278 
25279 
25280 # Check whether --with-version-interim was given.
25281 if test "${with_version_interim+set}" = set; then :
25282   withval=$with_version_interim; with_version_interim_present=true
25283 else
25284   with_version_interim_present=false
25285 fi
25286 
25287 
25288   if test "x$with_version_interim_present" = xtrue; then
25289     if test "x$with_version_interim" = xyes; then
25290       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25291     elif test "x$with_version_interim" = xno; then
25292       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25293       VERSION_INTERIM=0
25294     elif test "x$with_version_interim" = x; then
25295       VERSION_INTERIM=0
25296     else
25297 
25298   # Additional [] needed to keep m4 from mangling shell constructs.
25299   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25300     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25301   fi
25302   # Extract the version number without leading zeros.
25303   cleaned_value=${BASH_REMATCH[1]}
25304   if test "x$cleaned_value" = x; then
25305     # Special case for zero
25306     cleaned_value=${BASH_REMATCH[2]}
25307   fi
25308 
25309   if test $cleaned_value -gt 255; then
25310     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25311   fi
25312   if test "x$cleaned_value" != "x$with_version_interim"; then
25313     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25314 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25315   fi
25316   VERSION_INTERIM=$cleaned_value
25317 
25318     fi
25319   else
25320     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25321       # Default is 0, if unspecified
25322       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25323     fi
25324   fi
25325 
25326 
25327 # Check whether --with-version-update was given.
25328 if test "${with_version_update+set}" = set; then :
25329   withval=$with_version_update; with_version_update_present=true
25330 else
25331   with_version_update_present=false
25332 fi
25333 
25334 
25335   if test "x$with_version_update_present" = xtrue; then
25336     if test "x$with_version_update" = xyes; then
25337       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25338     elif test "x$with_version_update" = xno; then
25339       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25340       VERSION_UPDATE=0
25341     elif test "x$with_version_update" = x; then
25342       VERSION_UPDATE=0
25343     else
25344 
25345   # Additional [] needed to keep m4 from mangling shell constructs.
25346   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25347     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25348   fi
25349   # Extract the version number without leading zeros.
25350   cleaned_value=${BASH_REMATCH[1]}
25351   if test "x$cleaned_value" = x; then
25352     # Special case for zero
25353     cleaned_value=${BASH_REMATCH[2]}
25354   fi
25355 
25356   if test $cleaned_value -gt 255; then
25357     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25358   fi
25359   if test "x$cleaned_value" != "x$with_version_update"; then
25360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25361 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25362   fi
25363   VERSION_UPDATE=$cleaned_value
25364 
25365     fi
25366   else
25367     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25368       # Default is 0, if unspecified
25369       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25370     fi
25371   fi
25372 
25373 
25374 # Check whether --with-version-patch was given.
25375 if test "${with_version_patch+set}" = set; then :
25376   withval=$with_version_patch; with_version_patch_present=true
25377 else
25378   with_version_patch_present=false
25379 fi
25380 
25381 
25382   if test "x$with_version_patch_present" = xtrue; then
25383     if test "x$with_version_patch" = xyes; then
25384       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25385     elif test "x$with_version_patch" = xno; then
25386       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25387       VERSION_PATCH=0
25388     elif test "x$with_version_patch" = x; then
25389       VERSION_PATCH=0
25390     else
25391 
25392   # Additional [] needed to keep m4 from mangling shell constructs.
25393   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25394     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25395   fi
25396   # Extract the version number without leading zeros.
25397   cleaned_value=${BASH_REMATCH[1]}
25398   if test "x$cleaned_value" = x; then
25399     # Special case for zero
25400     cleaned_value=${BASH_REMATCH[2]}
25401   fi
25402 
25403   if test $cleaned_value -gt 255; then
25404     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25405   fi
25406   if test "x$cleaned_value" != "x$with_version_patch"; then
25407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25408 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25409   fi
25410   VERSION_PATCH=$cleaned_value
25411 
25412     fi
25413   else
25414     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25415       # Default is 0, if unspecified
25416       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25417     fi
25418   fi
25419 
25420   # Calculate derived version properties
25421 
25422   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25423   if test "x$VERSION_PRE" = x; then
25424     VERSION_IS_GA=true
25425   else
25426     VERSION_IS_GA=false
25427   fi
25428 
25429   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25430   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25431 
25432   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25433   # Strip trailing zeroes from stripped_version_number
25434   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25435   VERSION_NUMBER=$stripped_version_number
25436 
25437   # The complete version string, with additional build information
25438   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25439     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25440   else
25441     # If either build or opt is set, we need a + separator
25442     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25443   fi
25444 
25445   # The short version string, just VERSION_NUMBER and PRE, if present.
25446   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25447 
25448   # The version date
25449 
25450 # Check whether --with-version-date was given.
25451 if test "${with_version_date+set}" = set; then :
25452   withval=$with_version_date;
25453 fi
25454 
25455   if test "x$with_version_date" = xyes; then
25456     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25457   elif test "x$with_version_date" != x; then
25458     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25459       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25460     else
25461       VERSION_DATE="$with_version_date"
25462     fi
25463   else
25464     VERSION_DATE="$DEFAULT_VERSION_DATE"
25465   fi
25466 
25467   # The vendor version string, if any
25468 
25469 # Check whether --with-vendor-version-string was given.
25470 if test "${with_vendor_version_string+set}" = set; then :
25471   withval=$with_vendor_version_string;
25472 fi
25473 
25474   if test "x$with_vendor_version_string" = xyes; then
25475     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25476   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25477     as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25478   else
25479     VENDOR_VERSION_STRING="$with_vendor_version_string"
25480   fi
25481 
25482   # We could define --with flags for these, if really needed
25483   VERSION_CLASSFILE_MAJOR="$DEFAULT_VERSION_CLASSFILE_MAJOR"
25484   VERSION_CLASSFILE_MINOR="$DEFAULT_VERSION_CLASSFILE_MINOR"
25485 
25486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25487 $as_echo_n "checking for version string... " >&6; }
25488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25489 $as_echo "$VERSION_STRING" >&6; }
25490 
25491 
25492 
25493 
25494 
25495 
25496 
25497 
25498 
25499 
25500 
25501 
25502 
25503 
25504 
25505 
25506 
25507 
25508 
25509 
25510 ###############################################################################
25511 #
25512 # Setup BootJDK, used to bootstrap the build.
25513 #
25514 ###############################################################################
25515 
25516 
25517   BOOT_JDK_FOUND=no
25518 
25519 # Check whether --with-boot-jdk was given.
25520 if test "${with_boot_jdk+set}" = set; then :
25521   withval=$with_boot_jdk;
25522 fi
25523 
25524 
25525   # We look for the Boot JDK through various means, going from more certain to
25526   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25527   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25528   # must check if this is indeed valid; otherwise we'll continue looking.
25529 
25530   # Test: Is bootjdk explicitly set by command line arguments?
25531 
25532   if test "x$BOOT_JDK_FOUND" = xno; then
25533     # Now execute the test
25534 
25535   if test "x$with_boot_jdk" != x; then
25536     BOOT_JDK=$with_boot_jdk
25537     BOOT_JDK_FOUND=maybe
25538     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25539 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25540   fi
25541 
25542 
25543     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25544     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25545       # Do we have a bin/java?
25546       if test ! -x "$BOOT_JDK/bin/java"; then
25547         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25549         BOOT_JDK_FOUND=no
25550       else
25551         # Do we have a bin/javac?
25552