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 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK
 890 VERSION_IS_GA
 891 VERSION_SHORT
 892 VERSION_STRING
 893 VERSION_NUMBER_FOUR_POSITIONS
 894 VERSION_NUMBER
 895 VERSION_OPT
 896 VERSION_BUILD
 897 VERSION_PRE
 898 VERSION_PATCH
 899 VERSION_SECURITY
 900 VERSION_MINOR
 901 VERSION_MAJOR
 902 MACOSX_BUNDLE_ID_BASE
 903 MACOSX_BUNDLE_NAME_BASE
 904 HOTSPOT_VM_DISTRO
 905 COMPANY_NAME
 906 JDK_RC_PLATFORM_NAME
 907 PRODUCT_SUFFIX
 908 PRODUCT_NAME
 909 LAUNCHER_NAME
 910 JLINK_KEEP_PACKAGED_MODULES
 911 COPYRIGHT_YEAR
 912 COMPRESS_JARS
 913 INCLUDE_SA
 914 UNLIMITED_CRYPTO
 915 CACERTS_FILE
 916 ENABLE_FULL_DOCS
 917 ENABLE_HEADLESS_ONLY
 918 DEFAULT_MAKE_TARGET
 919 OS_VERSION_MICRO
 920 OS_VERSION_MINOR
 921 OS_VERSION_MAJOR
 922 PKG_CONFIG
 923 BASH_ARGS
 924 SETFILE
 925 CODESIGN
 926 XATTR
 927 DSYMUTIL
 928 IS_GNU_TIME
 929 PATCH
 930 DTRACE
 931 FLOCK
 932 TIME
 933 STAT
 934 HG
 935 DOT
 936 READELF
 937 LDD
 938 ZIPEXE
 939 UNZIP
 940 TAR_SUPPORTS_TRANSFORM
 941 TAR_INCLUDE_PARAM
 942 TAR_CREATE_EXTRA_PARAM
 943 TAR_TYPE
 944 FIND_DELETE
 945 OUTPUT_SYNC
 946 OUTPUT_SYNC_SUPPORTED
 947 CHECK_TOOLSDIR_MAKE
 948 CHECK_TOOLSDIR_GMAKE
 949 CHECK_MAKE
 950 CHECK_GMAKE
 951 MAKE
 952 PKGHANDLER
 953 CONFIGURESUPPORT_OUTPUTDIR
 954 OUTPUTDIR
 955 CONF_NAME
 956 SPEC
 957 SDKROOT
 958 XCODEBUILD
 959 DEVKIT_LIB_DIR
 960 JVM_VARIANT_MAIN
 961 VALID_JVM_VARIANTS
 962 JVM_VARIANTS
 963 DEBUG_LEVEL
 964 HOTSPOT_DEBUG_LEVEL
 965 JDK_VARIANT
 966 USERNAME
 967 TOPDIR
 968 PATH_SEP
 969 HOTSPOT_BUILD_CPU_DEFINE
 970 HOTSPOT_BUILD_CPU_ARCH
 971 HOTSPOT_BUILD_CPU
 972 HOTSPOT_BUILD_OS_TYPE
 973 HOTSPOT_BUILD_OS
 974 OPENJDK_BUILD_BUNDLE_PLATFORM
 975 OPENJDK_BUILD_OS_EXPORT_DIR
 976 OPENJDK_BUILD_CPU_OSARCH
 977 OPENJDK_BUILD_CPU_ISADIR
 978 OPENJDK_BUILD_CPU_LEGACY_LIB
 979 OPENJDK_BUILD_CPU_LEGACY
 980 HOTSPOT_TARGET_CPU_DEFINE
 981 HOTSPOT_TARGET_CPU_ARCH
 982 HOTSPOT_TARGET_CPU
 983 HOTSPOT_TARGET_OS_TYPE
 984 HOTSPOT_TARGET_OS
 985 DEFINE_CROSS_COMPILE_ARCH
 986 OPENJDK_TARGET_BUNDLE_PLATFORM
 987 OPENJDK_TARGET_OS_EXPORT_DIR
 988 OPENJDK_TARGET_CPU_OSARCH
 989 OPENJDK_TARGET_CPU_ISADIR
 990 OPENJDK_TARGET_CPU_LEGACY_LIB
 991 OPENJDK_TARGET_CPU_LEGACY
 992 RELEASE_FILE_OS_ARCH
 993 RELEASE_FILE_OS_NAME
 994 OPENJDK_MODULE_TARGET_PLATFORM
 995 COMPILE_TYPE
 996 OPENJDK_TARGET_CPU_ENDIAN
 997 OPENJDK_TARGET_CPU_BITS
 998 OPENJDK_TARGET_CPU_ARCH
 999 OPENJDK_TARGET_CPU
1000 OPENJDK_TARGET_OS_ENV
1001 OPENJDK_TARGET_OS_TYPE
1002 OPENJDK_TARGET_OS
1003 OPENJDK_BUILD_CPU_ENDIAN
1004 OPENJDK_BUILD_CPU_BITS
1005 OPENJDK_BUILD_CPU_ARCH
1006 OPENJDK_BUILD_CPU
1007 OPENJDK_BUILD_OS_ENV
1008 OPENJDK_BUILD_OS_TYPE
1009 OPENJDK_BUILD_OS
1010 OPENJDK_BUILD_AUTOCONF_NAME
1011 OPENJDK_TARGET_AUTOCONF_NAME
1012 target_os
1013 target_vendor
1014 target_cpu
1015 target
1016 host_os
1017 host_vendor
1018 host_cpu
1019 host
1020 build_os
1021 build_vendor
1022 build_cpu
1023 build
1024 PANDOC
1025 NICE
1026 CPIO
1027 DF
1028 READLINK
1029 CYGPATH
1030 SED
1031 FGREP
1032 EGREP
1033 GREP
1034 AWK
1035 XARGS
1036 WHICH
1037 WC
1038 UNIQ
1039 UNAME
1040 TR
1041 TOUCH
1042 TEE
1043 TAR
1044 TAIL
1045 SORT
1046 SH
1047 RMDIR
1048 RM
1049 PRINTF
1050 NAWK
1051 MV
1052 MKTEMP
1053 MKDIR
1054 LS
1055 LN
1056 GZIP
1057 GUNZIP
1058 HEAD
1059 FIND
1060 FILE
1061 EXPR
1062 ECHO
1063 DIRNAME
1064 DIFF
1065 DATE
1066 CUT
1067 CP
1068 COMM
1069 CMP
1070 CHMOD
1071 CAT
1072 BASH
1073 BASENAME
1074 DATE_WHEN_CONFIGURED
1075 ORIGINAL_PATH
1076 CONFIGURE_COMMAND_LINE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir
1096 localstatedir
1097 sharedstatedir
1098 sysconfdir
1099 datadir
1100 datarootdir
1101 libexecdir
1102 sbindir
1103 bindir
1104 program_transform_name
1105 prefix
1106 exec_prefix
1107 PACKAGE_URL
1108 PACKAGE_BUGREPORT
1109 PACKAGE_STRING
1110 PACKAGE_VERSION
1111 PACKAGE_TARNAME
1112 PACKAGE_NAME
1113 PATH_SEPARATOR
1114 SHELL'
1115 ac_subst_files=''
1116 ac_user_opts='
1117 enable_option_checking
1118 with_target_bits
1119 enable_openjdk_only
1120 with_custom_make_dir
1121 with_jdk_variant
1122 enable_debug
1123 with_debug_level
1124 with_jvm_variants
1125 with_cpu_port
1126 with_devkit
1127 with_sys_root
1128 with_sysroot
1129 with_tools_dir
1130 with_toolchain_path
1131 with_extra_path
1132 with_sdk_name
1133 with_conf_name
1134 with_output_sync
1135 with_default_make_target
1136 enable_headless_only
1137 enable_full_docs
1138 with_cacerts_file
1139 enable_unlimited_crypto
1140 with_copyright_year
1141 enable_keep_packaged_modules
1142 with_milestone
1143 with_update_version
1144 with_user_release_suffix
1145 with_build_number
1146 with_version_string
1147 with_version_pre
1148 with_version_opt
1149 with_version_build
1150 with_version_major
1151 with_version_minor
1152 with_version_security
1153 with_version_patch
1154 with_boot_jdk
1155 with_build_jdk
1156 with_import_modules
1157 enable_static_build
1158 with_toolchain_type
1159 with_extra_cflags
1160 with_extra_cxxflags
1161 with_extra_ldflags
1162 with_toolchain_version
1163 with_build_devkit
1164 with_jtreg
1165 with_jib
1166 with_abi_profile
1167 with_macosx_version_max
1168 enable_warnings_as_errors
1169 with_native_debug_symbols
1170 enable_debug_symbols
1171 enable_zip_debug_info
1172 enable_native_coverage
1173 enable_asan
1174 enable_dtrace
1175 enable_aot
1176 enable_cds
1177 enable_hotspot_gtest
1178 with_stdc__lib
1179 with_msvcr_dll
1180 with_msvcp_dll
1181 with_x
1182 with_cups
1183 with_cups_include
1184 with_fontconfig
1185 with_fontconfig_include
1186 with_freetype
1187 with_freetype_include
1188 with_freetype_lib
1189 with_freetype_src
1190 enable_freetype_bundling
1191 with_freetype_license
1192 with_alsa
1193 with_alsa_include
1194 with_alsa_lib
1195 with_libffi
1196 with_libffi_include
1197 with_libffi_lib
1198 enable_libffi_bundling
1199 with_libjpeg
1200 with_giflib
1201 with_libpng
1202 with_zlib
1203 with_lcms
1204 with_dxsdk
1205 with_dxsdk_lib
1206 with_dxsdk_include
1207 with_jvm_features
1208 with_jvm_interpreter
1209 enable_jtreg_failure_handler
1210 enable_generate_classlist
1211 with_num_cores
1212 with_memory_size
1213 with_jobs
1214 with_test_jobs
1215 with_boot_jdk_jvmargs
1216 with_sjavac_server_java
1217 enable_sjavac
1218 enable_javac_server
1219 enable_icecc
1220 enable_precompiled_headers
1221 enable_ccache
1222 with_ccache_dir
1223 '
1224       ac_precious_vars='build_alias
1225 host_alias
1226 target_alias
1227 BASENAME
1228 BASH
1229 CAT
1230 CHMOD
1231 CMP
1232 COMM
1233 CP
1234 CUT
1235 DATE
1236 DIFF
1237 DIRNAME
1238 ECHO
1239 EXPR
1240 FILE
1241 FIND
1242 HEAD
1243 GUNZIP
1244 GZIP
1245 LN
1246 LS
1247 MKDIR
1248 MKTEMP
1249 MV
1250 NAWK
1251 PRINTF
1252 RM
1253 RMDIR
1254 SH
1255 SORT
1256 TAIL
1257 TAR
1258 TEE
1259 TOUCH
1260 TR
1261 UNAME
1262 UNIQ
1263 WC
1264 WHICH
1265 XARGS
1266 AWK
1267 GREP
1268 EGREP
1269 FGREP
1270 SED
1271 CYGPATH
1272 READLINK
1273 DF
1274 CPIO
1275 NICE
1276 PANDOC
1277 MAKE
1278 UNZIP
1279 ZIPEXE
1280 LDD
1281 READELF
1282 DOT
1283 HG
1284 STAT
1285 TIME
1286 FLOCK
1287 DTRACE
1288 PATCH
1289 DSYMUTIL
1290 XATTR
1291 CODESIGN
1292 SETFILE
1293 PKG_CONFIG
1294 JAVA
1295 JAVAC
1296 JAVAH
1297 JAVADOC
1298 JAR
1299 JARSIGNER
1300 CC
1301 CFLAGS
1302 LDFLAGS
1303 LIBS
1304 CPPFLAGS
1305 CXX
1306 CXXFLAGS
1307 CCC
1308 CPP
1309 CXXCPP
1310 AS
1311 AR
1312 LIPO
1313 OTOOL
1314 INSTALL_NAME_TOOL
1315 STRIP
1316 NM
1317 GNM
1318 OBJCOPY
1319 OBJDUMP
1320 BUILD_CC
1321 BUILD_CXX
1322 BUILD_NM
1323 BUILD_AR
1324 BUILD_OBJCOPY
1325 BUILD_STRIP
1326 JTREGEXE
1327 XMKMF
1328 FREETYPE_CFLAGS
1329 FREETYPE_LIBS
1330 ALSA_CFLAGS
1331 ALSA_LIBS
1332 LIBFFI_CFLAGS
1333 LIBFFI_LIBS
1334 PNG_CFLAGS
1335 PNG_LIBS
1336 LCMS_CFLAGS
1337 LCMS_LIBS
1338 ICECC_CMD
1339 ICECC_CREATE_ENV
1340 ICECC_WRAPPER
1341 CCACHE'
1342 
1343 
1344 # Initialize some variables set by options.
1345 ac_init_help=
1346 ac_init_version=false
1347 ac_unrecognized_opts=
1348 ac_unrecognized_sep=
1349 # The variables have the same names as the options, with
1350 # dashes changed to underlines.
1351 cache_file=/dev/null
1352 exec_prefix=NONE
1353 no_create=
1354 no_recursion=
1355 prefix=NONE
1356 program_prefix=NONE
1357 program_suffix=NONE
1358 program_transform_name=s,x,x,
1359 silent=
1360 site=
1361 srcdir=
1362 verbose=
1363 x_includes=NONE
1364 x_libraries=NONE
1365 
1366 # Installation directory options.
1367 # These are left unexpanded so users can "make install exec_prefix=/foo"
1368 # and all the variables that are supposed to be based on exec_prefix
1369 # by default will actually change.
1370 # Use braces instead of parens because sh, perl, etc. also accept them.
1371 # (The list follows the same order as the GNU Coding Standards.)
1372 bindir='${exec_prefix}/bin'
1373 sbindir='${exec_prefix}/sbin'
1374 libexecdir='${exec_prefix}/libexec'
1375 datarootdir='${prefix}/share'
1376 datadir='${datarootdir}'
1377 sysconfdir='${prefix}/etc'
1378 sharedstatedir='${prefix}/com'
1379 localstatedir='${prefix}/var'
1380 includedir='${prefix}/include'
1381 oldincludedir='/usr/include'
1382 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1383 infodir='${datarootdir}/info'
1384 htmldir='${docdir}'
1385 dvidir='${docdir}'
1386 pdfdir='${docdir}'
1387 psdir='${docdir}'
1388 libdir='${exec_prefix}/lib'
1389 localedir='${datarootdir}/locale'
1390 mandir='${datarootdir}/man'
1391 
1392 ac_prev=
1393 ac_dashdash=
1394 for ac_option
1395 do
1396   # If the previous option needs an argument, assign it.
1397   if test -n "$ac_prev"; then
1398     eval $ac_prev=\$ac_option
1399     ac_prev=
1400     continue
1401   fi
1402 
1403   case $ac_option in
1404   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1405   *=)   ac_optarg= ;;
1406   *)    ac_optarg=yes ;;
1407   esac
1408 
1409   # Accept the important Cygnus configure options, so we can diagnose typos.
1410 
1411   case $ac_dashdash$ac_option in
1412   --)
1413     ac_dashdash=yes ;;
1414 
1415   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1416     ac_prev=bindir ;;
1417   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1418     bindir=$ac_optarg ;;
1419 
1420   -build | --build | --buil | --bui | --bu)
1421     ac_prev=build_alias ;;
1422   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1423     build_alias=$ac_optarg ;;
1424 
1425   -cache-file | --cache-file | --cache-fil | --cache-fi \
1426   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1427     ac_prev=cache_file ;;
1428   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1429   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1430     cache_file=$ac_optarg ;;
1431 
1432   --config-cache | -C)
1433     cache_file=config.cache ;;
1434 
1435   -datadir | --datadir | --datadi | --datad)
1436     ac_prev=datadir ;;
1437   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1438     datadir=$ac_optarg ;;
1439 
1440   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1441   | --dataroo | --dataro | --datar)
1442     ac_prev=datarootdir ;;
1443   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1444   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1445     datarootdir=$ac_optarg ;;
1446 
1447   -disable-* | --disable-*)
1448     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1449     # Reject names that are not valid shell variable names.
1450     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451       as_fn_error $? "invalid feature name: $ac_useropt"
1452     ac_useropt_orig=$ac_useropt
1453     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454     case $ac_user_opts in
1455       *"
1456 "enable_$ac_useropt"
1457 "*) ;;
1458       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1459          ac_unrecognized_sep=', ';;
1460     esac
1461     eval enable_$ac_useropt=no ;;
1462 
1463   -docdir | --docdir | --docdi | --doc | --do)
1464     ac_prev=docdir ;;
1465   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1466     docdir=$ac_optarg ;;
1467 
1468   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1469     ac_prev=dvidir ;;
1470   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1471     dvidir=$ac_optarg ;;
1472 
1473   -enable-* | --enable-*)
1474     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1475     # Reject names that are not valid shell variable names.
1476     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1477       as_fn_error $? "invalid feature name: $ac_useropt"
1478     ac_useropt_orig=$ac_useropt
1479     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1480     case $ac_user_opts in
1481       *"
1482 "enable_$ac_useropt"
1483 "*) ;;
1484       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1485          ac_unrecognized_sep=', ';;
1486     esac
1487     eval enable_$ac_useropt=\$ac_optarg ;;
1488 
1489   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1490   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1491   | --exec | --exe | --ex)
1492     ac_prev=exec_prefix ;;
1493   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1494   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1495   | --exec=* | --exe=* | --ex=*)
1496     exec_prefix=$ac_optarg ;;
1497 
1498   -gas | --gas | --ga | --g)
1499     # Obsolete; use --with-gas.
1500     with_gas=yes ;;
1501 
1502   -help | --help | --hel | --he | -h)
1503     ac_init_help=long ;;
1504   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1505     ac_init_help=recursive ;;
1506   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1507     ac_init_help=short ;;
1508 
1509   -host | --host | --hos | --ho)
1510     ac_prev=host_alias ;;
1511   -host=* | --host=* | --hos=* | --ho=*)
1512     host_alias=$ac_optarg ;;
1513 
1514   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1515     ac_prev=htmldir ;;
1516   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1517   | --ht=*)
1518     htmldir=$ac_optarg ;;
1519 
1520   -includedir | --includedir | --includedi | --included | --include \
1521   | --includ | --inclu | --incl | --inc)
1522     ac_prev=includedir ;;
1523   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1524   | --includ=* | --inclu=* | --incl=* | --inc=*)
1525     includedir=$ac_optarg ;;
1526 
1527   -infodir | --infodir | --infodi | --infod | --info | --inf)
1528     ac_prev=infodir ;;
1529   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1530     infodir=$ac_optarg ;;
1531 
1532   -libdir | --libdir | --libdi | --libd)
1533     ac_prev=libdir ;;
1534   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1535     libdir=$ac_optarg ;;
1536 
1537   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1538   | --libexe | --libex | --libe)
1539     ac_prev=libexecdir ;;
1540   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1541   | --libexe=* | --libex=* | --libe=*)
1542     libexecdir=$ac_optarg ;;
1543 
1544   -localedir | --localedir | --localedi | --localed | --locale)
1545     ac_prev=localedir ;;
1546   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1547     localedir=$ac_optarg ;;
1548 
1549   -localstatedir | --localstatedir | --localstatedi | --localstated \
1550   | --localstate | --localstat | --localsta | --localst | --locals)
1551     ac_prev=localstatedir ;;
1552   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1553   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1554     localstatedir=$ac_optarg ;;
1555 
1556   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1557     ac_prev=mandir ;;
1558   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1559     mandir=$ac_optarg ;;
1560 
1561   -nfp | --nfp | --nf)
1562     # Obsolete; use --without-fp.
1563     with_fp=no ;;
1564 
1565   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1566   | --no-cr | --no-c | -n)
1567     no_create=yes ;;
1568 
1569   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1570   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1571     no_recursion=yes ;;
1572 
1573   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1574   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1575   | --oldin | --oldi | --old | --ol | --o)
1576     ac_prev=oldincludedir ;;
1577   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1578   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1579   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1580     oldincludedir=$ac_optarg ;;
1581 
1582   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1583     ac_prev=prefix ;;
1584   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1585     prefix=$ac_optarg ;;
1586 
1587   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1588   | --program-pre | --program-pr | --program-p)
1589     ac_prev=program_prefix ;;
1590   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1591   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1592     program_prefix=$ac_optarg ;;
1593 
1594   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1595   | --program-suf | --program-su | --program-s)
1596     ac_prev=program_suffix ;;
1597   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1598   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1599     program_suffix=$ac_optarg ;;
1600 
1601   -program-transform-name | --program-transform-name \
1602   | --program-transform-nam | --program-transform-na \
1603   | --program-transform-n | --program-transform- \
1604   | --program-transform | --program-transfor \
1605   | --program-transfo | --program-transf \
1606   | --program-trans | --program-tran \
1607   | --progr-tra | --program-tr | --program-t)
1608     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1617 
1618   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1619     ac_prev=pdfdir ;;
1620   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1621     pdfdir=$ac_optarg ;;
1622 
1623   -psdir | --psdir | --psdi | --psd | --ps)
1624     ac_prev=psdir ;;
1625   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1626     psdir=$ac_optarg ;;
1627 
1628   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629   | -silent | --silent | --silen | --sile | --sil)
1630     silent=yes ;;
1631 
1632   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1633     ac_prev=sbindir ;;
1634   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1635   | --sbi=* | --sb=*)
1636     sbindir=$ac_optarg ;;
1637 
1638   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1639   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1640   | --sharedst | --shareds | --shared | --share | --shar \
1641   | --sha | --sh)
1642     ac_prev=sharedstatedir ;;
1643   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1644   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1645   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1646   | --sha=* | --sh=*)
1647     sharedstatedir=$ac_optarg ;;
1648 
1649   -site | --site | --sit)
1650     ac_prev=site ;;
1651   -site=* | --site=* | --sit=*)
1652     site=$ac_optarg ;;
1653 
1654   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1655     ac_prev=srcdir ;;
1656   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1657     srcdir=$ac_optarg ;;
1658 
1659   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1660   | --syscon | --sysco | --sysc | --sys | --sy)
1661     ac_prev=sysconfdir ;;
1662   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1663   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1664     sysconfdir=$ac_optarg ;;
1665 
1666   -target | --target | --targe | --targ | --tar | --ta | --t)
1667     ac_prev=target_alias ;;
1668   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1669     target_alias=$ac_optarg ;;
1670 
1671   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1672     verbose=yes ;;
1673 
1674   -version | --version | --versio | --versi | --vers | -V)
1675     ac_init_version=: ;;
1676 
1677   -with-* | --with-*)
1678     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1679     # Reject names that are not valid shell variable names.
1680     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1681       as_fn_error $? "invalid package name: $ac_useropt"
1682     ac_useropt_orig=$ac_useropt
1683     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1684     case $ac_user_opts in
1685       *"
1686 "with_$ac_useropt"
1687 "*) ;;
1688       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1689          ac_unrecognized_sep=', ';;
1690     esac
1691     eval with_$ac_useropt=\$ac_optarg ;;
1692 
1693   -without-* | --without-*)
1694     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1695     # Reject names that are not valid shell variable names.
1696     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1697       as_fn_error $? "invalid package name: $ac_useropt"
1698     ac_useropt_orig=$ac_useropt
1699     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1700     case $ac_user_opts in
1701       *"
1702 "with_$ac_useropt"
1703 "*) ;;
1704       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1705          ac_unrecognized_sep=', ';;
1706     esac
1707     eval with_$ac_useropt=no ;;
1708 
1709   --x)
1710     # Obsolete; use --with-x.
1711     with_x=yes ;;
1712 
1713   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1714   | --x-incl | --x-inc | --x-in | --x-i)
1715     ac_prev=x_includes ;;
1716   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1717   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1718     x_includes=$ac_optarg ;;
1719 
1720   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1721   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1722     ac_prev=x_libraries ;;
1723   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1724   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1725     x_libraries=$ac_optarg ;;
1726 
1727   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1728 Try \`$0 --help' for more information"
1729     ;;
1730 
1731   *=*)
1732     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1733     # Reject names that are not valid shell variable names.
1734     case $ac_envvar in #(
1735       '' | [0-9]* | *[!_$as_cr_alnum]* )
1736       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1737     esac
1738     eval $ac_envvar=\$ac_optarg
1739     export $ac_envvar ;;
1740 
1741   *)
1742     # FIXME: should be removed in autoconf 3.0.
1743     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1744     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1745       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1746     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1747     ;;
1748 
1749   esac
1750 done
1751 
1752 if test -n "$ac_prev"; then
1753   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1754   as_fn_error $? "missing argument to $ac_option"
1755 fi
1756 
1757 if test -n "$ac_unrecognized_opts"; then
1758   case $enable_option_checking in
1759     no) ;;
1760     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1761     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1762   esac
1763 fi
1764 
1765 # Check all directory arguments for consistency.
1766 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1767                 datadir sysconfdir sharedstatedir localstatedir includedir \
1768                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1769                 libdir localedir mandir
1770 do
1771   eval ac_val=\$$ac_var
1772   # Remove trailing slashes.
1773   case $ac_val in
1774     */ )
1775       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1776       eval $ac_var=\$ac_val;;
1777   esac
1778   # Be sure to have absolute directory names.
1779   case $ac_val in
1780     [\\/$]* | ?:[\\/]* )  continue;;
1781     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1782   esac
1783   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1784 done
1785 
1786 # There might be people who depend on the old broken behavior: `$host'
1787 # used to hold the argument of --host etc.
1788 # FIXME: To remove some day.
1789 build=$build_alias
1790 host=$host_alias
1791 target=$target_alias
1792 
1793 # FIXME: To remove some day.
1794 if test "x$host_alias" != x; then
1795   if test "x$build_alias" = x; then
1796     cross_compiling=maybe
1797   elif test "x$build_alias" != "x$host_alias"; then
1798     cross_compiling=yes
1799   fi
1800 fi
1801 
1802 ac_tool_prefix=
1803 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1804 
1805 test "$silent" = yes && exec 6>/dev/null
1806 
1807 
1808 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1809 ac_ls_di=`ls -di .` &&
1810 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1811   as_fn_error $? "working directory cannot be determined"
1812 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1813   as_fn_error $? "pwd does not report name of working directory"
1814 
1815 
1816 # Find the source files, if location was not specified.
1817 if test -z "$srcdir"; then
1818   ac_srcdir_defaulted=yes
1819   # Try the directory containing this script, then the parent directory.
1820   ac_confdir=`$as_dirname -- "$as_myself" ||
1821 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1822          X"$as_myself" : 'X\(//\)[^/]' \| \
1823          X"$as_myself" : 'X\(//\)$' \| \
1824          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1825 $as_echo X"$as_myself" |
1826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1827             s//\1/
1828             q
1829           }
1830           /^X\(\/\/\)[^/].*/{
1831             s//\1/
1832             q
1833           }
1834           /^X\(\/\/\)$/{
1835             s//\1/
1836             q
1837           }
1838           /^X\(\/\).*/{
1839             s//\1/
1840             q
1841           }
1842           s/.*/./; q'`
1843   srcdir=$ac_confdir
1844   if test ! -r "$srcdir/$ac_unique_file"; then
1845     srcdir=..
1846   fi
1847 else
1848   ac_srcdir_defaulted=no
1849 fi
1850 if test ! -r "$srcdir/$ac_unique_file"; then
1851   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1852   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1853 fi
1854 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1855 ac_abs_confdir=`(
1856         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1857         pwd)`
1858 # When building in place, set srcdir=.
1859 if test "$ac_abs_confdir" = "$ac_pwd"; then
1860   srcdir=.
1861 fi
1862 # Remove unnecessary trailing slashes from srcdir.
1863 # Double slashes in file names in object file debugging info
1864 # mess up M-x gdb in Emacs.
1865 case $srcdir in
1866 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1867 esac
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1870   eval ac_env_${ac_var}_value=\$${ac_var}
1871   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1872   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1873 done
1874 
1875 #
1876 # Report the --help message.
1877 #
1878 if test "$ac_init_help" = "long"; then
1879   # Omit some internal or obsolete options to make the list less imposing.
1880   # This message is too long to be a string in the A/UX 3.1 sh.
1881   cat <<_ACEOF
1882 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1883 
1884 Usage: $0 [OPTION]... [VAR=VALUE]...
1885 
1886 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1887 VAR=VALUE.  See below for descriptions of some of the useful variables.
1888 
1889 Defaults for the options are specified in brackets.
1890 
1891 Configuration:
1892   -h, --help              display this help and exit
1893       --help=short        display options specific to this package
1894       --help=recursive    display the short help of all the included packages
1895   -V, --version           display version information and exit
1896   -q, --quiet, --silent   do not print \`checking ...' messages
1897       --cache-file=FILE   cache test results in FILE [disabled]
1898   -C, --config-cache      alias for \`--cache-file=config.cache'
1899   -n, --no-create         do not create output files
1900       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1901 
1902 Installation directories:
1903   --prefix=PREFIX         install architecture-independent files in PREFIX
1904                           [$ac_default_prefix]
1905   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1906                           [PREFIX]
1907 
1908 By default, \`make install' will install all the files in
1909 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1910 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1911 for instance \`--prefix=\$HOME'.
1912 
1913 For better control, use the options below.
1914 
1915 Fine tuning of the installation directories:
1916   --bindir=DIR            user executables [EPREFIX/bin]
1917   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1918   --libexecdir=DIR        program executables [EPREFIX/libexec]
1919   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1920   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1921   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1922   --libdir=DIR            object code libraries [EPREFIX/lib]
1923   --includedir=DIR        C header files [PREFIX/include]
1924   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1925   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1926   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1927   --infodir=DIR           info documentation [DATAROOTDIR/info]
1928   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1929   --mandir=DIR            man documentation [DATAROOTDIR/man]
1930   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1931   --htmldir=DIR           html documentation [DOCDIR]
1932   --dvidir=DIR            dvi documentation [DOCDIR]
1933   --pdfdir=DIR            pdf documentation [DOCDIR]
1934   --psdir=DIR             ps documentation [DOCDIR]
1935 _ACEOF
1936 
1937   cat <<\_ACEOF
1938 
1939 X features:
1940   --x-includes=DIR    X include files are in DIR
1941   --x-libraries=DIR   X library files are in DIR
1942 
1943 System types:
1944   --build=BUILD     configure for building on BUILD [guessed]
1945   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1946   --target=TARGET   configure for building compilers for TARGET [HOST]
1947 _ACEOF
1948 fi
1949 
1950 if test -n "$ac_init_help"; then
1951   case $ac_init_help in
1952      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1953    esac
1954   cat <<\_ACEOF
1955 
1956 Optional Features:
1957   --disable-option-checking  ignore unrecognized --enable/--with options
1958   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1959   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1960   --enable-openjdk-only   suppress building custom source even if present
1961                           [disabled]
1962   --enable-debug          set the debug level to fastdebug (shorthand for
1963                           --with-debug-level=fastdebug) [disabled]
1964   --enable-headless-only  only build headless (no GUI) support [disabled]
1965   --enable-full-docs      build complete documentation [enabled if all tools
1966                           found]
1967   --disable-unlimited-crypto
1968                           Disable unlimited crypto policy [enabled]
1969   --disable-keep-packaged-modules
1970                           Do not keep packaged modules in jdk image [enable]
1971   --enable-static-build   enable static library build [disabled]
1972   --disable-warnings-as-errors
1973                           do not consider native warnings to be an error
1974                           [enabled]
1975   --enable-debug-symbols  Deprecated. Option is kept for backwards
1976                           compatibility and is ignored
1977   --enable-zip-debug-info Deprecated. Option is kept for backwards
1978                           compatibility and is ignored
1979   --enable-native-coverage
1980                           enable native compilation with code coverage
1981                           data[disabled]
1982   --enable-asan           enable AddressSanitizer if possible [disabled]
1983   --enable-dtrace[=yes/no/auto]
1984                           enable dtrace. Default is auto, where dtrace is
1985                           enabled if all dependencies are present.
1986   --enable-aot[=yes/no/auto]
1987                           enable ahead of time compilation feature. Default is
1988                           auto, where aot is enabled if all dependencies are
1989                           present.
1990   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
1991                           Default is yes.
1992   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1993                           [enabled]
1994   --disable-freetype-bundling
1995                           disable bundling of the freetype library with the
1996                           build result [enabled on Windows or when using
1997                           --with-freetype, disabled otherwise]
1998   --enable-libffi-bundling
1999                           enable bundling of libffi.so to make the built JDK
2000                           runnable on more systems
2001   --enable-jtreg-failure-handler
2002                           forces build of the jtreg failure handler to be
2003                           enabled, missing dependencies become fatal errors.
2004                           Default is auto, where the failure handler is built
2005                           if all dependencies are present and otherwise just
2006                           disabled.
2007   --disable-generate-classlist
2008                           forces enabling or disabling of the generation of a
2009                           CDS classlist at build time. Default is to generate
2010                           it when either the server or client JVMs are built
2011                           and enable-cds is true.
2012   --enable-sjavac         use sjavac to do fast incremental compiles
2013                           [disabled]
2014   --disable-javac-server  disable javac server [enabled]
2015   --enable-icecc          enable distribted compilation of native code using
2016                           icecc/icecream [disabled]
2017   --disable-precompiled-headers
2018                           disable using precompiled headers when compiling C++
2019                           [enabled]
2020   --enable-ccache         enable using ccache to speed up recompilations
2021                           [disabled]
2022 
2023 Optional Packages:
2024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2026   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2027                           support it), e.g. --with-target-bits=32 [guessed]
2028   --with-custom-make-dir  Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-jdk-variant      JDK variant to build (normal) [normal]
2031   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2032                           optimized) [release]
2033   --with-jvm-variants     JVM variants (separated by commas) to build
2034                           (server,client,minimal,core,zero,custom) [server]
2035   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2036                           (arm64,aarch64) [aarch64]
2037   --with-devkit           use this devkit for compilers, tools and resources
2038   --with-sys-root         alias for --with-sysroot for backwards compatability
2039   --with-sysroot          use this directory as sysroot
2040   --with-tools-dir        alias for --with-toolchain-path for backwards
2041                           compatibility
2042   --with-toolchain-path   prepend these directories when searching for
2043                           toolchain binaries (compilers etc)
2044   --with-extra-path       prepend these directories to the default path
2045   --with-sdk-name         use the platform SDK of the given name. [macosx]
2046   --with-conf-name        use this as the name of the configuration [generated
2047                           from important configuration options]
2048   --with-output-sync      set make output sync type if supported by make.
2049                           [recurse]
2050   --with-default-make-target
2051                           set the default make target [exploded-image]
2052   --with-cacerts-file     specify alternative cacerts file
2053   --with-copyright-year   Set copyright year value for build [current year]
2054   --with-milestone        Deprecated. Option is kept for backwards
2055                           compatibility and is ignored
2056   --with-update-version   Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-user-release-suffix
2059                           Deprecated. Option is kept for backwards
2060                           compatibility and is ignored
2061   --with-build-number     Deprecated. Option is kept for backwards
2062                           compatibility and is ignored
2063   --with-version-string   Set version string [calculated]
2064   --with-version-pre      Set the base part of the version 'PRE' field
2065                           (pre-release identifier) ['internal']
2066   --with-version-opt      Set version 'OPT' field (build metadata)
2067                           [<timestamp>.<user>.<dirname>]
2068   --with-version-build    Set version 'BUILD' field (build number) [not
2069                           specified]
2070   --with-version-major    Set version 'MAJOR' field (first number) [current
2071                           source value]
2072   --with-version-minor    Set version 'MINOR' field (second number) [current
2073                           source value]
2074   --with-version-security Set version 'SECURITY' field (third number) [current
2075                           source value]
2076   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2077                           specified]
2078   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2079   --with-build-jdk        path to JDK of same version as is being built[the
2080                           newly built JDK]
2081   --with-import-modules   import a set of prebuilt modules either as a zip
2082                           file or an exploded directory
2083   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2084                           to show possible values [platform dependent]
2085   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2086   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2087   --with-extra-ldflags    extra flags to be used when linking jdk
2088   --with-toolchain-version
2089                           the version of the toolchain to look for, use
2090                           '--help' to show possible values [platform
2091                           dependent]
2092   --with-build-devkit     Devkit to use for the build platform toolchain
2093   --with-jtreg            Regression Test Harness [probed]
2094   --with-jib              Jib dependency management tool [not used]
2095   --with-abi-profile      specify ABI profile for ARM builds
2096                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2097                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2098                           [toolchain dependent]
2099   --with-macosx-version-max
2100                           error on use of newer functionality. [macosx]
2101   --with-native-debug-symbols
2102                           set the native debug symbol configuration (none,
2103                           internal, external, zipped) [varying]
2104   --with-stdc++lib=<static>,<dynamic>,<default>
2105                           force linking of the C++ runtime on Linux to either
2106                           static or dynamic, default is static with dynamic as
2107                           fallback
2108   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2109                           (Windows only) [probed]
2110   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2111                           (Windows only) [probed]
2112   --with-x                use the X Window System
2113   --with-cups             specify prefix directory for the cups package
2114                           (expecting the headers under PATH/include)
2115   --with-cups-include     specify directory for the cups include files
2116   --with-fontconfig       specify prefix directory for the fontconfig package
2117                           (expecting the headers under PATH/include)
2118   --with-fontconfig-include
2119                           specify directory for the fontconfig include files
2120   --with-freetype         specify prefix directory for the freetype package
2121                           (expecting the libraries under PATH/lib and the
2122                           headers under PATH/include)
2123   --with-freetype-include specify directory for the freetype include files
2124   --with-freetype-lib     specify directory for the freetype library
2125   --with-freetype-src     specify directory with freetype sources to
2126                           automatically build the library (experimental,
2127                           Windows-only)
2128   --with-freetype-license if bundling freetype, also bundle this license file
2129   --with-alsa             specify prefix directory for the alsa package
2130                           (expecting the libraries under PATH/lib and the
2131                           headers under PATH/include)
2132   --with-alsa-include     specify directory for the alsa include files
2133   --with-alsa-lib         specify directory for the alsa library
2134   --with-libffi           specify prefix directory for the libffi package
2135                           (expecting the libraries under PATH/lib and the
2136                           headers under PATH/include)
2137   --with-libffi-include   specify directory for the libffi include files
2138   --with-libffi-lib       specify directory for the libffi library
2139   --with-libjpeg          use libjpeg from build system or OpenJDK source
2140                           (system, bundled) [bundled]
2141   --with-giflib           use giflib from build system or OpenJDK source
2142                           (system, bundled) [bundled]
2143   --with-libpng           use libpng from build system or OpenJDK source
2144                           (system, bundled) [bundled]
2145   --with-zlib             use zlib from build system or OpenJDK source
2146                           (system, bundled) [bundled]
2147   --with-lcms             use lcms2 from build system or OpenJDK source
2148                           (system, bundled) [bundled]
2149   --with-dxsdk            Deprecated. Option is kept for backwards
2150                           compatibility and is ignored
2151   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2152                           compatibility and is ignored
2153   --with-dxsdk-include    Deprecated. Option is kept for backwards
2154                           compatibility and is ignored
2155   --with-jvm-features     additional JVM features to enable (separated by
2156                           comma), use '--help' to show possible values [none]
2157   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2158                           compatibility and is ignored
2159   --with-num-cores        number of cores in the build system, e.g.
2160                           --with-num-cores=8 [probed]
2161   --with-memory-size      memory (in MB) available in the build system, e.g.
2162                           --with-memory-size=1024 [probed]
2163   --with-jobs             number of parallel jobs to let make run [calculated
2164                           based on cores and memory]
2165   --with-test-jobs        number of parallel tests jobs to run [based on build
2166                           jobs]
2167   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2168                           invocations of boot JDK, overriding the default
2169                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2170                           -enableassertions"
2171   --with-sjavac-server-java
2172                           use this java binary for running the sjavac
2173                           background server [Boot JDK java]
2174   --with-ccache-dir       where to store ccache files [~/.ccache]
2175 
2176 Some influential environment variables:
2177   BASENAME    Override default value for BASENAME
2178   BASH        Override default value for BASH
2179   CAT         Override default value for CAT
2180   CHMOD       Override default value for CHMOD
2181   CMP         Override default value for CMP
2182   COMM        Override default value for COMM
2183   CP          Override default value for CP
2184   CUT         Override default value for CUT
2185   DATE        Override default value for DATE
2186   DIFF        Override default value for DIFF
2187   DIRNAME     Override default value for DIRNAME
2188   ECHO        Override default value for ECHO
2189   EXPR        Override default value for EXPR
2190   FILE        Override default value for FILE
2191   FIND        Override default value for FIND
2192   HEAD        Override default value for HEAD
2193   GUNZIP      Override default value for GUNZIP
2194   GZIP        Override default value for GZIP
2195   LN          Override default value for LN
2196   LS          Override default value for LS
2197   MKDIR       Override default value for MKDIR
2198   MKTEMP      Override default value for MKTEMP
2199   MV          Override default value for MV
2200   NAWK        Override default value for NAWK
2201   PRINTF      Override default value for PRINTF
2202   RM          Override default value for RM
2203   RMDIR       Override default value for RMDIR
2204   SH          Override default value for SH
2205   SORT        Override default value for SORT
2206   TAIL        Override default value for TAIL
2207   TAR         Override default value for TAR
2208   TEE         Override default value for TEE
2209   TOUCH       Override default value for TOUCH
2210   TR          Override default value for TR
2211   UNAME       Override default value for UNAME
2212   UNIQ        Override default value for UNIQ
2213   WC          Override default value for WC
2214   WHICH       Override default value for WHICH
2215   XARGS       Override default value for XARGS
2216   AWK         Override default value for AWK
2217   GREP        Override default value for GREP
2218   EGREP       Override default value for EGREP
2219   FGREP       Override default value for FGREP
2220   SED         Override default value for SED
2221   CYGPATH     Override default value for CYGPATH
2222   READLINK    Override default value for READLINK
2223   DF          Override default value for DF
2224   CPIO        Override default value for CPIO
2225   NICE        Override default value for NICE
2226   PANDOC      Override default value for PANDOC
2227   MAKE        Override default value for MAKE
2228   UNZIP       Override default value for UNZIP
2229   ZIPEXE      Override default value for ZIPEXE
2230   LDD         Override default value for LDD
2231   READELF     Override default value for READELF
2232   DOT         Override default value for DOT
2233   HG          Override default value for HG
2234   STAT        Override default value for STAT
2235   TIME        Override default value for TIME
2236   FLOCK       Override default value for FLOCK
2237   DTRACE      Override default value for DTRACE
2238   PATCH       Override default value for PATCH
2239   DSYMUTIL    Override default value for DSYMUTIL
2240   XATTR       Override default value for XATTR
2241   CODESIGN    Override default value for CODESIGN
2242   SETFILE     Override default value for SETFILE
2243   PKG_CONFIG  path to pkg-config utility
2244   JAVA        Override default value for JAVA
2245   JAVAC       Override default value for JAVAC
2246   JAVAH       Override default value for JAVAH
2247   JAVADOC     Override default value for JAVADOC
2248   JAR         Override default value for JAR
2249   JARSIGNER   Override default value for JARSIGNER
2250   CC          C compiler command
2251   CFLAGS      C compiler flags
2252   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2253               nonstandard directory <lib dir>
2254   LIBS        libraries to pass to the linker, e.g. -l<library>
2255   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2256               you have headers in a nonstandard directory <include dir>
2257   CXX         C++ compiler command
2258   CXXFLAGS    C++ compiler flags
2259   CPP         C preprocessor
2260   CXXCPP      C++ preprocessor
2261   AS          Override default value for AS
2262   AR          Override default value for AR
2263   LIPO        Override default value for LIPO
2264   OTOOL       Override default value for OTOOL
2265   INSTALL_NAME_TOOL
2266               Override default value for INSTALL_NAME_TOOL
2267   STRIP       Override default value for STRIP
2268   NM          Override default value for NM
2269   GNM         Override default value for GNM
2270   OBJCOPY     Override default value for OBJCOPY
2271   OBJDUMP     Override default value for OBJDUMP
2272   BUILD_CC    Override default value for BUILD_CC
2273   BUILD_CXX   Override default value for BUILD_CXX
2274   BUILD_NM    Override default value for BUILD_NM
2275   BUILD_AR    Override default value for BUILD_AR
2276   BUILD_OBJCOPY
2277               Override default value for BUILD_OBJCOPY
2278   BUILD_STRIP Override default value for BUILD_STRIP
2279   JTREGEXE    Override default value for JTREGEXE
2280   XMKMF       Path to xmkmf, Makefile generator for X Window System
2281   FREETYPE_CFLAGS
2282               C compiler flags for FREETYPE, overriding pkg-config
2283   FREETYPE_LIBS
2284               linker flags for FREETYPE, overriding pkg-config
2285   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2286   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2287   LIBFFI_CFLAGS
2288               C compiler flags for LIBFFI, overriding pkg-config
2289   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2290   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2291   PNG_LIBS    linker flags for PNG, overriding pkg-config
2292   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2293   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2294   ICECC_CMD   Override default value for ICECC_CMD
2295   ICECC_CREATE_ENV
2296               Override default value for ICECC_CREATE_ENV
2297   ICECC_WRAPPER
2298               Override default value for ICECC_WRAPPER
2299   CCACHE      Override default value for CCACHE
2300 
2301 Use these variables to override the choices made by `configure' or to help
2302 it to find libraries and programs with nonstandard names/locations.
2303 
2304 Report bugs to <build-dev@openjdk.java.net>.
2305 OpenJDK home page: <http://openjdk.java.net>.
2306 _ACEOF
2307 ac_status=$?
2308 fi
2309 
2310 if test "$ac_init_help" = "recursive"; then
2311   # If there are subdirs, report their specific --help.
2312   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2313     test -d "$ac_dir" ||
2314       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2315       continue
2316     ac_builddir=.
2317 
2318 case "$ac_dir" in
2319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2320 *)
2321   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2322   # A ".." for each directory in $ac_dir_suffix.
2323   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2324   case $ac_top_builddir_sub in
2325   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2326   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2327   esac ;;
2328 esac
2329 ac_abs_top_builddir=$ac_pwd
2330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2331 # for backward compatibility:
2332 ac_top_builddir=$ac_top_build_prefix
2333 
2334 case $srcdir in
2335   .)  # We are building in place.
2336     ac_srcdir=.
2337     ac_top_srcdir=$ac_top_builddir_sub
2338     ac_abs_top_srcdir=$ac_pwd ;;
2339   [\\/]* | ?:[\\/]* )  # Absolute name.
2340     ac_srcdir=$srcdir$ac_dir_suffix;
2341     ac_top_srcdir=$srcdir
2342     ac_abs_top_srcdir=$srcdir ;;
2343   *) # Relative name.
2344     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2345     ac_top_srcdir=$ac_top_build_prefix$srcdir
2346     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2347 esac
2348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2349 
2350     cd "$ac_dir" || { ac_status=$?; continue; }
2351     # Check for guested configure.
2352     if test -f "$ac_srcdir/configure.gnu"; then
2353       echo &&
2354       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2355     elif test -f "$ac_srcdir/configure"; then
2356       echo &&
2357       $SHELL "$ac_srcdir/configure" --help=recursive
2358     else
2359       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2360     fi || ac_status=$?
2361     cd "$ac_pwd" || { ac_status=$?; break; }
2362   done
2363 fi
2364 
2365 test -n "$ac_init_help" && exit $ac_status
2366 if $ac_init_version; then
2367   cat <<\_ACEOF
2368 OpenJDK configure jdk9
2369 generated by GNU Autoconf 2.69
2370 
2371 Copyright (C) 2012 Free Software Foundation, Inc.
2372 This configure script is free software; the Free Software Foundation
2373 gives unlimited permission to copy, distribute and modify it.
2374 _ACEOF
2375   exit
2376 fi
2377 
2378 ## ------------------------ ##
2379 ## Autoconf initialization. ##
2380 ## ------------------------ ##
2381 
2382 # ac_fn_c_try_compile LINENO
2383 # --------------------------
2384 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_c_try_compile ()
2386 {
2387   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388   rm -f conftest.$ac_objext
2389   if { { ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396   (eval "$ac_compile") 2>conftest.err
2397   ac_status=$?
2398   if test -s conftest.err; then
2399     grep -v '^ *+' conftest.err >conftest.er1
2400     cat conftest.er1 >&5
2401     mv -f conftest.er1 conftest.err
2402   fi
2403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404   test $ac_status = 0; } && {
2405          test -z "$ac_c_werror_flag" ||
2406          test ! -s conftest.err
2407        } && test -s conftest.$ac_objext; then :
2408   ac_retval=0
2409 else
2410   $as_echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412 
2413         ac_retval=1
2414 fi
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416   as_fn_set_status $ac_retval
2417 
2418 } # ac_fn_c_try_compile
2419 
2420 # ac_fn_cxx_try_compile LINENO
2421 # ----------------------------
2422 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2423 ac_fn_cxx_try_compile ()
2424 {
2425   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426   rm -f conftest.$ac_objext
2427   if { { ac_try="$ac_compile"
2428 case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433 $as_echo "$ac_try_echo"; } >&5
2434   (eval "$ac_compile") 2>conftest.err
2435   ac_status=$?
2436   if test -s conftest.err; then
2437     grep -v '^ *+' conftest.err >conftest.er1
2438     cat conftest.er1 >&5
2439     mv -f conftest.er1 conftest.err
2440   fi
2441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442   test $ac_status = 0; } && {
2443          test -z "$ac_cxx_werror_flag" ||
2444          test ! -s conftest.err
2445        } && test -s conftest.$ac_objext; then :
2446   ac_retval=0
2447 else
2448   $as_echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450 
2451         ac_retval=1
2452 fi
2453   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454   as_fn_set_status $ac_retval
2455 
2456 } # ac_fn_cxx_try_compile
2457 
2458 # ac_fn_c_try_cpp LINENO
2459 # ----------------------
2460 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2461 ac_fn_c_try_cpp ()
2462 {
2463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464   if { { ac_try="$ac_cpp conftest.$ac_ext"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2472   ac_status=$?
2473   if test -s conftest.err; then
2474     grep -v '^ *+' conftest.err >conftest.er1
2475     cat conftest.er1 >&5
2476     mv -f conftest.er1 conftest.err
2477   fi
2478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479   test $ac_status = 0; } > conftest.i && {
2480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2481          test ! -s conftest.err
2482        }; then :
2483   ac_retval=0
2484 else
2485   $as_echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487 
2488     ac_retval=1
2489 fi
2490   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491   as_fn_set_status $ac_retval
2492 
2493 } # ac_fn_c_try_cpp
2494 
2495 # ac_fn_cxx_try_cpp LINENO
2496 # ------------------------
2497 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2498 ac_fn_cxx_try_cpp ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   if { { ac_try="$ac_cpp conftest.$ac_ext"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2509   ac_status=$?
2510   if test -s conftest.err; then
2511     grep -v '^ *+' conftest.err >conftest.er1
2512     cat conftest.er1 >&5
2513     mv -f conftest.er1 conftest.err
2514   fi
2515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2516   test $ac_status = 0; } > conftest.i && {
2517          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2518          test ! -s conftest.err
2519        }; then :
2520   ac_retval=0
2521 else
2522   $as_echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524 
2525     ac_retval=1
2526 fi
2527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528   as_fn_set_status $ac_retval
2529 
2530 } # ac_fn_cxx_try_cpp
2531 
2532 # ac_fn_c_try_link LINENO
2533 # -----------------------
2534 # Try to link conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_c_try_link ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   rm -f conftest.$ac_objext conftest$ac_exeext
2539   if { { ac_try="$ac_link"
2540 case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2545 $as_echo "$ac_try_echo"; } >&5
2546   (eval "$ac_link") 2>conftest.err
2547   ac_status=$?
2548   if test -s conftest.err; then
2549     grep -v '^ *+' conftest.err >conftest.er1
2550     cat conftest.er1 >&5
2551     mv -f conftest.er1 conftest.err
2552   fi
2553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554   test $ac_status = 0; } && {
2555          test -z "$ac_c_werror_flag" ||
2556          test ! -s conftest.err
2557        } && test -s conftest$ac_exeext && {
2558          test "$cross_compiling" = yes ||
2559          test -x conftest$ac_exeext
2560        }; then :
2561   ac_retval=0
2562 else
2563   $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565 
2566         ac_retval=1
2567 fi
2568   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2569   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2570   # interfere with the next link command; also delete a directory that is
2571   # left behind by Apple's compiler.  We do this before executing the actions.
2572   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2573   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2574   as_fn_set_status $ac_retval
2575 
2576 } # ac_fn_c_try_link
2577 
2578 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2579 # ---------------------------------------------------------
2580 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2581 # the include files in INCLUDES and setting the cache variable VAR
2582 # accordingly.
2583 ac_fn_cxx_check_header_mongrel ()
2584 {
2585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586   if eval \${$3+:} false; then :
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if eval \${$3+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 fi
2592 eval ac_res=\$$3
2593                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 else
2596   # Is the header compilable?
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2598 $as_echo_n "checking $2 usability... " >&6; }
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h.  */
2601 $4
2602 #include <$2>
2603 _ACEOF
2604 if ac_fn_cxx_try_compile "$LINENO"; then :
2605   ac_header_compiler=yes
2606 else
2607   ac_header_compiler=no
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2611 $as_echo "$ac_header_compiler" >&6; }
2612 
2613 # Is the header present?
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2615 $as_echo_n "checking $2 presence... " >&6; }
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 #include <$2>
2619 _ACEOF
2620 if ac_fn_cxx_try_cpp "$LINENO"; then :
2621   ac_header_preproc=yes
2622 else
2623   ac_header_preproc=no
2624 fi
2625 rm -f conftest.err conftest.i conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2627 $as_echo "$ac_header_preproc" >&6; }
2628 
2629 # So?  What about this header?
2630 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2631   yes:no: )
2632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2633 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2636     ;;
2637   no:yes:* )
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2639 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2641 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2643 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2645 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2648 ( $as_echo "## ----------------------------------------- ##
2649 ## Report this to build-dev@openjdk.java.net ##
2650 ## ----------------------------------------- ##"
2651      ) | sed "s/^/$as_me: WARNING:     /" >&2
2652     ;;
2653 esac
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655 $as_echo_n "checking for $2... " >&6; }
2656 if eval \${$3+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   eval "$3=\$ac_header_compiler"
2660 fi
2661 eval ac_res=\$$3
2662                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663 $as_echo "$ac_res" >&6; }
2664 fi
2665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666 
2667 } # ac_fn_cxx_check_header_mongrel
2668 
2669 # ac_fn_cxx_try_run LINENO
2670 # ------------------------
2671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2672 # that executables *can* be run.
2673 ac_fn_cxx_try_run ()
2674 {
2675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676   if { { ac_try="$ac_link"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683   (eval "$ac_link") 2>&5
2684   ac_status=$?
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2687   { { case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_try") 2>&5
2694   ac_status=$?
2695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696   test $ac_status = 0; }; }; then :
2697   ac_retval=0
2698 else
2699   $as_echo "$as_me: program exited with status $ac_status" >&5
2700        $as_echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702 
2703        ac_retval=$ac_status
2704 fi
2705   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707   as_fn_set_status $ac_retval
2708 
2709 } # ac_fn_cxx_try_run
2710 
2711 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2712 # ---------------------------------------------------------
2713 # Tests whether HEADER exists and can be compiled using the include files in
2714 # INCLUDES, setting the cache variable VAR accordingly.
2715 ac_fn_cxx_check_header_compile ()
2716 {
2717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719 $as_echo_n "checking for $2... " >&6; }
2720 if eval \${$3+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h.  */
2725 $4
2726 #include <$2>
2727 _ACEOF
2728 if ac_fn_cxx_try_compile "$LINENO"; then :
2729   eval "$3=yes"
2730 else
2731   eval "$3=no"
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 fi
2735 eval ac_res=\$$3
2736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737 $as_echo "$ac_res" >&6; }
2738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2739 
2740 } # ac_fn_cxx_check_header_compile
2741 
2742 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2743 # ----------------------------------------------
2744 # Tries to find the compile-time value of EXPR in a program that includes
2745 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2746 # computed
2747 ac_fn_cxx_compute_int ()
2748 {
2749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750   if test "$cross_compiling" = yes; then
2751     # Depending upon the size, compute the lo and hi bounds.
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h.  */
2754 $4
2755 int
2756 main ()
2757 {
2758 static int test_array [1 - 2 * !(($2) >= 0)];
2759 test_array [0] = 0;
2760 return test_array [0];
2761 
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_cxx_try_compile "$LINENO"; then :
2767   ac_lo=0 ac_mid=0
2768   while :; do
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) <= $ac_mid)];
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_hi=$ac_mid; break
2785 else
2786   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2787                         if test $ac_lo -le $ac_mid; then
2788                           ac_lo= ac_hi=
2789                           break
2790                         fi
2791                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2792 fi
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794   done
2795 else
2796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h.  */
2798 $4
2799 int
2800 main ()
2801 {
2802 static int test_array [1 - 2 * !(($2) < 0)];
2803 test_array [0] = 0;
2804 return test_array [0];
2805 
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 if ac_fn_cxx_try_compile "$LINENO"; then :
2811   ac_hi=-1 ac_mid=-1
2812   while :; do
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) >= $ac_mid)];
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_lo=$ac_mid; break
2829 else
2830   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2831                         if test $ac_mid -le $ac_hi; then
2832                           ac_lo= ac_hi=
2833                           break
2834                         fi
2835                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2836 fi
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838   done
2839 else
2840   ac_lo= ac_hi=
2841 fi
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 # Binary search between lo and hi bounds.
2846 while test "x$ac_lo" != "x$ac_hi"; do
2847   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h.  */
2850 $4
2851 int
2852 main ()
2853 {
2854 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2855 test_array [0] = 0;
2856 return test_array [0];
2857 
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 if ac_fn_cxx_try_compile "$LINENO"; then :
2863   ac_hi=$ac_mid
2864 else
2865   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 done
2869 case $ac_lo in #((
2870 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2871 '') ac_retval=1 ;;
2872 esac
2873   else
2874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 $4
2877 static long int longval () { return $2; }
2878 static unsigned long int ulongval () { return $2; }
2879 #include <stdio.h>
2880 #include <stdlib.h>
2881 int
2882 main ()
2883 {
2884 
2885   FILE *f = fopen ("conftest.val", "w");
2886   if (! f)
2887     return 1;
2888   if (($2) < 0)
2889     {
2890       long int i = longval ();
2891       if (i != ($2))
2892         return 1;
2893       fprintf (f, "%ld", i);
2894     }
2895   else
2896     {
2897       unsigned long int i = ulongval ();
2898       if (i != ($2))
2899         return 1;
2900       fprintf (f, "%lu", i);
2901     }
2902   /* Do not output a trailing newline, as this causes \r\n confusion
2903      on some platforms.  */
2904   return ferror (f) || fclose (f) != 0;
2905 
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 if ac_fn_cxx_try_run "$LINENO"; then :
2911   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2912 else
2913   ac_retval=1
2914 fi
2915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2916   conftest.$ac_objext conftest.beam conftest.$ac_ext
2917 rm -f conftest.val
2918 
2919   fi
2920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921   as_fn_set_status $ac_retval
2922 
2923 } # ac_fn_cxx_compute_int
2924 
2925 # ac_fn_cxx_try_link LINENO
2926 # -------------------------
2927 # Try to link conftest.$ac_ext, and return whether this succeeded.
2928 ac_fn_cxx_try_link ()
2929 {
2930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2931   rm -f conftest.$ac_objext conftest$ac_exeext
2932   if { { ac_try="$ac_link"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939   (eval "$ac_link") 2>conftest.err
2940   ac_status=$?
2941   if test -s conftest.err; then
2942     grep -v '^ *+' conftest.err >conftest.er1
2943     cat conftest.er1 >&5
2944     mv -f conftest.er1 conftest.err
2945   fi
2946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947   test $ac_status = 0; } && {
2948          test -z "$ac_cxx_werror_flag" ||
2949          test ! -s conftest.err
2950        } && test -s conftest$ac_exeext && {
2951          test "$cross_compiling" = yes ||
2952          test -x conftest$ac_exeext
2953        }; then :
2954   ac_retval=0
2955 else
2956   $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958 
2959         ac_retval=1
2960 fi
2961   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2962   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2963   # interfere with the next link command; also delete a directory that is
2964   # left behind by Apple's compiler.  We do this before executing the actions.
2965   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2967   as_fn_set_status $ac_retval
2968 
2969 } # ac_fn_cxx_try_link
2970 
2971 # ac_fn_cxx_check_func LINENO FUNC VAR
2972 # ------------------------------------
2973 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2974 ac_fn_cxx_check_func ()
2975 {
2976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2978 $as_echo_n "checking for $2... " >&6; }
2979 if eval \${$3+:} false; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h.  */
2984 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2986 #define $2 innocuous_$2
2987 
2988 /* System header to define __stub macros and hopefully few prototypes,
2989     which can conflict with char $2 (); below.
2990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2991     <limits.h> exists even on freestanding compilers.  */
2992 
2993 #ifdef __STDC__
2994 # include <limits.h>
2995 #else
2996 # include <assert.h>
2997 #endif
2998 
2999 #undef $2
3000 
3001 /* Override any GCC internal prototype to avoid an error.
3002    Use char because int might match the return type of a GCC
3003    builtin and then its argument prototype would still apply.  */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 char $2 ();
3008 /* The GNU C library defines this for functions which it implements
3009     to always fail with ENOSYS.  Some functions are actually named
3010     something starting with __ and the normal name is an alias.  */
3011 #if defined __stub_$2 || defined __stub___$2
3012 choke me
3013 #endif
3014 
3015 int
3016 main ()
3017 {
3018 return $2 ();
3019   ;
3020   return 0;
3021 }
3022 _ACEOF
3023 if ac_fn_cxx_try_link "$LINENO"; then :
3024   eval "$3=yes"
3025 else
3026   eval "$3=no"
3027 fi
3028 rm -f core conftest.err conftest.$ac_objext \
3029     conftest$ac_exeext conftest.$ac_ext
3030 fi
3031 eval ac_res=\$$3
3032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3033 $as_echo "$ac_res" >&6; }
3034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3035 
3036 } # ac_fn_cxx_check_func
3037 
3038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3039 # -------------------------------------------------------
3040 # Tests whether HEADER exists and can be compiled using the include files in
3041 # INCLUDES, setting the cache variable VAR accordingly.
3042 ac_fn_c_check_header_compile ()
3043 {
3044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3046 $as_echo_n "checking for $2... " >&6; }
3047 if eval \${$3+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h.  */
3052 $4
3053 #include <$2>
3054 _ACEOF
3055 if ac_fn_c_try_compile "$LINENO"; then :
3056   eval "$3=yes"
3057 else
3058   eval "$3=no"
3059 fi
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 fi
3062 eval ac_res=\$$3
3063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3064 $as_echo "$ac_res" >&6; }
3065   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3066 
3067 } # ac_fn_c_check_header_compile
3068 cat >config.log <<_ACEOF
3069 This file contains any messages produced by compilers while
3070 running configure, to aid debugging if configure makes a mistake.
3071 
3072 It was created by OpenJDK $as_me jdk9, which was
3073 generated by GNU Autoconf 2.69.  Invocation command line was
3074 
3075   $ $0 $@
3076 
3077 _ACEOF
3078 exec 5>>config.log
3079 {
3080 cat <<_ASUNAME
3081 ## --------- ##
3082 ## Platform. ##
3083 ## --------- ##
3084 
3085 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3086 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3087 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3088 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3089 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3090 
3091 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3092 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3093 
3094 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3095 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3096 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3097 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3098 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3099 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3100 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3101 
3102 _ASUNAME
3103 
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     $as_echo "PATH: $as_dir"
3110   done
3111 IFS=$as_save_IFS
3112 
3113 } >&5
3114 
3115 cat >&5 <<_ACEOF
3116 
3117 
3118 ## ----------- ##
3119 ## Core tests. ##
3120 ## ----------- ##
3121 
3122 _ACEOF
3123 
3124 
3125 # Keep a trace of the command line.
3126 # Strip out --no-create and --no-recursion so they do not pile up.
3127 # Strip out --silent because we don't want to record it for future runs.
3128 # Also quote any args containing shell meta-characters.
3129 # Make two passes to allow for proper duplicate-argument suppression.
3130 ac_configure_args=
3131 ac_configure_args0=
3132 ac_configure_args1=
3133 ac_must_keep_next=false
3134 for ac_pass in 1 2
3135 do
3136   for ac_arg
3137   do
3138     case $ac_arg in
3139     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3140     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3141     | -silent | --silent | --silen | --sile | --sil)
3142       continue ;;
3143     *\'*)
3144       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3145     esac
3146     case $ac_pass in
3147     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3148     2)
3149       as_fn_append ac_configure_args1 " '$ac_arg'"
3150       if test $ac_must_keep_next = true; then
3151         ac_must_keep_next=false # Got value, back to normal.
3152       else
3153         case $ac_arg in
3154           *=* | --config-cache | -C | -disable-* | --disable-* \
3155           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3156           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3157           | -with-* | --with-* | -without-* | --without-* | --x)
3158             case "$ac_configure_args0 " in
3159               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3160             esac
3161             ;;
3162           -* ) ac_must_keep_next=true ;;
3163         esac
3164       fi
3165       as_fn_append ac_configure_args " '$ac_arg'"
3166       ;;
3167     esac
3168   done
3169 done
3170 { ac_configure_args0=; unset ac_configure_args0;}
3171 { ac_configure_args1=; unset ac_configure_args1;}
3172 
3173 # When interrupted or exit'd, cleanup temporary files, and complete
3174 # config.log.  We remove comments because anyway the quotes in there
3175 # would cause problems or look ugly.
3176 # WARNING: Use '\'' to represent an apostrophe within the trap.
3177 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3178 trap 'exit_status=$?
3179   # Save into config.log some information that might help in debugging.
3180   {
3181     echo
3182 
3183     $as_echo "## ---------------- ##
3184 ## Cache variables. ##
3185 ## ---------------- ##"
3186     echo
3187     # The following way of writing the cache mishandles newlines in values,
3188 (
3189   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3190     eval ac_val=\$$ac_var
3191     case $ac_val in #(
3192     *${as_nl}*)
3193       case $ac_var in #(
3194       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3196       esac
3197       case $ac_var in #(
3198       _ | IFS | as_nl) ;; #(
3199       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3200       *) { eval $ac_var=; unset $ac_var;} ;;
3201       esac ;;
3202     esac
3203   done
3204   (set) 2>&1 |
3205     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3206     *${as_nl}ac_space=\ *)
3207       sed -n \
3208         "s/'\''/'\''\\\\'\'''\''/g;
3209           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3210       ;; #(
3211     *)
3212       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3213       ;;
3214     esac |
3215     sort
3216 )
3217     echo
3218 
3219     $as_echo "## ----------------- ##
3220 ## Output variables. ##
3221 ## ----------------- ##"
3222     echo
3223     for ac_var in $ac_subst_vars
3224     do
3225       eval ac_val=\$$ac_var
3226       case $ac_val in
3227       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3228       esac
3229       $as_echo "$ac_var='\''$ac_val'\''"
3230     done | sort
3231     echo
3232 
3233     if test -n "$ac_subst_files"; then
3234       $as_echo "## ------------------- ##
3235 ## File substitutions. ##
3236 ## ------------------- ##"
3237       echo
3238       for ac_var in $ac_subst_files
3239       do
3240         eval ac_val=\$$ac_var
3241         case $ac_val in
3242         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3243         esac
3244         $as_echo "$ac_var='\''$ac_val'\''"
3245       done | sort
3246       echo
3247     fi
3248 
3249     if test -s confdefs.h; then
3250       $as_echo "## ----------- ##
3251 ## confdefs.h. ##
3252 ## ----------- ##"
3253       echo
3254       cat confdefs.h
3255       echo
3256     fi
3257     test "$ac_signal" != 0 &&
3258       $as_echo "$as_me: caught signal $ac_signal"
3259     $as_echo "$as_me: exit $exit_status"
3260   } >&5
3261   rm -f core *.core core.conftest.* &&
3262     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3263     exit $exit_status
3264 ' 0
3265 for ac_signal in 1 2 13 15; do
3266   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3267 done
3268 ac_signal=0
3269 
3270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3271 rm -f -r conftest* confdefs.h
3272 
3273 $as_echo "/* confdefs.h */" > confdefs.h
3274 
3275 # Predefined preprocessor variables.
3276 
3277 cat >>confdefs.h <<_ACEOF
3278 #define PACKAGE_NAME "$PACKAGE_NAME"
3279 _ACEOF
3280 
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3283 _ACEOF
3284 
3285 cat >>confdefs.h <<_ACEOF
3286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3287 _ACEOF
3288 
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_STRING "$PACKAGE_STRING"
3291 _ACEOF
3292 
3293 cat >>confdefs.h <<_ACEOF
3294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3295 _ACEOF
3296 
3297 cat >>confdefs.h <<_ACEOF
3298 #define PACKAGE_URL "$PACKAGE_URL"
3299 _ACEOF
3300 
3301 
3302 # Let the site file select an alternate cache file if it wants to.
3303 # Prefer an explicitly selected file to automatically selected ones.
3304 ac_site_file1=NONE
3305 ac_site_file2=NONE
3306 if test -n "$CONFIG_SITE"; then
3307   # We do not want a PATH search for config.site.
3308   case $CONFIG_SITE in #((
3309     -*)  ac_site_file1=./$CONFIG_SITE;;
3310     */*) ac_site_file1=$CONFIG_SITE;;
3311     *)   ac_site_file1=./$CONFIG_SITE;;
3312   esac
3313 elif test "x$prefix" != xNONE; then
3314   ac_site_file1=$prefix/share/config.site
3315   ac_site_file2=$prefix/etc/config.site
3316 else
3317   ac_site_file1=$ac_default_prefix/share/config.site
3318   ac_site_file2=$ac_default_prefix/etc/config.site
3319 fi
3320 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3321 do
3322   test "x$ac_site_file" = xNONE && continue
3323   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3324     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3325 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3326     sed 's/^/| /' "$ac_site_file" >&5
3327     . "$ac_site_file" \
3328       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error $? "failed to load site script $ac_site_file
3331 See \`config.log' for more details" "$LINENO" 5; }
3332   fi
3333 done
3334 
3335 if test -r "$cache_file"; then
3336   # Some versions of bash will fail to source /dev/null (special files
3337   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3338   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3339     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3340 $as_echo "$as_me: loading cache $cache_file" >&6;}
3341     case $cache_file in
3342       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3343       *)                      . "./$cache_file";;
3344     esac
3345   fi
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3348 $as_echo "$as_me: creating cache $cache_file" >&6;}
3349   >$cache_file
3350 fi
3351 
3352 # Check that the precious variables saved in the cache have kept the same
3353 # value.
3354 ac_cache_corrupted=false
3355 for ac_var in $ac_precious_vars; do
3356   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3357   eval ac_new_set=\$ac_env_${ac_var}_set
3358   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3359   eval ac_new_val=\$ac_env_${ac_var}_value
3360   case $ac_old_set,$ac_new_set in
3361     set,)
3362       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3363 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3364       ac_cache_corrupted=: ;;
3365     ,set)
3366       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3367 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3368       ac_cache_corrupted=: ;;
3369     ,);;
3370     *)
3371       if test "x$ac_old_val" != "x$ac_new_val"; then
3372         # differences in whitespace do not lead to failure.
3373         ac_old_val_w=`echo x $ac_old_val`
3374         ac_new_val_w=`echo x $ac_new_val`
3375         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3376           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3378           ac_cache_corrupted=:
3379         else
3380           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3382           eval $ac_var=\$ac_old_val
3383         fi
3384         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3385 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3386         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3387 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3388       fi;;
3389   esac
3390   # Pass precious variables to config.status.
3391   if test "$ac_new_set" = set; then
3392     case $ac_new_val in
3393     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3394     *) ac_arg=$ac_var=$ac_new_val ;;
3395     esac
3396     case " $ac_configure_args " in
3397       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3398       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3399     esac
3400   fi
3401 done
3402 if $ac_cache_corrupted; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3407   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3408 fi
3409 ## -------------------- ##
3410 ## Main body of script. ##
3411 ## -------------------- ##
3412 
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 
3419 
3420 
3421 ac_aux_dir=
3422 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3423   if test -f "$ac_dir/install-sh"; then
3424     ac_aux_dir=$ac_dir
3425     ac_install_sh="$ac_aux_dir/install-sh -c"
3426     break
3427   elif test -f "$ac_dir/install.sh"; then
3428     ac_aux_dir=$ac_dir
3429     ac_install_sh="$ac_aux_dir/install.sh -c"
3430     break
3431   elif test -f "$ac_dir/shtool"; then
3432     ac_aux_dir=$ac_dir
3433     ac_install_sh="$ac_aux_dir/shtool install -c"
3434     break
3435   fi
3436 done
3437 if test -z "$ac_aux_dir"; then
3438   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
3439 fi
3440 
3441 # These three variables are undocumented and unsupported,
3442 # and are intended to be withdrawn in a future Autoconf release.
3443 # They can cause serious problems if a builder's source tree is in a directory
3444 # whose full name contains unusual characters.
3445 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3446 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3447 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3448 
3449 
3450 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3451 
3452 #
3453 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3454 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3455 #
3456 # This code is free software; you can redistribute it and/or modify it
3457 # under the terms of the GNU General Public License version 2 only, as
3458 # published by the Free Software Foundation.  Oracle designates this
3459 # particular file as subject to the "Classpath" exception as provided
3460 # by Oracle in the LICENSE file that accompanied this code.
3461 #
3462 # This code is distributed in the hope that it will be useful, but WITHOUT
3463 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3464 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3465 # version 2 for more details (a copy is included in the LICENSE file that
3466 # accompanied this code).
3467 #
3468 # You should have received a copy of the GNU General Public License version
3469 # 2 along with this work; if not, write to the Free Software Foundation,
3470 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3471 #
3472 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3473 # or visit www.oracle.com if you need additional information or have any
3474 # questions.
3475 #
3476 
3477 #
3478 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3479 #
3480 # This program is free software; you can redistribute it and/or modify
3481 # it under the terms of the GNU General Public License as published by
3482 # the Free Software Foundation; either version 2 of the License, or
3483 # (at your option) any later version.
3484 #
3485 # This program is distributed in the hope that it will be useful, but
3486 # WITHOUT ANY WARRANTY; without even the implied warranty of
3487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3488 # General Public License for more details.
3489 #
3490 # You should have received a copy of the GNU General Public License
3491 # along with this program; if not, write to the Free Software
3492 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3493 #
3494 # As a special exception to the GNU General Public License, if you
3495 # distribute this file as part of a program that contains a
3496 # configuration script generated by Autoconf, you may include it under
3497 # the same distribution terms that you use for the rest of that program.
3498 
3499 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3500 # ----------------------------------
3501 # PKG_PROG_PKG_CONFIG
3502 
3503 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3504 #
3505 # Check to see whether a particular set of modules exists.  Similar
3506 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3507 #
3508 #
3509 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3510 # this or PKG_CHECK_MODULES is called, or make sure to call
3511 # PKG_CHECK_EXISTS manually
3512 # --------------------------------------------------------------
3513 
3514 
3515 
3516 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3517 # ---------------------------------------------
3518 # _PKG_CONFIG
3519 
3520 # _PKG_SHORT_ERRORS_SUPPORTED
3521 # -----------------------------
3522 # _PKG_SHORT_ERRORS_SUPPORTED
3523 
3524 
3525 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3526 # [ACTION-IF-NOT-FOUND])
3527 #
3528 #
3529 # Note that if there is a possibility the first call to
3530 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3531 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3532 #
3533 #
3534 # --------------------------------------------------------------
3535 # PKG_CHECK_MODULES
3536 
3537 
3538 # Include these first...
3539 #
3540 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3541 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3542 #
3543 # This code is free software; you can redistribute it and/or modify it
3544 # under the terms of the GNU General Public License version 2 only, as
3545 # published by the Free Software Foundation.  Oracle designates this
3546 # particular file as subject to the "Classpath" exception as provided
3547 # by Oracle in the LICENSE file that accompanied this code.
3548 #
3549 # This code is distributed in the hope that it will be useful, but WITHOUT
3550 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3551 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3552 # version 2 for more details (a copy is included in the LICENSE file that
3553 # accompanied this code).
3554 #
3555 # You should have received a copy of the GNU General Public License version
3556 # 2 along with this work; if not, write to the Free Software Foundation,
3557 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3558 #
3559 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3560 # or visit www.oracle.com if you need additional information or have any
3561 # questions.
3562 #
3563 
3564 # Create a function/macro that takes a series of named arguments. The call is
3565 # similar to AC_DEFUN, but the setup of the function looks like this:
3566 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3567 # ... do something
3568 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3569 # ])
3570 # A star (*) in front of a named argument means that it is required and it's
3571 # presence will be verified. To pass e.g. the first value as a normal indexed
3572 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3573 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3574 # "ARG_FOO".
3575 #
3576 # The generated function can be called like this:
3577 # MYFUNC(FOO: [foo-val],
3578 #     BAR: [
3579 #         $ECHO hello world
3580 #     ])
3581 # Note that the argument value must start on the same line as the argument name.
3582 #
3583 # Argument 1: Name of the function to define
3584 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3585 # Argument 3: Argument array to treat as named, typically $@
3586 # Argument 4: The main function body
3587 
3588 
3589 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3590 # If so, then append $1 to $2 \
3591 # Also set JVM_ARG_OK to true/false depending on outcome.
3592 
3593 
3594 # Appends a string to a path variable, only adding the : when needed.
3595 
3596 
3597 # Prepends a string to a path variable, only adding the : when needed.
3598 
3599 
3600 # This will make sure the given variable points to a full and proper
3601 # path. This means:
3602 # 1) There will be no spaces in the path. On unix platforms,
3603 #    spaces in the path will result in an error. On Windows,
3604 #    the path will be rewritten using short-style to be space-free.
3605 # 2) The path will be absolute, and it will be in unix-style (on
3606 #     cygwin).
3607 # $1: The name of the variable to fix
3608 
3609 
3610 # This will make sure the given variable points to a executable
3611 # with a full and proper path. This means:
3612 # 1) There will be no spaces in the path. On unix platforms,
3613 #    spaces in the path will result in an error. On Windows,
3614 #    the path will be rewritten using short-style to be space-free.
3615 # 2) The path will be absolute, and it will be in unix-style (on
3616 #     cygwin).
3617 # Any arguments given to the executable is preserved.
3618 # If the input variable does not have a directory specification, then
3619 # it need to be in the PATH.
3620 # $1: The name of the variable to fix
3621 
3622 
3623 
3624 
3625 # Register a --with argument but mark it as deprecated
3626 # $1: The name of the with argument to deprecate, not including --with-
3627 
3628 
3629 # Register a --enable argument but mark it as deprecated
3630 # $1: The name of the with argument to deprecate, not including --enable-
3631 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3632 # $3: Messages to user.
3633 
3634 
3635 
3636 
3637 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3638 # $1: variable to check
3639 
3640 
3641 # Check that there are no unprocessed overridden variables left.
3642 # If so, they are an incorrect argument and we will exit with an error.
3643 
3644 
3645 # Setup a tool for the given variable. If correctly specified by the user,
3646 # use that value, otherwise search for the tool using the supplied code snippet.
3647 # $1: variable to set
3648 # $2: code snippet to call to look for the tool
3649 # $3: code snippet to call if variable was used to find tool
3650 
3651 
3652 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3653 # $1: variable to set
3654 # $2: executable name (or list of names) to look for
3655 # $3: [path]
3656 
3657 
3658 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3659 # $1: variable to set
3660 # $2: executable name (or list of names) to look for
3661 
3662 
3663 # Like BASIC_PATH_PROGS but fails if no tool was found.
3664 # $1: variable to set
3665 # $2: executable name (or list of names) to look for
3666 # $3: [path]
3667 
3668 
3669 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3670 # $1: variable to set
3671 # $2: autoconf macro to call to look for the special tool
3672 
3673 
3674 # Setup the most fundamental tools that relies on not much else to set up,
3675 # but is used by much of the early bootstrap code.
3676 
3677 
3678 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3679 
3680 
3681 # Evaluates platform specific overrides for devkit variables.
3682 # $1: Name of variable
3683 
3684 
3685 
3686 
3687 
3688 
3689 #%%% Simple tools %%%
3690 
3691 # Check if we have found a usable version of make
3692 # $1: the path to a potential make binary (or empty)
3693 # $2: the description on how we found this
3694 
3695 
3696 
3697 
3698 # Goes looking for a usable version of GNU make.
3699 
3700 
3701 
3702 
3703 
3704 
3705 
3706 
3707 
3708 
3709 # Check if build directory is on local disk. If not possible to determine,
3710 # we prefer to claim it's local.
3711 # Argument 1: directory to test
3712 # Argument 2: what to do if it is on local disk
3713 # Argument 3: what to do otherwise (remote disk or failure)
3714 
3715 
3716 # Check that source files have basic read permissions set. This might
3717 # not be the case in cygwin in certain conditions.
3718 
3719 
3720 
3721 
3722 # Check for support for specific options in bash
3723 
3724 
3725 ################################################################################
3726 #
3727 # Default make target
3728 #
3729 
3730 
3731 # Code to run after AC_OUTPUT
3732 
3733 
3734 #
3735 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3736 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3737 #
3738 # This code is free software; you can redistribute it and/or modify it
3739 # under the terms of the GNU General Public License version 2 only, as
3740 # published by the Free Software Foundation.  Oracle designates this
3741 # particular file as subject to the "Classpath" exception as provided
3742 # by Oracle in the LICENSE file that accompanied this code.
3743 #
3744 # This code is distributed in the hope that it will be useful, but WITHOUT
3745 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3746 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3747 # version 2 for more details (a copy is included in the LICENSE file that
3748 # accompanied this code).
3749 #
3750 # You should have received a copy of the GNU General Public License version
3751 # 2 along with this work; if not, write to the Free Software Foundation,
3752 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3753 #
3754 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3755 # or visit www.oracle.com if you need additional information or have any
3756 # questions.
3757 #
3758 
3759 
3760 
3761 
3762 
3763 # Helper function which possibly converts a path using DOS-style short mode.
3764 # If so, the updated path is stored in $new_path.
3765 # $1: The path to check
3766 
3767 
3768 # Helper function which possibly converts a path using DOS-style short mode.
3769 # If so, the updated path is stored in $new_path.
3770 # $1: The path to check
3771 
3772 
3773 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3774 # and could probably be heavily simplified. However, all changes in this
3775 # area tend to need lot of testing in different scenarios, and in lack of
3776 # proper unit testing, cleaning this up has not been deemed worth the effort
3777 # at the moment.
3778 
3779 
3780 
3781 
3782 
3783 
3784 
3785 
3786 
3787 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3788 
3789 
3790 
3791 
3792 # ... then the rest
3793 #
3794 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3795 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3796 #
3797 # This code is free software; you can redistribute it and/or modify it
3798 # under the terms of the GNU General Public License version 2 only, as
3799 # published by the Free Software Foundation.  Oracle designates this
3800 # particular file as subject to the "Classpath" exception as provided
3801 # by Oracle in the LICENSE file that accompanied this code.
3802 #
3803 # This code is distributed in the hope that it will be useful, but WITHOUT
3804 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3805 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3806 # version 2 for more details (a copy is included in the LICENSE file that
3807 # accompanied this code).
3808 #
3809 # You should have received a copy of the GNU General Public License version
3810 # 2 along with this work; if not, write to the Free Software Foundation,
3811 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3812 #
3813 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3814 # or visit www.oracle.com if you need additional information or have any
3815 # questions.
3816 #
3817 
3818 ########################################################################
3819 # This file handles detection of the Boot JDK. The Boot JDK detection
3820 # process has been developed as a response to solve a complex real-world
3821 # problem. Initially, it was simple, but it has grown as platform after
3822 # platform, idiosyncracy after idiosyncracy has been supported.
3823 #
3824 # The basic idea is this:
3825 # 1) You need an acceptable *) JDK to use as a Boot JDK
3826 # 2) There are several ways to locate a JDK, that are mostly platform
3827 #    dependent **)
3828 # 3) You can have multiple JDKs installed
3829 # 4) If possible, configure should try to dig out an acceptable JDK
3830 #    automatically, without having to resort to command-line options
3831 #
3832 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3833 #     javac) and not a JRE, etc.
3834 #
3835 # **) On Windows we typically use a well-known path.
3836 #     On MacOSX we typically use the tool java_home.
3837 #     On Linux we typically find javac in the $PATH, and then follow a
3838 #     chain of symlinks that often ends up in a real JDK.
3839 #
3840 # This leads to the code where we check in different ways to locate a
3841 # JDK, and if one is found, check if it is acceptable. If not, we print
3842 # our reasons for rejecting it (useful when debugging non-working
3843 # configure situations) and continue checking the next one.
3844 ########################################################################
3845 
3846 # Execute the check given as argument, and verify the result
3847 # If the Boot JDK was previously found, do nothing
3848 # $1 A command line (typically autoconf macro) to execute
3849 
3850 
3851 # Test: Is bootjdk explicitly set by command line arguments?
3852 
3853 
3854 # Test: Is $JAVA_HOME set?
3855 
3856 
3857 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3858 
3859 
3860 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3861 # $1: Argument to the java_home binary (optional)
3862 
3863 
3864 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3865 
3866 
3867 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3868 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3869 # $1 = Path to directory containing jdk installations.
3870 # $2 = String to append to the found JDK directory to get the proper JDK home
3871 
3872 
3873 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3874 # environmental variable as base for where to look.
3875 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3876 
3877 
3878 # Test: Is there a JDK installed in default, well-known locations?
3879 
3880 
3881 # Check that a command-line tool in the Boot JDK is correct
3882 # $1 = name of variable to assign
3883 # $2 = name of binary
3884 
3885 
3886 ###############################################################################
3887 #
3888 # We need a Boot JDK to bootstrap the build.
3889 #
3890 
3891 
3892 
3893 
3894 
3895 # BUILD_JDK: the location of the latest JDK that can run
3896 #   on the host system and supports the target class file version
3897 #   generated in this JDK build.  This variable should only be
3898 #   used after the launchers are built.
3899 #
3900 
3901 # Execute the check given as argument, and verify the result.
3902 # If the JDK was previously found, do nothing.
3903 # $1 A command line (typically autoconf macro) to execute
3904 
3905 
3906 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3907 # is different than the host system doing the build (e.g. cross-compilation),
3908 # a special BUILD_JDK is built as part of the build process.  An external
3909 # prebuilt BUILD_JDK can also be supplied.
3910 
3911 
3912 #
3913 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3914 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3915 #
3916 # This code is free software; you can redistribute it and/or modify it
3917 # under the terms of the GNU General Public License version 2 only, as
3918 # published by the Free Software Foundation.  Oracle designates this
3919 # particular file as subject to the "Classpath" exception as provided
3920 # by Oracle in the LICENSE file that accompanied this code.
3921 #
3922 # This code is distributed in the hope that it will be useful, but WITHOUT
3923 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3924 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3925 # version 2 for more details (a copy is included in the LICENSE file that
3926 # accompanied this code).
3927 #
3928 # You should have received a copy of the GNU General Public License version
3929 # 2 along with this work; if not, write to the Free Software Foundation,
3930 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3931 #
3932 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3933 # or visit www.oracle.com if you need additional information or have any
3934 # questions.
3935 #
3936 
3937 
3938 
3939 
3940 
3941 
3942 
3943 
3944 
3945 
3946 
3947 
3948 
3949 
3950 
3951 
3952 
3953 ################################################################################
3954 #
3955 # Runs icecc-create-env once and prints the error if it fails
3956 #
3957 # $1: arguments to icecc-create-env
3958 # $2: log file
3959 #
3960 
3961 
3962 ################################################################################
3963 #
3964 # Optionally enable distributed compilation of native code using icecc/icecream
3965 #
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 #
3974 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3975 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3976 #
3977 # This code is free software; you can redistribute it and/or modify it
3978 # under the terms of the GNU General Public License version 2 only, as
3979 # published by the Free Software Foundation.  Oracle designates this
3980 # particular file as subject to the "Classpath" exception as provided
3981 # by Oracle in the LICENSE file that accompanied this code.
3982 #
3983 # This code is distributed in the hope that it will be useful, but WITHOUT
3984 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3985 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3986 # version 2 for more details (a copy is included in the LICENSE file that
3987 # accompanied this code).
3988 #
3989 # You should have received a copy of the GNU General Public License version
3990 # 2 along with this work; if not, write to the Free Software Foundation,
3991 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3992 #
3993 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3994 # or visit www.oracle.com if you need additional information or have any
3995 # questions.
3996 #
3997 
3998 ################################################################################
3999 #
4000 # Setup ABI profile (for arm)
4001 #
4002 
4003 
4004 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4005 # corresponding configure arguments instead
4006 
4007 
4008 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4009 # that configure can use them while detecting compilers.
4010 # TOOLCHAIN_TYPE is available here.
4011 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4012 
4013 
4014 
4015 
4016 
4017 
4018 # Documentation on common flags used for solstudio in HIGHEST.
4019 #
4020 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4021 #          done with care, there are some assumptions below that need to
4022 #          be understood about the use of pointers, and IEEE behavior.
4023 #
4024 # -fns: Use non-standard floating point mode (not IEEE 754)
4025 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4026 # -fsingle: Use single precision floating point with 'float'
4027 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4028 #   (Source with excessing pointer casting and data access with mixed
4029 #    pointer types are not recommended)
4030 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4031 #   (If you expect perfect errno behavior, do not use this)
4032 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4033 # -xrestrict: Pointer parameters to functions do not overlap
4034 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4035 #    If you pass in multiple pointers to the same data, do not use this)
4036 # -xlibmil: Inline some library routines
4037 #   (If you expect perfect errno behavior, do not use this)
4038 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4039 #   (If you expect perfect errno behavior, do not use this)
4040 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4041 
4042     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4043     # Bug?
4044     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4045     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4046     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4047     #fi
4048 
4049 
4050 
4051 
4052 
4053 
4054 ################################################################################
4055 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4056 #      conditionals against.
4057 # $2 - Optional prefix for each variable defined.
4058 
4059 
4060 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4061 #                                  IF_FALSE: [RUN-IF-FALSE])
4062 # ------------------------------------------------------------
4063 # Check that the C compiler supports an argument
4064 
4065 
4066 
4067 
4068 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4069 #                                    IF_FALSE: [RUN-IF-FALSE])
4070 # ------------------------------------------------------------
4071 # Check that the C++ compiler supports an argument
4072 
4073 
4074 
4075 
4076 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4077 #                                IF_FALSE: [RUN-IF-FALSE])
4078 # ------------------------------------------------------------
4079 # Check that the C and C++ compilers support an argument
4080 
4081 
4082 
4083 
4084 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4085 #                                   IF_FALSE: [RUN-IF-FALSE])
4086 # ------------------------------------------------------------
4087 # Check that the linker support an argument
4088 
4089 
4090 
4091 
4092 
4093 
4094 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4095 # Arguments:
4096 # $1 - Optional prefix for each variable defined.
4097 
4098 
4099 #
4100 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4101 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4102 #
4103 # This code is free software; you can redistribute it and/or modify it
4104 # under the terms of the GNU General Public License version 2 only, as
4105 # published by the Free Software Foundation.  Oracle designates this
4106 # particular file as subject to the "Classpath" exception as provided
4107 # by Oracle in the LICENSE file that accompanied this code.
4108 #
4109 # This code is distributed in the hope that it will be useful, but WITHOUT
4110 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4111 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4112 # version 2 for more details (a copy is included in the LICENSE file that
4113 # accompanied this code).
4114 #
4115 # You should have received a copy of the GNU General Public License version
4116 # 2 along with this work; if not, write to the Free Software Foundation,
4117 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4118 #
4119 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4120 # or visit www.oracle.com if you need additional information or have any
4121 # questions.
4122 #
4123 
4124 
4125 
4126 
4127 
4128 cygwin_help() {
4129   case $1 in
4130     unzip)
4131       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4132       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4133       ;;
4134     zip)
4135       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4136       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4137       ;;
4138     make)
4139       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4140       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4141       ;;
4142     freetype)
4143       HELP_MSG="
4144 The freetype library can now be build during the configure process.
4145 Download the freetype sources and unpack them into an arbitrary directory:
4146 
4147 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4148 tar -xzf freetype-2.5.3.tar.gz
4149 
4150 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4151 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4152 builds or into '<freetype_src>/lib32' for 32-bit builds.
4153 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4154 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4155 
4156 Alternatively you can unpack the sources like this to use the default directory:
4157 
4158 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4159       ;;
4160   esac
4161 }
4162 
4163 msys_help() {
4164   PKGHANDLER_COMMAND=""
4165 }
4166 
4167 apt_help() {
4168   case $1 in
4169     reduced)
4170       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4171     devkit)
4172       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4173     openjdk)
4174       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4175     alsa)
4176       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4177     cups)
4178       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4179     fontconfig)
4180       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4181     freetype)
4182       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4183     ffi)
4184       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4185     x11)
4186       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4187     ccache)
4188       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4189     dtrace)
4190       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4191   esac
4192 }
4193 
4194 yum_help() {
4195   case $1 in
4196     devkit)
4197       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4198     openjdk)
4199       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4200     alsa)
4201       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4202     cups)
4203       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4204     fontconfig)
4205       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4206     freetype)
4207       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4208     x11)
4209       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4210     ccache)
4211       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4212   esac
4213 }
4214 
4215 brew_help() {
4216   case $1 in
4217     openjdk)
4218       PKGHANDLER_COMMAND="brew cask install java" ;;
4219     freetype)
4220       PKGHANDLER_COMMAND="brew install freetype" ;;
4221     ccache)
4222       PKGHANDLER_COMMAND="brew install ccache" ;;
4223   esac
4224 }
4225 
4226 port_help() {
4227   PKGHANDLER_COMMAND=""
4228 }
4229 
4230 pkgutil_help() {
4231   PKGHANDLER_COMMAND=""
4232 }
4233 
4234 pkgadd_help() {
4235   PKGHANDLER_COMMAND=""
4236 }
4237 
4238 # This function will check if we're called from the "configure" wrapper while
4239 # printing --help. If so, we will print out additional information that can
4240 # only be extracted within the autoconf script, and then exit. This must be
4241 # called at the very beginning in configure.ac.
4242 
4243 
4244 
4245 
4246 
4247 
4248 #
4249 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4250 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4251 #
4252 # This code is free software; you can redistribute it and/or modify it
4253 # under the terms of the GNU General Public License version 2 only, as
4254 # published by the Free Software Foundation.  Oracle designates this
4255 # particular file as subject to the "Classpath" exception as provided
4256 # by Oracle in the LICENSE file that accompanied this code.
4257 #
4258 # This code is distributed in the hope that it will be useful, but WITHOUT
4259 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4260 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4261 # version 2 for more details (a copy is included in the LICENSE file that
4262 # accompanied this code).
4263 #
4264 # You should have received a copy of the GNU General Public License version
4265 # 2 along with this work; if not, write to the Free Software Foundation,
4266 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4267 #
4268 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4269 # or visit www.oracle.com if you need additional information or have any
4270 # questions.
4271 #
4272 
4273 # All valid JVM features, regardless of platform
4274 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4275     graal vm-structs jni-check services management all-gcs nmt cds \
4276     static-build link-time-opt aot"
4277 
4278 # All valid JVM variants
4279 VALID_JVM_VARIANTS="server client minimal core zero custom"
4280 
4281 ###############################################################################
4282 # Check if the specified JVM variant should be built. To be used in shell if
4283 # constructs, like this:
4284 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4285 #
4286 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4287 
4288 # Definition kept in one line to allow inlining in if statements.
4289 # Additional [] needed to keep m4 from mangling shell constructs.
4290 
4291 
4292 ###############################################################################
4293 # Check if the specified JVM features are explicitly enabled. To be used in
4294 # shell if constructs, like this:
4295 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4296 #
4297 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4298 
4299 # Definition kept in one line to allow inlining in if statements.
4300 # Additional [] needed to keep m4 from mangling shell constructs.
4301 
4302 
4303 ###############################################################################
4304 # Check which variants of the JVM that we want to build. Available variants are:
4305 #   server: normal interpreter, and a tiered C1/C2 compiler
4306 #   client: normal interpreter, and C1 (no C2 compiler)
4307 #   minimal: reduced form of client with optional features stripped out
4308 #   core: normal interpreter only, no compiler
4309 #   zero: C++ based interpreter only, no compiler
4310 #   custom: baseline JVM with no default features
4311 #
4312 
4313 
4314 ###############################################################################
4315 # Check if dtrace should be enabled and has all prerequisites present.
4316 #
4317 
4318 
4319 ################################################################################
4320 # Check if AOT should be enabled
4321 #
4322 
4323 
4324 ################################################################################
4325 # Allow to disable CDS
4326 #
4327 
4328 
4329 ###############################################################################
4330 # Set up all JVM features for each JVM variant.
4331 #
4332 
4333 
4334 ###############################################################################
4335 # Validate JVM features once all setup is complete, including custom setup.
4336 #
4337 
4338 
4339 ################################################################################
4340 #
4341 # Specify which sources will be used to build the 64-bit ARM port
4342 #
4343 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4344 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4345 #
4346 
4347 
4348 
4349 ################################################################################
4350 # Check if gtest should be built
4351 #
4352 
4353 
4354 #
4355 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4356 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4357 #
4358 # This code is free software; you can redistribute it and/or modify it
4359 # under the terms of the GNU General Public License version 2 only, as
4360 # published by the Free Software Foundation.  Oracle designates this
4361 # particular file as subject to the "Classpath" exception as provided
4362 # by Oracle in the LICENSE file that accompanied this code.
4363 #
4364 # This code is distributed in the hope that it will be useful, but WITHOUT
4365 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4366 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4367 # version 2 for more details (a copy is included in the LICENSE file that
4368 # accompanied this code).
4369 #
4370 # You should have received a copy of the GNU General Public License version
4371 # 2 along with this work; if not, write to the Free Software Foundation,
4372 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4373 #
4374 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4375 # or visit www.oracle.com if you need additional information or have any
4376 # questions.
4377 #
4378 
4379 ###############################################################################
4380 # Check which variant of the JDK that we want to build.
4381 # Currently we have:
4382 #    normal:   standard edition
4383 # but the custom make system may add other variants
4384 #
4385 # Effectively the JDK variant gives a name to a specific set of
4386 # modules to compile into the JDK.
4387 
4388 
4389 ###############################################################################
4390 # Set the debug level
4391 #    release: no debug information, all optimizations, no asserts.
4392 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4393 #    fastdebug: debug information (-g), all optimizations, all asserts
4394 #    slowdebug: debug information (-g), no optimizations, all asserts
4395 
4396 
4397 ###############################################################################
4398 #
4399 # Should we build only OpenJDK even if closed sources are present?
4400 #
4401 
4402 
4403 
4404 
4405 ###############################################################################
4406 #
4407 # Enable or disable the elliptic curve crypto implementation
4408 #
4409 
4410 
4411 
4412 
4413 ################################################################################
4414 #
4415 # Gcov coverage data for hotspot
4416 #
4417 
4418 
4419 ###############################################################################
4420 #
4421 # AddressSanitizer
4422 #
4423 
4424 
4425 ################################################################################
4426 #
4427 # Static build support.  When enabled will generate static
4428 # libraries instead of shared libraries for all JDK libs.
4429 #
4430 
4431 
4432 ################################################################################
4433 #
4434 # jlink options.
4435 # We always keep packaged modules in JDK image.
4436 #
4437 
4438 
4439 ################################################################################
4440 #
4441 # Check if building of the jtreg failure handler should be enabled.
4442 #
4443 
4444 
4445 ################################################################################
4446 #
4447 # Enable or disable generation of the classlist at build time
4448 #
4449 
4450 
4451 #
4452 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4453 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4454 #
4455 # This code is free software; you can redistribute it and/or modify it
4456 # under the terms of the GNU General Public License version 2 only, as
4457 # published by the Free Software Foundation.  Oracle designates this
4458 # particular file as subject to the "Classpath" exception as provided
4459 # by Oracle in the LICENSE file that accompanied this code.
4460 #
4461 # This code is distributed in the hope that it will be useful, but WITHOUT
4462 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4463 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4464 # version 2 for more details (a copy is included in the LICENSE file that
4465 # accompanied this code).
4466 #
4467 # You should have received a copy of the GNU General Public License version
4468 # 2 along with this work; if not, write to the Free Software Foundation,
4469 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4470 #
4471 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4472 # or visit www.oracle.com if you need additional information or have any
4473 # questions.
4474 #
4475 
4476 ###############################################################################
4477 #
4478 # Setup version numbers
4479 #
4480 
4481 # Verify that a given string represents a valid version number, and assign it
4482 # to a variable.
4483 
4484 # Argument 1: the variable to assign to
4485 # Argument 2: the value given by the user
4486 
4487 
4488 
4489 
4490 #
4491 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4492 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4493 #
4494 # This code is free software; you can redistribute it and/or modify it
4495 # under the terms of the GNU General Public License version 2 only, as
4496 # published by the Free Software Foundation.  Oracle designates this
4497 # particular file as subject to the "Classpath" exception as provided
4498 # by Oracle in the LICENSE file that accompanied this code.
4499 #
4500 # This code is distributed in the hope that it will be useful, but WITHOUT
4501 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4502 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4503 # version 2 for more details (a copy is included in the LICENSE file that
4504 # accompanied this code).
4505 #
4506 # You should have received a copy of the GNU General Public License version
4507 # 2 along with this work; if not, write to the Free Software Foundation,
4508 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4509 #
4510 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4511 # or visit www.oracle.com if you need additional information or have any
4512 # questions.
4513 #
4514 
4515 # Major library component reside in separate files.
4516 #
4517 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4519 #
4520 # This code is free software; you can redistribute it and/or modify it
4521 # under the terms of the GNU General Public License version 2 only, as
4522 # published by the Free Software Foundation.  Oracle designates this
4523 # particular file as subject to the "Classpath" exception as provided
4524 # by Oracle in the LICENSE file that accompanied this code.
4525 #
4526 # This code is distributed in the hope that it will be useful, but WITHOUT
4527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4529 # version 2 for more details (a copy is included in the LICENSE file that
4530 # accompanied this code).
4531 #
4532 # You should have received a copy of the GNU General Public License version
4533 # 2 along with this work; if not, write to the Free Software Foundation,
4534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4535 #
4536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4537 # or visit www.oracle.com if you need additional information or have any
4538 # questions.
4539 #
4540 
4541 ################################################################################
4542 # Setup alsa (Advanced Linux Sound Architecture)
4543 ################################################################################
4544 
4545 
4546 #
4547 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4548 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4549 #
4550 # This code is free software; you can redistribute it and/or modify it
4551 # under the terms of the GNU General Public License version 2 only, as
4552 # published by the Free Software Foundation.  Oracle designates this
4553 # particular file as subject to the "Classpath" exception as provided
4554 # by Oracle in the LICENSE file that accompanied this code.
4555 #
4556 # This code is distributed in the hope that it will be useful, but WITHOUT
4557 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4558 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4559 # version 2 for more details (a copy is included in the LICENSE file that
4560 # accompanied this code).
4561 #
4562 # You should have received a copy of the GNU General Public License version
4563 # 2 along with this work; if not, write to the Free Software Foundation,
4564 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4565 #
4566 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4567 # or visit www.oracle.com if you need additional information or have any
4568 # questions.
4569 #
4570 
4571 ################################################################################
4572 # Setup bundled libraries.
4573 #
4574 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4575 # OpenJDK repository. Default is to use these libraries as bundled, but they
4576 # might be replaced by en external version by the user.
4577 ################################################################################
4578 
4579 
4580 ################################################################################
4581 # Setup libjpeg
4582 ################################################################################
4583 
4584 
4585 ################################################################################
4586 # Setup giflib
4587 ################################################################################
4588 
4589 
4590 ################################################################################
4591 # Setup libpng
4592 ################################################################################
4593 
4594 
4595 ################################################################################
4596 # Setup zlib
4597 ################################################################################
4598 
4599 
4600 ################################################################################
4601 # Setup lcms (Little CMS)
4602 ################################################################################
4603 
4604 
4605 #
4606 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4607 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4608 #
4609 # This code is free software; you can redistribute it and/or modify it
4610 # under the terms of the GNU General Public License version 2 only, as
4611 # published by the Free Software Foundation.  Oracle designates this
4612 # particular file as subject to the "Classpath" exception as provided
4613 # by Oracle in the LICENSE file that accompanied this code.
4614 #
4615 # This code is distributed in the hope that it will be useful, but WITHOUT
4616 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4617 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4618 # version 2 for more details (a copy is included in the LICENSE file that
4619 # accompanied this code).
4620 #
4621 # You should have received a copy of the GNU General Public License version
4622 # 2 along with this work; if not, write to the Free Software Foundation,
4623 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4624 #
4625 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4626 # or visit www.oracle.com if you need additional information or have any
4627 # questions.
4628 #
4629 
4630 ################################################################################
4631 # Setup cups (Common Unix Printing System)
4632 ################################################################################
4633 
4634 
4635 #
4636 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4637 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4638 #
4639 # This code is free software; you can redistribute it and/or modify it
4640 # under the terms of the GNU General Public License version 2 only, as
4641 # published by the Free Software Foundation.  Oracle designates this
4642 # particular file as subject to the "Classpath" exception as provided
4643 # by Oracle in the LICENSE file that accompanied this code.
4644 #
4645 # This code is distributed in the hope that it will be useful, but WITHOUT
4646 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4647 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4648 # version 2 for more details (a copy is included in the LICENSE file that
4649 # accompanied this code).
4650 #
4651 # You should have received a copy of the GNU General Public License version
4652 # 2 along with this work; if not, write to the Free Software Foundation,
4653 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4654 #
4655 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4656 # or visit www.oracle.com if you need additional information or have any
4657 # questions.
4658 #
4659 
4660 ################################################################################
4661 # Setup libffi (Foreign Function Interface)
4662 ################################################################################
4663 
4664 
4665 #
4666 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4667 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4668 #
4669 # This code is free software; you can redistribute it and/or modify it
4670 # under the terms of the GNU General Public License version 2 only, as
4671 # published by the Free Software Foundation.  Oracle designates this
4672 # particular file as subject to the "Classpath" exception as provided
4673 # by Oracle in the LICENSE file that accompanied this code.
4674 #
4675 # This code is distributed in the hope that it will be useful, but WITHOUT
4676 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4677 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4678 # version 2 for more details (a copy is included in the LICENSE file that
4679 # accompanied this code).
4680 #
4681 # You should have received a copy of the GNU General Public License version
4682 # 2 along with this work; if not, write to the Free Software Foundation,
4683 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4684 #
4685 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4686 # or visit www.oracle.com if you need additional information or have any
4687 # questions.
4688 #
4689 
4690 ################################################################################
4691 # Build the freetype lib from source
4692 ################################################################################
4693 
4694 
4695 ################################################################################
4696 # Check if a potential freeype library match is correct and usable
4697 ################################################################################
4698 
4699 
4700 ################################################################################
4701 # Setup freetype (The FreeType2 font rendering library)
4702 ################################################################################
4703 
4704 
4705 #
4706 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4707 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4708 #
4709 # This code is free software; you can redistribute it and/or modify it
4710 # under the terms of the GNU General Public License version 2 only, as
4711 # published by the Free Software Foundation.  Oracle designates this
4712 # particular file as subject to the "Classpath" exception as provided
4713 # by Oracle in the LICENSE file that accompanied this code.
4714 #
4715 # This code is distributed in the hope that it will be useful, but WITHOUT
4716 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4717 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4718 # version 2 for more details (a copy is included in the LICENSE file that
4719 # accompanied this code).
4720 #
4721 # You should have received a copy of the GNU General Public License version
4722 # 2 along with this work; if not, write to the Free Software Foundation,
4723 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4724 #
4725 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4726 # or visit www.oracle.com if you need additional information or have any
4727 # questions.
4728 #
4729 
4730 ################################################################################
4731 # Setup the standard C/C++ runtime libraries.
4732 #
4733 # Most importantly, determine if stdc++ should be linked statically or
4734 # dynamically.
4735 ################################################################################
4736 
4737 
4738 #
4739 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4741 #
4742 # This code is free software; you can redistribute it and/or modify it
4743 # under the terms of the GNU General Public License version 2 only, as
4744 # published by the Free Software Foundation.  Oracle designates this
4745 # particular file as subject to the "Classpath" exception as provided
4746 # by Oracle in the LICENSE file that accompanied this code.
4747 #
4748 # This code is distributed in the hope that it will be useful, but WITHOUT
4749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4750 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4751 # version 2 for more details (a copy is included in the LICENSE file that
4752 # accompanied this code).
4753 #
4754 # You should have received a copy of the GNU General Public License version
4755 # 2 along with this work; if not, write to the Free Software Foundation,
4756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4757 #
4758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4759 # or visit www.oracle.com if you need additional information or have any
4760 # questions.
4761 #
4762 
4763 ################################################################################
4764 # Setup X11 Windows system
4765 ################################################################################
4766 
4767 
4768 #
4769 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
4770 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4771 #
4772 # This code is free software; you can redistribute it and/or modify it
4773 # under the terms of the GNU General Public License version 2 only, as
4774 # published by the Free Software Foundation.  Oracle designates this
4775 # particular file as subject to the "Classpath" exception as provided
4776 # by Oracle in the LICENSE file that accompanied this code.
4777 #
4778 # This code is distributed in the hope that it will be useful, but WITHOUT
4779 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4780 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4781 # version 2 for more details (a copy is included in the LICENSE file that
4782 # accompanied this code).
4783 #
4784 # You should have received a copy of the GNU General Public License version
4785 # 2 along with this work; if not, write to the Free Software Foundation,
4786 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4787 #
4788 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4789 # or visit www.oracle.com if you need additional information or have any
4790 # questions.
4791 #
4792 
4793 ################################################################################
4794 # Setup fontconfig
4795 ################################################################################
4796 
4797 
4798 
4799 ################################################################################
4800 # Determine which libraries are needed for this configuration
4801 ################################################################################
4802 
4803 
4804 ################################################################################
4805 # Parse library options, and setup needed libraries
4806 ################################################################################
4807 
4808 
4809 ################################################################################
4810 # Setup various libraries, typically small system libraries
4811 ################################################################################
4812 
4813 
4814 ################################################################################
4815 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4816 # redistribute it in the test image.
4817 ################################################################################
4818 
4819 
4820 
4821 #
4822 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4823 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4824 #
4825 # This code is free software; you can redistribute it and/or modify it
4826 # under the terms of the GNU General Public License version 2 only, as
4827 # published by the Free Software Foundation.  Oracle designates this
4828 # particular file as subject to the "Classpath" exception as provided
4829 # by Oracle in the LICENSE file that accompanied this code.
4830 #
4831 # This code is distributed in the hope that it will be useful, but WITHOUT
4832 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4833 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4834 # version 2 for more details (a copy is included in the LICENSE file that
4835 # accompanied this code).
4836 #
4837 # You should have received a copy of the GNU General Public License version
4838 # 2 along with this work; if not, write to the Free Software Foundation,
4839 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4840 #
4841 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4842 # or visit www.oracle.com if you need additional information or have any
4843 # questions.
4844 #
4845 
4846 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4847 # Converts autoconf style CPU name to OpenJDK style, into
4848 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4849 
4850 
4851 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4852 # Converts autoconf style OS name to OpenJDK style, into
4853 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4854 
4855 
4856 # Expects $host_os $host_cpu $build_os and $build_cpu
4857 # and $with_target_bits to have been setup!
4858 #
4859 # Translate the standard triplet(quadruplet) definition
4860 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4861 # OPENJDK_BUILD_OS, etc.
4862 
4863 
4864 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4865 # accordingly. Must be done after setting up build and target system, but before
4866 # doing anything else with these values.
4867 
4868 
4869 # Setup the legacy variables, for controlling the old makefiles.
4870 #
4871 
4872 
4873 # $1 - Either TARGET or BUILD to setup the variables for.
4874 
4875 
4876 
4877 
4878 
4879 
4880 #%%% Build and target systems %%%
4881 
4882 
4883 
4884 
4885 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4886 # Add -mX to various FLAGS variables.
4887 
4888 
4889 
4890 
4891 
4892 
4893 #
4894 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4895 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4896 #
4897 # This code is free software; you can redistribute it and/or modify it
4898 # under the terms of the GNU General Public License version 2 only, as
4899 # published by the Free Software Foundation.  Oracle designates this
4900 # particular file as subject to the "Classpath" exception as provided
4901 # by Oracle in the LICENSE file that accompanied this code.
4902 #
4903 # This code is distributed in the hope that it will be useful, but WITHOUT
4904 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4905 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4906 # version 2 for more details (a copy is included in the LICENSE file that
4907 # accompanied this code).
4908 #
4909 # You should have received a copy of the GNU General Public License version
4910 # 2 along with this work; if not, write to the Free Software Foundation,
4911 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4912 #
4913 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4914 # or visit www.oracle.com if you need additional information or have any
4915 # questions.
4916 #
4917 
4918 
4919 
4920 ################################################################################
4921 # Define a mechanism for importing extra prebuilt modules
4922 #
4923 
4924 
4925 
4926 #
4927 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4928 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4929 #
4930 # This code is free software; you can redistribute it and/or modify it
4931 # under the terms of the GNU General Public License version 2 only, as
4932 # published by the Free Software Foundation.  Oracle designates this
4933 # particular file as subject to the "Classpath" exception as provided
4934 # by Oracle in the LICENSE file that accompanied this code.
4935 #
4936 # This code is distributed in the hope that it will be useful, but WITHOUT
4937 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4938 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4939 # version 2 for more details (a copy is included in the LICENSE file that
4940 # accompanied this code).
4941 #
4942 # You should have received a copy of the GNU General Public License version
4943 # 2 along with this work; if not, write to the Free Software Foundation,
4944 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4945 #
4946 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4947 # or visit www.oracle.com if you need additional information or have any
4948 # questions.
4949 #
4950 
4951 ########################################################################
4952 # This file is responsible for detecting, verifying and setting up the
4953 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4954 # proper paths to the binaries, but it will not setup any flags.
4955 #
4956 # The binaries used is determined by the toolchain type, which is the family of
4957 # compilers and related tools that are used.
4958 ########################################################################
4959 
4960 
4961 # All valid toolchains, regardless of platform (used by help.m4)
4962 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4963 
4964 # These toolchains are valid on different platforms
4965 VALID_TOOLCHAINS_linux="gcc clang"
4966 VALID_TOOLCHAINS_solaris="solstudio"
4967 VALID_TOOLCHAINS_macosx="gcc clang"
4968 VALID_TOOLCHAINS_aix="xlc"
4969 VALID_TOOLCHAINS_windows="microsoft"
4970 
4971 # Toolchain descriptions
4972 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4973 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4974 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4975 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4976 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4977 
4978 # Minimum supported versions, empty means unspecified
4979 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4980 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
4981 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
4982 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
4983 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4984 
4985 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4986 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4987 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4988 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4989 
4990 
4991 # Check if the configured compiler (C and C++) is of a specific version or
4992 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4993 #
4994 # Arguments:
4995 #   VERSION:   The version string to check against the found version
4996 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4997 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4998 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
4999 
5000 
5001 
5002 
5003 # Setup a number of variables describing how native output files are
5004 # named on this platform/toolchain.
5005 
5006 
5007 # Determine which toolchain type to use, and make sure it is valid for this
5008 # platform. Setup various information about the selected toolchain.
5009 
5010 
5011 # Before we start detecting the toolchain executables, we might need some
5012 # special setup, e.g. additional paths etc.
5013 
5014 
5015 # Restore path, etc
5016 
5017 
5018 # Check if a compiler is of the toolchain type we expect, and save the version
5019 # information from it. If the compiler does not match the expected type,
5020 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5021 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5022 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5023 #
5024 # $1 = compiler to test (CC or CXX)
5025 # $2 = human readable name of compiler (C or C++)
5026 
5027 
5028 # Try to locate the given C or C++ compiler in the path, or otherwise.
5029 #
5030 # $1 = compiler to test (CC or CXX)
5031 # $2 = human readable name of compiler (C or C++)
5032 # $3 = compiler name to search for
5033 
5034 
5035 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5036 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5037 # archiver (AR). Verify that the compilers are correct according to the
5038 # toolchain type.
5039 
5040 
5041 # Setup additional tools that is considered a part of the toolchain, but not the
5042 # core part. Many of these are highly platform-specific and do not exist,
5043 # and/or are not needed on all platforms.
5044 
5045 
5046 # Setup the build tools (i.e, the compiler and linker used to build programs
5047 # that should be run on the build platform, not the target platform, as a build
5048 # helper). Since the non-cross-compile case uses the normal, target compilers
5049 # for this, we can only do this after these have been setup.
5050 
5051 
5052 # Do some additional checks on the detected tools.
5053 
5054 
5055 # Setup the JTReg Regression Test Harness.
5056 
5057 
5058 # Setup the JIB dependency resolver
5059 
5060 
5061 #
5062 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5063 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5064 #
5065 # This code is free software; you can redistribute it and/or modify it
5066 # under the terms of the GNU General Public License version 2 only, as
5067 # published by the Free Software Foundation.  Oracle designates this
5068 # particular file as subject to the "Classpath" exception as provided
5069 # by Oracle in the LICENSE file that accompanied this code.
5070 #
5071 # This code is distributed in the hope that it will be useful, but WITHOUT
5072 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5073 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5074 # version 2 for more details (a copy is included in the LICENSE file that
5075 # accompanied this code).
5076 #
5077 # You should have received a copy of the GNU General Public License version
5078 # 2 along with this work; if not, write to the Free Software Foundation,
5079 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5080 #
5081 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5082 # or visit www.oracle.com if you need additional information or have any
5083 # questions.
5084 #
5085 
5086 ################################################################################
5087 # The order of these defines the priority by which we try to find them.
5088 VALID_VS_VERSIONS="2013 2012 2010"
5089 
5090 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5091 VS_VERSION_INTERNAL_2010=100
5092 VS_MSVCR_2010=msvcr100.dll
5093 # We don't use msvcp on Visual Studio 2010
5094 #VS_MSVCP_2010=msvcp100.dll
5095 VS_ENVVAR_2010="VS100COMNTOOLS"
5096 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5097 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5098 VS_VS_PLATFORM_NAME_2010="v100"
5099 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5100 
5101 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5102 VS_VERSION_INTERNAL_2012=110
5103 VS_MSVCR_2012=msvcr110.dll
5104 VS_MSVCP_2012=msvcp110.dll
5105 VS_ENVVAR_2012="VS110COMNTOOLS"
5106 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5107 VS_SDK_INSTALLDIR_2012=
5108 VS_VS_PLATFORM_NAME_2012="v110"
5109 VS_SDK_PLATFORM_NAME_2012=
5110 
5111 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5112 VS_VERSION_INTERNAL_2013=120
5113 VS_MSVCR_2013=msvcr120.dll
5114 VS_MSVCP_2013=msvcp120.dll
5115 VS_ENVVAR_2013="VS120COMNTOOLS"
5116 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5117 VS_SDK_INSTALLDIR_2013=
5118 VS_VS_PLATFORM_NAME_2013="v120"
5119 VS_SDK_PLATFORM_NAME_2013=
5120 
5121 ################################################################################
5122 
5123 
5124 
5125 ################################################################################
5126 
5127 
5128 
5129 ################################################################################
5130 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5131 # build environment and assigns it to VS_ENV_CMD
5132 
5133 
5134 ################################################################################
5135 
5136 
5137 
5138 ################################################################################
5139 # Check if the VS env variables were setup prior to running configure.
5140 # If not, then find vcvarsall.bat and run it automatically, and integrate
5141 # the set env variables into the spec file.
5142 
5143 
5144 
5145 
5146 
5147 
5148 
5149 
5150 
5151 
5152 
5153 
5154 
5155 
5156 # This line needs to be here, verbatim, after all includes and the dummy hook
5157 # definitions. It is replaced with custom functionality when building
5158 # custom sources.
5159 #CUSTOM_AUTOCONF_INCLUDE
5160 
5161 # Do not change or remove the following line, it is needed for consistency checks:
5162 DATE_WHEN_GENERATED=1512410983
5163 
5164 ###############################################################################
5165 #
5166 # Initialization / Boot-strapping
5167 #
5168 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5169 # thus it jumps back and forth, each time gaining something needed later on.
5170 #
5171 ###############################################################################
5172 
5173 # If we are requested to print additional help, do that and then exit.
5174 # This must be the very first call.
5175 
5176   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5177 
5178     # Print available toolchains
5179     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5180     $PRINTF "Which are valid to use depends on the build platform.\n"
5181     for toolchain in $VALID_TOOLCHAINS_all; do
5182       # Use indirect variable referencing
5183       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5184       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5185       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5186     done
5187     $PRINTF "\n"
5188 
5189     # Print available jvm features
5190     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5191     $PRINTF "Which are valid to use depends on the target platform.\n  "
5192     $PRINTF "%s " $VALID_JVM_FEATURES
5193     $PRINTF "\n"
5194 
5195     # And now exit directly
5196     exit 0
5197   fi
5198 
5199 
5200 # Basic initialization that must happen first of all in the normal process.
5201 
5202   # Save the original command line. This is passed to us by the wrapper configure script.
5203 
5204   # Save the path variable before it gets changed
5205   ORIGINAL_PATH="$PATH"
5206 
5207   DATE_WHEN_CONFIGURED=`LANG=C date`
5208 
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5210 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5212 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5213 
5214 
5215   # Start with tools that do not need have cross compilation support
5216   # and can be expected to be found in the default PATH. These tools are
5217   # used by configure.
5218 
5219   # First are all the simple required tools.
5220 
5221 
5222 
5223   # Publish this variable in the help.
5224 
5225 
5226   if [ -z "${BASENAME+x}" ]; then
5227     # The variable is not set by user, try to locate tool using the code snippet
5228     for ac_prog in basename
5229 do
5230   # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_BASENAME+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   case $BASENAME in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254   done
5255 IFS=$as_save_IFS
5256 
5257   ;;
5258 esac
5259 fi
5260 BASENAME=$ac_cv_path_BASENAME
5261 if test -n "$BASENAME"; then
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5263 $as_echo "$BASENAME" >&6; }
5264 else
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268 
5269 
5270   test -n "$BASENAME" && break
5271 done
5272 
5273   else
5274     # The variable is set, but is it from the command line or the environment?
5275 
5276     # Try to remove the string !BASENAME! from our list.
5277     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5278     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5279       # If it failed, the variable was not from the command line. Ignore it,
5280       # but warn the user (except for BASH, which is always set by the calling BASH).
5281       if test "xBASENAME" != xBASH; then
5282         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5283 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5284       fi
5285       # Try to locate tool using the code snippet
5286       for ac_prog in basename
5287 do
5288   # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_path_BASENAME+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   case $BASENAME in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314 
5315   ;;
5316 esac
5317 fi
5318 BASENAME=$ac_cv_path_BASENAME
5319 if test -n "$BASENAME"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5321 $as_echo "$BASENAME" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326 
5327 
5328   test -n "$BASENAME" && break
5329 done
5330 
5331     else
5332       # If it succeeded, then it was overridden by the user. We will use it
5333       # for the tool.
5334 
5335       # First remove it from the list of overridden variables, so we can test
5336       # for unknown variables in the end.
5337       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5338 
5339       # Check if we try to supply an empty value
5340       if test "x$BASENAME" = x; then
5341         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5342 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5344 $as_echo_n "checking for BASENAME... " >&6; }
5345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5346 $as_echo "disabled" >&6; }
5347       else
5348         # Check if the provided tool contains a complete path.
5349         tool_specified="$BASENAME"
5350         tool_basename="${tool_specified##*/}"
5351         if test "x$tool_basename" = "x$tool_specified"; then
5352           # A command without a complete path is provided, search $PATH.
5353           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5354 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5355           # Extract the first word of "$tool_basename", so it can be a program name with args.
5356 set dummy $tool_basename; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_BASENAME+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   case $BASENAME in
5363   [\\/]* | ?:[\\/]*)
5364   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5365   ;;
5366   *)
5367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_exec_ext in '' $ac_executable_extensions; do
5373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379   done
5380 IFS=$as_save_IFS
5381 
5382   ;;
5383 esac
5384 fi
5385 BASENAME=$ac_cv_path_BASENAME
5386 if test -n "$BASENAME"; then
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5388 $as_echo "$BASENAME" >&6; }
5389 else
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393 
5394 
5395           if test "x$BASENAME" = x; then
5396             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5397           fi
5398         else
5399           # Otherwise we believe it is a complete path. Use it as it is.
5400           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5401 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5402           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5403 $as_echo_n "checking for BASENAME... " >&6; }
5404           if test ! -x "$tool_specified"; then
5405             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5406 $as_echo "not found" >&6; }
5407             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5408           fi
5409           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5410 $as_echo "$tool_specified" >&6; }
5411         fi
5412       fi
5413     fi
5414 
5415   fi
5416 
5417 
5418 
5419   if test "x$BASENAME" = x; then
5420     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5421   fi
5422 
5423 
5424 
5425 
5426 
5427   # Publish this variable in the help.
5428 
5429 
5430   if [ -z "${BASH+x}" ]; then
5431     # The variable is not set by user, try to locate tool using the code snippet
5432     for ac_prog in bash
5433 do
5434   # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_path_BASH+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   case $BASH in
5442   [\\/]* | ?:[\\/]*)
5443   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5444   ;;
5445   *)
5446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449   IFS=$as_save_IFS
5450   test -z "$as_dir" && as_dir=.
5451     for ac_exec_ext in '' $ac_executable_extensions; do
5452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455     break 2
5456   fi
5457 done
5458   done
5459 IFS=$as_save_IFS
5460 
5461   ;;
5462 esac
5463 fi
5464 BASH=$ac_cv_path_BASH
5465 if test -n "$BASH"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5467 $as_echo "$BASH" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472 
5473 
5474   test -n "$BASH" && break
5475 done
5476 
5477   else
5478     # The variable is set, but is it from the command line or the environment?
5479 
5480     # Try to remove the string !BASH! from our list.
5481     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5482     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5483       # If it failed, the variable was not from the command line. Ignore it,
5484       # but warn the user (except for BASH, which is always set by the calling BASH).
5485       if test "xBASH" != xBASH; then
5486         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5487 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5488       fi
5489       # Try to locate tool using the code snippet
5490       for ac_prog in bash
5491 do
5492   # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_path_BASH+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   case $BASH in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518 
5519   ;;
5520 esac
5521 fi
5522 BASH=$ac_cv_path_BASH
5523 if test -n "$BASH"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5525 $as_echo "$BASH" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530 
5531 
5532   test -n "$BASH" && break
5533 done
5534 
5535     else
5536       # If it succeeded, then it was overridden by the user. We will use it
5537       # for the tool.
5538 
5539       # First remove it from the list of overridden variables, so we can test
5540       # for unknown variables in the end.
5541       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5542 
5543       # Check if we try to supply an empty value
5544       if test "x$BASH" = x; then
5545         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5546 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5548 $as_echo_n "checking for BASH... " >&6; }
5549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5550 $as_echo "disabled" >&6; }
5551       else
5552         # Check if the provided tool contains a complete path.
5553         tool_specified="$BASH"
5554         tool_basename="${tool_specified##*/}"
5555         if test "x$tool_basename" = "x$tool_specified"; then
5556           # A command without a complete path is provided, search $PATH.
5557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5558 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5559           # Extract the first word of "$tool_basename", so it can be a program name with args.
5560 set dummy $tool_basename; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_path_BASH+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   case $BASH in
5567   [\\/]* | ?:[\\/]*)
5568   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5569   ;;
5570   *)
5571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576     for ac_exec_ext in '' $ac_executable_extensions; do
5577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583   done
5584 IFS=$as_save_IFS
5585 
5586   ;;
5587 esac
5588 fi
5589 BASH=$ac_cv_path_BASH
5590 if test -n "$BASH"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5592 $as_echo "$BASH" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597 
5598 
5599           if test "x$BASH" = x; then
5600             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5601           fi
5602         else
5603           # Otherwise we believe it is a complete path. Use it as it is.
5604           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5605 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5606           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5607 $as_echo_n "checking for BASH... " >&6; }
5608           if test ! -x "$tool_specified"; then
5609             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5610 $as_echo "not found" >&6; }
5611             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5612           fi
5613           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5614 $as_echo "$tool_specified" >&6; }
5615         fi
5616       fi
5617     fi
5618 
5619   fi
5620 
5621 
5622 
5623   if test "x$BASH" = x; then
5624     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5625   fi
5626 
5627 
5628 
5629 
5630 
5631   # Publish this variable in the help.
5632 
5633 
5634   if [ -z "${CAT+x}" ]; then
5635     # The variable is not set by user, try to locate tool using the code snippet
5636     for ac_prog in cat
5637 do
5638   # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_path_CAT+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   case $CAT in
5646   [\\/]* | ?:[\\/]*)
5647   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5648   ;;
5649   *)
5650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664 
5665   ;;
5666 esac
5667 fi
5668 CAT=$ac_cv_path_CAT
5669 if test -n "$CAT"; then
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5671 $as_echo "$CAT" >&6; }
5672 else
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 fi
5676 
5677 
5678   test -n "$CAT" && break
5679 done
5680 
5681   else
5682     # The variable is set, but is it from the command line or the environment?
5683 
5684     # Try to remove the string !CAT! from our list.
5685     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5686     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5687       # If it failed, the variable was not from the command line. Ignore it,
5688       # but warn the user (except for BASH, which is always set by the calling BASH).
5689       if test "xCAT" != xBASH; then
5690         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5691 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5692       fi
5693       # Try to locate tool using the code snippet
5694       for ac_prog in cat
5695 do
5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_CAT+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   case $CAT in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722 
5723   ;;
5724 esac
5725 fi
5726 CAT=$ac_cv_path_CAT
5727 if test -n "$CAT"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5729 $as_echo "$CAT" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734 
5735 
5736   test -n "$CAT" && break
5737 done
5738 
5739     else
5740       # If it succeeded, then it was overridden by the user. We will use it
5741       # for the tool.
5742 
5743       # First remove it from the list of overridden variables, so we can test
5744       # for unknown variables in the end.
5745       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5746 
5747       # Check if we try to supply an empty value
5748       if test "x$CAT" = x; then
5749         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5750 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5752 $as_echo_n "checking for CAT... " >&6; }
5753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5754 $as_echo "disabled" >&6; }
5755       else
5756         # Check if the provided tool contains a complete path.
5757         tool_specified="$CAT"
5758         tool_basename="${tool_specified##*/}"
5759         if test "x$tool_basename" = "x$tool_specified"; then
5760           # A command without a complete path is provided, search $PATH.
5761           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5762 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5763           # Extract the first word of "$tool_basename", so it can be a program name with args.
5764 set dummy $tool_basename; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_CAT+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   case $CAT in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789 
5790   ;;
5791 esac
5792 fi
5793 CAT=$ac_cv_path_CAT
5794 if test -n "$CAT"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5796 $as_echo "$CAT" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801 
5802 
5803           if test "x$CAT" = x; then
5804             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5805           fi
5806         else
5807           # Otherwise we believe it is a complete path. Use it as it is.
5808           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5809 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5810           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5811 $as_echo_n "checking for CAT... " >&6; }
5812           if test ! -x "$tool_specified"; then
5813             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5814 $as_echo "not found" >&6; }
5815             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5816           fi
5817           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5818 $as_echo "$tool_specified" >&6; }
5819         fi
5820       fi
5821     fi
5822 
5823   fi
5824 
5825 
5826 
5827   if test "x$CAT" = x; then
5828     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5829   fi
5830 
5831 
5832 
5833 
5834 
5835   # Publish this variable in the help.
5836 
5837 
5838   if [ -z "${CHMOD+x}" ]; then
5839     # The variable is not set by user, try to locate tool using the code snippet
5840     for ac_prog in chmod
5841 do
5842   # Extract the first word of "$ac_prog", so it can be a program name with args.
5843 set dummy $ac_prog; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_path_CHMOD+:} false; then :
5847   $as_echo_n "(cached) " >&6
5848 else
5849   case $CHMOD in
5850   [\\/]* | ?:[\\/]*)
5851   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5852   ;;
5853   *)
5854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859     for ac_exec_ext in '' $ac_executable_extensions; do
5860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866   done
5867 IFS=$as_save_IFS
5868 
5869   ;;
5870 esac
5871 fi
5872 CHMOD=$ac_cv_path_CHMOD
5873 if test -n "$CHMOD"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5875 $as_echo "$CHMOD" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880 
5881 
5882   test -n "$CHMOD" && break
5883 done
5884 
5885   else
5886     # The variable is set, but is it from the command line or the environment?
5887 
5888     # Try to remove the string !CHMOD! from our list.
5889     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5890     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5891       # If it failed, the variable was not from the command line. Ignore it,
5892       # but warn the user (except for BASH, which is always set by the calling BASH).
5893       if test "xCHMOD" != xBASH; then
5894         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5895 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5896       fi
5897       # Try to locate tool using the code snippet
5898       for ac_prog in chmod
5899 do
5900   # Extract the first word of "$ac_prog", so it can be a program name with args.
5901 set dummy $ac_prog; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_path_CHMOD+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   case $CHMOD in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917     for ac_exec_ext in '' $ac_executable_extensions; do
5918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926 
5927   ;;
5928 esac
5929 fi
5930 CHMOD=$ac_cv_path_CHMOD
5931 if test -n "$CHMOD"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5933 $as_echo "$CHMOD" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938 
5939 
5940   test -n "$CHMOD" && break
5941 done
5942 
5943     else
5944       # If it succeeded, then it was overridden by the user. We will use it
5945       # for the tool.
5946 
5947       # First remove it from the list of overridden variables, so we can test
5948       # for unknown variables in the end.
5949       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5950 
5951       # Check if we try to supply an empty value
5952       if test "x$CHMOD" = x; then
5953         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5954 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5956 $as_echo_n "checking for CHMOD... " >&6; }
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5958 $as_echo "disabled" >&6; }
5959       else
5960         # Check if the provided tool contains a complete path.
5961         tool_specified="$CHMOD"
5962         tool_basename="${tool_specified##*/}"
5963         if test "x$tool_basename" = "x$tool_specified"; then
5964           # A command without a complete path is provided, search $PATH.
5965           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5966 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5967           # Extract the first word of "$tool_basename", so it can be a program name with args.
5968 set dummy $tool_basename; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_path_CHMOD+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   case $CHMOD in
5975   [\\/]* | ?:[\\/]*)
5976   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5977   ;;
5978   *)
5979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984     for ac_exec_ext in '' $ac_executable_extensions; do
5985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991   done
5992 IFS=$as_save_IFS
5993 
5994   ;;
5995 esac
5996 fi
5997 CHMOD=$ac_cv_path_CHMOD
5998 if test -n "$CHMOD"; then
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6000 $as_echo "$CHMOD" >&6; }
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005 
6006 
6007           if test "x$CHMOD" = x; then
6008             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6009           fi
6010         else
6011           # Otherwise we believe it is a complete path. Use it as it is.
6012           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6013 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6014           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6015 $as_echo_n "checking for CHMOD... " >&6; }
6016           if test ! -x "$tool_specified"; then
6017             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6018 $as_echo "not found" >&6; }
6019             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6020           fi
6021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6022 $as_echo "$tool_specified" >&6; }
6023         fi
6024       fi
6025     fi
6026 
6027   fi
6028 
6029 
6030 
6031   if test "x$CHMOD" = x; then
6032     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6033   fi
6034 
6035 
6036 
6037 
6038 
6039   # Publish this variable in the help.
6040 
6041 
6042   if [ -z "${CMP+x}" ]; then
6043     # The variable is not set by user, try to locate tool using the code snippet
6044     for ac_prog in cmp
6045 do
6046   # Extract the first word of "$ac_prog", so it can be a program name with args.
6047 set dummy $ac_prog; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_path_CMP+:} false; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   case $CMP in
6054   [\\/]* | ?:[\\/]*)
6055   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6056   ;;
6057   *)
6058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072 
6073   ;;
6074 esac
6075 fi
6076 CMP=$ac_cv_path_CMP
6077 if test -n "$CMP"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6079 $as_echo "$CMP" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084 
6085 
6086   test -n "$CMP" && break
6087 done
6088 
6089   else
6090     # The variable is set, but is it from the command line or the environment?
6091 
6092     # Try to remove the string !CMP! from our list.
6093     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6094     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6095       # If it failed, the variable was not from the command line. Ignore it,
6096       # but warn the user (except for BASH, which is always set by the calling BASH).
6097       if test "xCMP" != xBASH; then
6098         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6099 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6100       fi
6101       # Try to locate tool using the code snippet
6102       for ac_prog in cmp
6103 do
6104   # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_path_CMP+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   case $CMP in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121     for ac_exec_ext in '' $ac_executable_extensions; do
6122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128   done
6129 IFS=$as_save_IFS
6130 
6131   ;;
6132 esac
6133 fi
6134 CMP=$ac_cv_path_CMP
6135 if test -n "$CMP"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6137 $as_echo "$CMP" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142 
6143 
6144   test -n "$CMP" && break
6145 done
6146 
6147     else
6148       # If it succeeded, then it was overridden by the user. We will use it
6149       # for the tool.
6150 
6151       # First remove it from the list of overridden variables, so we can test
6152       # for unknown variables in the end.
6153       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6154 
6155       # Check if we try to supply an empty value
6156       if test "x$CMP" = x; then
6157         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6158 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6160 $as_echo_n "checking for CMP... " >&6; }
6161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6162 $as_echo "disabled" >&6; }
6163       else
6164         # Check if the provided tool contains a complete path.
6165         tool_specified="$CMP"
6166         tool_basename="${tool_specified##*/}"
6167         if test "x$tool_basename" = "x$tool_specified"; then
6168           # A command without a complete path is provided, search $PATH.
6169           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6170 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6171           # Extract the first word of "$tool_basename", so it can be a program name with args.
6172 set dummy $tool_basename; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_path_CMP+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   case $CMP in
6179   [\\/]* | ?:[\\/]*)
6180   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6181   ;;
6182   *)
6183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197 
6198   ;;
6199 esac
6200 fi
6201 CMP=$ac_cv_path_CMP
6202 if test -n "$CMP"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6204 $as_echo "$CMP" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209 
6210 
6211           if test "x$CMP" = x; then
6212             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6213           fi
6214         else
6215           # Otherwise we believe it is a complete path. Use it as it is.
6216           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6217 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6218           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6219 $as_echo_n "checking for CMP... " >&6; }
6220           if test ! -x "$tool_specified"; then
6221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6222 $as_echo "not found" >&6; }
6223             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6224           fi
6225           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6226 $as_echo "$tool_specified" >&6; }
6227         fi
6228       fi
6229     fi
6230 
6231   fi
6232 
6233 
6234 
6235   if test "x$CMP" = x; then
6236     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6237   fi
6238 
6239 
6240 
6241 
6242 
6243   # Publish this variable in the help.
6244 
6245 
6246   if [ -z "${COMM+x}" ]; then
6247     # The variable is not set by user, try to locate tool using the code snippet
6248     for ac_prog in comm
6249 do
6250   # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_path_COMM+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   case $COMM in
6258   [\\/]* | ?:[\\/]*)
6259   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6260   ;;
6261   *)
6262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276 
6277   ;;
6278 esac
6279 fi
6280 COMM=$ac_cv_path_COMM
6281 if test -n "$COMM"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6283 $as_echo "$COMM" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 
6289 
6290   test -n "$COMM" && break
6291 done
6292 
6293   else
6294     # The variable is set, but is it from the command line or the environment?
6295 
6296     # Try to remove the string !COMM! from our list.
6297     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6298     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6299       # If it failed, the variable was not from the command line. Ignore it,
6300       # but warn the user (except for BASH, which is always set by the calling BASH).
6301       if test "xCOMM" != xBASH; then
6302         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6303 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6304       fi
6305       # Try to locate tool using the code snippet
6306       for ac_prog in comm
6307 do
6308   # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_COMM+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $COMM in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334 
6335   ;;
6336 esac
6337 fi
6338 COMM=$ac_cv_path_COMM
6339 if test -n "$COMM"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6341 $as_echo "$COMM" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346 
6347 
6348   test -n "$COMM" && break
6349 done
6350 
6351     else
6352       # If it succeeded, then it was overridden by the user. We will use it
6353       # for the tool.
6354 
6355       # First remove it from the list of overridden variables, so we can test
6356       # for unknown variables in the end.
6357       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6358 
6359       # Check if we try to supply an empty value
6360       if test "x$COMM" = x; then
6361         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6362 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6364 $as_echo_n "checking for COMM... " >&6; }
6365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6366 $as_echo "disabled" >&6; }
6367       else
6368         # Check if the provided tool contains a complete path.
6369         tool_specified="$COMM"
6370         tool_basename="${tool_specified##*/}"
6371         if test "x$tool_basename" = "x$tool_specified"; then
6372           # A command without a complete path is provided, search $PATH.
6373           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6374 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6375           # Extract the first word of "$tool_basename", so it can be a program name with args.
6376 set dummy $tool_basename; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_path_COMM+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   case $COMM in
6383   [\\/]* | ?:[\\/]*)
6384   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6385   ;;
6386   *)
6387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401 
6402   ;;
6403 esac
6404 fi
6405 COMM=$ac_cv_path_COMM
6406 if test -n "$COMM"; then
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6408 $as_echo "$COMM" >&6; }
6409 else
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413 
6414 
6415           if test "x$COMM" = x; then
6416             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6417           fi
6418         else
6419           # Otherwise we believe it is a complete path. Use it as it is.
6420           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6421 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6422           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6423 $as_echo_n "checking for COMM... " >&6; }
6424           if test ! -x "$tool_specified"; then
6425             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6426 $as_echo "not found" >&6; }
6427             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6428           fi
6429           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6430 $as_echo "$tool_specified" >&6; }
6431         fi
6432       fi
6433     fi
6434 
6435   fi
6436 
6437 
6438 
6439   if test "x$COMM" = x; then
6440     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6441   fi
6442 
6443 
6444 
6445 
6446 
6447   # Publish this variable in the help.
6448 
6449 
6450   if [ -z "${CP+x}" ]; then
6451     # The variable is not set by user, try to locate tool using the code snippet
6452     for ac_prog in cp
6453 do
6454   # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_path_CP+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   case $CP in
6462   [\\/]* | ?:[\\/]*)
6463   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6464   ;;
6465   *)
6466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480 
6481   ;;
6482 esac
6483 fi
6484 CP=$ac_cv_path_CP
6485 if test -n "$CP"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6487 $as_echo "$CP" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492 
6493 
6494   test -n "$CP" && break
6495 done
6496 
6497   else
6498     # The variable is set, but is it from the command line or the environment?
6499 
6500     # Try to remove the string !CP! from our list.
6501     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6502     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6503       # If it failed, the variable was not from the command line. Ignore it,
6504       # but warn the user (except for BASH, which is always set by the calling BASH).
6505       if test "xCP" != xBASH; then
6506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6507 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6508       fi
6509       # Try to locate tool using the code snippet
6510       for ac_prog in cp
6511 do
6512   # Extract the first word of "$ac_prog", so it can be a program name with args.
6513 set dummy $ac_prog; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_path_CP+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   case $CP in
6520   [\\/]* | ?:[\\/]*)
6521   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6522   ;;
6523   *)
6524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538 
6539   ;;
6540 esac
6541 fi
6542 CP=$ac_cv_path_CP
6543 if test -n "$CP"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6545 $as_echo "$CP" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550 
6551 
6552   test -n "$CP" && break
6553 done
6554 
6555     else
6556       # If it succeeded, then it was overridden by the user. We will use it
6557       # for the tool.
6558 
6559       # First remove it from the list of overridden variables, so we can test
6560       # for unknown variables in the end.
6561       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6562 
6563       # Check if we try to supply an empty value
6564       if test "x$CP" = x; then
6565         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6566 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6568 $as_echo_n "checking for CP... " >&6; }
6569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6570 $as_echo "disabled" >&6; }
6571       else
6572         # Check if the provided tool contains a complete path.
6573         tool_specified="$CP"
6574         tool_basename="${tool_specified##*/}"
6575         if test "x$tool_basename" = "x$tool_specified"; then
6576           # A command without a complete path is provided, search $PATH.
6577           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6578 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6579           # Extract the first word of "$tool_basename", so it can be a program name with args.
6580 set dummy $tool_basename; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_path_CP+:} false; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   case $CP in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605 
6606   ;;
6607 esac
6608 fi
6609 CP=$ac_cv_path_CP
6610 if test -n "$CP"; then
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6612 $as_echo "$CP" >&6; }
6613 else
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617 
6618 
6619           if test "x$CP" = x; then
6620             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6621           fi
6622         else
6623           # Otherwise we believe it is a complete path. Use it as it is.
6624           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6625 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6626           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6627 $as_echo_n "checking for CP... " >&6; }
6628           if test ! -x "$tool_specified"; then
6629             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6630 $as_echo "not found" >&6; }
6631             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6632           fi
6633           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6634 $as_echo "$tool_specified" >&6; }
6635         fi
6636       fi
6637     fi
6638 
6639   fi
6640 
6641 
6642 
6643   if test "x$CP" = x; then
6644     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6645   fi
6646 
6647 
6648 
6649 
6650 
6651   # Publish this variable in the help.
6652 
6653 
6654   if [ -z "${CUT+x}" ]; then
6655     # The variable is not set by user, try to locate tool using the code snippet
6656     for ac_prog in cut
6657 do
6658   # Extract the first word of "$ac_prog", so it can be a program name with args.
6659 set dummy $ac_prog; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_path_CUT+:} false; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   case $CUT in
6666   [\\/]* | ?:[\\/]*)
6667   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6668   ;;
6669   *)
6670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675     for ac_exec_ext in '' $ac_executable_extensions; do
6676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682   done
6683 IFS=$as_save_IFS
6684 
6685   ;;
6686 esac
6687 fi
6688 CUT=$ac_cv_path_CUT
6689 if test -n "$CUT"; then
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6691 $as_echo "$CUT" >&6; }
6692 else
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696 
6697 
6698   test -n "$CUT" && break
6699 done
6700 
6701   else
6702     # The variable is set, but is it from the command line or the environment?
6703 
6704     # Try to remove the string !CUT! from our list.
6705     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6706     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6707       # If it failed, the variable was not from the command line. Ignore it,
6708       # but warn the user (except for BASH, which is always set by the calling BASH).
6709       if test "xCUT" != xBASH; then
6710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6711 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6712       fi
6713       # Try to locate tool using the code snippet
6714       for ac_prog in cut
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_path_CUT+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   case $CUT in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733     for ac_exec_ext in '' $ac_executable_extensions; do
6734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740   done
6741 IFS=$as_save_IFS
6742 
6743   ;;
6744 esac
6745 fi
6746 CUT=$ac_cv_path_CUT
6747 if test -n "$CUT"; then
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6749 $as_echo "$CUT" >&6; }
6750 else
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754 
6755 
6756   test -n "$CUT" && break
6757 done
6758 
6759     else
6760       # If it succeeded, then it was overridden by the user. We will use it
6761       # for the tool.
6762 
6763       # First remove it from the list of overridden variables, so we can test
6764       # for unknown variables in the end.
6765       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6766 
6767       # Check if we try to supply an empty value
6768       if test "x$CUT" = x; then
6769         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6770 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6772 $as_echo_n "checking for CUT... " >&6; }
6773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6774 $as_echo "disabled" >&6; }
6775       else
6776         # Check if the provided tool contains a complete path.
6777         tool_specified="$CUT"
6778         tool_basename="${tool_specified##*/}"
6779         if test "x$tool_basename" = "x$tool_specified"; then
6780           # A command without a complete path is provided, search $PATH.
6781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6782 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6783           # Extract the first word of "$tool_basename", so it can be a program name with args.
6784 set dummy $tool_basename; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_path_CUT+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   case $CUT in
6791   [\\/]* | ?:[\\/]*)
6792   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6793   ;;
6794   *)
6795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809 
6810   ;;
6811 esac
6812 fi
6813 CUT=$ac_cv_path_CUT
6814 if test -n "$CUT"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6816 $as_echo "$CUT" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821 
6822 
6823           if test "x$CUT" = x; then
6824             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6825           fi
6826         else
6827           # Otherwise we believe it is a complete path. Use it as it is.
6828           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6829 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6831 $as_echo_n "checking for CUT... " >&6; }
6832           if test ! -x "$tool_specified"; then
6833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6834 $as_echo "not found" >&6; }
6835             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6836           fi
6837           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6838 $as_echo "$tool_specified" >&6; }
6839         fi
6840       fi
6841     fi
6842 
6843   fi
6844 
6845 
6846 
6847   if test "x$CUT" = x; then
6848     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6849   fi
6850 
6851 
6852 
6853 
6854 
6855   # Publish this variable in the help.
6856 
6857 
6858   if [ -z "${DATE+x}" ]; then
6859     # The variable is not set by user, try to locate tool using the code snippet
6860     for ac_prog in date
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_path_DATE+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   case $DATE in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879     for ac_exec_ext in '' $ac_executable_extensions; do
6880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886   done
6887 IFS=$as_save_IFS
6888 
6889   ;;
6890 esac
6891 fi
6892 DATE=$ac_cv_path_DATE
6893 if test -n "$DATE"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6895 $as_echo "$DATE" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900 
6901 
6902   test -n "$DATE" && break
6903 done
6904 
6905   else
6906     # The variable is set, but is it from the command line or the environment?
6907 
6908     # Try to remove the string !DATE! from our list.
6909     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6910     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6911       # If it failed, the variable was not from the command line. Ignore it,
6912       # but warn the user (except for BASH, which is always set by the calling BASH).
6913       if test "xDATE" != xBASH; then
6914         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6915 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6916       fi
6917       # Try to locate tool using the code snippet
6918       for ac_prog in date
6919 do
6920   # Extract the first word of "$ac_prog", so it can be a program name with args.
6921 set dummy $ac_prog; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_path_DATE+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   case $DATE in
6928   [\\/]* | ?:[\\/]*)
6929   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6930   ;;
6931   *)
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937     for ac_exec_ext in '' $ac_executable_extensions; do
6938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944   done
6945 IFS=$as_save_IFS
6946 
6947   ;;
6948 esac
6949 fi
6950 DATE=$ac_cv_path_DATE
6951 if test -n "$DATE"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6953 $as_echo "$DATE" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958 
6959 
6960   test -n "$DATE" && break
6961 done
6962 
6963     else
6964       # If it succeeded, then it was overridden by the user. We will use it
6965       # for the tool.
6966 
6967       # First remove it from the list of overridden variables, so we can test
6968       # for unknown variables in the end.
6969       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6970 
6971       # Check if we try to supply an empty value
6972       if test "x$DATE" = x; then
6973         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6974 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6975         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6976 $as_echo_n "checking for DATE... " >&6; }
6977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6978 $as_echo "disabled" >&6; }
6979       else
6980         # Check if the provided tool contains a complete path.
6981         tool_specified="$DATE"
6982         tool_basename="${tool_specified##*/}"
6983         if test "x$tool_basename" = "x$tool_specified"; then
6984           # A command without a complete path is provided, search $PATH.
6985           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6986 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6987           # Extract the first word of "$tool_basename", so it can be a program name with args.
6988 set dummy $tool_basename; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_path_DATE+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   case $DATE in
6995   [\\/]* | ?:[\\/]*)
6996   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6997   ;;
6998   *)
6999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013 
7014   ;;
7015 esac
7016 fi
7017 DATE=$ac_cv_path_DATE
7018 if test -n "$DATE"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7020 $as_echo "$DATE" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025 
7026 
7027           if test "x$DATE" = x; then
7028             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7029           fi
7030         else
7031           # Otherwise we believe it is a complete path. Use it as it is.
7032           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7033 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7034           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7035 $as_echo_n "checking for DATE... " >&6; }
7036           if test ! -x "$tool_specified"; then
7037             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7038 $as_echo "not found" >&6; }
7039             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7040           fi
7041           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7042 $as_echo "$tool_specified" >&6; }
7043         fi
7044       fi
7045     fi
7046 
7047   fi
7048 
7049 
7050 
7051   if test "x$DATE" = x; then
7052     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7053   fi
7054 
7055 
7056 
7057 
7058 
7059   # Publish this variable in the help.
7060 
7061 
7062   if [ -z "${DIFF+x}" ]; then
7063     # The variable is not set by user, try to locate tool using the code snippet
7064     for ac_prog in gdiff diff
7065 do
7066   # Extract the first word of "$ac_prog", so it can be a program name with args.
7067 set dummy $ac_prog; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_path_DIFF+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   case $DIFF in
7074   [\\/]* | ?:[\\/]*)
7075   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7076   ;;
7077   *)
7078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081   IFS=$as_save_IFS
7082   test -z "$as_dir" && as_dir=.
7083     for ac_exec_ext in '' $ac_executable_extensions; do
7084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087     break 2
7088   fi
7089 done
7090   done
7091 IFS=$as_save_IFS
7092 
7093   ;;
7094 esac
7095 fi
7096 DIFF=$ac_cv_path_DIFF
7097 if test -n "$DIFF"; then
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7099 $as_echo "$DIFF" >&6; }
7100 else
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104 
7105 
7106   test -n "$DIFF" && break
7107 done
7108 
7109   else
7110     # The variable is set, but is it from the command line or the environment?
7111 
7112     # Try to remove the string !DIFF! from our list.
7113     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7114     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7115       # If it failed, the variable was not from the command line. Ignore it,
7116       # but warn the user (except for BASH, which is always set by the calling BASH).
7117       if test "xDIFF" != xBASH; then
7118         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7119 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7120       fi
7121       # Try to locate tool using the code snippet
7122       for ac_prog in gdiff diff
7123 do
7124   # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_path_DIFF+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   case $DIFF in
7132   [\\/]* | ?:[\\/]*)
7133   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7134   ;;
7135   *)
7136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150 
7151   ;;
7152 esac
7153 fi
7154 DIFF=$ac_cv_path_DIFF
7155 if test -n "$DIFF"; then
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7157 $as_echo "$DIFF" >&6; }
7158 else
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162 
7163 
7164   test -n "$DIFF" && break
7165 done
7166 
7167     else
7168       # If it succeeded, then it was overridden by the user. We will use it
7169       # for the tool.
7170 
7171       # First remove it from the list of overridden variables, so we can test
7172       # for unknown variables in the end.
7173       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7174 
7175       # Check if we try to supply an empty value
7176       if test "x$DIFF" = x; then
7177         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7178 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7180 $as_echo_n "checking for DIFF... " >&6; }
7181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7182 $as_echo "disabled" >&6; }
7183       else
7184         # Check if the provided tool contains a complete path.
7185         tool_specified="$DIFF"
7186         tool_basename="${tool_specified##*/}"
7187         if test "x$tool_basename" = "x$tool_specified"; then
7188           # A command without a complete path is provided, search $PATH.
7189           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7190 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7191           # Extract the first word of "$tool_basename", so it can be a program name with args.
7192 set dummy $tool_basename; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_path_DIFF+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   case $DIFF in
7199   [\\/]* | ?:[\\/]*)
7200   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7201   ;;
7202   *)
7203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208     for ac_exec_ext in '' $ac_executable_extensions; do
7209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215   done
7216 IFS=$as_save_IFS
7217 
7218   ;;
7219 esac
7220 fi
7221 DIFF=$ac_cv_path_DIFF
7222 if test -n "$DIFF"; then
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7224 $as_echo "$DIFF" >&6; }
7225 else
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229 
7230 
7231           if test "x$DIFF" = x; then
7232             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7233           fi
7234         else
7235           # Otherwise we believe it is a complete path. Use it as it is.
7236           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7237 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7238           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7239 $as_echo_n "checking for DIFF... " >&6; }
7240           if test ! -x "$tool_specified"; then
7241             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7242 $as_echo "not found" >&6; }
7243             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7244           fi
7245           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7246 $as_echo "$tool_specified" >&6; }
7247         fi
7248       fi
7249     fi
7250 
7251   fi
7252 
7253 
7254 
7255   if test "x$DIFF" = x; then
7256     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7257   fi
7258 
7259 
7260 
7261 
7262 
7263   # Publish this variable in the help.
7264 
7265 
7266   if [ -z "${DIRNAME+x}" ]; then
7267     # The variable is not set by user, try to locate tool using the code snippet
7268     for ac_prog in dirname
7269 do
7270   # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_path_DIRNAME+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   case $DIRNAME in
7278   [\\/]* | ?:[\\/]*)
7279   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7280   ;;
7281   *)
7282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296 
7297   ;;
7298 esac
7299 fi
7300 DIRNAME=$ac_cv_path_DIRNAME
7301 if test -n "$DIRNAME"; then
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7303 $as_echo "$DIRNAME" >&6; }
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308 
7309 
7310   test -n "$DIRNAME" && break
7311 done
7312 
7313   else
7314     # The variable is set, but is it from the command line or the environment?
7315 
7316     # Try to remove the string !DIRNAME! from our list.
7317     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7318     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7319       # If it failed, the variable was not from the command line. Ignore it,
7320       # but warn the user (except for BASH, which is always set by the calling BASH).
7321       if test "xDIRNAME" != xBASH; then
7322         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7323 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7324       fi
7325       # Try to locate tool using the code snippet
7326       for ac_prog in dirname
7327 do
7328   # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_path_DIRNAME+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   case $DIRNAME in
7336   [\\/]* | ?:[\\/]*)
7337   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7338   ;;
7339   *)
7340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354 
7355   ;;
7356 esac
7357 fi
7358 DIRNAME=$ac_cv_path_DIRNAME
7359 if test -n "$DIRNAME"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7361 $as_echo "$DIRNAME" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366 
7367 
7368   test -n "$DIRNAME" && break
7369 done
7370 
7371     else
7372       # If it succeeded, then it was overridden by the user. We will use it
7373       # for the tool.
7374 
7375       # First remove it from the list of overridden variables, so we can test
7376       # for unknown variables in the end.
7377       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7378 
7379       # Check if we try to supply an empty value
7380       if test "x$DIRNAME" = x; then
7381         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7382 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7384 $as_echo_n "checking for DIRNAME... " >&6; }
7385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7386 $as_echo "disabled" >&6; }
7387       else
7388         # Check if the provided tool contains a complete path.
7389         tool_specified="$DIRNAME"
7390         tool_basename="${tool_specified##*/}"
7391         if test "x$tool_basename" = "x$tool_specified"; then
7392           # A command without a complete path is provided, search $PATH.
7393           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7394 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7395           # Extract the first word of "$tool_basename", so it can be a program name with args.
7396 set dummy $tool_basename; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_path_DIRNAME+:} false; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   case $DIRNAME in
7403   [\\/]* | ?:[\\/]*)
7404   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7405   ;;
7406   *)
7407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412     for ac_exec_ext in '' $ac_executable_extensions; do
7413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419   done
7420 IFS=$as_save_IFS
7421 
7422   ;;
7423 esac
7424 fi
7425 DIRNAME=$ac_cv_path_DIRNAME
7426 if test -n "$DIRNAME"; then
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7428 $as_echo "$DIRNAME" >&6; }
7429 else
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433 
7434 
7435           if test "x$DIRNAME" = x; then
7436             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7437           fi
7438         else
7439           # Otherwise we believe it is a complete path. Use it as it is.
7440           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7441 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7442           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7443 $as_echo_n "checking for DIRNAME... " >&6; }
7444           if test ! -x "$tool_specified"; then
7445             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7446 $as_echo "not found" >&6; }
7447             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7448           fi
7449           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7450 $as_echo "$tool_specified" >&6; }
7451         fi
7452       fi
7453     fi
7454 
7455   fi
7456 
7457 
7458 
7459   if test "x$DIRNAME" = x; then
7460     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7461   fi
7462 
7463 
7464 
7465 
7466 
7467   # Publish this variable in the help.
7468 
7469 
7470   if [ -z "${ECHO+x}" ]; then
7471     # The variable is not set by user, try to locate tool using the code snippet
7472     for ac_prog in echo
7473 do
7474   # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_path_ECHO+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   case $ECHO in
7482   [\\/]* | ?:[\\/]*)
7483   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7484   ;;
7485   *)
7486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500 
7501   ;;
7502 esac
7503 fi
7504 ECHO=$ac_cv_path_ECHO
7505 if test -n "$ECHO"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7507 $as_echo "$ECHO" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512 
7513 
7514   test -n "$ECHO" && break
7515 done
7516 
7517   else
7518     # The variable is set, but is it from the command line or the environment?
7519 
7520     # Try to remove the string !ECHO! from our list.
7521     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7522     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7523       # If it failed, the variable was not from the command line. Ignore it,
7524       # but warn the user (except for BASH, which is always set by the calling BASH).
7525       if test "xECHO" != xBASH; then
7526         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7527 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7528       fi
7529       # Try to locate tool using the code snippet
7530       for ac_prog in echo
7531 do
7532   # Extract the first word of "$ac_prog", so it can be a program name with args.
7533 set dummy $ac_prog; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_path_ECHO+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   case $ECHO in
7540   [\\/]* | ?:[\\/]*)
7541   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7542   ;;
7543   *)
7544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558 
7559   ;;
7560 esac
7561 fi
7562 ECHO=$ac_cv_path_ECHO
7563 if test -n "$ECHO"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7565 $as_echo "$ECHO" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570 
7571 
7572   test -n "$ECHO" && break
7573 done
7574 
7575     else
7576       # If it succeeded, then it was overridden by the user. We will use it
7577       # for the tool.
7578 
7579       # First remove it from the list of overridden variables, so we can test
7580       # for unknown variables in the end.
7581       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7582 
7583       # Check if we try to supply an empty value
7584       if test "x$ECHO" = x; then
7585         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7586 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7588 $as_echo_n "checking for ECHO... " >&6; }
7589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7590 $as_echo "disabled" >&6; }
7591       else
7592         # Check if the provided tool contains a complete path.
7593         tool_specified="$ECHO"
7594         tool_basename="${tool_specified##*/}"
7595         if test "x$tool_basename" = "x$tool_specified"; then
7596           # A command without a complete path is provided, search $PATH.
7597           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7598 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7599           # Extract the first word of "$tool_basename", so it can be a program name with args.
7600 set dummy $tool_basename; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_path_ECHO+:} false; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   case $ECHO in
7607   [\\/]* | ?:[\\/]*)
7608   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7609   ;;
7610   *)
7611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616     for ac_exec_ext in '' $ac_executable_extensions; do
7617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623   done
7624 IFS=$as_save_IFS
7625 
7626   ;;
7627 esac
7628 fi
7629 ECHO=$ac_cv_path_ECHO
7630 if test -n "$ECHO"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7632 $as_echo "$ECHO" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637 
7638 
7639           if test "x$ECHO" = x; then
7640             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7641           fi
7642         else
7643           # Otherwise we believe it is a complete path. Use it as it is.
7644           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7645 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7646           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7647 $as_echo_n "checking for ECHO... " >&6; }
7648           if test ! -x "$tool_specified"; then
7649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7650 $as_echo "not found" >&6; }
7651             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7652           fi
7653           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7654 $as_echo "$tool_specified" >&6; }
7655         fi
7656       fi
7657     fi
7658 
7659   fi
7660 
7661 
7662 
7663   if test "x$ECHO" = x; then
7664     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7665   fi
7666 
7667 
7668 
7669 
7670 
7671   # Publish this variable in the help.
7672 
7673 
7674   if [ -z "${EXPR+x}" ]; then
7675     # The variable is not set by user, try to locate tool using the code snippet
7676     for ac_prog in expr
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_path_EXPR+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   case $EXPR in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_exec_ext in '' $ac_executable_extensions; do
7696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702   done
7703 IFS=$as_save_IFS
7704 
7705   ;;
7706 esac
7707 fi
7708 EXPR=$ac_cv_path_EXPR
7709 if test -n "$EXPR"; then
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7711 $as_echo "$EXPR" >&6; }
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716 
7717 
7718   test -n "$EXPR" && break
7719 done
7720 
7721   else
7722     # The variable is set, but is it from the command line or the environment?
7723 
7724     # Try to remove the string !EXPR! from our list.
7725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7727       # If it failed, the variable was not from the command line. Ignore it,
7728       # but warn the user (except for BASH, which is always set by the calling BASH).
7729       if test "xEXPR" != xBASH; then
7730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7731 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7732       fi
7733       # Try to locate tool using the code snippet
7734       for ac_prog in expr
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_EXPR+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $EXPR in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762 
7763   ;;
7764 esac
7765 fi
7766 EXPR=$ac_cv_path_EXPR
7767 if test -n "$EXPR"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7769 $as_echo "$EXPR" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774 
7775 
7776   test -n "$EXPR" && break
7777 done
7778 
7779     else
7780       # If it succeeded, then it was overridden by the user. We will use it
7781       # for the tool.
7782 
7783       # First remove it from the list of overridden variables, so we can test
7784       # for unknown variables in the end.
7785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7786 
7787       # Check if we try to supply an empty value
7788       if test "x$EXPR" = x; then
7789         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7790 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7792 $as_echo_n "checking for EXPR... " >&6; }
7793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7794 $as_echo "disabled" >&6; }
7795       else
7796         # Check if the provided tool contains a complete path.
7797         tool_specified="$EXPR"
7798         tool_basename="${tool_specified##*/}"
7799         if test "x$tool_basename" = "x$tool_specified"; then
7800           # A command without a complete path is provided, search $PATH.
7801           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7802 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7803           # Extract the first word of "$tool_basename", so it can be a program name with args.
7804 set dummy $tool_basename; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_path_EXPR+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   case $EXPR in
7811   [\\/]* | ?:[\\/]*)
7812   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7813   ;;
7814   *)
7815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829 
7830   ;;
7831 esac
7832 fi
7833 EXPR=$ac_cv_path_EXPR
7834 if test -n "$EXPR"; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7836 $as_echo "$EXPR" >&6; }
7837 else
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841 
7842 
7843           if test "x$EXPR" = x; then
7844             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7845           fi
7846         else
7847           # Otherwise we believe it is a complete path. Use it as it is.
7848           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7849 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7850           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7851 $as_echo_n "checking for EXPR... " >&6; }
7852           if test ! -x "$tool_specified"; then
7853             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7854 $as_echo "not found" >&6; }
7855             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7856           fi
7857           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7858 $as_echo "$tool_specified" >&6; }
7859         fi
7860       fi
7861     fi
7862 
7863   fi
7864 
7865 
7866 
7867   if test "x$EXPR" = x; then
7868     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7869   fi
7870 
7871 
7872 
7873 
7874 
7875   # Publish this variable in the help.
7876 
7877 
7878   if [ -z "${FILE+x}" ]; then
7879     # The variable is not set by user, try to locate tool using the code snippet
7880     for ac_prog in file
7881 do
7882   # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_path_FILE+:} false; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   case $FILE in
7890   [\\/]* | ?:[\\/]*)
7891   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7892   ;;
7893   *)
7894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908 
7909   ;;
7910 esac
7911 fi
7912 FILE=$ac_cv_path_FILE
7913 if test -n "$FILE"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7915 $as_echo "$FILE" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920 
7921 
7922   test -n "$FILE" && break
7923 done
7924 
7925   else
7926     # The variable is set, but is it from the command line or the environment?
7927 
7928     # Try to remove the string !FILE! from our list.
7929     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7930     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7931       # If it failed, the variable was not from the command line. Ignore it,
7932       # but warn the user (except for BASH, which is always set by the calling BASH).
7933       if test "xFILE" != xBASH; then
7934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7935 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7936       fi
7937       # Try to locate tool using the code snippet
7938       for ac_prog in file
7939 do
7940   # Extract the first word of "$ac_prog", so it can be a program name with args.
7941 set dummy $ac_prog; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_path_FILE+:} false; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   case $FILE in
7948   [\\/]* | ?:[\\/]*)
7949   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7950   ;;
7951   *)
7952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955   IFS=$as_save_IFS
7956   test -z "$as_dir" && as_dir=.
7957     for ac_exec_ext in '' $ac_executable_extensions; do
7958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961     break 2
7962   fi
7963 done
7964   done
7965 IFS=$as_save_IFS
7966 
7967   ;;
7968 esac
7969 fi
7970 FILE=$ac_cv_path_FILE
7971 if test -n "$FILE"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7973 $as_echo "$FILE" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978 
7979 
7980   test -n "$FILE" && break
7981 done
7982 
7983     else
7984       # If it succeeded, then it was overridden by the user. We will use it
7985       # for the tool.
7986 
7987       # First remove it from the list of overridden variables, so we can test
7988       # for unknown variables in the end.
7989       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7990 
7991       # Check if we try to supply an empty value
7992       if test "x$FILE" = x; then
7993         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7994 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7996 $as_echo_n "checking for FILE... " >&6; }
7997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7998 $as_echo "disabled" >&6; }
7999       else
8000         # Check if the provided tool contains a complete path.
8001         tool_specified="$FILE"
8002         tool_basename="${tool_specified##*/}"
8003         if test "x$tool_basename" = "x$tool_specified"; then
8004           # A command without a complete path is provided, search $PATH.
8005           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8006 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8007           # Extract the first word of "$tool_basename", so it can be a program name with args.
8008 set dummy $tool_basename; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_path_FILE+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   case $FILE in
8015   [\\/]* | ?:[\\/]*)
8016   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8017   ;;
8018   *)
8019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033 
8034   ;;
8035 esac
8036 fi
8037 FILE=$ac_cv_path_FILE
8038 if test -n "$FILE"; then
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8040 $as_echo "$FILE" >&6; }
8041 else
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045 
8046 
8047           if test "x$FILE" = x; then
8048             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8049           fi
8050         else
8051           # Otherwise we believe it is a complete path. Use it as it is.
8052           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8053 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8054           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8055 $as_echo_n "checking for FILE... " >&6; }
8056           if test ! -x "$tool_specified"; then
8057             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8058 $as_echo "not found" >&6; }
8059             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8060           fi
8061           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8062 $as_echo "$tool_specified" >&6; }
8063         fi
8064       fi
8065     fi
8066 
8067   fi
8068 
8069 
8070 
8071   if test "x$FILE" = x; then
8072     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8073   fi
8074 
8075 
8076 
8077 
8078 
8079   # Publish this variable in the help.
8080 
8081 
8082   if [ -z "${FIND+x}" ]; then
8083     # The variable is not set by user, try to locate tool using the code snippet
8084     for ac_prog in find
8085 do
8086   # Extract the first word of "$ac_prog", so it can be a program name with args.
8087 set dummy $ac_prog; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_path_FIND+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   case $FIND in
8094   [\\/]* | ?:[\\/]*)
8095   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8096   ;;
8097   *)
8098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103     for ac_exec_ext in '' $ac_executable_extensions; do
8104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110   done
8111 IFS=$as_save_IFS
8112 
8113   ;;
8114 esac
8115 fi
8116 FIND=$ac_cv_path_FIND
8117 if test -n "$FIND"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8119 $as_echo "$FIND" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124 
8125 
8126   test -n "$FIND" && break
8127 done
8128 
8129   else
8130     # The variable is set, but is it from the command line or the environment?
8131 
8132     # Try to remove the string !FIND! from our list.
8133     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8134     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8135       # If it failed, the variable was not from the command line. Ignore it,
8136       # but warn the user (except for BASH, which is always set by the calling BASH).
8137       if test "xFIND" != xBASH; then
8138         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8139 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8140       fi
8141       # Try to locate tool using the code snippet
8142       for ac_prog in find
8143 do
8144   # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_path_FIND+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   case $FIND in
8152   [\\/]* | ?:[\\/]*)
8153   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8154   ;;
8155   *)
8156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161     for ac_exec_ext in '' $ac_executable_extensions; do
8162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168   done
8169 IFS=$as_save_IFS
8170 
8171   ;;
8172 esac
8173 fi
8174 FIND=$ac_cv_path_FIND
8175 if test -n "$FIND"; then
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8177 $as_echo "$FIND" >&6; }
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182 
8183 
8184   test -n "$FIND" && break
8185 done
8186 
8187     else
8188       # If it succeeded, then it was overridden by the user. We will use it
8189       # for the tool.
8190 
8191       # First remove it from the list of overridden variables, so we can test
8192       # for unknown variables in the end.
8193       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8194 
8195       # Check if we try to supply an empty value
8196       if test "x$FIND" = x; then
8197         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8198 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8200 $as_echo_n "checking for FIND... " >&6; }
8201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8202 $as_echo "disabled" >&6; }
8203       else
8204         # Check if the provided tool contains a complete path.
8205         tool_specified="$FIND"
8206         tool_basename="${tool_specified##*/}"
8207         if test "x$tool_basename" = "x$tool_specified"; then
8208           # A command without a complete path is provided, search $PATH.
8209           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8210 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8211           # Extract the first word of "$tool_basename", so it can be a program name with args.
8212 set dummy $tool_basename; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_path_FIND+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   case $FIND in
8219   [\\/]* | ?:[\\/]*)
8220   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8221   ;;
8222   *)
8223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8237 
8238   ;;
8239 esac
8240 fi
8241 FIND=$ac_cv_path_FIND
8242 if test -n "$FIND"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8244 $as_echo "$FIND" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249 
8250 
8251           if test "x$FIND" = x; then
8252             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8253           fi
8254         else
8255           # Otherwise we believe it is a complete path. Use it as it is.
8256           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8257 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8258           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8259 $as_echo_n "checking for FIND... " >&6; }
8260           if test ! -x "$tool_specified"; then
8261             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8262 $as_echo "not found" >&6; }
8263             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8264           fi
8265           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8266 $as_echo "$tool_specified" >&6; }
8267         fi
8268       fi
8269     fi
8270 
8271   fi
8272 
8273 
8274 
8275   if test "x$FIND" = x; then
8276     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8277   fi
8278 
8279 
8280 
8281 
8282 
8283   # Publish this variable in the help.
8284 
8285 
8286   if [ -z "${HEAD+x}" ]; then
8287     # The variable is not set by user, try to locate tool using the code snippet
8288     for ac_prog in head
8289 do
8290   # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_path_HEAD+:} false; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   case $HEAD in
8298   [\\/]* | ?:[\\/]*)
8299   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8300   ;;
8301   *)
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307     for ac_exec_ext in '' $ac_executable_extensions; do
8308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314   done
8315 IFS=$as_save_IFS
8316 
8317   ;;
8318 esac
8319 fi
8320 HEAD=$ac_cv_path_HEAD
8321 if test -n "$HEAD"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8323 $as_echo "$HEAD" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328 
8329 
8330   test -n "$HEAD" && break
8331 done
8332 
8333   else
8334     # The variable is set, but is it from the command line or the environment?
8335 
8336     # Try to remove the string !HEAD! from our list.
8337     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8338     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8339       # If it failed, the variable was not from the command line. Ignore it,
8340       # but warn the user (except for BASH, which is always set by the calling BASH).
8341       if test "xHEAD" != xBASH; then
8342         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8343 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8344       fi
8345       # Try to locate tool using the code snippet
8346       for ac_prog in head
8347 do
8348   # Extract the first word of "$ac_prog", so it can be a program name with args.
8349 set dummy $ac_prog; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_path_HEAD+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   case $HEAD in
8356   [\\/]* | ?:[\\/]*)
8357   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8358   ;;
8359   *)
8360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374 
8375   ;;
8376 esac
8377 fi
8378 HEAD=$ac_cv_path_HEAD
8379 if test -n "$HEAD"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8381 $as_echo "$HEAD" >&6; }
8382 else
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386 
8387 
8388   test -n "$HEAD" && break
8389 done
8390 
8391     else
8392       # If it succeeded, then it was overridden by the user. We will use it
8393       # for the tool.
8394 
8395       # First remove it from the list of overridden variables, so we can test
8396       # for unknown variables in the end.
8397       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8398 
8399       # Check if we try to supply an empty value
8400       if test "x$HEAD" = x; then
8401         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8402 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8404 $as_echo_n "checking for HEAD... " >&6; }
8405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8406 $as_echo "disabled" >&6; }
8407       else
8408         # Check if the provided tool contains a complete path.
8409         tool_specified="$HEAD"
8410         tool_basename="${tool_specified##*/}"
8411         if test "x$tool_basename" = "x$tool_specified"; then
8412           # A command without a complete path is provided, search $PATH.
8413           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8414 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8415           # Extract the first word of "$tool_basename", so it can be a program name with args.
8416 set dummy $tool_basename; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_path_HEAD+:} false; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   case $HEAD in
8423   [\\/]* | ?:[\\/]*)
8424   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8425   ;;
8426   *)
8427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432     for ac_exec_ext in '' $ac_executable_extensions; do
8433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439   done
8440 IFS=$as_save_IFS
8441 
8442   ;;
8443 esac
8444 fi
8445 HEAD=$ac_cv_path_HEAD
8446 if test -n "$HEAD"; then
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8448 $as_echo "$HEAD" >&6; }
8449 else
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453 
8454 
8455           if test "x$HEAD" = x; then
8456             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8457           fi
8458         else
8459           # Otherwise we believe it is a complete path. Use it as it is.
8460           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8461 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8462           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8463 $as_echo_n "checking for HEAD... " >&6; }
8464           if test ! -x "$tool_specified"; then
8465             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8466 $as_echo "not found" >&6; }
8467             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8468           fi
8469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8470 $as_echo "$tool_specified" >&6; }
8471         fi
8472       fi
8473     fi
8474 
8475   fi
8476 
8477 
8478 
8479   if test "x$HEAD" = x; then
8480     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8481   fi
8482 
8483 
8484 
8485 
8486 
8487   # Publish this variable in the help.
8488 
8489 
8490   if [ -z "${GUNZIP+x}" ]; then
8491     # The variable is not set by user, try to locate tool using the code snippet
8492     for ac_prog in gunzip
8493 do
8494   # Extract the first word of "$ac_prog", so it can be a program name with args.
8495 set dummy $ac_prog; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if ${ac_cv_path_GUNZIP+:} false; then :
8499   $as_echo_n "(cached) " >&6
8500 else
8501   case $GUNZIP in
8502   [\\/]* | ?:[\\/]*)
8503   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8504   ;;
8505   *)
8506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509   IFS=$as_save_IFS
8510   test -z "$as_dir" && as_dir=.
8511     for ac_exec_ext in '' $ac_executable_extensions; do
8512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515     break 2
8516   fi
8517 done
8518   done
8519 IFS=$as_save_IFS
8520 
8521   ;;
8522 esac
8523 fi
8524 GUNZIP=$ac_cv_path_GUNZIP
8525 if test -n "$GUNZIP"; then
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8527 $as_echo "$GUNZIP" >&6; }
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532 
8533 
8534   test -n "$GUNZIP" && break
8535 done
8536 
8537   else
8538     # The variable is set, but is it from the command line or the environment?
8539 
8540     # Try to remove the string !GUNZIP! from our list.
8541     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8542     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8543       # If it failed, the variable was not from the command line. Ignore it,
8544       # but warn the user (except for BASH, which is always set by the calling BASH).
8545       if test "xGUNZIP" != xBASH; then
8546         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8547 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8548       fi
8549       # Try to locate tool using the code snippet
8550       for ac_prog in gunzip
8551 do
8552   # Extract the first word of "$ac_prog", so it can be a program name with args.
8553 set dummy $ac_prog; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_path_GUNZIP+:} false; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559   case $GUNZIP in
8560   [\\/]* | ?:[\\/]*)
8561   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8562   ;;
8563   *)
8564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8566 do
8567   IFS=$as_save_IFS
8568   test -z "$as_dir" && as_dir=.
8569     for ac_exec_ext in '' $ac_executable_extensions; do
8570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8571     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573     break 2
8574   fi
8575 done
8576   done
8577 IFS=$as_save_IFS
8578 
8579   ;;
8580 esac
8581 fi
8582 GUNZIP=$ac_cv_path_GUNZIP
8583 if test -n "$GUNZIP"; then
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8585 $as_echo "$GUNZIP" >&6; }
8586 else
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590 
8591 
8592   test -n "$GUNZIP" && break
8593 done
8594 
8595     else
8596       # If it succeeded, then it was overridden by the user. We will use it
8597       # for the tool.
8598 
8599       # First remove it from the list of overridden variables, so we can test
8600       # for unknown variables in the end.
8601       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8602 
8603       # Check if we try to supply an empty value
8604       if test "x$GUNZIP" = x; then
8605         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8606 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8608 $as_echo_n "checking for GUNZIP... " >&6; }
8609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8610 $as_echo "disabled" >&6; }
8611       else
8612         # Check if the provided tool contains a complete path.
8613         tool_specified="$GUNZIP"
8614         tool_basename="${tool_specified##*/}"
8615         if test "x$tool_basename" = "x$tool_specified"; then
8616           # A command without a complete path is provided, search $PATH.
8617           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8618 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8619           # Extract the first word of "$tool_basename", so it can be a program name with args.
8620 set dummy $tool_basename; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_path_GUNZIP+:} false; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   case $GUNZIP in
8627   [\\/]* | ?:[\\/]*)
8628   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8629   ;;
8630   *)
8631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636     for ac_exec_ext in '' $ac_executable_extensions; do
8637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643   done
8644 IFS=$as_save_IFS
8645 
8646   ;;
8647 esac
8648 fi
8649 GUNZIP=$ac_cv_path_GUNZIP
8650 if test -n "$GUNZIP"; then
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8652 $as_echo "$GUNZIP" >&6; }
8653 else
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656 fi
8657 
8658 
8659           if test "x$GUNZIP" = x; then
8660             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8661           fi
8662         else
8663           # Otherwise we believe it is a complete path. Use it as it is.
8664           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8665 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8666           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8667 $as_echo_n "checking for GUNZIP... " >&6; }
8668           if test ! -x "$tool_specified"; then
8669             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8670 $as_echo "not found" >&6; }
8671             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8672           fi
8673           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8674 $as_echo "$tool_specified" >&6; }
8675         fi
8676       fi
8677     fi
8678 
8679   fi
8680 
8681 
8682 
8683   if test "x$GUNZIP" = x; then
8684     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8685   fi
8686 
8687 
8688 
8689 
8690 
8691   # Publish this variable in the help.
8692 
8693 
8694   if [ -z "${GZIP+x}" ]; then
8695     # The variable is not set by user, try to locate tool using the code snippet
8696     for ac_prog in pigz gzip
8697 do
8698   # Extract the first word of "$ac_prog", so it can be a program name with args.
8699 set dummy $ac_prog; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_GZIP+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   case $GZIP in
8706   [\\/]* | ?:[\\/]*)
8707   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8708   ;;
8709   *)
8710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713   IFS=$as_save_IFS
8714   test -z "$as_dir" && as_dir=.
8715     for ac_exec_ext in '' $ac_executable_extensions; do
8716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719     break 2
8720   fi
8721 done
8722   done
8723 IFS=$as_save_IFS
8724 
8725   ;;
8726 esac
8727 fi
8728 GZIP=$ac_cv_path_GZIP
8729 if test -n "$GZIP"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8731 $as_echo "$GZIP" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736 
8737 
8738   test -n "$GZIP" && break
8739 done
8740 
8741   else
8742     # The variable is set, but is it from the command line or the environment?
8743 
8744     # Try to remove the string !GZIP! from our list.
8745     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8746     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8747       # If it failed, the variable was not from the command line. Ignore it,
8748       # but warn the user (except for BASH, which is always set by the calling BASH).
8749       if test "xGZIP" != xBASH; then
8750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8751 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8752       fi
8753       # Try to locate tool using the code snippet
8754       for ac_prog in pigz gzip
8755 do
8756   # Extract the first word of "$ac_prog", so it can be a program name with args.
8757 set dummy $ac_prog; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_path_GZIP+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   case $GZIP in
8764   [\\/]* | ?:[\\/]*)
8765   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8766   ;;
8767   *)
8768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773     for ac_exec_ext in '' $ac_executable_extensions; do
8774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780   done
8781 IFS=$as_save_IFS
8782 
8783   ;;
8784 esac
8785 fi
8786 GZIP=$ac_cv_path_GZIP
8787 if test -n "$GZIP"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8789 $as_echo "$GZIP" >&6; }
8790 else
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793 fi
8794 
8795 
8796   test -n "$GZIP" && break
8797 done
8798 
8799     else
8800       # If it succeeded, then it was overridden by the user. We will use it
8801       # for the tool.
8802 
8803       # First remove it from the list of overridden variables, so we can test
8804       # for unknown variables in the end.
8805       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8806 
8807       # Check if we try to supply an empty value
8808       if test "x$GZIP" = x; then
8809         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8810 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8812 $as_echo_n "checking for GZIP... " >&6; }
8813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8814 $as_echo "disabled" >&6; }
8815       else
8816         # Check if the provided tool contains a complete path.
8817         tool_specified="$GZIP"
8818         tool_basename="${tool_specified##*/}"
8819         if test "x$tool_basename" = "x$tool_specified"; then
8820           # A command without a complete path is provided, search $PATH.
8821           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8822 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8823           # Extract the first word of "$tool_basename", so it can be a program name with args.
8824 set dummy $tool_basename; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if ${ac_cv_path_GZIP+:} false; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   case $GZIP in
8831   [\\/]* | ?:[\\/]*)
8832   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8833   ;;
8834   *)
8835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838   IFS=$as_save_IFS
8839   test -z "$as_dir" && as_dir=.
8840     for ac_exec_ext in '' $ac_executable_extensions; do
8841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844     break 2
8845   fi
8846 done
8847   done
8848 IFS=$as_save_IFS
8849 
8850   ;;
8851 esac
8852 fi
8853 GZIP=$ac_cv_path_GZIP
8854 if test -n "$GZIP"; then
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8856 $as_echo "$GZIP" >&6; }
8857 else
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861 
8862 
8863           if test "x$GZIP" = x; then
8864             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8865           fi
8866         else
8867           # Otherwise we believe it is a complete path. Use it as it is.
8868           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8869 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8870           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8871 $as_echo_n "checking for GZIP... " >&6; }
8872           if test ! -x "$tool_specified"; then
8873             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8874 $as_echo "not found" >&6; }
8875             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8876           fi
8877           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8878 $as_echo "$tool_specified" >&6; }
8879         fi
8880       fi
8881     fi
8882 
8883   fi
8884 
8885 
8886 
8887   if test "x$GZIP" = x; then
8888     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8889   fi
8890 
8891 
8892 
8893 
8894 
8895   # Publish this variable in the help.
8896 
8897 
8898   if [ -z "${LN+x}" ]; then
8899     # The variable is not set by user, try to locate tool using the code snippet
8900     for ac_prog in ln
8901 do
8902   # Extract the first word of "$ac_prog", so it can be a program name with args.
8903 set dummy $ac_prog; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if ${ac_cv_path_LN+:} false; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   case $LN in
8910   [\\/]* | ?:[\\/]*)
8911   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8912   ;;
8913   *)
8914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917   IFS=$as_save_IFS
8918   test -z "$as_dir" && as_dir=.
8919     for ac_exec_ext in '' $ac_executable_extensions; do
8920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923     break 2
8924   fi
8925 done
8926   done
8927 IFS=$as_save_IFS
8928 
8929   ;;
8930 esac
8931 fi
8932 LN=$ac_cv_path_LN
8933 if test -n "$LN"; then
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8935 $as_echo "$LN" >&6; }
8936 else
8937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8939 fi
8940 
8941 
8942   test -n "$LN" && break
8943 done
8944 
8945   else
8946     # The variable is set, but is it from the command line or the environment?
8947 
8948     # Try to remove the string !LN! from our list.
8949     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8950     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8951       # If it failed, the variable was not from the command line. Ignore it,
8952       # but warn the user (except for BASH, which is always set by the calling BASH).
8953       if test "xLN" != xBASH; then
8954         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8955 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8956       fi
8957       # Try to locate tool using the code snippet
8958       for ac_prog in ln
8959 do
8960   # Extract the first word of "$ac_prog", so it can be a program name with args.
8961 set dummy $ac_prog; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_path_LN+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   case $LN in
8968   [\\/]* | ?:[\\/]*)
8969   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8970   ;;
8971   *)
8972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986 
8987   ;;
8988 esac
8989 fi
8990 LN=$ac_cv_path_LN
8991 if test -n "$LN"; then
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8993 $as_echo "$LN" >&6; }
8994 else
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998 
8999 
9000   test -n "$LN" && break
9001 done
9002 
9003     else
9004       # If it succeeded, then it was overridden by the user. We will use it
9005       # for the tool.
9006 
9007       # First remove it from the list of overridden variables, so we can test
9008       # for unknown variables in the end.
9009       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9010 
9011       # Check if we try to supply an empty value
9012       if test "x$LN" = x; then
9013         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9014 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9015         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9016 $as_echo_n "checking for LN... " >&6; }
9017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9018 $as_echo "disabled" >&6; }
9019       else
9020         # Check if the provided tool contains a complete path.
9021         tool_specified="$LN"
9022         tool_basename="${tool_specified##*/}"
9023         if test "x$tool_basename" = "x$tool_specified"; then
9024           # A command without a complete path is provided, search $PATH.
9025           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9026 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9027           # Extract the first word of "$tool_basename", so it can be a program name with args.
9028 set dummy $tool_basename; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_path_LN+:} false; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   case $LN in
9035   [\\/]* | ?:[\\/]*)
9036   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9037   ;;
9038   *)
9039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042   IFS=$as_save_IFS
9043   test -z "$as_dir" && as_dir=.
9044     for ac_exec_ext in '' $ac_executable_extensions; do
9045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048     break 2
9049   fi
9050 done
9051   done
9052 IFS=$as_save_IFS
9053 
9054   ;;
9055 esac
9056 fi
9057 LN=$ac_cv_path_LN
9058 if test -n "$LN"; then
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9060 $as_echo "$LN" >&6; }
9061 else
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9064 fi
9065 
9066 
9067           if test "x$LN" = x; then
9068             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9069           fi
9070         else
9071           # Otherwise we believe it is a complete path. Use it as it is.
9072           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9073 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9074           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9075 $as_echo_n "checking for LN... " >&6; }
9076           if test ! -x "$tool_specified"; then
9077             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9078 $as_echo "not found" >&6; }
9079             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9080           fi
9081           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9082 $as_echo "$tool_specified" >&6; }
9083         fi
9084       fi
9085     fi
9086 
9087   fi
9088 
9089 
9090 
9091   if test "x$LN" = x; then
9092     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9093   fi
9094 
9095 
9096 
9097 
9098 
9099   # Publish this variable in the help.
9100 
9101 
9102   if [ -z "${LS+x}" ]; then
9103     # The variable is not set by user, try to locate tool using the code snippet
9104     for ac_prog in ls
9105 do
9106   # Extract the first word of "$ac_prog", so it can be a program name with args.
9107 set dummy $ac_prog; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_path_LS+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   case $LS in
9114   [\\/]* | ?:[\\/]*)
9115   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9116   ;;
9117   *)
9118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123     for ac_exec_ext in '' $ac_executable_extensions; do
9124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127     break 2
9128   fi
9129 done
9130   done
9131 IFS=$as_save_IFS
9132 
9133   ;;
9134 esac
9135 fi
9136 LS=$ac_cv_path_LS
9137 if test -n "$LS"; then
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9139 $as_echo "$LS" >&6; }
9140 else
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144 
9145 
9146   test -n "$LS" && break
9147 done
9148 
9149   else
9150     # The variable is set, but is it from the command line or the environment?
9151 
9152     # Try to remove the string !LS! from our list.
9153     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9154     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9155       # If it failed, the variable was not from the command line. Ignore it,
9156       # but warn the user (except for BASH, which is always set by the calling BASH).
9157       if test "xLS" != xBASH; then
9158         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9159 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9160       fi
9161       # Try to locate tool using the code snippet
9162       for ac_prog in ls
9163 do
9164   # Extract the first word of "$ac_prog", so it can be a program name with args.
9165 set dummy $ac_prog; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_path_LS+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   case $LS in
9172   [\\/]* | ?:[\\/]*)
9173   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9174   ;;
9175   *)
9176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179   IFS=$as_save_IFS
9180   test -z "$as_dir" && as_dir=.
9181     for ac_exec_ext in '' $ac_executable_extensions; do
9182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185     break 2
9186   fi
9187 done
9188   done
9189 IFS=$as_save_IFS
9190 
9191   ;;
9192 esac
9193 fi
9194 LS=$ac_cv_path_LS
9195 if test -n "$LS"; then
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9197 $as_echo "$LS" >&6; }
9198 else
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202 
9203 
9204   test -n "$LS" && break
9205 done
9206 
9207     else
9208       # If it succeeded, then it was overridden by the user. We will use it
9209       # for the tool.
9210 
9211       # First remove it from the list of overridden variables, so we can test
9212       # for unknown variables in the end.
9213       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9214 
9215       # Check if we try to supply an empty value
9216       if test "x$LS" = x; then
9217         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9218 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9220 $as_echo_n "checking for LS... " >&6; }
9221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9222 $as_echo "disabled" >&6; }
9223       else
9224         # Check if the provided tool contains a complete path.
9225         tool_specified="$LS"
9226         tool_basename="${tool_specified##*/}"
9227         if test "x$tool_basename" = "x$tool_specified"; then
9228           # A command without a complete path is provided, search $PATH.
9229           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9230 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9231           # Extract the first word of "$tool_basename", so it can be a program name with args.
9232 set dummy $tool_basename; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if ${ac_cv_path_LS+:} false; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   case $LS in
9239   [\\/]* | ?:[\\/]*)
9240   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9241   ;;
9242   *)
9243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9245 do
9246   IFS=$as_save_IFS
9247   test -z "$as_dir" && as_dir=.
9248     for ac_exec_ext in '' $ac_executable_extensions; do
9249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252     break 2
9253   fi
9254 done
9255   done
9256 IFS=$as_save_IFS
9257 
9258   ;;
9259 esac
9260 fi
9261 LS=$ac_cv_path_LS
9262 if test -n "$LS"; then
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9264 $as_echo "$LS" >&6; }
9265 else
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9268 fi
9269 
9270 
9271           if test "x$LS" = x; then
9272             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9273           fi
9274         else
9275           # Otherwise we believe it is a complete path. Use it as it is.
9276           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9277 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9278           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9279 $as_echo_n "checking for LS... " >&6; }
9280           if test ! -x "$tool_specified"; then
9281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9282 $as_echo "not found" >&6; }
9283             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9284           fi
9285           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9286 $as_echo "$tool_specified" >&6; }
9287         fi
9288       fi
9289     fi
9290 
9291   fi
9292 
9293 
9294 
9295   if test "x$LS" = x; then
9296     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9297   fi
9298 
9299 
9300 
9301 
9302 
9303   # Publish this variable in the help.
9304 
9305 
9306   if [ -z "${MKDIR+x}" ]; then
9307     # The variable is not set by user, try to locate tool using the code snippet
9308     for ac_prog in mkdir
9309 do
9310   # Extract the first word of "$ac_prog", so it can be a program name with args.
9311 set dummy $ac_prog; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_path_MKDIR+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   case $MKDIR in
9318   [\\/]* | ?:[\\/]*)
9319   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9320   ;;
9321   *)
9322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325   IFS=$as_save_IFS
9326   test -z "$as_dir" && as_dir=.
9327     for ac_exec_ext in '' $ac_executable_extensions; do
9328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331     break 2
9332   fi
9333 done
9334   done
9335 IFS=$as_save_IFS
9336 
9337   ;;
9338 esac
9339 fi
9340 MKDIR=$ac_cv_path_MKDIR
9341 if test -n "$MKDIR"; then
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9343 $as_echo "$MKDIR" >&6; }
9344 else
9345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9347 fi
9348 
9349 
9350   test -n "$MKDIR" && break
9351 done
9352 
9353   else
9354     # The variable is set, but is it from the command line or the environment?
9355 
9356     # Try to remove the string !MKDIR! from our list.
9357     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9358     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9359       # If it failed, the variable was not from the command line. Ignore it,
9360       # but warn the user (except for BASH, which is always set by the calling BASH).
9361       if test "xMKDIR" != xBASH; then
9362         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9363 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9364       fi
9365       # Try to locate tool using the code snippet
9366       for ac_prog in mkdir
9367 do
9368   # Extract the first word of "$ac_prog", so it can be a program name with args.
9369 set dummy $ac_prog; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_path_MKDIR+:} false; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   case $MKDIR in
9376   [\\/]* | ?:[\\/]*)
9377   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9378   ;;
9379   *)
9380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   test -z "$as_dir" && as_dir=.
9385     for ac_exec_ext in '' $ac_executable_extensions; do
9386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389     break 2
9390   fi
9391 done
9392   done
9393 IFS=$as_save_IFS
9394 
9395   ;;
9396 esac
9397 fi
9398 MKDIR=$ac_cv_path_MKDIR
9399 if test -n "$MKDIR"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9401 $as_echo "$MKDIR" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406 
9407 
9408   test -n "$MKDIR" && break
9409 done
9410 
9411     else
9412       # If it succeeded, then it was overridden by the user. We will use it
9413       # for the tool.
9414 
9415       # First remove it from the list of overridden variables, so we can test
9416       # for unknown variables in the end.
9417       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9418 
9419       # Check if we try to supply an empty value
9420       if test "x$MKDIR" = x; then
9421         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9422 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9424 $as_echo_n "checking for MKDIR... " >&6; }
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9426 $as_echo "disabled" >&6; }
9427       else
9428         # Check if the provided tool contains a complete path.
9429         tool_specified="$MKDIR"
9430         tool_basename="${tool_specified##*/}"
9431         if test "x$tool_basename" = "x$tool_specified"; then
9432           # A command without a complete path is provided, search $PATH.
9433           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9434 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9435           # Extract the first word of "$tool_basename", so it can be a program name with args.
9436 set dummy $tool_basename; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_path_MKDIR+:} false; then :
9440   $as_echo_n "(cached) " >&6
9441 else
9442   case $MKDIR in
9443   [\\/]* | ?:[\\/]*)
9444   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9445   ;;
9446   *)
9447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9449 do
9450   IFS=$as_save_IFS
9451   test -z "$as_dir" && as_dir=.
9452     for ac_exec_ext in '' $ac_executable_extensions; do
9453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9454     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456     break 2
9457   fi
9458 done
9459   done
9460 IFS=$as_save_IFS
9461 
9462   ;;
9463 esac
9464 fi
9465 MKDIR=$ac_cv_path_MKDIR
9466 if test -n "$MKDIR"; then
9467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9468 $as_echo "$MKDIR" >&6; }
9469 else
9470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9472 fi
9473 
9474 
9475           if test "x$MKDIR" = x; then
9476             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9477           fi
9478         else
9479           # Otherwise we believe it is a complete path. Use it as it is.
9480           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9481 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9482           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9483 $as_echo_n "checking for MKDIR... " >&6; }
9484           if test ! -x "$tool_specified"; then
9485             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9486 $as_echo "not found" >&6; }
9487             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9488           fi
9489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9490 $as_echo "$tool_specified" >&6; }
9491         fi
9492       fi
9493     fi
9494 
9495   fi
9496 
9497 
9498 
9499   if test "x$MKDIR" = x; then
9500     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9501   fi
9502 
9503 
9504 
9505 
9506 
9507   # Publish this variable in the help.
9508 
9509 
9510   if [ -z "${MKTEMP+x}" ]; then
9511     # The variable is not set by user, try to locate tool using the code snippet
9512     for ac_prog in mktemp
9513 do
9514   # Extract the first word of "$ac_prog", so it can be a program name with args.
9515 set dummy $ac_prog; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_path_MKTEMP+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   case $MKTEMP in
9522   [\\/]* | ?:[\\/]*)
9523   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9524   ;;
9525   *)
9526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529   IFS=$as_save_IFS
9530   test -z "$as_dir" && as_dir=.
9531     for ac_exec_ext in '' $ac_executable_extensions; do
9532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9533     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535     break 2
9536   fi
9537 done
9538   done
9539 IFS=$as_save_IFS
9540 
9541   ;;
9542 esac
9543 fi
9544 MKTEMP=$ac_cv_path_MKTEMP
9545 if test -n "$MKTEMP"; then
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9547 $as_echo "$MKTEMP" >&6; }
9548 else
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9551 fi
9552 
9553 
9554   test -n "$MKTEMP" && break
9555 done
9556 
9557   else
9558     # The variable is set, but is it from the command line or the environment?
9559 
9560     # Try to remove the string !MKTEMP! from our list.
9561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9563       # If it failed, the variable was not from the command line. Ignore it,
9564       # but warn the user (except for BASH, which is always set by the calling BASH).
9565       if test "xMKTEMP" != xBASH; then
9566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9567 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9568       fi
9569       # Try to locate tool using the code snippet
9570       for ac_prog in mktemp
9571 do
9572   # Extract the first word of "$ac_prog", so it can be a program name with args.
9573 set dummy $ac_prog; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_path_MKTEMP+:} false; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   case $MKTEMP in
9580   [\\/]* | ?:[\\/]*)
9581   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9582   ;;
9583   *)
9584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9586 do
9587   IFS=$as_save_IFS
9588   test -z "$as_dir" && as_dir=.
9589     for ac_exec_ext in '' $ac_executable_extensions; do
9590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593     break 2
9594   fi
9595 done
9596   done
9597 IFS=$as_save_IFS
9598 
9599   ;;
9600 esac
9601 fi
9602 MKTEMP=$ac_cv_path_MKTEMP
9603 if test -n "$MKTEMP"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9605 $as_echo "$MKTEMP" >&6; }
9606 else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610 
9611 
9612   test -n "$MKTEMP" && break
9613 done
9614 
9615     else
9616       # If it succeeded, then it was overridden by the user. We will use it
9617       # for the tool.
9618 
9619       # First remove it from the list of overridden variables, so we can test
9620       # for unknown variables in the end.
9621       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9622 
9623       # Check if we try to supply an empty value
9624       if test "x$MKTEMP" = x; then
9625         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9626 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9628 $as_echo_n "checking for MKTEMP... " >&6; }
9629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9630 $as_echo "disabled" >&6; }
9631       else
9632         # Check if the provided tool contains a complete path.
9633         tool_specified="$MKTEMP"
9634         tool_basename="${tool_specified##*/}"
9635         if test "x$tool_basename" = "x$tool_specified"; then
9636           # A command without a complete path is provided, search $PATH.
9637           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9638 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9639           # Extract the first word of "$tool_basename", so it can be a program name with args.
9640 set dummy $tool_basename; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_MKTEMP+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   case $MKTEMP in
9647   [\\/]* | ?:[\\/]*)
9648   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9649   ;;
9650   *)
9651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654   IFS=$as_save_IFS
9655   test -z "$as_dir" && as_dir=.
9656     for ac_exec_ext in '' $ac_executable_extensions; do
9657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660     break 2
9661   fi
9662 done
9663   done
9664 IFS=$as_save_IFS
9665 
9666   ;;
9667 esac
9668 fi
9669 MKTEMP=$ac_cv_path_MKTEMP
9670 if test -n "$MKTEMP"; then
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9672 $as_echo "$MKTEMP" >&6; }
9673 else
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9676 fi
9677 
9678 
9679           if test "x$MKTEMP" = x; then
9680             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9681           fi
9682         else
9683           # Otherwise we believe it is a complete path. Use it as it is.
9684           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9685 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9686           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9687 $as_echo_n "checking for MKTEMP... " >&6; }
9688           if test ! -x "$tool_specified"; then
9689             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9690 $as_echo "not found" >&6; }
9691             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9692           fi
9693           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9694 $as_echo "$tool_specified" >&6; }
9695         fi
9696       fi
9697     fi
9698 
9699   fi
9700 
9701 
9702 
9703   if test "x$MKTEMP" = x; then
9704     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9705   fi
9706 
9707 
9708 
9709 
9710 
9711   # Publish this variable in the help.
9712 
9713 
9714   if [ -z "${MV+x}" ]; then
9715     # The variable is not set by user, try to locate tool using the code snippet
9716     for ac_prog in mv
9717 do
9718   # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_MV+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   case $MV in
9726   [\\/]* | ?:[\\/]*)
9727   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9728   ;;
9729   *)
9730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733   IFS=$as_save_IFS
9734   test -z "$as_dir" && as_dir=.
9735     for ac_exec_ext in '' $ac_executable_extensions; do
9736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739     break 2
9740   fi
9741 done
9742   done
9743 IFS=$as_save_IFS
9744 
9745   ;;
9746 esac
9747 fi
9748 MV=$ac_cv_path_MV
9749 if test -n "$MV"; then
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9751 $as_echo "$MV" >&6; }
9752 else
9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9755 fi
9756 
9757 
9758   test -n "$MV" && break
9759 done
9760 
9761   else
9762     # The variable is set, but is it from the command line or the environment?
9763 
9764     # Try to remove the string !MV! from our list.
9765     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9766     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9767       # If it failed, the variable was not from the command line. Ignore it,
9768       # but warn the user (except for BASH, which is always set by the calling BASH).
9769       if test "xMV" != xBASH; then
9770         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9771 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9772       fi
9773       # Try to locate tool using the code snippet
9774       for ac_prog in mv
9775 do
9776   # Extract the first word of "$ac_prog", so it can be a program name with args.
9777 set dummy $ac_prog; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_MV+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   case $MV in
9784   [\\/]* | ?:[\\/]*)
9785   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9786   ;;
9787   *)
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_exec_ext in '' $ac_executable_extensions; do
9794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800   done
9801 IFS=$as_save_IFS
9802 
9803   ;;
9804 esac
9805 fi
9806 MV=$ac_cv_path_MV
9807 if test -n "$MV"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9809 $as_echo "$MV" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 
9815 
9816   test -n "$MV" && break
9817 done
9818 
9819     else
9820       # If it succeeded, then it was overridden by the user. We will use it
9821       # for the tool.
9822 
9823       # First remove it from the list of overridden variables, so we can test
9824       # for unknown variables in the end.
9825       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9826 
9827       # Check if we try to supply an empty value
9828       if test "x$MV" = x; then
9829         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9830 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9831         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9832 $as_echo_n "checking for MV... " >&6; }
9833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9834 $as_echo "disabled" >&6; }
9835       else
9836         # Check if the provided tool contains a complete path.
9837         tool_specified="$MV"
9838         tool_basename="${tool_specified##*/}"
9839         if test "x$tool_basename" = "x$tool_specified"; then
9840           # A command without a complete path is provided, search $PATH.
9841           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9842 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9843           # Extract the first word of "$tool_basename", so it can be a program name with args.
9844 set dummy $tool_basename; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_path_MV+:} false; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   case $MV in
9851   [\\/]* | ?:[\\/]*)
9852   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9853   ;;
9854   *)
9855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858   IFS=$as_save_IFS
9859   test -z "$as_dir" && as_dir=.
9860     for ac_exec_ext in '' $ac_executable_extensions; do
9861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864     break 2
9865   fi
9866 done
9867   done
9868 IFS=$as_save_IFS
9869 
9870   ;;
9871 esac
9872 fi
9873 MV=$ac_cv_path_MV
9874 if test -n "$MV"; then
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9876 $as_echo "$MV" >&6; }
9877 else
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9880 fi
9881 
9882 
9883           if test "x$MV" = x; then
9884             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9885           fi
9886         else
9887           # Otherwise we believe it is a complete path. Use it as it is.
9888           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9889 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9890           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9891 $as_echo_n "checking for MV... " >&6; }
9892           if test ! -x "$tool_specified"; then
9893             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9894 $as_echo "not found" >&6; }
9895             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9896           fi
9897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9898 $as_echo "$tool_specified" >&6; }
9899         fi
9900       fi
9901     fi
9902 
9903   fi
9904 
9905 
9906 
9907   if test "x$MV" = x; then
9908     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9909   fi
9910 
9911 
9912 
9913 
9914 
9915   # Publish this variable in the help.
9916 
9917 
9918   if [ -z "${NAWK+x}" ]; then
9919     # The variable is not set by user, try to locate tool using the code snippet
9920     for ac_prog in nawk gawk awk
9921 do
9922   # Extract the first word of "$ac_prog", so it can be a program name with args.
9923 set dummy $ac_prog; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if ${ac_cv_path_NAWK+:} false; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   case $NAWK in
9930   [\\/]* | ?:[\\/]*)
9931   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9932   ;;
9933   *)
9934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9936 do
9937   IFS=$as_save_IFS
9938   test -z "$as_dir" && as_dir=.
9939     for ac_exec_ext in '' $ac_executable_extensions; do
9940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9941     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943     break 2
9944   fi
9945 done
9946   done
9947 IFS=$as_save_IFS
9948 
9949   ;;
9950 esac
9951 fi
9952 NAWK=$ac_cv_path_NAWK
9953 if test -n "$NAWK"; then
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9955 $as_echo "$NAWK" >&6; }
9956 else
9957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960 
9961 
9962   test -n "$NAWK" && break
9963 done
9964 
9965   else
9966     # The variable is set, but is it from the command line or the environment?
9967 
9968     # Try to remove the string !NAWK! from our list.
9969     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9970     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9971       # If it failed, the variable was not from the command line. Ignore it,
9972       # but warn the user (except for BASH, which is always set by the calling BASH).
9973       if test "xNAWK" != xBASH; then
9974         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9975 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9976       fi
9977       # Try to locate tool using the code snippet
9978       for ac_prog in nawk gawk awk
9979 do
9980   # Extract the first word of "$ac_prog", so it can be a program name with args.
9981 set dummy $ac_prog; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_path_NAWK+:} false; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   case $NAWK in
9988   [\\/]* | ?:[\\/]*)
9989   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9990   ;;
9991   *)
9992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9994 do
9995   IFS=$as_save_IFS
9996   test -z "$as_dir" && as_dir=.
9997     for ac_exec_ext in '' $ac_executable_extensions; do
9998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9999     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001     break 2
10002   fi
10003 done
10004   done
10005 IFS=$as_save_IFS
10006 
10007   ;;
10008 esac
10009 fi
10010 NAWK=$ac_cv_path_NAWK
10011 if test -n "$NAWK"; then
10012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10013 $as_echo "$NAWK" >&6; }
10014 else
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10017 fi
10018 
10019 
10020   test -n "$NAWK" && break
10021 done
10022 
10023     else
10024       # If it succeeded, then it was overridden by the user. We will use it
10025       # for the tool.
10026 
10027       # First remove it from the list of overridden variables, so we can test
10028       # for unknown variables in the end.
10029       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10030 
10031       # Check if we try to supply an empty value
10032       if test "x$NAWK" = x; then
10033         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10034 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10036 $as_echo_n "checking for NAWK... " >&6; }
10037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10038 $as_echo "disabled" >&6; }
10039       else
10040         # Check if the provided tool contains a complete path.
10041         tool_specified="$NAWK"
10042         tool_basename="${tool_specified##*/}"
10043         if test "x$tool_basename" = "x$tool_specified"; then
10044           # A command without a complete path is provided, search $PATH.
10045           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10046 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10047           # Extract the first word of "$tool_basename", so it can be a program name with args.
10048 set dummy $tool_basename; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if ${ac_cv_path_NAWK+:} false; then :
10052   $as_echo_n "(cached) " >&6
10053 else
10054   case $NAWK in
10055   [\\/]* | ?:[\\/]*)
10056   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10057   ;;
10058   *)
10059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064     for ac_exec_ext in '' $ac_executable_extensions; do
10065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071   done
10072 IFS=$as_save_IFS
10073 
10074   ;;
10075 esac
10076 fi
10077 NAWK=$ac_cv_path_NAWK
10078 if test -n "$NAWK"; then
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10080 $as_echo "$NAWK" >&6; }
10081 else
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 fi
10085 
10086 
10087           if test "x$NAWK" = x; then
10088             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10089           fi
10090         else
10091           # Otherwise we believe it is a complete path. Use it as it is.
10092           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10093 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10094           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10095 $as_echo_n "checking for NAWK... " >&6; }
10096           if test ! -x "$tool_specified"; then
10097             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10098 $as_echo "not found" >&6; }
10099             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10100           fi
10101           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10102 $as_echo "$tool_specified" >&6; }
10103         fi
10104       fi
10105     fi
10106 
10107   fi
10108 
10109 
10110 
10111   if test "x$NAWK" = x; then
10112     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10113   fi
10114 
10115 
10116 
10117 
10118 
10119   # Publish this variable in the help.
10120 
10121 
10122   if [ -z "${PRINTF+x}" ]; then
10123     # The variable is not set by user, try to locate tool using the code snippet
10124     for ac_prog in printf
10125 do
10126   # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy $ac_prog; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_PRINTF+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   case $PRINTF in
10134   [\\/]* | ?:[\\/]*)
10135   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10136   ;;
10137   *)
10138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141   IFS=$as_save_IFS
10142   test -z "$as_dir" && as_dir=.
10143     for ac_exec_ext in '' $ac_executable_extensions; do
10144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147     break 2
10148   fi
10149 done
10150   done
10151 IFS=$as_save_IFS
10152 
10153   ;;
10154 esac
10155 fi
10156 PRINTF=$ac_cv_path_PRINTF
10157 if test -n "$PRINTF"; then
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10159 $as_echo "$PRINTF" >&6; }
10160 else
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10163 fi
10164 
10165 
10166   test -n "$PRINTF" && break
10167 done
10168 
10169   else
10170     # The variable is set, but is it from the command line or the environment?
10171 
10172     # Try to remove the string !PRINTF! from our list.
10173     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10174     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10175       # If it failed, the variable was not from the command line. Ignore it,
10176       # but warn the user (except for BASH, which is always set by the calling BASH).
10177       if test "xPRINTF" != xBASH; then
10178         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10179 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10180       fi
10181       # Try to locate tool using the code snippet
10182       for ac_prog in printf
10183 do
10184   # Extract the first word of "$ac_prog", so it can be a program name with args.
10185 set dummy $ac_prog; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_PRINTF+:} false; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   case $PRINTF in
10192   [\\/]* | ?:[\\/]*)
10193   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10194   ;;
10195   *)
10196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199   IFS=$as_save_IFS
10200   test -z "$as_dir" && as_dir=.
10201     for ac_exec_ext in '' $ac_executable_extensions; do
10202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205     break 2
10206   fi
10207 done
10208   done
10209 IFS=$as_save_IFS
10210 
10211   ;;
10212 esac
10213 fi
10214 PRINTF=$ac_cv_path_PRINTF
10215 if test -n "$PRINTF"; then
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10217 $as_echo "$PRINTF" >&6; }
10218 else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222 
10223 
10224   test -n "$PRINTF" && break
10225 done
10226 
10227     else
10228       # If it succeeded, then it was overridden by the user. We will use it
10229       # for the tool.
10230 
10231       # First remove it from the list of overridden variables, so we can test
10232       # for unknown variables in the end.
10233       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10234 
10235       # Check if we try to supply an empty value
10236       if test "x$PRINTF" = x; then
10237         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10238 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10240 $as_echo_n "checking for PRINTF... " >&6; }
10241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10242 $as_echo "disabled" >&6; }
10243       else
10244         # Check if the provided tool contains a complete path.
10245         tool_specified="$PRINTF"
10246         tool_basename="${tool_specified##*/}"
10247         if test "x$tool_basename" = "x$tool_specified"; then
10248           # A command without a complete path is provided, search $PATH.
10249           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10250 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10251           # Extract the first word of "$tool_basename", so it can be a program name with args.
10252 set dummy $tool_basename; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if ${ac_cv_path_PRINTF+:} false; then :
10256   $as_echo_n "(cached) " >&6
10257 else
10258   case $PRINTF in
10259   [\\/]* | ?:[\\/]*)
10260   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10261   ;;
10262   *)
10263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10265 do
10266   IFS=$as_save_IFS
10267   test -z "$as_dir" && as_dir=.
10268     for ac_exec_ext in '' $ac_executable_extensions; do
10269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272     break 2
10273   fi
10274 done
10275   done
10276 IFS=$as_save_IFS
10277 
10278   ;;
10279 esac
10280 fi
10281 PRINTF=$ac_cv_path_PRINTF
10282 if test -n "$PRINTF"; then
10283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10284 $as_echo "$PRINTF" >&6; }
10285 else
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10288 fi
10289 
10290 
10291           if test "x$PRINTF" = x; then
10292             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10293           fi
10294         else
10295           # Otherwise we believe it is a complete path. Use it as it is.
10296           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10297 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10298           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10299 $as_echo_n "checking for PRINTF... " >&6; }
10300           if test ! -x "$tool_specified"; then
10301             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10302 $as_echo "not found" >&6; }
10303             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10304           fi
10305           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10306 $as_echo "$tool_specified" >&6; }
10307         fi
10308       fi
10309     fi
10310 
10311   fi
10312 
10313 
10314 
10315   if test "x$PRINTF" = x; then
10316     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10317   fi
10318 
10319 
10320 
10321 
10322 
10323   # Publish this variable in the help.
10324 
10325 
10326   if [ -z "${RM+x}" ]; then
10327     # The variable is not set by user, try to locate tool using the code snippet
10328     for ac_prog in rm
10329 do
10330   # Extract the first word of "$ac_prog", so it can be a program name with args.
10331 set dummy $ac_prog; ac_word=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if ${ac_cv_path_RM+:} false; then :
10335   $as_echo_n "(cached) " >&6
10336 else
10337   case $RM in
10338   [\\/]* | ?:[\\/]*)
10339   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10340   ;;
10341   *)
10342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345   IFS=$as_save_IFS
10346   test -z "$as_dir" && as_dir=.
10347     for ac_exec_ext in '' $ac_executable_extensions; do
10348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351     break 2
10352   fi
10353 done
10354   done
10355 IFS=$as_save_IFS
10356 
10357   ;;
10358 esac
10359 fi
10360 RM=$ac_cv_path_RM
10361 if test -n "$RM"; then
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10363 $as_echo "$RM" >&6; }
10364 else
10365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10367 fi
10368 
10369 
10370   test -n "$RM" && break
10371 done
10372 
10373   else
10374     # The variable is set, but is it from the command line or the environment?
10375 
10376     # Try to remove the string !RM! from our list.
10377     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10378     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10379       # If it failed, the variable was not from the command line. Ignore it,
10380       # but warn the user (except for BASH, which is always set by the calling BASH).
10381       if test "xRM" != xBASH; then
10382         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10383 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10384       fi
10385       # Try to locate tool using the code snippet
10386       for ac_prog in rm
10387 do
10388   # Extract the first word of "$ac_prog", so it can be a program name with args.
10389 set dummy $ac_prog; ac_word=$2
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 $as_echo_n "checking for $ac_word... " >&6; }
10392 if ${ac_cv_path_RM+:} false; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   case $RM in
10396   [\\/]* | ?:[\\/]*)
10397   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10398   ;;
10399   *)
10400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401 for as_dir in $PATH
10402 do
10403   IFS=$as_save_IFS
10404   test -z "$as_dir" && as_dir=.
10405     for ac_exec_ext in '' $ac_executable_extensions; do
10406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10407     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409     break 2
10410   fi
10411 done
10412   done
10413 IFS=$as_save_IFS
10414 
10415   ;;
10416 esac
10417 fi
10418 RM=$ac_cv_path_RM
10419 if test -n "$RM"; then
10420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10421 $as_echo "$RM" >&6; }
10422 else
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426 
10427 
10428   test -n "$RM" && break
10429 done
10430 
10431     else
10432       # If it succeeded, then it was overridden by the user. We will use it
10433       # for the tool.
10434 
10435       # First remove it from the list of overridden variables, so we can test
10436       # for unknown variables in the end.
10437       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10438 
10439       # Check if we try to supply an empty value
10440       if test "x$RM" = x; then
10441         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10442 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10444 $as_echo_n "checking for RM... " >&6; }
10445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10446 $as_echo "disabled" >&6; }
10447       else
10448         # Check if the provided tool contains a complete path.
10449         tool_specified="$RM"
10450         tool_basename="${tool_specified##*/}"
10451         if test "x$tool_basename" = "x$tool_specified"; then
10452           # A command without a complete path is provided, search $PATH.
10453           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10454 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10455           # Extract the first word of "$tool_basename", so it can be a program name with args.
10456 set dummy $tool_basename; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_path_RM+:} false; then :
10460   $as_echo_n "(cached) " >&6
10461 else
10462   case $RM in
10463   [\\/]* | ?:[\\/]*)
10464   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10465   ;;
10466   *)
10467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470   IFS=$as_save_IFS
10471   test -z "$as_dir" && as_dir=.
10472     for ac_exec_ext in '' $ac_executable_extensions; do
10473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476     break 2
10477   fi
10478 done
10479   done
10480 IFS=$as_save_IFS
10481 
10482   ;;
10483 esac
10484 fi
10485 RM=$ac_cv_path_RM
10486 if test -n "$RM"; then
10487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10488 $as_echo "$RM" >&6; }
10489 else
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10492 fi
10493 
10494 
10495           if test "x$RM" = x; then
10496             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10497           fi
10498         else
10499           # Otherwise we believe it is a complete path. Use it as it is.
10500           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10501 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10502           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10503 $as_echo_n "checking for RM... " >&6; }
10504           if test ! -x "$tool_specified"; then
10505             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10506 $as_echo "not found" >&6; }
10507             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10508           fi
10509           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10510 $as_echo "$tool_specified" >&6; }
10511         fi
10512       fi
10513     fi
10514 
10515   fi
10516 
10517 
10518 
10519   if test "x$RM" = x; then
10520     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10521   fi
10522 
10523 
10524 
10525 
10526 
10527   # Publish this variable in the help.
10528 
10529 
10530   if [ -z "${RMDIR+x}" ]; then
10531     # The variable is not set by user, try to locate tool using the code snippet
10532     for ac_prog in rmdir
10533 do
10534   # Extract the first word of "$ac_prog", so it can be a program name with args.
10535 set dummy $ac_prog; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if ${ac_cv_path_RMDIR+:} false; then :
10539   $as_echo_n "(cached) " >&6
10540 else
10541   case $RMDIR in
10542   [\\/]* | ?:[\\/]*)
10543   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10544   ;;
10545   *)
10546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549   IFS=$as_save_IFS
10550   test -z "$as_dir" && as_dir=.
10551     for ac_exec_ext in '' $ac_executable_extensions; do
10552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555     break 2
10556   fi
10557 done
10558   done
10559 IFS=$as_save_IFS
10560 
10561   ;;
10562 esac
10563 fi
10564 RMDIR=$ac_cv_path_RMDIR
10565 if test -n "$RMDIR"; then
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10567 $as_echo "$RMDIR" >&6; }
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572 
10573 
10574   test -n "$RMDIR" && break
10575 done
10576 
10577   else
10578     # The variable is set, but is it from the command line or the environment?
10579 
10580     # Try to remove the string !RMDIR! from our list.
10581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10583       # If it failed, the variable was not from the command line. Ignore it,
10584       # but warn the user (except for BASH, which is always set by the calling BASH).
10585       if test "xRMDIR" != xBASH; then
10586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10587 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10588       fi
10589       # Try to locate tool using the code snippet
10590       for ac_prog in rmdir
10591 do
10592   # Extract the first word of "$ac_prog", so it can be a program name with args.
10593 set dummy $ac_prog; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if ${ac_cv_path_RMDIR+:} false; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   case $RMDIR in
10600   [\\/]* | ?:[\\/]*)
10601   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10602   ;;
10603   *)
10604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607   IFS=$as_save_IFS
10608   test -z "$as_dir" && as_dir=.
10609     for ac_exec_ext in '' $ac_executable_extensions; do
10610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613     break 2
10614   fi
10615 done
10616   done
10617 IFS=$as_save_IFS
10618 
10619   ;;
10620 esac
10621 fi
10622 RMDIR=$ac_cv_path_RMDIR
10623 if test -n "$RMDIR"; then
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10625 $as_echo "$RMDIR" >&6; }
10626 else
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10629 fi
10630 
10631 
10632   test -n "$RMDIR" && break
10633 done
10634 
10635     else
10636       # If it succeeded, then it was overridden by the user. We will use it
10637       # for the tool.
10638 
10639       # First remove it from the list of overridden variables, so we can test
10640       # for unknown variables in the end.
10641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10642 
10643       # Check if we try to supply an empty value
10644       if test "x$RMDIR" = x; then
10645         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10646 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10648 $as_echo_n "checking for RMDIR... " >&6; }
10649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10650 $as_echo "disabled" >&6; }
10651       else
10652         # Check if the provided tool contains a complete path.
10653         tool_specified="$RMDIR"
10654         tool_basename="${tool_specified##*/}"
10655         if test "x$tool_basename" = "x$tool_specified"; then
10656           # A command without a complete path is provided, search $PATH.
10657           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10658 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10659           # Extract the first word of "$tool_basename", so it can be a program name with args.
10660 set dummy $tool_basename; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 $as_echo_n "checking for $ac_word... " >&6; }
10663 if ${ac_cv_path_RMDIR+:} false; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666   case $RMDIR in
10667   [\\/]* | ?:[\\/]*)
10668   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10669   ;;
10670   *)
10671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674   IFS=$as_save_IFS
10675   test -z "$as_dir" && as_dir=.
10676     for ac_exec_ext in '' $ac_executable_extensions; do
10677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680     break 2
10681   fi
10682 done
10683   done
10684 IFS=$as_save_IFS
10685 
10686   ;;
10687 esac
10688 fi
10689 RMDIR=$ac_cv_path_RMDIR
10690 if test -n "$RMDIR"; then
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10692 $as_echo "$RMDIR" >&6; }
10693 else
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 fi
10697 
10698 
10699           if test "x$RMDIR" = x; then
10700             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10701           fi
10702         else
10703           # Otherwise we believe it is a complete path. Use it as it is.
10704           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10705 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10706           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10707 $as_echo_n "checking for RMDIR... " >&6; }
10708           if test ! -x "$tool_specified"; then
10709             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10710 $as_echo "not found" >&6; }
10711             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10712           fi
10713           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10714 $as_echo "$tool_specified" >&6; }
10715         fi
10716       fi
10717     fi
10718 
10719   fi
10720 
10721 
10722 
10723   if test "x$RMDIR" = x; then
10724     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10725   fi
10726 
10727 
10728 
10729 
10730 
10731   # Publish this variable in the help.
10732 
10733 
10734   if [ -z "${SH+x}" ]; then
10735     # The variable is not set by user, try to locate tool using the code snippet
10736     for ac_prog in sh
10737 do
10738   # Extract the first word of "$ac_prog", so it can be a program name with args.
10739 set dummy $ac_prog; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 $as_echo_n "checking for $ac_word... " >&6; }
10742 if ${ac_cv_path_SH+:} false; then :
10743   $as_echo_n "(cached) " >&6
10744 else
10745   case $SH in
10746   [\\/]* | ?:[\\/]*)
10747   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10748   ;;
10749   *)
10750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751 for as_dir in $PATH
10752 do
10753   IFS=$as_save_IFS
10754   test -z "$as_dir" && as_dir=.
10755     for ac_exec_ext in '' $ac_executable_extensions; do
10756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10757     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759     break 2
10760   fi
10761 done
10762   done
10763 IFS=$as_save_IFS
10764 
10765   ;;
10766 esac
10767 fi
10768 SH=$ac_cv_path_SH
10769 if test -n "$SH"; then
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10771 $as_echo "$SH" >&6; }
10772 else
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10775 fi
10776 
10777 
10778   test -n "$SH" && break
10779 done
10780 
10781   else
10782     # The variable is set, but is it from the command line or the environment?
10783 
10784     # Try to remove the string !SH! from our list.
10785     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10786     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10787       # If it failed, the variable was not from the command line. Ignore it,
10788       # but warn the user (except for BASH, which is always set by the calling BASH).
10789       if test "xSH" != xBASH; then
10790         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10791 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10792       fi
10793       # Try to locate tool using the code snippet
10794       for ac_prog in sh
10795 do
10796   # Extract the first word of "$ac_prog", so it can be a program name with args.
10797 set dummy $ac_prog; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if ${ac_cv_path_SH+:} false; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   case $SH in
10804   [\\/]* | ?:[\\/]*)
10805   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10806   ;;
10807   *)
10808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10810 do
10811   IFS=$as_save_IFS
10812   test -z "$as_dir" && as_dir=.
10813     for ac_exec_ext in '' $ac_executable_extensions; do
10814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817     break 2
10818   fi
10819 done
10820   done
10821 IFS=$as_save_IFS
10822 
10823   ;;
10824 esac
10825 fi
10826 SH=$ac_cv_path_SH
10827 if test -n "$SH"; then
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10829 $as_echo "$SH" >&6; }
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834 
10835 
10836   test -n "$SH" && break
10837 done
10838 
10839     else
10840       # If it succeeded, then it was overridden by the user. We will use it
10841       # for the tool.
10842 
10843       # First remove it from the list of overridden variables, so we can test
10844       # for unknown variables in the end.
10845       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10846 
10847       # Check if we try to supply an empty value
10848       if test "x$SH" = x; then
10849         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10850 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10852 $as_echo_n "checking for SH... " >&6; }
10853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10854 $as_echo "disabled" >&6; }
10855       else
10856         # Check if the provided tool contains a complete path.
10857         tool_specified="$SH"
10858         tool_basename="${tool_specified##*/}"
10859         if test "x$tool_basename" = "x$tool_specified"; then
10860           # A command without a complete path is provided, search $PATH.
10861           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10862 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10863           # Extract the first word of "$tool_basename", so it can be a program name with args.
10864 set dummy $tool_basename; ac_word=$2
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866 $as_echo_n "checking for $ac_word... " >&6; }
10867 if ${ac_cv_path_SH+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   case $SH in
10871   [\\/]* | ?:[\\/]*)
10872   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10873   ;;
10874   *)
10875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878   IFS=$as_save_IFS
10879   test -z "$as_dir" && as_dir=.
10880     for ac_exec_ext in '' $ac_executable_extensions; do
10881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884     break 2
10885   fi
10886 done
10887   done
10888 IFS=$as_save_IFS
10889 
10890   ;;
10891 esac
10892 fi
10893 SH=$ac_cv_path_SH
10894 if test -n "$SH"; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10896 $as_echo "$SH" >&6; }
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901 
10902 
10903           if test "x$SH" = x; then
10904             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10905           fi
10906         else
10907           # Otherwise we believe it is a complete path. Use it as it is.
10908           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10909 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10910           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10911 $as_echo_n "checking for SH... " >&6; }
10912           if test ! -x "$tool_specified"; then
10913             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10914 $as_echo "not found" >&6; }
10915             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10916           fi
10917           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10918 $as_echo "$tool_specified" >&6; }
10919         fi
10920       fi
10921     fi
10922 
10923   fi
10924 
10925 
10926 
10927   if test "x$SH" = x; then
10928     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10929   fi
10930 
10931 
10932 
10933 
10934 
10935   # Publish this variable in the help.
10936 
10937 
10938   if [ -z "${SORT+x}" ]; then
10939     # The variable is not set by user, try to locate tool using the code snippet
10940     for ac_prog in sort
10941 do
10942   # Extract the first word of "$ac_prog", so it can be a program name with args.
10943 set dummy $ac_prog; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if ${ac_cv_path_SORT+:} false; then :
10947   $as_echo_n "(cached) " >&6
10948 else
10949   case $SORT in
10950   [\\/]* | ?:[\\/]*)
10951   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10952   ;;
10953   *)
10954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957   IFS=$as_save_IFS
10958   test -z "$as_dir" && as_dir=.
10959     for ac_exec_ext in '' $ac_executable_extensions; do
10960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963     break 2
10964   fi
10965 done
10966   done
10967 IFS=$as_save_IFS
10968 
10969   ;;
10970 esac
10971 fi
10972 SORT=$ac_cv_path_SORT
10973 if test -n "$SORT"; then
10974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10975 $as_echo "$SORT" >&6; }
10976 else
10977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 fi
10980 
10981 
10982   test -n "$SORT" && break
10983 done
10984 
10985   else
10986     # The variable is set, but is it from the command line or the environment?
10987 
10988     # Try to remove the string !SORT! from our list.
10989     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10990     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10991       # If it failed, the variable was not from the command line. Ignore it,
10992       # but warn the user (except for BASH, which is always set by the calling BASH).
10993       if test "xSORT" != xBASH; then
10994         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10995 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10996       fi
10997       # Try to locate tool using the code snippet
10998       for ac_prog in sort
10999 do
11000   # Extract the first word of "$ac_prog", so it can be a program name with args.
11001 set dummy $ac_prog; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if ${ac_cv_path_SORT+:} false; then :
11005   $as_echo_n "(cached) " >&6
11006 else
11007   case $SORT in
11008   [\\/]* | ?:[\\/]*)
11009   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11010   ;;
11011   *)
11012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015   IFS=$as_save_IFS
11016   test -z "$as_dir" && as_dir=.
11017     for ac_exec_ext in '' $ac_executable_extensions; do
11018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021     break 2
11022   fi
11023 done
11024   done
11025 IFS=$as_save_IFS
11026 
11027   ;;
11028 esac
11029 fi
11030 SORT=$ac_cv_path_SORT
11031 if test -n "$SORT"; then
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11033 $as_echo "$SORT" >&6; }
11034 else
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038 
11039 
11040   test -n "$SORT" && break
11041 done
11042 
11043     else
11044       # If it succeeded, then it was overridden by the user. We will use it
11045       # for the tool.
11046 
11047       # First remove it from the list of overridden variables, so we can test
11048       # for unknown variables in the end.
11049       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11050 
11051       # Check if we try to supply an empty value
11052       if test "x$SORT" = x; then
11053         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11054 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11055         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11056 $as_echo_n "checking for SORT... " >&6; }
11057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11058 $as_echo "disabled" >&6; }
11059       else
11060         # Check if the provided tool contains a complete path.
11061         tool_specified="$SORT"
11062         tool_basename="${tool_specified##*/}"
11063         if test "x$tool_basename" = "x$tool_specified"; then
11064           # A command without a complete path is provided, search $PATH.
11065           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11066 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11067           # Extract the first word of "$tool_basename", so it can be a program name with args.
11068 set dummy $tool_basename; ac_word=$2
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070 $as_echo_n "checking for $ac_word... " >&6; }
11071 if ${ac_cv_path_SORT+:} false; then :
11072   $as_echo_n "(cached) " >&6
11073 else
11074   case $SORT in
11075   [\\/]* | ?:[\\/]*)
11076   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11077   ;;
11078   *)
11079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082   IFS=$as_save_IFS
11083   test -z "$as_dir" && as_dir=.
11084     for ac_exec_ext in '' $ac_executable_extensions; do
11085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088     break 2
11089   fi
11090 done
11091   done
11092 IFS=$as_save_IFS
11093 
11094   ;;
11095 esac
11096 fi
11097 SORT=$ac_cv_path_SORT
11098 if test -n "$SORT"; then
11099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11100 $as_echo "$SORT" >&6; }
11101 else
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105 
11106 
11107           if test "x$SORT" = x; then
11108             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11109           fi
11110         else
11111           # Otherwise we believe it is a complete path. Use it as it is.
11112           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11113 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11114           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11115 $as_echo_n "checking for SORT... " >&6; }
11116           if test ! -x "$tool_specified"; then
11117             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11118 $as_echo "not found" >&6; }
11119             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11120           fi
11121           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11122 $as_echo "$tool_specified" >&6; }
11123         fi
11124       fi
11125     fi
11126 
11127   fi
11128 
11129 
11130 
11131   if test "x$SORT" = x; then
11132     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11133   fi
11134 
11135 
11136 
11137 
11138 
11139   # Publish this variable in the help.
11140 
11141 
11142   if [ -z "${TAIL+x}" ]; then
11143     # The variable is not set by user, try to locate tool using the code snippet
11144     for ac_prog in tail
11145 do
11146   # Extract the first word of "$ac_prog", so it can be a program name with args.
11147 set dummy $ac_prog; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_TAIL+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   case $TAIL in
11154   [\\/]* | ?:[\\/]*)
11155   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11156   ;;
11157   *)
11158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172 
11173   ;;
11174 esac
11175 fi
11176 TAIL=$ac_cv_path_TAIL
11177 if test -n "$TAIL"; then
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11179 $as_echo "$TAIL" >&6; }
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184 
11185 
11186   test -n "$TAIL" && break
11187 done
11188 
11189   else
11190     # The variable is set, but is it from the command line or the environment?
11191 
11192     # Try to remove the string !TAIL! from our list.
11193     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11194     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11195       # If it failed, the variable was not from the command line. Ignore it,
11196       # but warn the user (except for BASH, which is always set by the calling BASH).
11197       if test "xTAIL" != xBASH; then
11198         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11199 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11200       fi
11201       # Try to locate tool using the code snippet
11202       for ac_prog in tail
11203 do
11204   # Extract the first word of "$ac_prog", so it can be a program name with args.
11205 set dummy $ac_prog; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_TAIL+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   case $TAIL in
11212   [\\/]* | ?:[\\/]*)
11213   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11214   ;;
11215   *)
11216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230 
11231   ;;
11232 esac
11233 fi
11234 TAIL=$ac_cv_path_TAIL
11235 if test -n "$TAIL"; then
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11237 $as_echo "$TAIL" >&6; }
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242 
11243 
11244   test -n "$TAIL" && break
11245 done
11246 
11247     else
11248       # If it succeeded, then it was overridden by the user. We will use it
11249       # for the tool.
11250 
11251       # First remove it from the list of overridden variables, so we can test
11252       # for unknown variables in the end.
11253       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11254 
11255       # Check if we try to supply an empty value
11256       if test "x$TAIL" = x; then
11257         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11258 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11260 $as_echo_n "checking for TAIL... " >&6; }
11261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11262 $as_echo "disabled" >&6; }
11263       else
11264         # Check if the provided tool contains a complete path.
11265         tool_specified="$TAIL"
11266         tool_basename="${tool_specified##*/}"
11267         if test "x$tool_basename" = "x$tool_specified"; then
11268           # A command without a complete path is provided, search $PATH.
11269           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11270 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11271           # Extract the first word of "$tool_basename", so it can be a program name with args.
11272 set dummy $tool_basename; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274 $as_echo_n "checking for $ac_word... " >&6; }
11275 if ${ac_cv_path_TAIL+:} false; then :
11276   $as_echo_n "(cached) " >&6
11277 else
11278   case $TAIL in
11279   [\\/]* | ?:[\\/]*)
11280   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11281   ;;
11282   *)
11283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286   IFS=$as_save_IFS
11287   test -z "$as_dir" && as_dir=.
11288     for ac_exec_ext in '' $ac_executable_extensions; do
11289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292     break 2
11293   fi
11294 done
11295   done
11296 IFS=$as_save_IFS
11297 
11298   ;;
11299 esac
11300 fi
11301 TAIL=$ac_cv_path_TAIL
11302 if test -n "$TAIL"; then
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11304 $as_echo "$TAIL" >&6; }
11305 else
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309 
11310 
11311           if test "x$TAIL" = x; then
11312             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11313           fi
11314         else
11315           # Otherwise we believe it is a complete path. Use it as it is.
11316           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11317 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11318           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11319 $as_echo_n "checking for TAIL... " >&6; }
11320           if test ! -x "$tool_specified"; then
11321             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11322 $as_echo "not found" >&6; }
11323             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11324           fi
11325           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11326 $as_echo "$tool_specified" >&6; }
11327         fi
11328       fi
11329     fi
11330 
11331   fi
11332 
11333 
11334 
11335   if test "x$TAIL" = x; then
11336     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11337   fi
11338 
11339 
11340 
11341 
11342 
11343   # Publish this variable in the help.
11344 
11345 
11346   if [ -z "${TAR+x}" ]; then
11347     # The variable is not set by user, try to locate tool using the code snippet
11348     for ac_prog in gtar tar
11349 do
11350   # Extract the first word of "$ac_prog", so it can be a program name with args.
11351 set dummy $ac_prog; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_path_TAR+:} false; then :
11355   $as_echo_n "(cached) " >&6
11356 else
11357   case $TAR in
11358   [\\/]* | ?:[\\/]*)
11359   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11360   ;;
11361   *)
11362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11364 do
11365   IFS=$as_save_IFS
11366   test -z "$as_dir" && as_dir=.
11367     for ac_exec_ext in '' $ac_executable_extensions; do
11368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371     break 2
11372   fi
11373 done
11374   done
11375 IFS=$as_save_IFS
11376 
11377   ;;
11378 esac
11379 fi
11380 TAR=$ac_cv_path_TAR
11381 if test -n "$TAR"; then
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11383 $as_echo "$TAR" >&6; }
11384 else
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 
11389 
11390   test -n "$TAR" && break
11391 done
11392 
11393   else
11394     # The variable is set, but is it from the command line or the environment?
11395 
11396     # Try to remove the string !TAR! from our list.
11397     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11398     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11399       # If it failed, the variable was not from the command line. Ignore it,
11400       # but warn the user (except for BASH, which is always set by the calling BASH).
11401       if test "xTAR" != xBASH; then
11402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11403 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11404       fi
11405       # Try to locate tool using the code snippet
11406       for ac_prog in gtar tar
11407 do
11408   # Extract the first word of "$ac_prog", so it can be a program name with args.
11409 set dummy $ac_prog; ac_word=$2
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411 $as_echo_n "checking for $ac_word... " >&6; }
11412 if ${ac_cv_path_TAR+:} false; then :
11413   $as_echo_n "(cached) " >&6
11414 else
11415   case $TAR in
11416   [\\/]* | ?:[\\/]*)
11417   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11418   ;;
11419   *)
11420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11422 do
11423   IFS=$as_save_IFS
11424   test -z "$as_dir" && as_dir=.
11425     for ac_exec_ext in '' $ac_executable_extensions; do
11426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429     break 2
11430   fi
11431 done
11432   done
11433 IFS=$as_save_IFS
11434 
11435   ;;
11436 esac
11437 fi
11438 TAR=$ac_cv_path_TAR
11439 if test -n "$TAR"; then
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11441 $as_echo "$TAR" >&6; }
11442 else
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 fi
11446 
11447 
11448   test -n "$TAR" && break
11449 done
11450 
11451     else
11452       # If it succeeded, then it was overridden by the user. We will use it
11453       # for the tool.
11454 
11455       # First remove it from the list of overridden variables, so we can test
11456       # for unknown variables in the end.
11457       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11458 
11459       # Check if we try to supply an empty value
11460       if test "x$TAR" = x; then
11461         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11462 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11464 $as_echo_n "checking for TAR... " >&6; }
11465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11466 $as_echo "disabled" >&6; }
11467       else
11468         # Check if the provided tool contains a complete path.
11469         tool_specified="$TAR"
11470         tool_basename="${tool_specified##*/}"
11471         if test "x$tool_basename" = "x$tool_specified"; then
11472           # A command without a complete path is provided, search $PATH.
11473           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11474 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11475           # Extract the first word of "$tool_basename", so it can be a program name with args.
11476 set dummy $tool_basename; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if ${ac_cv_path_TAR+:} false; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   case $TAR in
11483   [\\/]* | ?:[\\/]*)
11484   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11485   ;;
11486   *)
11487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490   IFS=$as_save_IFS
11491   test -z "$as_dir" && as_dir=.
11492     for ac_exec_ext in '' $ac_executable_extensions; do
11493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11494     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496     break 2
11497   fi
11498 done
11499   done
11500 IFS=$as_save_IFS
11501 
11502   ;;
11503 esac
11504 fi
11505 TAR=$ac_cv_path_TAR
11506 if test -n "$TAR"; then
11507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11508 $as_echo "$TAR" >&6; }
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11512 fi
11513 
11514 
11515           if test "x$TAR" = x; then
11516             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11517           fi
11518         else
11519           # Otherwise we believe it is a complete path. Use it as it is.
11520           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11521 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11523 $as_echo_n "checking for TAR... " >&6; }
11524           if test ! -x "$tool_specified"; then
11525             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11526 $as_echo "not found" >&6; }
11527             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11528           fi
11529           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11530 $as_echo "$tool_specified" >&6; }
11531         fi
11532       fi
11533     fi
11534 
11535   fi
11536 
11537 
11538 
11539   if test "x$TAR" = x; then
11540     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11541   fi
11542 
11543 
11544 
11545 
11546 
11547   # Publish this variable in the help.
11548 
11549 
11550   if [ -z "${TEE+x}" ]; then
11551     # The variable is not set by user, try to locate tool using the code snippet
11552     for ac_prog in tee
11553 do
11554   # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy $ac_prog; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_path_TEE+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   case $TEE in
11562   [\\/]* | ?:[\\/]*)
11563   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11564   ;;
11565   *)
11566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11568 do
11569   IFS=$as_save_IFS
11570   test -z "$as_dir" && as_dir=.
11571     for ac_exec_ext in '' $ac_executable_extensions; do
11572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575     break 2
11576   fi
11577 done
11578   done
11579 IFS=$as_save_IFS
11580 
11581   ;;
11582 esac
11583 fi
11584 TEE=$ac_cv_path_TEE
11585 if test -n "$TEE"; then
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11587 $as_echo "$TEE" >&6; }
11588 else
11589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11591 fi
11592 
11593 
11594   test -n "$TEE" && break
11595 done
11596 
11597   else
11598     # The variable is set, but is it from the command line or the environment?
11599 
11600     # Try to remove the string !TEE! from our list.
11601     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11602     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11603       # If it failed, the variable was not from the command line. Ignore it,
11604       # but warn the user (except for BASH, which is always set by the calling BASH).
11605       if test "xTEE" != xBASH; then
11606         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11607 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11608       fi
11609       # Try to locate tool using the code snippet
11610       for ac_prog in tee
11611 do
11612   # Extract the first word of "$ac_prog", so it can be a program name with args.
11613 set dummy $ac_prog; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_path_TEE+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   case $TEE in
11620   [\\/]* | ?:[\\/]*)
11621   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11622   ;;
11623   *)
11624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   test -z "$as_dir" && as_dir=.
11629     for ac_exec_ext in '' $ac_executable_extensions; do
11630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633     break 2
11634   fi
11635 done
11636   done
11637 IFS=$as_save_IFS
11638 
11639   ;;
11640 esac
11641 fi
11642 TEE=$ac_cv_path_TEE
11643 if test -n "$TEE"; then
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11645 $as_echo "$TEE" >&6; }
11646 else
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11649 fi
11650 
11651 
11652   test -n "$TEE" && break
11653 done
11654 
11655     else
11656       # If it succeeded, then it was overridden by the user. We will use it
11657       # for the tool.
11658 
11659       # First remove it from the list of overridden variables, so we can test
11660       # for unknown variables in the end.
11661       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11662 
11663       # Check if we try to supply an empty value
11664       if test "x$TEE" = x; then
11665         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11666 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11668 $as_echo_n "checking for TEE... " >&6; }
11669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11670 $as_echo "disabled" >&6; }
11671       else
11672         # Check if the provided tool contains a complete path.
11673         tool_specified="$TEE"
11674         tool_basename="${tool_specified##*/}"
11675         if test "x$tool_basename" = "x$tool_specified"; then
11676           # A command without a complete path is provided, search $PATH.
11677           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11678 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11679           # Extract the first word of "$tool_basename", so it can be a program name with args.
11680 set dummy $tool_basename; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_path_TEE+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   case $TEE in
11687   [\\/]* | ?:[\\/]*)
11688   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11689   ;;
11690   *)
11691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11693 do
11694   IFS=$as_save_IFS
11695   test -z "$as_dir" && as_dir=.
11696     for ac_exec_ext in '' $ac_executable_extensions; do
11697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700     break 2
11701   fi
11702 done
11703   done
11704 IFS=$as_save_IFS
11705 
11706   ;;
11707 esac
11708 fi
11709 TEE=$ac_cv_path_TEE
11710 if test -n "$TEE"; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11712 $as_echo "$TEE" >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717 
11718 
11719           if test "x$TEE" = x; then
11720             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11721           fi
11722         else
11723           # Otherwise we believe it is a complete path. Use it as it is.
11724           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11725 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11726           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11727 $as_echo_n "checking for TEE... " >&6; }
11728           if test ! -x "$tool_specified"; then
11729             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11730 $as_echo "not found" >&6; }
11731             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11732           fi
11733           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11734 $as_echo "$tool_specified" >&6; }
11735         fi
11736       fi
11737     fi
11738 
11739   fi
11740 
11741 
11742 
11743   if test "x$TEE" = x; then
11744     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11745   fi
11746 
11747 
11748 
11749 
11750 
11751   # Publish this variable in the help.
11752 
11753 
11754   if [ -z "${TOUCH+x}" ]; then
11755     # The variable is not set by user, try to locate tool using the code snippet
11756     for ac_prog in touch
11757 do
11758   # Extract the first word of "$ac_prog", so it can be a program name with args.
11759 set dummy $ac_prog; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_path_TOUCH+:} false; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   case $TOUCH in
11766   [\\/]* | ?:[\\/]*)
11767   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11768   ;;
11769   *)
11770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773   IFS=$as_save_IFS
11774   test -z "$as_dir" && as_dir=.
11775     for ac_exec_ext in '' $ac_executable_extensions; do
11776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779     break 2
11780   fi
11781 done
11782   done
11783 IFS=$as_save_IFS
11784 
11785   ;;
11786 esac
11787 fi
11788 TOUCH=$ac_cv_path_TOUCH
11789 if test -n "$TOUCH"; then
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11791 $as_echo "$TOUCH" >&6; }
11792 else
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796 
11797 
11798   test -n "$TOUCH" && break
11799 done
11800 
11801   else
11802     # The variable is set, but is it from the command line or the environment?
11803 
11804     # Try to remove the string !TOUCH! from our list.
11805     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11806     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11807       # If it failed, the variable was not from the command line. Ignore it,
11808       # but warn the user (except for BASH, which is always set by the calling BASH).
11809       if test "xTOUCH" != xBASH; then
11810         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11811 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11812       fi
11813       # Try to locate tool using the code snippet
11814       for ac_prog in touch
11815 do
11816   # Extract the first word of "$ac_prog", so it can be a program name with args.
11817 set dummy $ac_prog; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819 $as_echo_n "checking for $ac_word... " >&6; }
11820 if ${ac_cv_path_TOUCH+:} false; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   case $TOUCH in
11824   [\\/]* | ?:[\\/]*)
11825   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11826   ;;
11827   *)
11828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842 
11843   ;;
11844 esac
11845 fi
11846 TOUCH=$ac_cv_path_TOUCH
11847 if test -n "$TOUCH"; then
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11849 $as_echo "$TOUCH" >&6; }
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854 
11855 
11856   test -n "$TOUCH" && break
11857 done
11858 
11859     else
11860       # If it succeeded, then it was overridden by the user. We will use it
11861       # for the tool.
11862 
11863       # First remove it from the list of overridden variables, so we can test
11864       # for unknown variables in the end.
11865       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11866 
11867       # Check if we try to supply an empty value
11868       if test "x$TOUCH" = x; then
11869         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11870 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11872 $as_echo_n "checking for TOUCH... " >&6; }
11873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11874 $as_echo "disabled" >&6; }
11875       else
11876         # Check if the provided tool contains a complete path.
11877         tool_specified="$TOUCH"
11878         tool_basename="${tool_specified##*/}"
11879         if test "x$tool_basename" = "x$tool_specified"; then
11880           # A command without a complete path is provided, search $PATH.
11881           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11882 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11883           # Extract the first word of "$tool_basename", so it can be a program name with args.
11884 set dummy $tool_basename; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_path_TOUCH+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   case $TOUCH in
11891   [\\/]* | ?:[\\/]*)
11892   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11893   ;;
11894   *)
11895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909 
11910   ;;
11911 esac
11912 fi
11913 TOUCH=$ac_cv_path_TOUCH
11914 if test -n "$TOUCH"; then
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11916 $as_echo "$TOUCH" >&6; }
11917 else
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921 
11922 
11923           if test "x$TOUCH" = x; then
11924             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11925           fi
11926         else
11927           # Otherwise we believe it is a complete path. Use it as it is.
11928           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11929 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11930           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11931 $as_echo_n "checking for TOUCH... " >&6; }
11932           if test ! -x "$tool_specified"; then
11933             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11934 $as_echo "not found" >&6; }
11935             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11936           fi
11937           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11938 $as_echo "$tool_specified" >&6; }
11939         fi
11940       fi
11941     fi
11942 
11943   fi
11944 
11945 
11946 
11947   if test "x$TOUCH" = x; then
11948     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11949   fi
11950 
11951 
11952 
11953 
11954 
11955   # Publish this variable in the help.
11956 
11957 
11958   if [ -z "${TR+x}" ]; then
11959     # The variable is not set by user, try to locate tool using the code snippet
11960     for ac_prog in tr
11961 do
11962   # Extract the first word of "$ac_prog", so it can be a program name with args.
11963 set dummy $ac_prog; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if ${ac_cv_path_TR+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   case $TR in
11970   [\\/]* | ?:[\\/]*)
11971   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11972   ;;
11973   *)
11974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977   IFS=$as_save_IFS
11978   test -z "$as_dir" && as_dir=.
11979     for ac_exec_ext in '' $ac_executable_extensions; do
11980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983     break 2
11984   fi
11985 done
11986   done
11987 IFS=$as_save_IFS
11988 
11989   ;;
11990 esac
11991 fi
11992 TR=$ac_cv_path_TR
11993 if test -n "$TR"; then
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11995 $as_echo "$TR" >&6; }
11996 else
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
11999 fi
12000 
12001 
12002   test -n "$TR" && break
12003 done
12004 
12005   else
12006     # The variable is set, but is it from the command line or the environment?
12007 
12008     # Try to remove the string !TR! from our list.
12009     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12010     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12011       # If it failed, the variable was not from the command line. Ignore it,
12012       # but warn the user (except for BASH, which is always set by the calling BASH).
12013       if test "xTR" != xBASH; then
12014         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12015 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12016       fi
12017       # Try to locate tool using the code snippet
12018       for ac_prog in tr
12019 do
12020   # Extract the first word of "$ac_prog", so it can be a program name with args.
12021 set dummy $ac_prog; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_path_TR+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   case $TR in
12028   [\\/]* | ?:[\\/]*)
12029   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12030   ;;
12031   *)
12032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046 
12047   ;;
12048 esac
12049 fi
12050 TR=$ac_cv_path_TR
12051 if test -n "$TR"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12053 $as_echo "$TR" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058 
12059 
12060   test -n "$TR" && break
12061 done
12062 
12063     else
12064       # If it succeeded, then it was overridden by the user. We will use it
12065       # for the tool.
12066 
12067       # First remove it from the list of overridden variables, so we can test
12068       # for unknown variables in the end.
12069       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12070 
12071       # Check if we try to supply an empty value
12072       if test "x$TR" = x; then
12073         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12074 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12076 $as_echo_n "checking for TR... " >&6; }
12077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12078 $as_echo "disabled" >&6; }
12079       else
12080         # Check if the provided tool contains a complete path.
12081         tool_specified="$TR"
12082         tool_basename="${tool_specified##*/}"
12083         if test "x$tool_basename" = "x$tool_specified"; then
12084           # A command without a complete path is provided, search $PATH.
12085           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12086 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12087           # Extract the first word of "$tool_basename", so it can be a program name with args.
12088 set dummy $tool_basename; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_path_TR+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094   case $TR in
12095   [\\/]* | ?:[\\/]*)
12096   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12097   ;;
12098   *)
12099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12101 do
12102   IFS=$as_save_IFS
12103   test -z "$as_dir" && as_dir=.
12104     for ac_exec_ext in '' $ac_executable_extensions; do
12105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108     break 2
12109   fi
12110 done
12111   done
12112 IFS=$as_save_IFS
12113 
12114   ;;
12115 esac
12116 fi
12117 TR=$ac_cv_path_TR
12118 if test -n "$TR"; then
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12120 $as_echo "$TR" >&6; }
12121 else
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 fi
12125 
12126 
12127           if test "x$TR" = x; then
12128             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12129           fi
12130         else
12131           # Otherwise we believe it is a complete path. Use it as it is.
12132           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12133 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12134           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12135 $as_echo_n "checking for TR... " >&6; }
12136           if test ! -x "$tool_specified"; then
12137             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12138 $as_echo "not found" >&6; }
12139             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12140           fi
12141           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12142 $as_echo "$tool_specified" >&6; }
12143         fi
12144       fi
12145     fi
12146 
12147   fi
12148 
12149 
12150 
12151   if test "x$TR" = x; then
12152     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12153   fi
12154 
12155 
12156 
12157 
12158 
12159   # Publish this variable in the help.
12160 
12161 
12162   if [ -z "${UNAME+x}" ]; then
12163     # The variable is not set by user, try to locate tool using the code snippet
12164     for ac_prog in uname
12165 do
12166   # Extract the first word of "$ac_prog", so it can be a program name with args.
12167 set dummy $ac_prog; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_path_UNAME+:} false; then :
12171   $as_echo_n "(cached) " >&6
12172 else
12173   case $UNAME in
12174   [\\/]* | ?:[\\/]*)
12175   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12176   ;;
12177   *)
12178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183     for ac_exec_ext in '' $ac_executable_extensions; do
12184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190   done
12191 IFS=$as_save_IFS
12192 
12193   ;;
12194 esac
12195 fi
12196 UNAME=$ac_cv_path_UNAME
12197 if test -n "$UNAME"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12199 $as_echo "$UNAME" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204 
12205 
12206   test -n "$UNAME" && break
12207 done
12208 
12209   else
12210     # The variable is set, but is it from the command line or the environment?
12211 
12212     # Try to remove the string !UNAME! from our list.
12213     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12214     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12215       # If it failed, the variable was not from the command line. Ignore it,
12216       # but warn the user (except for BASH, which is always set by the calling BASH).
12217       if test "xUNAME" != xBASH; then
12218         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12219 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12220       fi
12221       # Try to locate tool using the code snippet
12222       for ac_prog in uname
12223 do
12224   # Extract the first word of "$ac_prog", so it can be a program name with args.
12225 set dummy $ac_prog; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if ${ac_cv_path_UNAME+:} false; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   case $UNAME in
12232   [\\/]* | ?:[\\/]*)
12233   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12234   ;;
12235   *)
12236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241     for ac_exec_ext in '' $ac_executable_extensions; do
12242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248   done
12249 IFS=$as_save_IFS
12250 
12251   ;;
12252 esac
12253 fi
12254 UNAME=$ac_cv_path_UNAME
12255 if test -n "$UNAME"; then
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12257 $as_echo "$UNAME" >&6; }
12258 else
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262 
12263 
12264   test -n "$UNAME" && break
12265 done
12266 
12267     else
12268       # If it succeeded, then it was overridden by the user. We will use it
12269       # for the tool.
12270 
12271       # First remove it from the list of overridden variables, so we can test
12272       # for unknown variables in the end.
12273       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12274 
12275       # Check if we try to supply an empty value
12276       if test "x$UNAME" = x; then
12277         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12278 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12280 $as_echo_n "checking for UNAME... " >&6; }
12281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12282 $as_echo "disabled" >&6; }
12283       else
12284         # Check if the provided tool contains a complete path.
12285         tool_specified="$UNAME"
12286         tool_basename="${tool_specified##*/}"
12287         if test "x$tool_basename" = "x$tool_specified"; then
12288           # A command without a complete path is provided, search $PATH.
12289           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12290 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12291           # Extract the first word of "$tool_basename", so it can be a program name with args.
12292 set dummy $tool_basename; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_path_UNAME+:} false; then :
12296   $as_echo_n "(cached) " >&6
12297 else
12298   case $UNAME in
12299   [\\/]* | ?:[\\/]*)
12300   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12301   ;;
12302   *)
12303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306   IFS=$as_save_IFS
12307   test -z "$as_dir" && as_dir=.
12308     for ac_exec_ext in '' $ac_executable_extensions; do
12309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312     break 2
12313   fi
12314 done
12315   done
12316 IFS=$as_save_IFS
12317 
12318   ;;
12319 esac
12320 fi
12321 UNAME=$ac_cv_path_UNAME
12322 if test -n "$UNAME"; then
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12324 $as_echo "$UNAME" >&6; }
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 fi
12329 
12330 
12331           if test "x$UNAME" = x; then
12332             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12333           fi
12334         else
12335           # Otherwise we believe it is a complete path. Use it as it is.
12336           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12337 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12338           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12339 $as_echo_n "checking for UNAME... " >&6; }
12340           if test ! -x "$tool_specified"; then
12341             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12342 $as_echo "not found" >&6; }
12343             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12344           fi
12345           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12346 $as_echo "$tool_specified" >&6; }
12347         fi
12348       fi
12349     fi
12350 
12351   fi
12352 
12353 
12354 
12355   if test "x$UNAME" = x; then
12356     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12357   fi
12358 
12359 
12360 
12361 
12362 
12363   # Publish this variable in the help.
12364 
12365 
12366   if [ -z "${UNIQ+x}" ]; then
12367     # The variable is not set by user, try to locate tool using the code snippet
12368     for ac_prog in uniq
12369 do
12370   # Extract the first word of "$ac_prog", so it can be a program name with args.
12371 set dummy $ac_prog; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_path_UNIQ+:} false; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   case $UNIQ in
12378   [\\/]* | ?:[\\/]*)
12379   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12380   ;;
12381   *)
12382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385   IFS=$as_save_IFS
12386   test -z "$as_dir" && as_dir=.
12387     for ac_exec_ext in '' $ac_executable_extensions; do
12388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391     break 2
12392   fi
12393 done
12394   done
12395 IFS=$as_save_IFS
12396 
12397   ;;
12398 esac
12399 fi
12400 UNIQ=$ac_cv_path_UNIQ
12401 if test -n "$UNIQ"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12403 $as_echo "$UNIQ" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408 
12409 
12410   test -n "$UNIQ" && break
12411 done
12412 
12413   else
12414     # The variable is set, but is it from the command line or the environment?
12415 
12416     # Try to remove the string !UNIQ! from our list.
12417     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12418     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12419       # If it failed, the variable was not from the command line. Ignore it,
12420       # but warn the user (except for BASH, which is always set by the calling BASH).
12421       if test "xUNIQ" != xBASH; then
12422         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12423 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12424       fi
12425       # Try to locate tool using the code snippet
12426       for ac_prog in uniq
12427 do
12428   # Extract the first word of "$ac_prog", so it can be a program name with args.
12429 set dummy $ac_prog; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_path_UNIQ+:} false; then :
12433   $as_echo_n "(cached) " >&6
12434 else
12435   case $UNIQ in
12436   [\\/]* | ?:[\\/]*)
12437   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12438   ;;
12439   *)
12440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12442 do
12443   IFS=$as_save_IFS
12444   test -z "$as_dir" && as_dir=.
12445     for ac_exec_ext in '' $ac_executable_extensions; do
12446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449     break 2
12450   fi
12451 done
12452   done
12453 IFS=$as_save_IFS
12454 
12455   ;;
12456 esac
12457 fi
12458 UNIQ=$ac_cv_path_UNIQ
12459 if test -n "$UNIQ"; then
12460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12461 $as_echo "$UNIQ" >&6; }
12462 else
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466 
12467 
12468   test -n "$UNIQ" && break
12469 done
12470 
12471     else
12472       # If it succeeded, then it was overridden by the user. We will use it
12473       # for the tool.
12474 
12475       # First remove it from the list of overridden variables, so we can test
12476       # for unknown variables in the end.
12477       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12478 
12479       # Check if we try to supply an empty value
12480       if test "x$UNIQ" = x; then
12481         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12482 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12484 $as_echo_n "checking for UNIQ... " >&6; }
12485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12486 $as_echo "disabled" >&6; }
12487       else
12488         # Check if the provided tool contains a complete path.
12489         tool_specified="$UNIQ"
12490         tool_basename="${tool_specified##*/}"
12491         if test "x$tool_basename" = "x$tool_specified"; then
12492           # A command without a complete path is provided, search $PATH.
12493           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12494 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12495           # Extract the first word of "$tool_basename", so it can be a program name with args.
12496 set dummy $tool_basename; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_path_UNIQ+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502   case $UNIQ in
12503   [\\/]* | ?:[\\/]*)
12504   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12505   ;;
12506   *)
12507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12509 do
12510   IFS=$as_save_IFS
12511   test -z "$as_dir" && as_dir=.
12512     for ac_exec_ext in '' $ac_executable_extensions; do
12513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12514     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516     break 2
12517   fi
12518 done
12519   done
12520 IFS=$as_save_IFS
12521 
12522   ;;
12523 esac
12524 fi
12525 UNIQ=$ac_cv_path_UNIQ
12526 if test -n "$UNIQ"; then
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12528 $as_echo "$UNIQ" >&6; }
12529 else
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532 fi
12533 
12534 
12535           if test "x$UNIQ" = x; then
12536             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12537           fi
12538         else
12539           # Otherwise we believe it is a complete path. Use it as it is.
12540           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12541 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12542           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12543 $as_echo_n "checking for UNIQ... " >&6; }
12544           if test ! -x "$tool_specified"; then
12545             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12546 $as_echo "not found" >&6; }
12547             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12548           fi
12549           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12550 $as_echo "$tool_specified" >&6; }
12551         fi
12552       fi
12553     fi
12554 
12555   fi
12556 
12557 
12558 
12559   if test "x$UNIQ" = x; then
12560     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12561   fi
12562 
12563 
12564 
12565 
12566 
12567   # Publish this variable in the help.
12568 
12569 
12570   if [ -z "${WC+x}" ]; then
12571     # The variable is not set by user, try to locate tool using the code snippet
12572     for ac_prog in wc
12573 do
12574   # Extract the first word of "$ac_prog", so it can be a program name with args.
12575 set dummy $ac_prog; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_path_WC+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   case $WC in
12582   [\\/]* | ?:[\\/]*)
12583   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12584   ;;
12585   *)
12586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589   IFS=$as_save_IFS
12590   test -z "$as_dir" && as_dir=.
12591     for ac_exec_ext in '' $ac_executable_extensions; do
12592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595     break 2
12596   fi
12597 done
12598   done
12599 IFS=$as_save_IFS
12600 
12601   ;;
12602 esac
12603 fi
12604 WC=$ac_cv_path_WC
12605 if test -n "$WC"; then
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12607 $as_echo "$WC" >&6; }
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612 
12613 
12614   test -n "$WC" && break
12615 done
12616 
12617   else
12618     # The variable is set, but is it from the command line or the environment?
12619 
12620     # Try to remove the string !WC! from our list.
12621     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12622     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12623       # If it failed, the variable was not from the command line. Ignore it,
12624       # but warn the user (except for BASH, which is always set by the calling BASH).
12625       if test "xWC" != xBASH; then
12626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12627 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12628       fi
12629       # Try to locate tool using the code snippet
12630       for ac_prog in wc
12631 do
12632   # Extract the first word of "$ac_prog", so it can be a program name with args.
12633 set dummy $ac_prog; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_WC+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   case $WC in
12640   [\\/]* | ?:[\\/]*)
12641   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12642   ;;
12643   *)
12644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12646 do
12647   IFS=$as_save_IFS
12648   test -z "$as_dir" && as_dir=.
12649     for ac_exec_ext in '' $ac_executable_extensions; do
12650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653     break 2
12654   fi
12655 done
12656   done
12657 IFS=$as_save_IFS
12658 
12659   ;;
12660 esac
12661 fi
12662 WC=$ac_cv_path_WC
12663 if test -n "$WC"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12665 $as_echo "$WC" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670 
12671 
12672   test -n "$WC" && break
12673 done
12674 
12675     else
12676       # If it succeeded, then it was overridden by the user. We will use it
12677       # for the tool.
12678 
12679       # First remove it from the list of overridden variables, so we can test
12680       # for unknown variables in the end.
12681       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12682 
12683       # Check if we try to supply an empty value
12684       if test "x$WC" = x; then
12685         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12686 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12688 $as_echo_n "checking for WC... " >&6; }
12689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12690 $as_echo "disabled" >&6; }
12691       else
12692         # Check if the provided tool contains a complete path.
12693         tool_specified="$WC"
12694         tool_basename="${tool_specified##*/}"
12695         if test "x$tool_basename" = "x$tool_specified"; then
12696           # A command without a complete path is provided, search $PATH.
12697           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12698 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12699           # Extract the first word of "$tool_basename", so it can be a program name with args.
12700 set dummy $tool_basename; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if ${ac_cv_path_WC+:} false; then :
12704   $as_echo_n "(cached) " >&6
12705 else
12706   case $WC in
12707   [\\/]* | ?:[\\/]*)
12708   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12709   ;;
12710   *)
12711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12713 do
12714   IFS=$as_save_IFS
12715   test -z "$as_dir" && as_dir=.
12716     for ac_exec_ext in '' $ac_executable_extensions; do
12717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12718     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720     break 2
12721   fi
12722 done
12723   done
12724 IFS=$as_save_IFS
12725 
12726   ;;
12727 esac
12728 fi
12729 WC=$ac_cv_path_WC
12730 if test -n "$WC"; then
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12732 $as_echo "$WC" >&6; }
12733 else
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737 
12738 
12739           if test "x$WC" = x; then
12740             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12741           fi
12742         else
12743           # Otherwise we believe it is a complete path. Use it as it is.
12744           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12745 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12746           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12747 $as_echo_n "checking for WC... " >&6; }
12748           if test ! -x "$tool_specified"; then
12749             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12750 $as_echo "not found" >&6; }
12751             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12752           fi
12753           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12754 $as_echo "$tool_specified" >&6; }
12755         fi
12756       fi
12757     fi
12758 
12759   fi
12760 
12761 
12762 
12763   if test "x$WC" = x; then
12764     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12765   fi
12766 
12767 
12768 
12769 
12770 
12771   # Publish this variable in the help.
12772 
12773 
12774   if [ -z "${WHICH+x}" ]; then
12775     # The variable is not set by user, try to locate tool using the code snippet
12776     for ac_prog in which
12777 do
12778   # Extract the first word of "$ac_prog", so it can be a program name with args.
12779 set dummy $ac_prog; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_WHICH+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   case $WHICH in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795     for ac_exec_ext in '' $ac_executable_extensions; do
12796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802   done
12803 IFS=$as_save_IFS
12804 
12805   ;;
12806 esac
12807 fi
12808 WHICH=$ac_cv_path_WHICH
12809 if test -n "$WHICH"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12811 $as_echo "$WHICH" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 
12817 
12818   test -n "$WHICH" && break
12819 done
12820 
12821   else
12822     # The variable is set, but is it from the command line or the environment?
12823 
12824     # Try to remove the string !WHICH! from our list.
12825     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12826     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12827       # If it failed, the variable was not from the command line. Ignore it,
12828       # but warn the user (except for BASH, which is always set by the calling BASH).
12829       if test "xWHICH" != xBASH; then
12830         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12831 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12832       fi
12833       # Try to locate tool using the code snippet
12834       for ac_prog in which
12835 do
12836   # Extract the first word of "$ac_prog", so it can be a program name with args.
12837 set dummy $ac_prog; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_WHICH+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $WHICH in
12844   [\\/]* | ?:[\\/]*)
12845   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12846   ;;
12847   *)
12848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862 
12863   ;;
12864 esac
12865 fi
12866 WHICH=$ac_cv_path_WHICH
12867 if test -n "$WHICH"; then
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12869 $as_echo "$WHICH" >&6; }
12870 else
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874 
12875 
12876   test -n "$WHICH" && break
12877 done
12878 
12879     else
12880       # If it succeeded, then it was overridden by the user. We will use it
12881       # for the tool.
12882 
12883       # First remove it from the list of overridden variables, so we can test
12884       # for unknown variables in the end.
12885       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12886 
12887       # Check if we try to supply an empty value
12888       if test "x$WHICH" = x; then
12889         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12890 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12892 $as_echo_n "checking for WHICH... " >&6; }
12893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12894 $as_echo "disabled" >&6; }
12895       else
12896         # Check if the provided tool contains a complete path.
12897         tool_specified="$WHICH"
12898         tool_basename="${tool_specified##*/}"
12899         if test "x$tool_basename" = "x$tool_specified"; then
12900           # A command without a complete path is provided, search $PATH.
12901           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12902 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12903           # Extract the first word of "$tool_basename", so it can be a program name with args.
12904 set dummy $tool_basename; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if ${ac_cv_path_WHICH+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   case $WHICH in
12911   [\\/]* | ?:[\\/]*)
12912   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12913   ;;
12914   *)
12915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12917 do
12918   IFS=$as_save_IFS
12919   test -z "$as_dir" && as_dir=.
12920     for ac_exec_ext in '' $ac_executable_extensions; do
12921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924     break 2
12925   fi
12926 done
12927   done
12928 IFS=$as_save_IFS
12929 
12930   ;;
12931 esac
12932 fi
12933 WHICH=$ac_cv_path_WHICH
12934 if test -n "$WHICH"; then
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12936 $as_echo "$WHICH" >&6; }
12937 else
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941 
12942 
12943           if test "x$WHICH" = x; then
12944             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12945           fi
12946         else
12947           # Otherwise we believe it is a complete path. Use it as it is.
12948           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12949 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12950           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12951 $as_echo_n "checking for WHICH... " >&6; }
12952           if test ! -x "$tool_specified"; then
12953             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12954 $as_echo "not found" >&6; }
12955             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12956           fi
12957           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12958 $as_echo "$tool_specified" >&6; }
12959         fi
12960       fi
12961     fi
12962 
12963   fi
12964 
12965 
12966 
12967   if test "x$WHICH" = x; then
12968     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12969   fi
12970 
12971 
12972 
12973 
12974 
12975   # Publish this variable in the help.
12976 
12977 
12978   if [ -z "${XARGS+x}" ]; then
12979     # The variable is not set by user, try to locate tool using the code snippet
12980     for ac_prog in xargs
12981 do
12982   # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if ${ac_cv_path_XARGS+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   case $XARGS in
12990   [\\/]* | ?:[\\/]*)
12991   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12992   ;;
12993   *)
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999     for ac_exec_ext in '' $ac_executable_extensions; do
13000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003     break 2
13004   fi
13005 done
13006   done
13007 IFS=$as_save_IFS
13008 
13009   ;;
13010 esac
13011 fi
13012 XARGS=$ac_cv_path_XARGS
13013 if test -n "$XARGS"; then
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13015 $as_echo "$XARGS" >&6; }
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020 
13021 
13022   test -n "$XARGS" && break
13023 done
13024 
13025   else
13026     # The variable is set, but is it from the command line or the environment?
13027 
13028     # Try to remove the string !XARGS! from our list.
13029     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13030     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13031       # If it failed, the variable was not from the command line. Ignore it,
13032       # but warn the user (except for BASH, which is always set by the calling BASH).
13033       if test "xXARGS" != xBASH; then
13034         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13035 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13036       fi
13037       # Try to locate tool using the code snippet
13038       for ac_prog in xargs
13039 do
13040   # Extract the first word of "$ac_prog", so it can be a program name with args.
13041 set dummy $ac_prog; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if ${ac_cv_path_XARGS+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   case $XARGS in
13048   [\\/]* | ?:[\\/]*)
13049   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13050   ;;
13051   *)
13052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13054 do
13055   IFS=$as_save_IFS
13056   test -z "$as_dir" && as_dir=.
13057     for ac_exec_ext in '' $ac_executable_extensions; do
13058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13059     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061     break 2
13062   fi
13063 done
13064   done
13065 IFS=$as_save_IFS
13066 
13067   ;;
13068 esac
13069 fi
13070 XARGS=$ac_cv_path_XARGS
13071 if test -n "$XARGS"; then
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13073 $as_echo "$XARGS" >&6; }
13074 else
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077 fi
13078 
13079 
13080   test -n "$XARGS" && break
13081 done
13082 
13083     else
13084       # If it succeeded, then it was overridden by the user. We will use it
13085       # for the tool.
13086 
13087       # First remove it from the list of overridden variables, so we can test
13088       # for unknown variables in the end.
13089       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13090 
13091       # Check if we try to supply an empty value
13092       if test "x$XARGS" = x; then
13093         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13094 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13096 $as_echo_n "checking for XARGS... " >&6; }
13097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13098 $as_echo "disabled" >&6; }
13099       else
13100         # Check if the provided tool contains a complete path.
13101         tool_specified="$XARGS"
13102         tool_basename="${tool_specified##*/}"
13103         if test "x$tool_basename" = "x$tool_specified"; then
13104           # A command without a complete path is provided, search $PATH.
13105           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13106 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13107           # Extract the first word of "$tool_basename", so it can be a program name with args.
13108 set dummy $tool_basename; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_path_XARGS+:} false; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   case $XARGS in
13115   [\\/]* | ?:[\\/]*)
13116   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13117   ;;
13118   *)
13119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13121 do
13122   IFS=$as_save_IFS
13123   test -z "$as_dir" && as_dir=.
13124     for ac_exec_ext in '' $ac_executable_extensions; do
13125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13126     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128     break 2
13129   fi
13130 done
13131   done
13132 IFS=$as_save_IFS
13133 
13134   ;;
13135 esac
13136 fi
13137 XARGS=$ac_cv_path_XARGS
13138 if test -n "$XARGS"; then
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13140 $as_echo "$XARGS" >&6; }
13141 else
13142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13144 fi
13145 
13146 
13147           if test "x$XARGS" = x; then
13148             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13149           fi
13150         else
13151           # Otherwise we believe it is a complete path. Use it as it is.
13152           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13153 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13154           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13155 $as_echo_n "checking for XARGS... " >&6; }
13156           if test ! -x "$tool_specified"; then
13157             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13158 $as_echo "not found" >&6; }
13159             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13160           fi
13161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13162 $as_echo "$tool_specified" >&6; }
13163         fi
13164       fi
13165     fi
13166 
13167   fi
13168 
13169 
13170 
13171   if test "x$XARGS" = x; then
13172     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13173   fi
13174 
13175 
13176 
13177   # Then required tools that require some special treatment.
13178 
13179 
13180   # Publish this variable in the help.
13181 
13182 
13183   if [ -z "${AWK+x}" ]; then
13184     # The variable is not set by user, try to locate tool using the code snippet
13185     for ac_prog in gawk mawk nawk awk
13186 do
13187   # Extract the first word of "$ac_prog", so it can be a program name with args.
13188 set dummy $ac_prog; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_prog_AWK+:} false; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194   if test -n "$AWK"; then
13195   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200   IFS=$as_save_IFS
13201   test -z "$as_dir" && as_dir=.
13202     for ac_exec_ext in '' $ac_executable_extensions; do
13203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13204     ac_cv_prog_AWK="$ac_prog"
13205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206     break 2
13207   fi
13208 done
13209   done
13210 IFS=$as_save_IFS
13211 
13212 fi
13213 fi
13214 AWK=$ac_cv_prog_AWK
13215 if test -n "$AWK"; then
13216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13217 $as_echo "$AWK" >&6; }
13218 else
13219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13221 fi
13222 
13223 
13224   test -n "$AWK" && break
13225 done
13226 
13227   else
13228     # The variable is set, but is it from the command line or the environment?
13229 
13230     # Try to remove the string !AWK! from our list.
13231     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13232     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13233       # If it failed, the variable was not from the command line. Ignore it,
13234       # but warn the user (except for BASH, which is always set by the calling BASH).
13235       if test "xAWK" != xBASH; then
13236         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13237 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13238       fi
13239       # Try to locate tool using the code snippet
13240       for ac_prog in gawk mawk nawk awk
13241 do
13242   # Extract the first word of "$ac_prog", so it can be a program name with args.
13243 set dummy $ac_prog; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if ${ac_cv_prog_AWK+:} false; then :
13247   $as_echo_n "(cached) " >&6
13248 else
13249   if test -n "$AWK"; then
13250   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255   IFS=$as_save_IFS
13256   test -z "$as_dir" && as_dir=.
13257     for ac_exec_ext in '' $ac_executable_extensions; do
13258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13259     ac_cv_prog_AWK="$ac_prog"
13260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261     break 2
13262   fi
13263 done
13264   done
13265 IFS=$as_save_IFS
13266 
13267 fi
13268 fi
13269 AWK=$ac_cv_prog_AWK
13270 if test -n "$AWK"; then
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13272 $as_echo "$AWK" >&6; }
13273 else
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276 fi
13277 
13278 
13279   test -n "$AWK" && break
13280 done
13281 
13282     else
13283       # If it succeeded, then it was overridden by the user. We will use it
13284       # for the tool.
13285 
13286       # First remove it from the list of overridden variables, so we can test
13287       # for unknown variables in the end.
13288       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13289 
13290       # Check if we try to supply an empty value
13291       if test "x$AWK" = x; then
13292         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13293 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13295 $as_echo_n "checking for AWK... " >&6; }
13296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13297 $as_echo "disabled" >&6; }
13298       else
13299         # Check if the provided tool contains a complete path.
13300         tool_specified="$AWK"
13301         tool_basename="${tool_specified##*/}"
13302         if test "x$tool_basename" = "x$tool_specified"; then
13303           # A command without a complete path is provided, search $PATH.
13304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13305 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13306           # Extract the first word of "$tool_basename", so it can be a program name with args.
13307 set dummy $tool_basename; ac_word=$2
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309 $as_echo_n "checking for $ac_word... " >&6; }
13310 if ${ac_cv_path_AWK+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   case $AWK in
13314   [\\/]* | ?:[\\/]*)
13315   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13316   ;;
13317   *)
13318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13320 do
13321   IFS=$as_save_IFS
13322   test -z "$as_dir" && as_dir=.
13323     for ac_exec_ext in '' $ac_executable_extensions; do
13324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327     break 2
13328   fi
13329 done
13330   done
13331 IFS=$as_save_IFS
13332 
13333   ;;
13334 esac
13335 fi
13336 AWK=$ac_cv_path_AWK
13337 if test -n "$AWK"; then
13338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13339 $as_echo "$AWK" >&6; }
13340 else
13341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13343 fi
13344 
13345 
13346           if test "x$AWK" = x; then
13347             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13348           fi
13349         else
13350           # Otherwise we believe it is a complete path. Use it as it is.
13351           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13352 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13354 $as_echo_n "checking for AWK... " >&6; }
13355           if test ! -x "$tool_specified"; then
13356             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13357 $as_echo "not found" >&6; }
13358             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13359           fi
13360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13361 $as_echo "$tool_specified" >&6; }
13362         fi
13363       fi
13364     fi
13365 
13366   fi
13367 
13368 
13369   if test "x$AWK" = x; then
13370     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13371   fi
13372 
13373 
13374 
13375 
13376   # Publish this variable in the help.
13377 
13378 
13379   if [ -z "${GREP+x}" ]; then
13380     # The variable is not set by user, try to locate tool using the code snippet
13381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13382 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13383 if ${ac_cv_path_GREP+:} false; then :
13384   $as_echo_n "(cached) " >&6
13385 else
13386   if test -z "$GREP"; then
13387   ac_path_GREP_found=false
13388   # Loop through the user's path and test for each of PROGNAME-LIST
13389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13391 do
13392   IFS=$as_save_IFS
13393   test -z "$as_dir" && as_dir=.
13394     for ac_prog in grep ggrep; do
13395     for ac_exec_ext in '' $ac_executable_extensions; do
13396       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13397       as_fn_executable_p "$ac_path_GREP" || continue
13398 # Check for GNU ac_path_GREP and select it if it is found.
13399   # Check for GNU $ac_path_GREP
13400 case `"$ac_path_GREP" --version 2>&1` in
13401 *GNU*)
13402   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13403 *)
13404   ac_count=0
13405   $as_echo_n 0123456789 >"conftest.in"
13406   while :
13407   do
13408     cat "conftest.in" "conftest.in" >"conftest.tmp"
13409     mv "conftest.tmp" "conftest.in"
13410     cp "conftest.in" "conftest.nl"
13411     $as_echo 'GREP' >> "conftest.nl"
13412     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13413     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13414     as_fn_arith $ac_count + 1 && ac_count=$as_val
13415     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13416       # Best one so far, save it but keep looking for a better one
13417       ac_cv_path_GREP="$ac_path_GREP"
13418       ac_path_GREP_max=$ac_count
13419     fi
13420     # 10*(2^10) chars as input seems more than enough
13421     test $ac_count -gt 10 && break
13422   done
13423   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13424 esac
13425 
13426       $ac_path_GREP_found && break 3
13427     done
13428   done
13429   done
13430 IFS=$as_save_IFS
13431   if test -z "$ac_cv_path_GREP"; then
13432     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13433   fi
13434 else
13435   ac_cv_path_GREP=$GREP
13436 fi
13437 
13438 fi
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13440 $as_echo "$ac_cv_path_GREP" >&6; }
13441  GREP="$ac_cv_path_GREP"
13442 
13443 
13444   else
13445     # The variable is set, but is it from the command line or the environment?
13446 
13447     # Try to remove the string !GREP! from our list.
13448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13450       # If it failed, the variable was not from the command line. Ignore it,
13451       # but warn the user (except for BASH, which is always set by the calling BASH).
13452       if test "xGREP" != xBASH; then
13453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13454 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13455       fi
13456       # Try to locate tool using the code snippet
13457       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13458 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13459 if ${ac_cv_path_GREP+:} false; then :
13460   $as_echo_n "(cached) " >&6
13461 else
13462   if test -z "$GREP"; then
13463   ac_path_GREP_found=false
13464   # Loop through the user's path and test for each of PROGNAME-LIST
13465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13467 do
13468   IFS=$as_save_IFS
13469   test -z "$as_dir" && as_dir=.
13470     for ac_prog in grep ggrep; do
13471     for ac_exec_ext in '' $ac_executable_extensions; do
13472       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13473       as_fn_executable_p "$ac_path_GREP" || continue
13474 # Check for GNU ac_path_GREP and select it if it is found.
13475   # Check for GNU $ac_path_GREP
13476 case `"$ac_path_GREP" --version 2>&1` in
13477 *GNU*)
13478   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13479 *)
13480   ac_count=0
13481   $as_echo_n 0123456789 >"conftest.in"
13482   while :
13483   do
13484     cat "conftest.in" "conftest.in" >"conftest.tmp"
13485     mv "conftest.tmp" "conftest.in"
13486     cp "conftest.in" "conftest.nl"
13487     $as_echo 'GREP' >> "conftest.nl"
13488     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13489     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13490     as_fn_arith $ac_count + 1 && ac_count=$as_val
13491     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13492       # Best one so far, save it but keep looking for a better one
13493       ac_cv_path_GREP="$ac_path_GREP"
13494       ac_path_GREP_max=$ac_count
13495     fi
13496     # 10*(2^10) chars as input seems more than enough
13497     test $ac_count -gt 10 && break
13498   done
13499   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13500 esac
13501 
13502       $ac_path_GREP_found && break 3
13503     done
13504   done
13505   done
13506 IFS=$as_save_IFS
13507   if test -z "$ac_cv_path_GREP"; then
13508     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13509   fi
13510 else
13511   ac_cv_path_GREP=$GREP
13512 fi
13513 
13514 fi
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13516 $as_echo "$ac_cv_path_GREP" >&6; }
13517  GREP="$ac_cv_path_GREP"
13518 
13519 
13520     else
13521       # If it succeeded, then it was overridden by the user. We will use it
13522       # for the tool.
13523 
13524       # First remove it from the list of overridden variables, so we can test
13525       # for unknown variables in the end.
13526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13527 
13528       # Check if we try to supply an empty value
13529       if test "x$GREP" = x; then
13530         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13531 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13533 $as_echo_n "checking for GREP... " >&6; }
13534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13535 $as_echo "disabled" >&6; }
13536       else
13537         # Check if the provided tool contains a complete path.
13538         tool_specified="$GREP"
13539         tool_basename="${tool_specified##*/}"
13540         if test "x$tool_basename" = "x$tool_specified"; then
13541           # A command without a complete path is provided, search $PATH.
13542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13543 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13544           # Extract the first word of "$tool_basename", so it can be a program name with args.
13545 set dummy $tool_basename; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if ${ac_cv_path_GREP+:} false; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551   case $GREP in
13552   [\\/]* | ?:[\\/]*)
13553   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13554   ;;
13555   *)
13556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13558 do
13559   IFS=$as_save_IFS
13560   test -z "$as_dir" && as_dir=.
13561     for ac_exec_ext in '' $ac_executable_extensions; do
13562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13563     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13565     break 2
13566   fi
13567 done
13568   done
13569 IFS=$as_save_IFS
13570 
13571   ;;
13572 esac
13573 fi
13574 GREP=$ac_cv_path_GREP
13575 if test -n "$GREP"; then
13576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13577 $as_echo "$GREP" >&6; }
13578 else
13579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13581 fi
13582 
13583 
13584           if test "x$GREP" = x; then
13585             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13586           fi
13587         else
13588           # Otherwise we believe it is a complete path. Use it as it is.
13589           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13590 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13591           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13592 $as_echo_n "checking for GREP... " >&6; }
13593           if test ! -x "$tool_specified"; then
13594             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13595 $as_echo "not found" >&6; }
13596             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13597           fi
13598           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13599 $as_echo "$tool_specified" >&6; }
13600         fi
13601       fi
13602     fi
13603 
13604   fi
13605 
13606 
13607   if test "x$GREP" = x; then
13608     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13609   fi
13610 
13611 
13612 
13613 
13614   # Publish this variable in the help.
13615 
13616 
13617   if [ -z "${EGREP+x}" ]; then
13618     # The variable is not set by user, try to locate tool using the code snippet
13619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13620 $as_echo_n "checking for egrep... " >&6; }
13621 if ${ac_cv_path_EGREP+:} false; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13625    then ac_cv_path_EGREP="$GREP -E"
13626    else
13627      if test -z "$EGREP"; then
13628   ac_path_EGREP_found=false
13629   # Loop through the user's path and test for each of PROGNAME-LIST
13630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13632 do
13633   IFS=$as_save_IFS
13634   test -z "$as_dir" && as_dir=.
13635     for ac_prog in egrep; do
13636     for ac_exec_ext in '' $ac_executable_extensions; do
13637       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13638       as_fn_executable_p "$ac_path_EGREP" || continue
13639 # Check for GNU ac_path_EGREP and select it if it is found.
13640   # Check for GNU $ac_path_EGREP
13641 case `"$ac_path_EGREP" --version 2>&1` in
13642 *GNU*)
13643   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13644 *)
13645   ac_count=0
13646   $as_echo_n 0123456789 >"conftest.in"
13647   while :
13648   do
13649     cat "conftest.in" "conftest.in" >"conftest.tmp"
13650     mv "conftest.tmp" "conftest.in"
13651     cp "conftest.in" "conftest.nl"
13652     $as_echo 'EGREP' >> "conftest.nl"
13653     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13655     as_fn_arith $ac_count + 1 && ac_count=$as_val
13656     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13657       # Best one so far, save it but keep looking for a better one
13658       ac_cv_path_EGREP="$ac_path_EGREP"
13659       ac_path_EGREP_max=$ac_count
13660     fi
13661     # 10*(2^10) chars as input seems more than enough
13662     test $ac_count -gt 10 && break
13663   done
13664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13665 esac
13666 
13667       $ac_path_EGREP_found && break 3
13668     done
13669   done
13670   done
13671 IFS=$as_save_IFS
13672   if test -z "$ac_cv_path_EGREP"; then
13673     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13674   fi
13675 else
13676   ac_cv_path_EGREP=$EGREP
13677 fi
13678 
13679    fi
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13682 $as_echo "$ac_cv_path_EGREP" >&6; }
13683  EGREP="$ac_cv_path_EGREP"
13684 
13685 
13686   else
13687     # The variable is set, but is it from the command line or the environment?
13688 
13689     # Try to remove the string !EGREP! from our list.
13690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13692       # If it failed, the variable was not from the command line. Ignore it,
13693       # but warn the user (except for BASH, which is always set by the calling BASH).
13694       if test "xEGREP" != xBASH; then
13695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13696 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13697       fi
13698       # Try to locate tool using the code snippet
13699       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13700 $as_echo_n "checking for egrep... " >&6; }
13701 if ${ac_cv_path_EGREP+:} false; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13705    then ac_cv_path_EGREP="$GREP -E"
13706    else
13707      if test -z "$EGREP"; then
13708   ac_path_EGREP_found=false
13709   # Loop through the user's path and test for each of PROGNAME-LIST
13710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13712 do
13713   IFS=$as_save_IFS
13714   test -z "$as_dir" && as_dir=.
13715     for ac_prog in egrep; do
13716     for ac_exec_ext in '' $ac_executable_extensions; do
13717       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13718       as_fn_executable_p "$ac_path_EGREP" || continue
13719 # Check for GNU ac_path_EGREP and select it if it is found.
13720   # Check for GNU $ac_path_EGREP
13721 case `"$ac_path_EGREP" --version 2>&1` in
13722 *GNU*)
13723   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13724 *)
13725   ac_count=0
13726   $as_echo_n 0123456789 >"conftest.in"
13727   while :
13728   do
13729     cat "conftest.in" "conftest.in" >"conftest.tmp"
13730     mv "conftest.tmp" "conftest.in"
13731     cp "conftest.in" "conftest.nl"
13732     $as_echo 'EGREP' >> "conftest.nl"
13733     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13735     as_fn_arith $ac_count + 1 && ac_count=$as_val
13736     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13737       # Best one so far, save it but keep looking for a better one
13738       ac_cv_path_EGREP="$ac_path_EGREP"
13739       ac_path_EGREP_max=$ac_count
13740     fi
13741     # 10*(2^10) chars as input seems more than enough
13742     test $ac_count -gt 10 && break
13743   done
13744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13745 esac
13746 
13747       $ac_path_EGREP_found && break 3
13748     done
13749   done
13750   done
13751 IFS=$as_save_IFS
13752   if test -z "$ac_cv_path_EGREP"; then
13753     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13754   fi
13755 else
13756   ac_cv_path_EGREP=$EGREP
13757 fi
13758 
13759    fi
13760 fi
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13762 $as_echo "$ac_cv_path_EGREP" >&6; }
13763  EGREP="$ac_cv_path_EGREP"
13764 
13765 
13766     else
13767       # If it succeeded, then it was overridden by the user. We will use it
13768       # for the tool.
13769 
13770       # First remove it from the list of overridden variables, so we can test
13771       # for unknown variables in the end.
13772       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13773 
13774       # Check if we try to supply an empty value
13775       if test "x$EGREP" = x; then
13776         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13777 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13779 $as_echo_n "checking for EGREP... " >&6; }
13780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13781 $as_echo "disabled" >&6; }
13782       else
13783         # Check if the provided tool contains a complete path.
13784         tool_specified="$EGREP"
13785         tool_basename="${tool_specified##*/}"
13786         if test "x$tool_basename" = "x$tool_specified"; then
13787           # A command without a complete path is provided, search $PATH.
13788           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13789 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13790           # Extract the first word of "$tool_basename", so it can be a program name with args.
13791 set dummy $tool_basename; ac_word=$2
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793 $as_echo_n "checking for $ac_word... " >&6; }
13794 if ${ac_cv_path_EGREP+:} false; then :
13795   $as_echo_n "(cached) " >&6
13796 else
13797   case $EGREP in
13798   [\\/]* | ?:[\\/]*)
13799   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13800   ;;
13801   *)
13802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805   IFS=$as_save_IFS
13806   test -z "$as_dir" && as_dir=.
13807     for ac_exec_ext in '' $ac_executable_extensions; do
13808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13809     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811     break 2
13812   fi
13813 done
13814   done
13815 IFS=$as_save_IFS
13816 
13817   ;;
13818 esac
13819 fi
13820 EGREP=$ac_cv_path_EGREP
13821 if test -n "$EGREP"; then
13822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13823 $as_echo "$EGREP" >&6; }
13824 else
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828 
13829 
13830           if test "x$EGREP" = x; then
13831             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13832           fi
13833         else
13834           # Otherwise we believe it is a complete path. Use it as it is.
13835           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13836 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13837           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13838 $as_echo_n "checking for EGREP... " >&6; }
13839           if test ! -x "$tool_specified"; then
13840             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13841 $as_echo "not found" >&6; }
13842             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13843           fi
13844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13845 $as_echo "$tool_specified" >&6; }
13846         fi
13847       fi
13848     fi
13849 
13850   fi
13851 
13852 
13853   if test "x$EGREP" = x; then
13854     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13855   fi
13856 
13857 
13858 
13859 
13860   # Publish this variable in the help.
13861 
13862 
13863   if [ -z "${FGREP+x}" ]; then
13864     # The variable is not set by user, try to locate tool using the code snippet
13865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13866 $as_echo_n "checking for fgrep... " >&6; }
13867 if ${ac_cv_path_FGREP+:} false; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13871    then ac_cv_path_FGREP="$GREP -F"
13872    else
13873      if test -z "$FGREP"; then
13874   ac_path_FGREP_found=false
13875   # Loop through the user's path and test for each of PROGNAME-LIST
13876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13878 do
13879   IFS=$as_save_IFS
13880   test -z "$as_dir" && as_dir=.
13881     for ac_prog in fgrep; do
13882     for ac_exec_ext in '' $ac_executable_extensions; do
13883       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13884       as_fn_executable_p "$ac_path_FGREP" || continue
13885 # Check for GNU ac_path_FGREP and select it if it is found.
13886   # Check for GNU $ac_path_FGREP
13887 case `"$ac_path_FGREP" --version 2>&1` in
13888 *GNU*)
13889   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13890 *)
13891   ac_count=0
13892   $as_echo_n 0123456789 >"conftest.in"
13893   while :
13894   do
13895     cat "conftest.in" "conftest.in" >"conftest.tmp"
13896     mv "conftest.tmp" "conftest.in"
13897     cp "conftest.in" "conftest.nl"
13898     $as_echo 'FGREP' >> "conftest.nl"
13899     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13901     as_fn_arith $ac_count + 1 && ac_count=$as_val
13902     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13903       # Best one so far, save it but keep looking for a better one
13904       ac_cv_path_FGREP="$ac_path_FGREP"
13905       ac_path_FGREP_max=$ac_count
13906     fi
13907     # 10*(2^10) chars as input seems more than enough
13908     test $ac_count -gt 10 && break
13909   done
13910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13911 esac
13912 
13913       $ac_path_FGREP_found && break 3
13914     done
13915   done
13916   done
13917 IFS=$as_save_IFS
13918   if test -z "$ac_cv_path_FGREP"; then
13919     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13920   fi
13921 else
13922   ac_cv_path_FGREP=$FGREP
13923 fi
13924 
13925    fi
13926 fi
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13928 $as_echo "$ac_cv_path_FGREP" >&6; }
13929  FGREP="$ac_cv_path_FGREP"
13930 
13931 
13932   else
13933     # The variable is set, but is it from the command line or the environment?
13934 
13935     # Try to remove the string !FGREP! from our list.
13936     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13937     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13938       # If it failed, the variable was not from the command line. Ignore it,
13939       # but warn the user (except for BASH, which is always set by the calling BASH).
13940       if test "xFGREP" != xBASH; then
13941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13942 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13943       fi
13944       # Try to locate tool using the code snippet
13945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13946 $as_echo_n "checking for fgrep... " >&6; }
13947 if ${ac_cv_path_FGREP+:} false; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13951    then ac_cv_path_FGREP="$GREP -F"
13952    else
13953      if test -z "$FGREP"; then
13954   ac_path_FGREP_found=false
13955   # Loop through the user's path and test for each of PROGNAME-LIST
13956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13958 do
13959   IFS=$as_save_IFS
13960   test -z "$as_dir" && as_dir=.
13961     for ac_prog in fgrep; do
13962     for ac_exec_ext in '' $ac_executable_extensions; do
13963       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13964       as_fn_executable_p "$ac_path_FGREP" || continue
13965 # Check for GNU ac_path_FGREP and select it if it is found.
13966   # Check for GNU $ac_path_FGREP
13967 case `"$ac_path_FGREP" --version 2>&1` in
13968 *GNU*)
13969   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13970 *)
13971   ac_count=0
13972   $as_echo_n 0123456789 >"conftest.in"
13973   while :
13974   do
13975     cat "conftest.in" "conftest.in" >"conftest.tmp"
13976     mv "conftest.tmp" "conftest.in"
13977     cp "conftest.in" "conftest.nl"
13978     $as_echo 'FGREP' >> "conftest.nl"
13979     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13980     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13981     as_fn_arith $ac_count + 1 && ac_count=$as_val
13982     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13983       # Best one so far, save it but keep looking for a better one
13984       ac_cv_path_FGREP="$ac_path_FGREP"
13985       ac_path_FGREP_max=$ac_count
13986     fi
13987     # 10*(2^10) chars as input seems more than enough
13988     test $ac_count -gt 10 && break
13989   done
13990   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13991 esac
13992 
13993       $ac_path_FGREP_found && break 3
13994     done
13995   done
13996   done
13997 IFS=$as_save_IFS
13998   if test -z "$ac_cv_path_FGREP"; then
13999     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14000   fi
14001 else
14002   ac_cv_path_FGREP=$FGREP
14003 fi
14004 
14005    fi
14006 fi
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14008 $as_echo "$ac_cv_path_FGREP" >&6; }
14009  FGREP="$ac_cv_path_FGREP"
14010 
14011 
14012     else
14013       # If it succeeded, then it was overridden by the user. We will use it
14014       # for the tool.
14015 
14016       # First remove it from the list of overridden variables, so we can test
14017       # for unknown variables in the end.
14018       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14019 
14020       # Check if we try to supply an empty value
14021       if test "x$FGREP" = x; then
14022         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14023 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14025 $as_echo_n "checking for FGREP... " >&6; }
14026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14027 $as_echo "disabled" >&6; }
14028       else
14029         # Check if the provided tool contains a complete path.
14030         tool_specified="$FGREP"
14031         tool_basename="${tool_specified##*/}"
14032         if test "x$tool_basename" = "x$tool_specified"; then
14033           # A command without a complete path is provided, search $PATH.
14034           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14035 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14036           # Extract the first word of "$tool_basename", so it can be a program name with args.
14037 set dummy $tool_basename; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if ${ac_cv_path_FGREP+:} false; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   case $FGREP in
14044   [\\/]* | ?:[\\/]*)
14045   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14046   ;;
14047   *)
14048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051   IFS=$as_save_IFS
14052   test -z "$as_dir" && as_dir=.
14053     for ac_exec_ext in '' $ac_executable_extensions; do
14054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057     break 2
14058   fi
14059 done
14060   done
14061 IFS=$as_save_IFS
14062 
14063   ;;
14064 esac
14065 fi
14066 FGREP=$ac_cv_path_FGREP
14067 if test -n "$FGREP"; then
14068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14069 $as_echo "$FGREP" >&6; }
14070 else
14071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074 
14075 
14076           if test "x$FGREP" = x; then
14077             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14078           fi
14079         else
14080           # Otherwise we believe it is a complete path. Use it as it is.
14081           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14082 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14083           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14084 $as_echo_n "checking for FGREP... " >&6; }
14085           if test ! -x "$tool_specified"; then
14086             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14087 $as_echo "not found" >&6; }
14088             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14089           fi
14090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14091 $as_echo "$tool_specified" >&6; }
14092         fi
14093       fi
14094     fi
14095 
14096   fi
14097 
14098 
14099   if test "x$FGREP" = x; then
14100     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14101   fi
14102 
14103 
14104 
14105 
14106   # Publish this variable in the help.
14107 
14108 
14109   if [ -z "${SED+x}" ]; then
14110     # The variable is not set by user, try to locate tool using the code snippet
14111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14113 if ${ac_cv_path_SED+:} false; then :
14114   $as_echo_n "(cached) " >&6
14115 else
14116             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14117      for ac_i in 1 2 3 4 5 6 7; do
14118        ac_script="$ac_script$as_nl$ac_script"
14119      done
14120      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14121      { ac_script=; unset ac_script;}
14122      if test -z "$SED"; then
14123   ac_path_SED_found=false
14124   # Loop through the user's path and test for each of PROGNAME-LIST
14125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14127 do
14128   IFS=$as_save_IFS
14129   test -z "$as_dir" && as_dir=.
14130     for ac_prog in sed gsed; do
14131     for ac_exec_ext in '' $ac_executable_extensions; do
14132       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14133       as_fn_executable_p "$ac_path_SED" || continue
14134 # Check for GNU ac_path_SED and select it if it is found.
14135   # Check for GNU $ac_path_SED
14136 case `"$ac_path_SED" --version 2>&1` in
14137 *GNU*)
14138   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14139 *)
14140   ac_count=0
14141   $as_echo_n 0123456789 >"conftest.in"
14142   while :
14143   do
14144     cat "conftest.in" "conftest.in" >"conftest.tmp"
14145     mv "conftest.tmp" "conftest.in"
14146     cp "conftest.in" "conftest.nl"
14147     $as_echo '' >> "conftest.nl"
14148     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14149     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14150     as_fn_arith $ac_count + 1 && ac_count=$as_val
14151     if test $ac_count -gt ${ac_path_SED_max-0}; then
14152       # Best one so far, save it but keep looking for a better one
14153       ac_cv_path_SED="$ac_path_SED"
14154       ac_path_SED_max=$ac_count
14155     fi
14156     # 10*(2^10) chars as input seems more than enough
14157     test $ac_count -gt 10 && break
14158   done
14159   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14160 esac
14161 
14162       $ac_path_SED_found && break 3
14163     done
14164   done
14165   done
14166 IFS=$as_save_IFS
14167   if test -z "$ac_cv_path_SED"; then
14168     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14169   fi
14170 else
14171   ac_cv_path_SED=$SED
14172 fi
14173 
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14176 $as_echo "$ac_cv_path_SED" >&6; }
14177  SED="$ac_cv_path_SED"
14178   rm -f conftest.sed
14179 
14180   else
14181     # The variable is set, but is it from the command line or the environment?
14182 
14183     # Try to remove the string !SED! from our list.
14184     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14185     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14186       # If it failed, the variable was not from the command line. Ignore it,
14187       # but warn the user (except for BASH, which is always set by the calling BASH).
14188       if test "xSED" != xBASH; then
14189         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14190 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14191       fi
14192       # Try to locate tool using the code snippet
14193       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14194 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14195 if ${ac_cv_path_SED+:} false; then :
14196   $as_echo_n "(cached) " >&6
14197 else
14198             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14199      for ac_i in 1 2 3 4 5 6 7; do
14200        ac_script="$ac_script$as_nl$ac_script"
14201      done
14202      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14203      { ac_script=; unset ac_script;}
14204      if test -z "$SED"; then
14205   ac_path_SED_found=false
14206   # Loop through the user's path and test for each of PROGNAME-LIST
14207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210   IFS=$as_save_IFS
14211   test -z "$as_dir" && as_dir=.
14212     for ac_prog in sed gsed; do
14213     for ac_exec_ext in '' $ac_executable_extensions; do
14214       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14215       as_fn_executable_p "$ac_path_SED" || continue
14216 # Check for GNU ac_path_SED and select it if it is found.
14217   # Check for GNU $ac_path_SED
14218 case `"$ac_path_SED" --version 2>&1` in
14219 *GNU*)
14220   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14221 *)
14222   ac_count=0
14223   $as_echo_n 0123456789 >"conftest.in"
14224   while :
14225   do
14226     cat "conftest.in" "conftest.in" >"conftest.tmp"
14227     mv "conftest.tmp" "conftest.in"
14228     cp "conftest.in" "conftest.nl"
14229     $as_echo '' >> "conftest.nl"
14230     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14231     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14232     as_fn_arith $ac_count + 1 && ac_count=$as_val
14233     if test $ac_count -gt ${ac_path_SED_max-0}; then
14234       # Best one so far, save it but keep looking for a better one
14235       ac_cv_path_SED="$ac_path_SED"
14236       ac_path_SED_max=$ac_count
14237     fi
14238     # 10*(2^10) chars as input seems more than enough
14239     test $ac_count -gt 10 && break
14240   done
14241   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14242 esac
14243 
14244       $ac_path_SED_found && break 3
14245     done
14246   done
14247   done
14248 IFS=$as_save_IFS
14249   if test -z "$ac_cv_path_SED"; then
14250     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14251   fi
14252 else
14253   ac_cv_path_SED=$SED
14254 fi
14255 
14256 fi
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14258 $as_echo "$ac_cv_path_SED" >&6; }
14259  SED="$ac_cv_path_SED"
14260   rm -f conftest.sed
14261 
14262     else
14263       # If it succeeded, then it was overridden by the user. We will use it
14264       # for the tool.
14265 
14266       # First remove it from the list of overridden variables, so we can test
14267       # for unknown variables in the end.
14268       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14269 
14270       # Check if we try to supply an empty value
14271       if test "x$SED" = x; then
14272         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14273 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14275 $as_echo_n "checking for SED... " >&6; }
14276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14277 $as_echo "disabled" >&6; }
14278       else
14279         # Check if the provided tool contains a complete path.
14280         tool_specified="$SED"
14281         tool_basename="${tool_specified##*/}"
14282         if test "x$tool_basename" = "x$tool_specified"; then
14283           # A command without a complete path is provided, search $PATH.
14284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14285 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14286           # Extract the first word of "$tool_basename", so it can be a program name with args.
14287 set dummy $tool_basename; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if ${ac_cv_path_SED+:} false; then :
14291   $as_echo_n "(cached) " >&6
14292 else
14293   case $SED in
14294   [\\/]* | ?:[\\/]*)
14295   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14296   ;;
14297   *)
14298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14300 do
14301   IFS=$as_save_IFS
14302   test -z "$as_dir" && as_dir=.
14303     for ac_exec_ext in '' $ac_executable_extensions; do
14304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307     break 2
14308   fi
14309 done
14310   done
14311 IFS=$as_save_IFS
14312 
14313   ;;
14314 esac
14315 fi
14316 SED=$ac_cv_path_SED
14317 if test -n "$SED"; then
14318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14319 $as_echo "$SED" >&6; }
14320 else
14321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14323 fi
14324 
14325 
14326           if test "x$SED" = x; then
14327             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14328           fi
14329         else
14330           # Otherwise we believe it is a complete path. Use it as it is.
14331           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14332 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14333           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14334 $as_echo_n "checking for SED... " >&6; }
14335           if test ! -x "$tool_specified"; then
14336             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14337 $as_echo "not found" >&6; }
14338             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14339           fi
14340           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14341 $as_echo "$tool_specified" >&6; }
14342         fi
14343       fi
14344     fi
14345 
14346   fi
14347 
14348 
14349   if test "x$SED" = x; then
14350     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14351   fi
14352 
14353 
14354 
14355   # Always force rm.
14356   RM="$RM -f"
14357 
14358   # pwd behaves differently on various platforms and some don't support the -L flag.
14359   # Always use the bash builtin pwd to get uniform behavior.
14360   THEPWDCMD=pwd
14361 
14362   # These are not required on all platforms
14363 
14364 
14365   # Publish this variable in the help.
14366 
14367 
14368   if [ -z "${CYGPATH+x}" ]; then
14369     # The variable is not set by user, try to locate tool using the code snippet
14370     for ac_prog in cygpath
14371 do
14372   # Extract the first word of "$ac_prog", so it can be a program name with args.
14373 set dummy $ac_prog; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_path_CYGPATH+:} false; then :
14377   $as_echo_n "(cached) " >&6
14378 else
14379   case $CYGPATH in
14380   [\\/]* | ?:[\\/]*)
14381   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14382   ;;
14383   *)
14384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 for as_dir in $PATH
14386 do
14387   IFS=$as_save_IFS
14388   test -z "$as_dir" && as_dir=.
14389     for ac_exec_ext in '' $ac_executable_extensions; do
14390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14393     break 2
14394   fi
14395 done
14396   done
14397 IFS=$as_save_IFS
14398 
14399   ;;
14400 esac
14401 fi
14402 CYGPATH=$ac_cv_path_CYGPATH
14403 if test -n "$CYGPATH"; then
14404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14405 $as_echo "$CYGPATH" >&6; }
14406 else
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409 fi
14410 
14411 
14412   test -n "$CYGPATH" && break
14413 done
14414 
14415   else
14416     # The variable is set, but is it from the command line or the environment?
14417 
14418     # Try to remove the string !CYGPATH! from our list.
14419     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14420     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14421       # If it failed, the variable was not from the command line. Ignore it,
14422       # but warn the user (except for BASH, which is always set by the calling BASH).
14423       if test "xCYGPATH" != xBASH; then
14424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14425 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14426       fi
14427       # Try to locate tool using the code snippet
14428       for ac_prog in cygpath
14429 do
14430   # Extract the first word of "$ac_prog", so it can be a program name with args.
14431 set dummy $ac_prog; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if ${ac_cv_path_CYGPATH+:} false; then :
14435   $as_echo_n "(cached) " >&6
14436 else
14437   case $CYGPATH in
14438   [\\/]* | ?:[\\/]*)
14439   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14440   ;;
14441   *)
14442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14444 do
14445   IFS=$as_save_IFS
14446   test -z "$as_dir" && as_dir=.
14447     for ac_exec_ext in '' $ac_executable_extensions; do
14448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14451     break 2
14452   fi
14453 done
14454   done
14455 IFS=$as_save_IFS
14456 
14457   ;;
14458 esac
14459 fi
14460 CYGPATH=$ac_cv_path_CYGPATH
14461 if test -n "$CYGPATH"; then
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14463 $as_echo "$CYGPATH" >&6; }
14464 else
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14467 fi
14468 
14469 
14470   test -n "$CYGPATH" && break
14471 done
14472 
14473     else
14474       # If it succeeded, then it was overridden by the user. We will use it
14475       # for the tool.
14476 
14477       # First remove it from the list of overridden variables, so we can test
14478       # for unknown variables in the end.
14479       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14480 
14481       # Check if we try to supply an empty value
14482       if test "x$CYGPATH" = x; then
14483         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14484 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14486 $as_echo_n "checking for CYGPATH... " >&6; }
14487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14488 $as_echo "disabled" >&6; }
14489       else
14490         # Check if the provided tool contains a complete path.
14491         tool_specified="$CYGPATH"
14492         tool_basename="${tool_specified##*/}"
14493         if test "x$tool_basename" = "x$tool_specified"; then
14494           # A command without a complete path is provided, search $PATH.
14495           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14496 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14497           # Extract the first word of "$tool_basename", so it can be a program name with args.
14498 set dummy $tool_basename; ac_word=$2
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500 $as_echo_n "checking for $ac_word... " >&6; }
14501 if ${ac_cv_path_CYGPATH+:} false; then :
14502   $as_echo_n "(cached) " >&6
14503 else
14504   case $CYGPATH in
14505   [\\/]* | ?:[\\/]*)
14506   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14507   ;;
14508   *)
14509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14511 do
14512   IFS=$as_save_IFS
14513   test -z "$as_dir" && as_dir=.
14514     for ac_exec_ext in '' $ac_executable_extensions; do
14515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518     break 2
14519   fi
14520 done
14521   done
14522 IFS=$as_save_IFS
14523 
14524   ;;
14525 esac
14526 fi
14527 CYGPATH=$ac_cv_path_CYGPATH
14528 if test -n "$CYGPATH"; then
14529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14530 $as_echo "$CYGPATH" >&6; }
14531 else
14532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 fi
14535 
14536 
14537           if test "x$CYGPATH" = x; then
14538             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14539           fi
14540         else
14541           # Otherwise we believe it is a complete path. Use it as it is.
14542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14543 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14544           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14545 $as_echo_n "checking for CYGPATH... " >&6; }
14546           if test ! -x "$tool_specified"; then
14547             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14548 $as_echo "not found" >&6; }
14549             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14550           fi
14551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14552 $as_echo "$tool_specified" >&6; }
14553         fi
14554       fi
14555     fi
14556 
14557   fi
14558 
14559 
14560 
14561 
14562   # Publish this variable in the help.
14563 
14564 
14565   if [ -z "${READLINK+x}" ]; then
14566     # The variable is not set by user, try to locate tool using the code snippet
14567     for ac_prog in greadlink readlink
14568 do
14569   # Extract the first word of "$ac_prog", so it can be a program name with args.
14570 set dummy $ac_prog; ac_word=$2
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572 $as_echo_n "checking for $ac_word... " >&6; }
14573 if ${ac_cv_path_READLINK+:} false; then :
14574   $as_echo_n "(cached) " >&6
14575 else
14576   case $READLINK in
14577   [\\/]* | ?:[\\/]*)
14578   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14579   ;;
14580   *)
14581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $PATH
14583 do
14584   IFS=$as_save_IFS
14585   test -z "$as_dir" && as_dir=.
14586     for ac_exec_ext in '' $ac_executable_extensions; do
14587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14590     break 2
14591   fi
14592 done
14593   done
14594 IFS=$as_save_IFS
14595 
14596   ;;
14597 esac
14598 fi
14599 READLINK=$ac_cv_path_READLINK
14600 if test -n "$READLINK"; then
14601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14602 $as_echo "$READLINK" >&6; }
14603 else
14604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605 $as_echo "no" >&6; }
14606 fi
14607 
14608 
14609   test -n "$READLINK" && break
14610 done
14611 
14612   else
14613     # The variable is set, but is it from the command line or the environment?
14614 
14615     # Try to remove the string !READLINK! from our list.
14616     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14617     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14618       # If it failed, the variable was not from the command line. Ignore it,
14619       # but warn the user (except for BASH, which is always set by the calling BASH).
14620       if test "xREADLINK" != xBASH; then
14621         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14622 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14623       fi
14624       # Try to locate tool using the code snippet
14625       for ac_prog in greadlink readlink
14626 do
14627   # Extract the first word of "$ac_prog", so it can be a program name with args.
14628 set dummy $ac_prog; ac_word=$2
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14630 $as_echo_n "checking for $ac_word... " >&6; }
14631 if ${ac_cv_path_READLINK+:} false; then :
14632   $as_echo_n "(cached) " >&6
14633 else
14634   case $READLINK in
14635   [\\/]* | ?:[\\/]*)
14636   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14637   ;;
14638   *)
14639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14640 for as_dir in $PATH
14641 do
14642   IFS=$as_save_IFS
14643   test -z "$as_dir" && as_dir=.
14644     for ac_exec_ext in '' $ac_executable_extensions; do
14645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14646     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14648     break 2
14649   fi
14650 done
14651   done
14652 IFS=$as_save_IFS
14653 
14654   ;;
14655 esac
14656 fi
14657 READLINK=$ac_cv_path_READLINK
14658 if test -n "$READLINK"; then
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14660 $as_echo "$READLINK" >&6; }
14661 else
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14664 fi
14665 
14666 
14667   test -n "$READLINK" && break
14668 done
14669 
14670     else
14671       # If it succeeded, then it was overridden by the user. We will use it
14672       # for the tool.
14673 
14674       # First remove it from the list of overridden variables, so we can test
14675       # for unknown variables in the end.
14676       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14677 
14678       # Check if we try to supply an empty value
14679       if test "x$READLINK" = x; then
14680         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14681 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14683 $as_echo_n "checking for READLINK... " >&6; }
14684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14685 $as_echo "disabled" >&6; }
14686       else
14687         # Check if the provided tool contains a complete path.
14688         tool_specified="$READLINK"
14689         tool_basename="${tool_specified##*/}"
14690         if test "x$tool_basename" = "x$tool_specified"; then
14691           # A command without a complete path is provided, search $PATH.
14692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14693 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14694           # Extract the first word of "$tool_basename", so it can be a program name with args.
14695 set dummy $tool_basename; ac_word=$2
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14697 $as_echo_n "checking for $ac_word... " >&6; }
14698 if ${ac_cv_path_READLINK+:} false; then :
14699   $as_echo_n "(cached) " >&6
14700 else
14701   case $READLINK in
14702   [\\/]* | ?:[\\/]*)
14703   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14704   ;;
14705   *)
14706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14707 for as_dir in $PATH
14708 do
14709   IFS=$as_save_IFS
14710   test -z "$as_dir" && as_dir=.
14711     for ac_exec_ext in '' $ac_executable_extensions; do
14712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14713     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14715     break 2
14716   fi
14717 done
14718   done
14719 IFS=$as_save_IFS
14720 
14721   ;;
14722 esac
14723 fi
14724 READLINK=$ac_cv_path_READLINK
14725 if test -n "$READLINK"; then
14726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14727 $as_echo "$READLINK" >&6; }
14728 else
14729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731 fi
14732 
14733 
14734           if test "x$READLINK" = x; then
14735             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14736           fi
14737         else
14738           # Otherwise we believe it is a complete path. Use it as it is.
14739           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14740 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14741           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14742 $as_echo_n "checking for READLINK... " >&6; }
14743           if test ! -x "$tool_specified"; then
14744             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14745 $as_echo "not found" >&6; }
14746             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14747           fi
14748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14749 $as_echo "$tool_specified" >&6; }
14750         fi
14751       fi
14752     fi
14753 
14754   fi
14755 
14756 
14757 
14758 
14759   # Publish this variable in the help.
14760 
14761 
14762   if [ -z "${DF+x}" ]; then
14763     # The variable is not set by user, try to locate tool using the code snippet
14764     for ac_prog in df
14765 do
14766   # Extract the first word of "$ac_prog", so it can be a program name with args.
14767 set dummy $ac_prog; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_path_DF+:} false; then :
14771   $as_echo_n "(cached) " >&6
14772 else
14773   case $DF in
14774   [\\/]* | ?:[\\/]*)
14775   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14776   ;;
14777   *)
14778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14779 for as_dir in $PATH
14780 do
14781   IFS=$as_save_IFS
14782   test -z "$as_dir" && as_dir=.
14783     for ac_exec_ext in '' $ac_executable_extensions; do
14784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14785     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14787     break 2
14788   fi
14789 done
14790   done
14791 IFS=$as_save_IFS
14792 
14793   ;;
14794 esac
14795 fi
14796 DF=$ac_cv_path_DF
14797 if test -n "$DF"; then
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14799 $as_echo "$DF" >&6; }
14800 else
14801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14803 fi
14804 
14805 
14806   test -n "$DF" && break
14807 done
14808 
14809   else
14810     # The variable is set, but is it from the command line or the environment?
14811 
14812     # Try to remove the string !DF! from our list.
14813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14815       # If it failed, the variable was not from the command line. Ignore it,
14816       # but warn the user (except for BASH, which is always set by the calling BASH).
14817       if test "xDF" != xBASH; then
14818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14819 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14820       fi
14821       # Try to locate tool using the code snippet
14822       for ac_prog in df
14823 do
14824   # Extract the first word of "$ac_prog", so it can be a program name with args.
14825 set dummy $ac_prog; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14827 $as_echo_n "checking for $ac_word... " >&6; }
14828 if ${ac_cv_path_DF+:} false; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   case $DF in
14832   [\\/]* | ?:[\\/]*)
14833   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14834   ;;
14835   *)
14836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14837 for as_dir in $PATH
14838 do
14839   IFS=$as_save_IFS
14840   test -z "$as_dir" && as_dir=.
14841     for ac_exec_ext in '' $ac_executable_extensions; do
14842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14843     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14845     break 2
14846   fi
14847 done
14848   done
14849 IFS=$as_save_IFS
14850 
14851   ;;
14852 esac
14853 fi
14854 DF=$ac_cv_path_DF
14855 if test -n "$DF"; then
14856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14857 $as_echo "$DF" >&6; }
14858 else
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14861 fi
14862 
14863 
14864   test -n "$DF" && break
14865 done
14866 
14867     else
14868       # If it succeeded, then it was overridden by the user. We will use it
14869       # for the tool.
14870 
14871       # First remove it from the list of overridden variables, so we can test
14872       # for unknown variables in the end.
14873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14874 
14875       # Check if we try to supply an empty value
14876       if test "x$DF" = x; then
14877         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14878 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14880 $as_echo_n "checking for DF... " >&6; }
14881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14882 $as_echo "disabled" >&6; }
14883       else
14884         # Check if the provided tool contains a complete path.
14885         tool_specified="$DF"
14886         tool_basename="${tool_specified##*/}"
14887         if test "x$tool_basename" = "x$tool_specified"; then
14888           # A command without a complete path is provided, search $PATH.
14889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14890 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14891           # Extract the first word of "$tool_basename", so it can be a program name with args.
14892 set dummy $tool_basename; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_path_DF+:} false; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   case $DF in
14899   [\\/]* | ?:[\\/]*)
14900   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14901   ;;
14902   *)
14903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904 for as_dir in $PATH
14905 do
14906   IFS=$as_save_IFS
14907   test -z "$as_dir" && as_dir=.
14908     for ac_exec_ext in '' $ac_executable_extensions; do
14909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14910     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14912     break 2
14913   fi
14914 done
14915   done
14916 IFS=$as_save_IFS
14917 
14918   ;;
14919 esac
14920 fi
14921 DF=$ac_cv_path_DF
14922 if test -n "$DF"; then
14923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14924 $as_echo "$DF" >&6; }
14925 else
14926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929 
14930 
14931           if test "x$DF" = x; then
14932             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14933           fi
14934         else
14935           # Otherwise we believe it is a complete path. Use it as it is.
14936           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14937 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14938           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14939 $as_echo_n "checking for DF... " >&6; }
14940           if test ! -x "$tool_specified"; then
14941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14942 $as_echo "not found" >&6; }
14943             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14944           fi
14945           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14946 $as_echo "$tool_specified" >&6; }
14947         fi
14948       fi
14949     fi
14950 
14951   fi
14952 
14953 
14954 
14955 
14956   # Publish this variable in the help.
14957 
14958 
14959   if [ -z "${CPIO+x}" ]; then
14960     # The variable is not set by user, try to locate tool using the code snippet
14961     for ac_prog in cpio bsdcpio
14962 do
14963   # Extract the first word of "$ac_prog", so it can be a program name with args.
14964 set dummy $ac_prog; ac_word=$2
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966 $as_echo_n "checking for $ac_word... " >&6; }
14967 if ${ac_cv_path_CPIO+:} false; then :
14968   $as_echo_n "(cached) " >&6
14969 else
14970   case $CPIO in
14971   [\\/]* | ?:[\\/]*)
14972   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14973   ;;
14974   *)
14975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978   IFS=$as_save_IFS
14979   test -z "$as_dir" && as_dir=.
14980     for ac_exec_ext in '' $ac_executable_extensions; do
14981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984     break 2
14985   fi
14986 done
14987   done
14988 IFS=$as_save_IFS
14989 
14990   ;;
14991 esac
14992 fi
14993 CPIO=$ac_cv_path_CPIO
14994 if test -n "$CPIO"; then
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14996 $as_echo "$CPIO" >&6; }
14997 else
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15000 fi
15001 
15002 
15003   test -n "$CPIO" && break
15004 done
15005 
15006   else
15007     # The variable is set, but is it from the command line or the environment?
15008 
15009     # Try to remove the string !CPIO! from our list.
15010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15012       # If it failed, the variable was not from the command line. Ignore it,
15013       # but warn the user (except for BASH, which is always set by the calling BASH).
15014       if test "xCPIO" != xBASH; then
15015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15016 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15017       fi
15018       # Try to locate tool using the code snippet
15019       for ac_prog in cpio bsdcpio
15020 do
15021   # Extract the first word of "$ac_prog", so it can be a program name with args.
15022 set dummy $ac_prog; ac_word=$2
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15024 $as_echo_n "checking for $ac_word... " >&6; }
15025 if ${ac_cv_path_CPIO+:} false; then :
15026   $as_echo_n "(cached) " >&6
15027 else
15028   case $CPIO in
15029   [\\/]* | ?:[\\/]*)
15030   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15031   ;;
15032   *)
15033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15034 for as_dir in $PATH
15035 do
15036   IFS=$as_save_IFS
15037   test -z "$as_dir" && as_dir=.
15038     for ac_exec_ext in '' $ac_executable_extensions; do
15039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15040     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15042     break 2
15043   fi
15044 done
15045   done
15046 IFS=$as_save_IFS
15047 
15048   ;;
15049 esac
15050 fi
15051 CPIO=$ac_cv_path_CPIO
15052 if test -n "$CPIO"; then
15053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15054 $as_echo "$CPIO" >&6; }
15055 else
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15058 fi
15059 
15060 
15061   test -n "$CPIO" && break
15062 done
15063 
15064     else
15065       # If it succeeded, then it was overridden by the user. We will use it
15066       # for the tool.
15067 
15068       # First remove it from the list of overridden variables, so we can test
15069       # for unknown variables in the end.
15070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15071 
15072       # Check if we try to supply an empty value
15073       if test "x$CPIO" = x; then
15074         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15075 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15077 $as_echo_n "checking for CPIO... " >&6; }
15078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15079 $as_echo "disabled" >&6; }
15080       else
15081         # Check if the provided tool contains a complete path.
15082         tool_specified="$CPIO"
15083         tool_basename="${tool_specified##*/}"
15084         if test "x$tool_basename" = "x$tool_specified"; then
15085           # A command without a complete path is provided, search $PATH.
15086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15087 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15088           # Extract the first word of "$tool_basename", so it can be a program name with args.
15089 set dummy $tool_basename; ac_word=$2
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15091 $as_echo_n "checking for $ac_word... " >&6; }
15092 if ${ac_cv_path_CPIO+:} false; then :
15093   $as_echo_n "(cached) " >&6
15094 else
15095   case $CPIO in
15096   [\\/]* | ?:[\\/]*)
15097   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15098   ;;
15099   *)
15100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $PATH
15102 do
15103   IFS=$as_save_IFS
15104   test -z "$as_dir" && as_dir=.
15105     for ac_exec_ext in '' $ac_executable_extensions; do
15106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109     break 2
15110   fi
15111 done
15112   done
15113 IFS=$as_save_IFS
15114 
15115   ;;
15116 esac
15117 fi
15118 CPIO=$ac_cv_path_CPIO
15119 if test -n "$CPIO"; then
15120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15121 $as_echo "$CPIO" >&6; }
15122 else
15123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15125 fi
15126 
15127 
15128           if test "x$CPIO" = x; then
15129             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15130           fi
15131         else
15132           # Otherwise we believe it is a complete path. Use it as it is.
15133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15134 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15135           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15136 $as_echo_n "checking for CPIO... " >&6; }
15137           if test ! -x "$tool_specified"; then
15138             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15139 $as_echo "not found" >&6; }
15140             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15141           fi
15142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15143 $as_echo "$tool_specified" >&6; }
15144         fi
15145       fi
15146     fi
15147 
15148   fi
15149 
15150 
15151 
15152 
15153   # Publish this variable in the help.
15154 
15155 
15156   if [ -z "${NICE+x}" ]; then
15157     # The variable is not set by user, try to locate tool using the code snippet
15158     for ac_prog in nice
15159 do
15160   # Extract the first word of "$ac_prog", so it can be a program name with args.
15161 set dummy $ac_prog; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_path_NICE+:} false; then :
15165   $as_echo_n "(cached) " >&6
15166 else
15167   case $NICE in
15168   [\\/]* | ?:[\\/]*)
15169   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15170   ;;
15171   *)
15172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $PATH
15174 do
15175   IFS=$as_save_IFS
15176   test -z "$as_dir" && as_dir=.
15177     for ac_exec_ext in '' $ac_executable_extensions; do
15178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15181     break 2
15182   fi
15183 done
15184   done
15185 IFS=$as_save_IFS
15186 
15187   ;;
15188 esac
15189 fi
15190 NICE=$ac_cv_path_NICE
15191 if test -n "$NICE"; then
15192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15193 $as_echo "$NICE" >&6; }
15194 else
15195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197 fi
15198 
15199 
15200   test -n "$NICE" && break
15201 done
15202 
15203   else
15204     # The variable is set, but is it from the command line or the environment?
15205 
15206     # Try to remove the string !NICE! from our list.
15207     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15208     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15209       # If it failed, the variable was not from the command line. Ignore it,
15210       # but warn the user (except for BASH, which is always set by the calling BASH).
15211       if test "xNICE" != xBASH; then
15212         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15213 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15214       fi
15215       # Try to locate tool using the code snippet
15216       for ac_prog in nice
15217 do
15218   # Extract the first word of "$ac_prog", so it can be a program name with args.
15219 set dummy $ac_prog; ac_word=$2
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15221 $as_echo_n "checking for $ac_word... " >&6; }
15222 if ${ac_cv_path_NICE+:} false; then :
15223   $as_echo_n "(cached) " >&6
15224 else
15225   case $NICE in
15226   [\\/]* | ?:[\\/]*)
15227   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15228   ;;
15229   *)
15230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15231 for as_dir in $PATH
15232 do
15233   IFS=$as_save_IFS
15234   test -z "$as_dir" && as_dir=.
15235     for ac_exec_ext in '' $ac_executable_extensions; do
15236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15237     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15239     break 2
15240   fi
15241 done
15242   done
15243 IFS=$as_save_IFS
15244 
15245   ;;
15246 esac
15247 fi
15248 NICE=$ac_cv_path_NICE
15249 if test -n "$NICE"; then
15250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15251 $as_echo "$NICE" >&6; }
15252 else
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254 $as_echo "no" >&6; }
15255 fi
15256 
15257 
15258   test -n "$NICE" && break
15259 done
15260 
15261     else
15262       # If it succeeded, then it was overridden by the user. We will use it
15263       # for the tool.
15264 
15265       # First remove it from the list of overridden variables, so we can test
15266       # for unknown variables in the end.
15267       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15268 
15269       # Check if we try to supply an empty value
15270       if test "x$NICE" = x; then
15271         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15272 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15274 $as_echo_n "checking for NICE... " >&6; }
15275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15276 $as_echo "disabled" >&6; }
15277       else
15278         # Check if the provided tool contains a complete path.
15279         tool_specified="$NICE"
15280         tool_basename="${tool_specified##*/}"
15281         if test "x$tool_basename" = "x$tool_specified"; then
15282           # A command without a complete path is provided, search $PATH.
15283           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15284 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15285           # Extract the first word of "$tool_basename", so it can be a program name with args.
15286 set dummy $tool_basename; ac_word=$2
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288 $as_echo_n "checking for $ac_word... " >&6; }
15289 if ${ac_cv_path_NICE+:} false; then :
15290   $as_echo_n "(cached) " >&6
15291 else
15292   case $NICE in
15293   [\\/]* | ?:[\\/]*)
15294   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15295   ;;
15296   *)
15297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298 for as_dir in $PATH
15299 do
15300   IFS=$as_save_IFS
15301   test -z "$as_dir" && as_dir=.
15302     for ac_exec_ext in '' $ac_executable_extensions; do
15303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15304     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15306     break 2
15307   fi
15308 done
15309   done
15310 IFS=$as_save_IFS
15311 
15312   ;;
15313 esac
15314 fi
15315 NICE=$ac_cv_path_NICE
15316 if test -n "$NICE"; then
15317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15318 $as_echo "$NICE" >&6; }
15319 else
15320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321 $as_echo "no" >&6; }
15322 fi
15323 
15324 
15325           if test "x$NICE" = x; then
15326             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15327           fi
15328         else
15329           # Otherwise we believe it is a complete path. Use it as it is.
15330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15331 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15332           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15333 $as_echo_n "checking for NICE... " >&6; }
15334           if test ! -x "$tool_specified"; then
15335             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15336 $as_echo "not found" >&6; }
15337             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15338           fi
15339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15340 $as_echo "$tool_specified" >&6; }
15341         fi
15342       fi
15343     fi
15344 
15345   fi
15346 
15347 
15348 
15349 
15350   # Publish this variable in the help.
15351 
15352 
15353   if [ -z "${PANDOC+x}" ]; then
15354     # The variable is not set by user, try to locate tool using the code snippet
15355     for ac_prog in pandoc
15356 do
15357   # Extract the first word of "$ac_prog", so it can be a program name with args.
15358 set dummy $ac_prog; ac_word=$2
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15360 $as_echo_n "checking for $ac_word... " >&6; }
15361 if ${ac_cv_path_PANDOC+:} false; then :
15362   $as_echo_n "(cached) " >&6
15363 else
15364   case $PANDOC in
15365   [\\/]* | ?:[\\/]*)
15366   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15367   ;;
15368   *)
15369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370 for as_dir in $PATH
15371 do
15372   IFS=$as_save_IFS
15373   test -z "$as_dir" && as_dir=.
15374     for ac_exec_ext in '' $ac_executable_extensions; do
15375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15376     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15378     break 2
15379   fi
15380 done
15381   done
15382 IFS=$as_save_IFS
15383 
15384   ;;
15385 esac
15386 fi
15387 PANDOC=$ac_cv_path_PANDOC
15388 if test -n "$PANDOC"; then
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15390 $as_echo "$PANDOC" >&6; }
15391 else
15392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 $as_echo "no" >&6; }
15394 fi
15395 
15396 
15397   test -n "$PANDOC" && break
15398 done
15399 
15400   else
15401     # The variable is set, but is it from the command line or the environment?
15402 
15403     # Try to remove the string !PANDOC! from our list.
15404     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15405     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15406       # If it failed, the variable was not from the command line. Ignore it,
15407       # but warn the user (except for BASH, which is always set by the calling BASH).
15408       if test "xPANDOC" != xBASH; then
15409         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15410 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15411       fi
15412       # Try to locate tool using the code snippet
15413       for ac_prog in pandoc
15414 do
15415   # Extract the first word of "$ac_prog", so it can be a program name with args.
15416 set dummy $ac_prog; ac_word=$2
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15418 $as_echo_n "checking for $ac_word... " >&6; }
15419 if ${ac_cv_path_PANDOC+:} false; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422   case $PANDOC in
15423   [\\/]* | ?:[\\/]*)
15424   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15425   ;;
15426   *)
15427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15428 for as_dir in $PATH
15429 do
15430   IFS=$as_save_IFS
15431   test -z "$as_dir" && as_dir=.
15432     for ac_exec_ext in '' $ac_executable_extensions; do
15433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15434     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15436     break 2
15437   fi
15438 done
15439   done
15440 IFS=$as_save_IFS
15441 
15442   ;;
15443 esac
15444 fi
15445 PANDOC=$ac_cv_path_PANDOC
15446 if test -n "$PANDOC"; then
15447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15448 $as_echo "$PANDOC" >&6; }
15449 else
15450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15452 fi
15453 
15454 
15455   test -n "$PANDOC" && break
15456 done
15457 
15458     else
15459       # If it succeeded, then it was overridden by the user. We will use it
15460       # for the tool.
15461 
15462       # First remove it from the list of overridden variables, so we can test
15463       # for unknown variables in the end.
15464       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15465 
15466       # Check if we try to supply an empty value
15467       if test "x$PANDOC" = x; then
15468         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15469 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15471 $as_echo_n "checking for PANDOC... " >&6; }
15472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15473 $as_echo "disabled" >&6; }
15474       else
15475         # Check if the provided tool contains a complete path.
15476         tool_specified="$PANDOC"
15477         tool_basename="${tool_specified##*/}"
15478         if test "x$tool_basename" = "x$tool_specified"; then
15479           # A command without a complete path is provided, search $PATH.
15480           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15481 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15482           # Extract the first word of "$tool_basename", so it can be a program name with args.
15483 set dummy $tool_basename; ac_word=$2
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15485 $as_echo_n "checking for $ac_word... " >&6; }
15486 if ${ac_cv_path_PANDOC+:} false; then :
15487   $as_echo_n "(cached) " >&6
15488 else
15489   case $PANDOC in
15490   [\\/]* | ?:[\\/]*)
15491   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15492   ;;
15493   *)
15494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15495 for as_dir in $PATH
15496 do
15497   IFS=$as_save_IFS
15498   test -z "$as_dir" && as_dir=.
15499     for ac_exec_ext in '' $ac_executable_extensions; do
15500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15501     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503     break 2
15504   fi
15505 done
15506   done
15507 IFS=$as_save_IFS
15508 
15509   ;;
15510 esac
15511 fi
15512 PANDOC=$ac_cv_path_PANDOC
15513 if test -n "$PANDOC"; then
15514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15515 $as_echo "$PANDOC" >&6; }
15516 else
15517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15519 fi
15520 
15521 
15522           if test "x$PANDOC" = x; then
15523             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15524           fi
15525         else
15526           # Otherwise we believe it is a complete path. Use it as it is.
15527           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15528 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15529           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15530 $as_echo_n "checking for PANDOC... " >&6; }
15531           if test ! -x "$tool_specified"; then
15532             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15533 $as_echo "not found" >&6; }
15534             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15535           fi
15536           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15537 $as_echo "$tool_specified" >&6; }
15538         fi
15539       fi
15540     fi
15541 
15542   fi
15543 
15544 
15545 
15546 
15547 # Now we can determine OpenJDK build and target platforms. This is required to
15548 # have early on.
15549 # Make sure we can run config.sub.
15550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15551   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15552 
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15554 $as_echo_n "checking build system type... " >&6; }
15555 if ${ac_cv_build+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   ac_build_alias=$build_alias
15559 test "x$ac_build_alias" = x &&
15560   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15561 test "x$ac_build_alias" = x &&
15562   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15564   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15565 
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15568 $as_echo "$ac_cv_build" >&6; }
15569 case $ac_cv_build in
15570 *-*-*) ;;
15571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15572 esac
15573 build=$ac_cv_build
15574 ac_save_IFS=$IFS; IFS='-'
15575 set x $ac_cv_build
15576 shift
15577 build_cpu=$1
15578 build_vendor=$2
15579 shift; shift
15580 # Remember, the first character of IFS is used to create $*,
15581 # except with old shells:
15582 build_os=$*
15583 IFS=$ac_save_IFS
15584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15585 
15586 
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15588 $as_echo_n "checking host system type... " >&6; }
15589 if ${ac_cv_host+:} false; then :
15590   $as_echo_n "(cached) " >&6
15591 else
15592   if test "x$host_alias" = x; then
15593   ac_cv_host=$ac_cv_build
15594 else
15595   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15596     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15597 fi
15598 
15599 fi
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15601 $as_echo "$ac_cv_host" >&6; }
15602 case $ac_cv_host in
15603 *-*-*) ;;
15604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15605 esac
15606 host=$ac_cv_host
15607 ac_save_IFS=$IFS; IFS='-'
15608 set x $ac_cv_host
15609 shift
15610 host_cpu=$1
15611 host_vendor=$2
15612 shift; shift
15613 # Remember, the first character of IFS is used to create $*,
15614 # except with old shells:
15615 host_os=$*
15616 IFS=$ac_save_IFS
15617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15618 
15619 
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15621 $as_echo_n "checking target system type... " >&6; }
15622 if ${ac_cv_target+:} false; then :
15623   $as_echo_n "(cached) " >&6
15624 else
15625   if test "x$target_alias" = x; then
15626   ac_cv_target=$ac_cv_host
15627 else
15628   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15629     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15630 fi
15631 
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15634 $as_echo "$ac_cv_target" >&6; }
15635 case $ac_cv_target in
15636 *-*-*) ;;
15637 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15638 esac
15639 target=$ac_cv_target
15640 ac_save_IFS=$IFS; IFS='-'
15641 set x $ac_cv_target
15642 shift
15643 target_cpu=$1
15644 target_vendor=$2
15645 shift; shift
15646 # Remember, the first character of IFS is used to create $*,
15647 # except with old shells:
15648 target_os=$*
15649 IFS=$ac_save_IFS
15650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15651 
15652 
15653 # The aliases save the names the user supplied, while $host etc.
15654 # will get canonicalized.
15655 test -n "$target_alias" &&
15656   test "$program_prefix$program_suffix$program_transform_name" = \
15657     NONENONEs,x,x, &&
15658   program_prefix=${target_alias}-
15659 
15660   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15661   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15662   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15663   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15664   # to use the configure naming style.
15665 
15666 
15667 
15668 
15669 
15670   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15671   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15672   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15673   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15674   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15675   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15676 
15677 
15678 
15679   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15680 
15681   case "$build_os" in
15682     *linux*)
15683       VAR_OS=linux
15684       VAR_OS_TYPE=unix
15685       ;;
15686     *solaris*)
15687       VAR_OS=solaris
15688       VAR_OS_TYPE=unix
15689       ;;
15690     *darwin*)
15691       VAR_OS=macosx
15692       VAR_OS_TYPE=unix
15693       ;;
15694     *bsd*)
15695       VAR_OS=bsd
15696       VAR_OS_TYPE=unix
15697       ;;
15698     *cygwin*)
15699       VAR_OS=windows
15700       VAR_OS_ENV=windows.cygwin
15701       ;;
15702     *mingw*)
15703       VAR_OS=windows
15704       VAR_OS_ENV=windows.msys
15705       ;;
15706     *aix*)
15707       VAR_OS=aix
15708       VAR_OS_TYPE=unix
15709       ;;
15710     *)
15711       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15712       ;;
15713   esac
15714 
15715 
15716   # First argument is the cpu name from the trip/quad
15717   case "$build_cpu" in
15718     x86_64)
15719       VAR_CPU=x86_64
15720       VAR_CPU_ARCH=x86
15721       VAR_CPU_BITS=64
15722       VAR_CPU_ENDIAN=little
15723       ;;
15724     i?86)
15725       VAR_CPU=x86
15726       VAR_CPU_ARCH=x86
15727       VAR_CPU_BITS=32
15728       VAR_CPU_ENDIAN=little
15729       ;;
15730     alpha*)
15731       VAR_CPU=alpha
15732       VAR_CPU_ARCH=alpha
15733       VAR_CPU_BITS=64
15734       VAR_CPU_ENDIAN=little
15735       ;;
15736     arm*)
15737       VAR_CPU=arm
15738       VAR_CPU_ARCH=arm
15739       VAR_CPU_BITS=32
15740       VAR_CPU_ENDIAN=little
15741       ;;
15742     aarch64)
15743       VAR_CPU=aarch64
15744       VAR_CPU_ARCH=aarch64
15745       VAR_CPU_BITS=64
15746       VAR_CPU_ENDIAN=little
15747       ;;
15748     m68k)
15749       VAR_CPU=m68k
15750       VAR_CPU_ARCH=m68k
15751       VAR_CPU_BITS=32
15752       VAR_CPU_ENDIAN=big
15753       ;;
15754     mips)
15755       VAR_CPU=mips
15756       VAR_CPU_ARCH=mips
15757       VAR_CPU_BITS=32
15758       VAR_CPU_ENDIAN=big
15759       ;;
15760     mipsel)
15761       VAR_CPU=mipsel
15762       VAR_CPU_ARCH=mipsel
15763       VAR_CPU_BITS=32
15764       VAR_CPU_ENDIAN=little
15765       ;;
15766     mips64)
15767       VAR_CPU=mips64
15768       VAR_CPU_ARCH=mips64
15769       VAR_CPU_BITS=64
15770       VAR_CPU_ENDIAN=big
15771       ;;
15772     mips64el)
15773       VAR_CPU=mips64el
15774       VAR_CPU_ARCH=mips64el
15775       VAR_CPU_BITS=64
15776       VAR_CPU_ENDIAN=little
15777       ;;
15778     powerpc)
15779       VAR_CPU=ppc
15780       VAR_CPU_ARCH=ppc
15781       VAR_CPU_BITS=32
15782       VAR_CPU_ENDIAN=big
15783       ;;
15784     powerpc64)
15785       VAR_CPU=ppc64
15786       VAR_CPU_ARCH=ppc
15787       VAR_CPU_BITS=64
15788       VAR_CPU_ENDIAN=big
15789       ;;
15790     powerpc64le)
15791       VAR_CPU=ppc64le
15792       VAR_CPU_ARCH=ppc
15793       VAR_CPU_BITS=64
15794       VAR_CPU_ENDIAN=little
15795       ;;
15796     s390)
15797       VAR_CPU=s390
15798       VAR_CPU_ARCH=s390
15799       VAR_CPU_BITS=32
15800       VAR_CPU_ENDIAN=big
15801       ;;
15802     s390x)
15803       VAR_CPU=s390x
15804       VAR_CPU_ARCH=s390
15805       VAR_CPU_BITS=64
15806       VAR_CPU_ENDIAN=big
15807       ;;
15808     sh*eb)
15809       VAR_CPU=sh
15810       VAR_CPU_ARCH=sh
15811       VAR_CPU_BITS=32
15812       VAR_CPU_ENDIAN=big
15813       ;;
15814     sh*)
15815       VAR_CPU=sh
15816       VAR_CPU_ARCH=sh
15817       VAR_CPU_BITS=32
15818       VAR_CPU_ENDIAN=little
15819       ;;
15820     sparc)
15821       VAR_CPU=sparc
15822       VAR_CPU_ARCH=sparc
15823       VAR_CPU_BITS=32
15824       VAR_CPU_ENDIAN=big
15825       ;;
15826     sparcv9|sparc64)
15827       VAR_CPU=sparcv9
15828       VAR_CPU_ARCH=sparc
15829       VAR_CPU_BITS=64
15830       VAR_CPU_ENDIAN=big
15831       ;;
15832     *)
15833       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15834       ;;
15835   esac
15836 
15837   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15838   OPENJDK_BUILD_OS="$VAR_OS"
15839   if test "x$VAR_OS_TYPE" != x; then
15840     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15841   else
15842     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15843   fi
15844   if test "x$VAR_OS_ENV" != x; then
15845     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15846   else
15847     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15848   fi
15849   OPENJDK_BUILD_CPU="$VAR_CPU"
15850   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15851   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15852   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15853 
15854 
15855 
15856 
15857 
15858 
15859 
15860 
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15862 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15864 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15865 
15866   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15867 
15868   case "$host_os" in
15869     *linux*)
15870       VAR_OS=linux
15871       VAR_OS_TYPE=unix
15872       ;;
15873     *solaris*)
15874       VAR_OS=solaris
15875       VAR_OS_TYPE=unix
15876       ;;
15877     *darwin*)
15878       VAR_OS=macosx
15879       VAR_OS_TYPE=unix
15880       ;;
15881     *bsd*)
15882       VAR_OS=bsd
15883       VAR_OS_TYPE=unix
15884       ;;
15885     *cygwin*)
15886       VAR_OS=windows
15887       VAR_OS_ENV=windows.cygwin
15888       ;;
15889     *mingw*)
15890       VAR_OS=windows
15891       VAR_OS_ENV=windows.msys
15892       ;;
15893     *aix*)
15894       VAR_OS=aix
15895       VAR_OS_TYPE=unix
15896       ;;
15897     *)
15898       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15899       ;;
15900   esac
15901 
15902 
15903   # First argument is the cpu name from the trip/quad
15904   case "$host_cpu" in
15905     x86_64)
15906       VAR_CPU=x86_64
15907       VAR_CPU_ARCH=x86
15908       VAR_CPU_BITS=64
15909       VAR_CPU_ENDIAN=little
15910       ;;
15911     i?86)
15912       VAR_CPU=x86
15913       VAR_CPU_ARCH=x86
15914       VAR_CPU_BITS=32
15915       VAR_CPU_ENDIAN=little
15916       ;;
15917     alpha*)
15918       VAR_CPU=alpha
15919       VAR_CPU_ARCH=alpha
15920       VAR_CPU_BITS=64
15921       VAR_CPU_ENDIAN=little
15922       ;;
15923     arm*)
15924       VAR_CPU=arm
15925       VAR_CPU_ARCH=arm
15926       VAR_CPU_BITS=32
15927       VAR_CPU_ENDIAN=little
15928       ;;
15929     aarch64)
15930       VAR_CPU=aarch64
15931       VAR_CPU_ARCH=aarch64
15932       VAR_CPU_BITS=64
15933       VAR_CPU_ENDIAN=little
15934       ;;
15935     m68k)
15936       VAR_CPU=m68k
15937       VAR_CPU_ARCH=m68k
15938       VAR_CPU_BITS=32
15939       VAR_CPU_ENDIAN=big
15940       ;;
15941     mips)
15942       VAR_CPU=mips
15943       VAR_CPU_ARCH=mips
15944       VAR_CPU_BITS=32
15945       VAR_CPU_ENDIAN=big
15946       ;;
15947     mipsel)
15948       VAR_CPU=mipsel
15949       VAR_CPU_ARCH=mipsel
15950       VAR_CPU_BITS=32
15951       VAR_CPU_ENDIAN=little
15952       ;;
15953     mips64)
15954       VAR_CPU=mips64
15955       VAR_CPU_ARCH=mips64
15956       VAR_CPU_BITS=64
15957       VAR_CPU_ENDIAN=big
15958       ;;
15959     mips64el)
15960       VAR_CPU=mips64el
15961       VAR_CPU_ARCH=mips64el
15962       VAR_CPU_BITS=64
15963       VAR_CPU_ENDIAN=little
15964       ;;
15965     powerpc)
15966       VAR_CPU=ppc
15967       VAR_CPU_ARCH=ppc
15968       VAR_CPU_BITS=32
15969       VAR_CPU_ENDIAN=big
15970       ;;
15971     powerpc64)
15972       VAR_CPU=ppc64
15973       VAR_CPU_ARCH=ppc
15974       VAR_CPU_BITS=64
15975       VAR_CPU_ENDIAN=big
15976       ;;
15977     powerpc64le)
15978       VAR_CPU=ppc64le
15979       VAR_CPU_ARCH=ppc
15980       VAR_CPU_BITS=64
15981       VAR_CPU_ENDIAN=little
15982       ;;
15983     s390)
15984       VAR_CPU=s390
15985       VAR_CPU_ARCH=s390
15986       VAR_CPU_BITS=32
15987       VAR_CPU_ENDIAN=big
15988       ;;
15989     s390x)
15990       VAR_CPU=s390x
15991       VAR_CPU_ARCH=s390
15992       VAR_CPU_BITS=64
15993       VAR_CPU_ENDIAN=big
15994       ;;
15995     sh*eb)
15996       VAR_CPU=sh
15997       VAR_CPU_ARCH=sh
15998       VAR_CPU_BITS=32
15999       VAR_CPU_ENDIAN=big
16000       ;;
16001     sh*)
16002       VAR_CPU=sh
16003       VAR_CPU_ARCH=sh
16004       VAR_CPU_BITS=32
16005       VAR_CPU_ENDIAN=little
16006       ;;
16007     sparc)
16008       VAR_CPU=sparc
16009       VAR_CPU_ARCH=sparc
16010       VAR_CPU_BITS=32
16011       VAR_CPU_ENDIAN=big
16012       ;;
16013     sparcv9|sparc64)
16014       VAR_CPU=sparcv9
16015       VAR_CPU_ARCH=sparc
16016       VAR_CPU_BITS=64
16017       VAR_CPU_ENDIAN=big
16018       ;;
16019     *)
16020       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16021       ;;
16022   esac
16023 
16024   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16025   OPENJDK_TARGET_OS="$VAR_OS"
16026   if test "x$VAR_OS_TYPE" != x; then
16027     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16028   else
16029     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16030   fi
16031   if test "x$VAR_OS_ENV" != x; then
16032     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16033   else
16034     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16035   fi
16036   OPENJDK_TARGET_CPU="$VAR_CPU"
16037   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16038   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16039   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16040 
16041 
16042 
16043 
16044 
16045 
16046 
16047 
16048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16049 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16051 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16052 
16053 
16054 
16055 # Check whether --with-target-bits was given.
16056 if test "${with_target_bits+set}" = set; then :
16057   withval=$with_target_bits;
16058 fi
16059 
16060 
16061   # We have three types of compiles:
16062   # native  == normal compilation, target system == build system
16063   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16064   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16065   #
16066   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16067     # We're doing a proper cross-compilation
16068     COMPILE_TYPE="cross"
16069   else
16070     COMPILE_TYPE="native"
16071   fi
16072 
16073   if test "x$with_target_bits" != x; then
16074     if test "x$COMPILE_TYPE" = "xcross"; then
16075       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16076     fi
16077 
16078     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16079       # A reduced build is requested
16080       COMPILE_TYPE="reduced"
16081       OPENJDK_TARGET_CPU_BITS=32
16082       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16083         OPENJDK_TARGET_CPU=x86
16084       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16085         OPENJDK_TARGET_CPU=sparc
16086       else
16087         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16088       fi
16089     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16090       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
16091     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16092       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16093 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16094     else
16095       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16096     fi
16097   fi
16098 
16099 
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16101 $as_echo_n "checking compilation type... " >&6; }
16102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16103 $as_echo "$COMPILE_TYPE" >&6; }
16104 
16105 
16106   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16107     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16108   else
16109     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16110   fi
16111 
16112   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16113     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16114   else
16115     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16116   fi
16117 
16118   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16119 
16120 
16121 
16122   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16123     RELEASE_FILE_OS_NAME=SunOS
16124   fi
16125   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16126     RELEASE_FILE_OS_NAME=Linux
16127   fi
16128   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16129     RELEASE_FILE_OS_NAME=Windows
16130   fi
16131   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16132     RELEASE_FILE_OS_NAME="Darwin"
16133   fi
16134   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16135     RELEASE_FILE_OS_NAME="AIX"
16136   fi
16137   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16138 
16139 
16140 
16141 
16142 
16143 
16144   # Also store the legacy naming of the cpu.
16145   # Ie i586 and amd64 instead of x86 and x86_64
16146   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16147   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16148     OPENJDK_TARGET_CPU_LEGACY="i586"
16149   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16150     # On all platforms except MacOSX replace x86_64 with amd64.
16151     OPENJDK_TARGET_CPU_LEGACY="amd64"
16152   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16153     # Avoid name collisions with variables named alpha
16154     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16155   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16156     # Avoid name collisions with variables named sh
16157     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16158   fi
16159 
16160 
16161   # And the second legacy naming of the cpu.
16162   # Ie i386 and amd64 instead of x86 and x86_64.
16163   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16164   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16165     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16166   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16167     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16168   fi
16169 
16170 
16171   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16172   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16173   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16174   OPENJDK_TARGET_CPU_ISADIR=""
16175   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16176     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16177       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16178     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16179       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16180     fi
16181   fi
16182 
16183 
16184   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16185   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16186   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16187     # On linux only, we replace x86 with i386.
16188     OPENJDK_TARGET_CPU_OSARCH="i386"
16189   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16190     # On all platforms except macosx, we replace x86_64 with amd64.
16191     OPENJDK_TARGET_CPU_OSARCH="amd64"
16192   fi
16193 
16194 
16195   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16196   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16197     OPENJDK_TARGET_CPU_JLI="i386"
16198   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16199     # On all platforms except macosx, we replace x86_64 with amd64.
16200     OPENJDK_TARGET_CPU_JLI="amd64"
16201   fi
16202 
16203   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16204       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16205   else
16206       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16207   fi
16208 
16209 
16210   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16211   # Macosx is osx and x86_64 is x64
16212   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16213     OPENJDK_TARGET_OS_BUNDLE="osx"
16214   else
16215     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16216   fi
16217   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16218     OPENJDK_TARGET_CPU_BUNDLE="x64"
16219   else
16220     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16221   fi
16222   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16223 
16224 
16225   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16226     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16227     # unpack200.exe. This variable is used in
16228     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16229     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16230       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16231     fi
16232   fi
16233 
16234   if test "x$COMPILE_TYPE" = "xcross"; then
16235     # FIXME: ... or should this include reduced builds..?
16236     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16237   else
16238     DEFINE_CROSS_COMPILE_ARCH=""
16239   fi
16240 
16241 
16242   # Convert openjdk platform names to hotspot names
16243 
16244   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16245   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16246     HOTSPOT_TARGET_OS=bsd
16247   fi
16248 
16249 
16250   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16251   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16252     HOTSPOT_TARGET_OS_TYPE=posix
16253   fi
16254 
16255 
16256   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16257   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16258     HOTSPOT_TARGET_CPU=x86_32
16259   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16260     HOTSPOT_TARGET_CPU=sparc
16261   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16262     HOTSPOT_TARGET_CPU=ppc_64
16263   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16264     HOTSPOT_TARGET_CPU=ppc_64
16265   fi
16266 
16267 
16268   # This is identical with OPENJDK_*, but define anyway for consistency.
16269   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16270 
16271 
16272   # Setup HOTSPOT_TARGET_CPU_DEFINE
16273   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16274     HOTSPOT_TARGET_CPU_DEFINE=IA32
16275   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16276     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16277   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16278     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16279   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16280     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16281   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16282     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16283   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16284     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16285 
16286   # The cpu defines below are for zero, we don't support them directly.
16287   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16288     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16289   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16290     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16291   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16292     HOTSPOT_TARGET_CPU_DEFINE=S390
16293   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16294     HOTSPOT_TARGET_CPU_DEFINE=S390
16295   elif test "x$OPENJDK_TARGET_CPU" != x; then
16296     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16297   fi
16298 
16299 
16300 
16301 
16302   # Also store the legacy naming of the cpu.
16303   # Ie i586 and amd64 instead of x86 and x86_64
16304   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16305   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16306     OPENJDK_BUILD_CPU_LEGACY="i586"
16307   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16308     # On all platforms except MacOSX replace x86_64 with amd64.
16309     OPENJDK_BUILD_CPU_LEGACY="amd64"
16310   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16311     # Avoid name collisions with variables named alpha
16312     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16313   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16314     # Avoid name collisions with variables named sh
16315     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16316   fi
16317 
16318 
16319   # And the second legacy naming of the cpu.
16320   # Ie i386 and amd64 instead of x86 and x86_64.
16321   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16322   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16323     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16324   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16325     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16326   fi
16327 
16328 
16329   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16330   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16331   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16332   OPENJDK_BUILD_CPU_ISADIR=""
16333   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16334     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16335       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16336     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16337       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16338     fi
16339   fi
16340 
16341 
16342   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16343   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16344   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16345     # On linux only, we replace x86 with i386.
16346     OPENJDK_BUILD_CPU_OSARCH="i386"
16347   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16348     # On all platforms except macosx, we replace x86_64 with amd64.
16349     OPENJDK_BUILD_CPU_OSARCH="amd64"
16350   fi
16351 
16352 
16353   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16354   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16355     OPENJDK_BUILD_CPU_JLI="i386"
16356   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16357     # On all platforms except macosx, we replace x86_64 with amd64.
16358     OPENJDK_BUILD_CPU_JLI="amd64"
16359   fi
16360 
16361   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16362       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16363   else
16364       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16365   fi
16366 
16367 
16368   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16369   # Macosx is osx and x86_64 is x64
16370   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16371     OPENJDK_BUILD_OS_BUNDLE="osx"
16372   else
16373     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16374   fi
16375   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16376     OPENJDK_BUILD_CPU_BUNDLE="x64"
16377   else
16378     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16379   fi
16380   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16381 
16382 
16383   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16384     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16385     # unpack200.exe. This variable is used in
16386     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16387     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16388       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16389     fi
16390   fi
16391 
16392   if test "x$COMPILE_TYPE" = "xcross"; then
16393     # FIXME: ... or should this include reduced builds..?
16394     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16395   else
16396     DEFINE_CROSS_COMPILE_ARCH=""
16397   fi
16398 
16399 
16400   # Convert openjdk platform names to hotspot names
16401 
16402   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16403   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16404     HOTSPOT_BUILD_OS=bsd
16405   fi
16406 
16407 
16408   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16409   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16410     HOTSPOT_BUILD_OS_TYPE=posix
16411   fi
16412 
16413 
16414   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16415   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16416     HOTSPOT_BUILD_CPU=x86_32
16417   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16418     HOTSPOT_BUILD_CPU=sparc
16419   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16420     HOTSPOT_BUILD_CPU=ppc_64
16421   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16422     HOTSPOT_BUILD_CPU=ppc_64
16423   fi
16424 
16425 
16426   # This is identical with OPENJDK_*, but define anyway for consistency.
16427   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16428 
16429 
16430   # Setup HOTSPOT_BUILD_CPU_DEFINE
16431   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16432     HOTSPOT_BUILD_CPU_DEFINE=IA32
16433   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16434     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16435   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16436     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16437   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16438     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16439   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16440     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16441   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16442     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16443 
16444   # The cpu defines below are for zero, we don't support them directly.
16445   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16446     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16447   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16448     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16449   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16450     HOTSPOT_BUILD_CPU_DEFINE=S390
16451   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16452     HOTSPOT_BUILD_CPU_DEFINE=S390
16453   elif test "x$OPENJDK_BUILD_CPU" != x; then
16454     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16455   fi
16456 
16457 
16458 
16459 
16460 
16461 
16462 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16463 
16464   # Save the current directory this script was started from
16465   CURDIR="$PWD"
16466 
16467   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16468   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16469   # was not available at that time.
16470   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16471   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16472     ORIGINAL_PATH="$REWRITTEN_PATH"
16473     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16474 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16475   fi
16476 
16477   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16478     PATH_SEP=";"
16479 
16480   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16481   if test $SRC_ROOT_LENGTH -gt 100; then
16482     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16483   fi
16484 
16485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16487 $as_echo_n "checking cygwin release... " >&6; }
16488     CYGWIN_VERSION=`$UNAME -r`
16489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16490 $as_echo "$CYGWIN_VERSION" >&6; }
16491     WINDOWS_ENV_VENDOR='cygwin'
16492     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16493 
16494     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16495     if test "x$CYGWIN_VERSION_OLD" != x; then
16496       { $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
16497 $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;}
16498       as_fn_error $? "Cannot continue" "$LINENO" 5
16499     fi
16500     if test "x$CYGPATH" = x; then
16501       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16502     fi
16503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16504 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16505     # The cmd output ends with Windows line endings (CR/LF)
16506     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16507     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16508     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16510 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16511     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16512     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16513     if test "x$test_cygdrive_prefix" = x; then
16514       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16515     fi
16516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16518 $as_echo_n "checking msys release... " >&6; }
16519     MSYS_VERSION=`$UNAME -r`
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16521 $as_echo "$MSYS_VERSION" >&6; }
16522 
16523     WINDOWS_ENV_VENDOR='msys'
16524     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16525 
16526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16527 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16528     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16529     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16530 
16531   windows_path="$MSYS_ROOT_PATH"
16532   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16533     unix_path=`$CYGPATH -u "$windows_path"`
16534     MSYS_ROOT_PATH="$unix_path"
16535   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16536     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16537     MSYS_ROOT_PATH="$unix_path"
16538   fi
16539 
16540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16541 $as_echo "$MSYS_ROOT_PATH" >&6; }
16542     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16543   else
16544     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16545   fi
16546 
16547   # Test if windows or unix (cygwin/msys) find is first in path.
16548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16549 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16550   FIND_BINARY_OUTPUT=`find --version 2>&1`
16551   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16553 $as_echo "unix style" >&6; }
16554   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16556 $as_echo "Windows" >&6; }
16557     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16558 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16559     { $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
16560 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16561     as_fn_error $? "Cannot continue" "$LINENO" 5
16562   else
16563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16564 $as_echo "unknown" >&6; }
16565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16566 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16567   fi
16568 
16569   else
16570     PATH_SEP=":"
16571   fi
16572 
16573 
16574   # We get the top-level directory from the supporting wrappers.
16575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16576 $as_echo_n "checking for top-level directory... " >&6; }
16577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16578 $as_echo "$TOPDIR" >&6; }
16579 
16580 
16581   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16582 
16583   # Only process if variable expands to non-empty
16584 
16585   if test "x$CURDIR" != x; then
16586     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16587 
16588   # Input might be given as Windows format, start by converting to
16589   # unix format.
16590   path="$CURDIR"
16591   new_path=`$CYGPATH -u "$path"`
16592 
16593   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16594   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16595   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16596   # "foo.exe" is OK but "foo" is an error.
16597   #
16598   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16599   # It is also a way to make sure we got the proper file name for the real test later on.
16600   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16601   if test "x$test_shortpath" = x; then
16602     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16603 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16604     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16605   fi
16606 
16607   # Call helper function which possibly converts this using DOS-style short mode.
16608   # If so, the updated path is stored in $new_path.
16609 
16610   input_path="$new_path"
16611   # Check if we need to convert this using DOS-style short mode. If the path
16612   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16613   # take no chances and rewrite it.
16614   # Note: m4 eats our [], so we need to use [ and ] instead.
16615   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16616   if test "x$has_forbidden_chars" != x; then
16617     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16618     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16619     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16620     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16621       # Going to short mode and back again did indeed matter. Since short mode is
16622       # case insensitive, let's make it lowercase to improve readability.
16623       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16624       # Now convert it back to Unix-style (cygpath)
16625       input_path=`$CYGPATH -u "$shortmode_path"`
16626       new_path="$input_path"
16627     fi
16628   fi
16629 
16630   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16631   if test "x$test_cygdrive_prefix" = x; then
16632     # As a simple fix, exclude /usr/bin since it's not a real path.
16633     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16634       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16635       # a path prefixed by /cygdrive for fixpath to work.
16636       new_path="$CYGWIN_ROOT_PATH$input_path"
16637     fi
16638   fi
16639 
16640 
16641   if test "x$path" != "x$new_path"; then
16642     CURDIR="$new_path"
16643     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16644 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16645   fi
16646 
16647     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16648 
16649   path="$CURDIR"
16650   has_colon=`$ECHO $path | $GREP ^.:`
16651   new_path="$path"
16652   if test "x$has_colon" = x; then
16653     # Not in mixed or Windows style, start by that.
16654     new_path=`cmd //c echo $path`
16655   fi
16656 
16657 
16658   input_path="$new_path"
16659   # Check if we need to convert this using DOS-style short mode. If the path
16660   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16661   # take no chances and rewrite it.
16662   # Note: m4 eats our [], so we need to use [ and ] instead.
16663   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16664   if test "x$has_forbidden_chars" != x; then
16665     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16666     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16667   fi
16668 
16669 
16670   windows_path="$new_path"
16671   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16672     unix_path=`$CYGPATH -u "$windows_path"`
16673     new_path="$unix_path"
16674   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16675     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16676     new_path="$unix_path"
16677   fi
16678 
16679   if test "x$path" != "x$new_path"; then
16680     CURDIR="$new_path"
16681     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16682 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16683   fi
16684 
16685   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16686   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16687 
16688     else
16689       # We're on a unix platform. Hooray! :)
16690       path="$CURDIR"
16691       has_space=`$ECHO "$path" | $GREP " "`
16692       if test "x$has_space" != x; then
16693         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16694 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16695         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16696       fi
16697 
16698       # Use eval to expand a potential ~
16699       eval path="$path"
16700       if test ! -f "$path" && test ! -d "$path"; then
16701         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16702       fi
16703 
16704       if test -d "$path"; then
16705         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16706       else
16707         dir="`$DIRNAME "$path"`"
16708         base="`$BASENAME "$path"`"
16709         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16710       fi
16711     fi
16712   fi
16713 
16714 
16715   # Only process if variable expands to non-empty
16716 
16717   if test "x$TOPDIR" != x; then
16718     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16719 
16720   # Input might be given as Windows format, start by converting to
16721   # unix format.
16722   path="$TOPDIR"
16723   new_path=`$CYGPATH -u "$path"`
16724 
16725   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16726   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16727   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16728   # "foo.exe" is OK but "foo" is an error.
16729   #
16730   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16731   # It is also a way to make sure we got the proper file name for the real test later on.
16732   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16733   if test "x$test_shortpath" = x; then
16734     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16735 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16736     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16737   fi
16738 
16739   # Call helper function which possibly converts this using DOS-style short mode.
16740   # If so, the updated path is stored in $new_path.
16741 
16742   input_path="$new_path"
16743   # Check if we need to convert this using DOS-style short mode. If the path
16744   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16745   # take no chances and rewrite it.
16746   # Note: m4 eats our [], so we need to use [ and ] instead.
16747   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16748   if test "x$has_forbidden_chars" != x; then
16749     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16750     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16751     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16752     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16753       # Going to short mode and back again did indeed matter. Since short mode is
16754       # case insensitive, let's make it lowercase to improve readability.
16755       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16756       # Now convert it back to Unix-style (cygpath)
16757       input_path=`$CYGPATH -u "$shortmode_path"`
16758       new_path="$input_path"
16759     fi
16760   fi
16761 
16762   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16763   if test "x$test_cygdrive_prefix" = x; then
16764     # As a simple fix, exclude /usr/bin since it's not a real path.
16765     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16766       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16767       # a path prefixed by /cygdrive for fixpath to work.
16768       new_path="$CYGWIN_ROOT_PATH$input_path"
16769     fi
16770   fi
16771 
16772 
16773   if test "x$path" != "x$new_path"; then
16774     TOPDIR="$new_path"
16775     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16776 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16777   fi
16778 
16779     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16780 
16781   path="$TOPDIR"
16782   has_colon=`$ECHO $path | $GREP ^.:`
16783   new_path="$path"
16784   if test "x$has_colon" = x; then
16785     # Not in mixed or Windows style, start by that.
16786     new_path=`cmd //c echo $path`
16787   fi
16788 
16789 
16790   input_path="$new_path"
16791   # Check if we need to convert this using DOS-style short mode. If the path
16792   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16793   # take no chances and rewrite it.
16794   # Note: m4 eats our [], so we need to use [ and ] instead.
16795   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16796   if test "x$has_forbidden_chars" != x; then
16797     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16798     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16799   fi
16800 
16801 
16802   windows_path="$new_path"
16803   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16804     unix_path=`$CYGPATH -u "$windows_path"`
16805     new_path="$unix_path"
16806   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16807     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16808     new_path="$unix_path"
16809   fi
16810 
16811   if test "x$path" != "x$new_path"; then
16812     TOPDIR="$new_path"
16813     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16814 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16815   fi
16816 
16817   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16818   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16819 
16820     else
16821       # We're on a unix platform. Hooray! :)
16822       path="$TOPDIR"
16823       has_space=`$ECHO "$path" | $GREP " "`
16824       if test "x$has_space" != x; then
16825         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16826 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16827         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16828       fi
16829 
16830       # Use eval to expand a potential ~
16831       eval path="$path"
16832       if test ! -f "$path" && test ! -d "$path"; then
16833         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16834       fi
16835 
16836       if test -d "$path"; then
16837         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16838       else
16839         dir="`$DIRNAME "$path"`"
16840         base="`$BASENAME "$path"`"
16841         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16842       fi
16843     fi
16844   fi
16845 
16846 
16847   # Locate the directory of this script.
16848   AUTOCONF_DIR=$TOPDIR/make/autoconf
16849 
16850   # Setup username (for use in adhoc version strings etc)
16851   # Outer [ ] to quote m4.
16852    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16853 
16854 
16855 
16856 # Check if it's a pure open build or if custom sources are to be used.
16857 
16858   # Check whether --enable-openjdk-only was given.
16859 if test "${enable_openjdk_only+set}" = set; then :
16860   enableval=$enable_openjdk_only;
16861 else
16862   enable_openjdk_only="no"
16863 fi
16864 
16865 
16866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16867 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16869 $as_echo "$enable_openjdk_only" >&6; }
16870   if test "x$enable_openjdk_only" = "xyes"; then
16871     SUPPRESS_CUSTOM_EXTENSIONS="true"
16872   elif test "x$enable_openjdk_only" = "xno"; then
16873     SUPPRESS_CUSTOM_EXTENSIONS="false"
16874   else
16875     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16876   fi
16877 
16878   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16879   # the IncludeCustomExtension macro.
16880 
16881 
16882 # Check whether --with-custom-make-dir was given.
16883 if test "${with_custom_make_dir+set}" = set; then :
16884   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
16885 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16886 fi
16887 
16888 
16889 
16890 
16891 # These are needed to be able to create a configuration name (and thus the output directory)
16892 
16893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16894 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16895 
16896 # Check whether --with-jdk-variant was given.
16897 if test "${with_jdk_variant+set}" = set; then :
16898   withval=$with_jdk_variant;
16899 fi
16900 
16901 
16902   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16903     JDK_VARIANT="normal"
16904   else
16905     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16906   fi
16907 
16908 
16909 
16910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16911 $as_echo "$JDK_VARIANT" >&6; }
16912 
16913 
16914   DEBUG_LEVEL="release"
16915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16916 $as_echo_n "checking which debug level to use... " >&6; }
16917   # Check whether --enable-debug was given.
16918 if test "${enable_debug+set}" = set; then :
16919   enableval=$enable_debug;
16920         ENABLE_DEBUG="${enableval}"
16921         DEBUG_LEVEL="fastdebug"
16922 
16923 else
16924   ENABLE_DEBUG="no"
16925 fi
16926 
16927 
16928 
16929 # Check whether --with-debug-level was given.
16930 if test "${with_debug_level+set}" = set; then :
16931   withval=$with_debug_level;
16932         DEBUG_LEVEL="${withval}"
16933         if test "x$ENABLE_DEBUG" = xyes; then
16934           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16935         fi
16936 
16937 fi
16938 
16939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16940 $as_echo "$DEBUG_LEVEL" >&6; }
16941 
16942   if test "x$DEBUG_LEVEL" != xrelease && \
16943       test "x$DEBUG_LEVEL" != xoptimized && \
16944       test "x$DEBUG_LEVEL" != xfastdebug && \
16945       test "x$DEBUG_LEVEL" != xslowdebug; then
16946     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16947   fi
16948 
16949   # Translate DEBUG_LEVEL to debug level used by Hotspot
16950   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16951   if test "x$DEBUG_LEVEL" = xrelease; then
16952     HOTSPOT_DEBUG_LEVEL="product"
16953   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16954     HOTSPOT_DEBUG_LEVEL="debug"
16955   fi
16956 
16957   if test "x$DEBUG_LEVEL" = xoptimized; then
16958     # The debug level 'optimized' is a little special because it is currently only
16959     # applicable to the HotSpot build where it means to build a completely
16960     # optimized version of the VM without any debugging code (like for the
16961     # 'release' debug level which is called 'product' in the HotSpot build) but
16962     # with the exception that it can contain additional code which is otherwise
16963     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16964     # test new and/or experimental features which are not intended for customer
16965     # shipment. Because these new features need to be tested and benchmarked in
16966     # real world scenarios, we want to build the containing JDK at the 'release'
16967     # debug level.
16968     DEBUG_LEVEL="release"
16969   fi
16970 
16971 
16972 
16973 
16974 
16975 
16976 # Check whether --with-jvm-variants was given.
16977 if test "${with_jvm_variants+set}" = set; then :
16978   withval=$with_jvm_variants;
16979 fi
16980 
16981 
16982 
16983 
16984 # Check whether --with-cpu-port was given.
16985 if test "${with_cpu_port+set}" = set; then :
16986   withval=$with_cpu_port;
16987 fi
16988 
16989 
16990   if test "x$with_cpu_port" != x; then
16991     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16992       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16993     fi
16994     if test "x$with_cpu_port" != xarm64 && \
16995         test "x$with_cpu_port" != xaarch64; then
16996       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16997     fi
16998     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16999   fi
17000 
17001 
17002   if test "x$with_jvm_variants" = x; then
17003     with_jvm_variants="server"
17004   fi
17005   JVM_VARIANTS_OPT="$with_jvm_variants"
17006 
17007   # Has the user listed more than one variant?
17008   # Additional [] needed to keep m4 from mangling shell constructs.
17009   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17010     BUILDING_MULTIPLE_JVM_VARIANTS=true
17011   else
17012     BUILDING_MULTIPLE_JVM_VARIANTS=false
17013   fi
17014   # Replace the commas with AND for use in the build directory name.
17015   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17016 
17017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17018 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17019   # JVM_VARIANTS is a space-separated list.
17020   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17021   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17023 $as_echo "$JVM_VARIANTS" >&6; }
17024 
17025   # Check that the selected variants are valid
17026 
17027   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17028   # Notice that the original variant failes on SLES 10 and 11
17029   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17030   STACK=${JVM_VARIANTS// /$'\n'}
17031   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17032   if test "x$INVALID_VARIANTS" != x; then
17033     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17034 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17035     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17036   fi
17037 
17038   # All "special" variants share the same output directory ("server")
17039   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17040   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17041   STACK=${JVM_VARIANTS// /$'\n'}
17042   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17043   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17044     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17045   fi
17046 
17047   # The "main" variant is the one used by other libs to link against during the
17048   # build.
17049   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17050     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17051     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17052       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17053         JVM_VARIANT_MAIN="$variant"
17054         break
17055       fi
17056     done
17057   else
17058     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17059   fi
17060 
17061 
17062 
17063 
17064 
17065   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17066     # zero behaves as a platform and rewrites these values. This is really weird. :(
17067     # We are guaranteed that we do not build any other variants when building zero.
17068     HOTSPOT_TARGET_CPU=zero
17069     HOTSPOT_TARGET_CPU_ARCH=zero
17070   fi
17071 
17072 
17073 # With basic setup done, call the custom early hook.
17074 
17075 
17076 # Check if we have devkits, extra paths or sysroot set.
17077 
17078 
17079 # Check whether --with-devkit was given.
17080 if test "${with_devkit+set}" = set; then :
17081   withval=$with_devkit;
17082 
17083   # Only process if variable expands to non-empty
17084 
17085   if test "x$with_devkit" != x; then
17086     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17087 
17088   # Input might be given as Windows format, start by converting to
17089   # unix format.
17090   path="$with_devkit"
17091   new_path=`$CYGPATH -u "$path"`
17092 
17093   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17094   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17095   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17096   # "foo.exe" is OK but "foo" is an error.
17097   #
17098   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17099   # It is also a way to make sure we got the proper file name for the real test later on.
17100   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17101   if test "x$test_shortpath" = x; then
17102     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17103 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17104     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17105   fi
17106 
17107   # Call helper function which possibly converts this using DOS-style short mode.
17108   # If so, the updated path is stored in $new_path.
17109 
17110   input_path="$new_path"
17111   # Check if we need to convert this using DOS-style short mode. If the path
17112   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17113   # take no chances and rewrite it.
17114   # Note: m4 eats our [], so we need to use [ and ] instead.
17115   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17116   if test "x$has_forbidden_chars" != x; then
17117     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17118     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17119     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17120     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17121       # Going to short mode and back again did indeed matter. Since short mode is
17122       # case insensitive, let's make it lowercase to improve readability.
17123       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17124       # Now convert it back to Unix-style (cygpath)
17125       input_path=`$CYGPATH -u "$shortmode_path"`
17126       new_path="$input_path"
17127     fi
17128   fi
17129 
17130   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17131   if test "x$test_cygdrive_prefix" = x; then
17132     # As a simple fix, exclude /usr/bin since it's not a real path.
17133     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17134       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17135       # a path prefixed by /cygdrive for fixpath to work.
17136       new_path="$CYGWIN_ROOT_PATH$input_path"
17137     fi
17138   fi
17139 
17140 
17141   if test "x$path" != "x$new_path"; then
17142     with_devkit="$new_path"
17143     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17144 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17145   fi
17146 
17147     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17148 
17149   path="$with_devkit"
17150   has_colon=`$ECHO $path | $GREP ^.:`
17151   new_path="$path"
17152   if test "x$has_colon" = x; then
17153     # Not in mixed or Windows style, start by that.
17154     new_path=`cmd //c echo $path`
17155   fi
17156 
17157 
17158   input_path="$new_path"
17159   # Check if we need to convert this using DOS-style short mode. If the path
17160   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17161   # take no chances and rewrite it.
17162   # Note: m4 eats our [], so we need to use [ and ] instead.
17163   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17164   if test "x$has_forbidden_chars" != x; then
17165     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17166     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17167   fi
17168 
17169 
17170   windows_path="$new_path"
17171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17172     unix_path=`$CYGPATH -u "$windows_path"`
17173     new_path="$unix_path"
17174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17175     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17176     new_path="$unix_path"
17177   fi
17178 
17179   if test "x$path" != "x$new_path"; then
17180     with_devkit="$new_path"
17181     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17182 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17183   fi
17184 
17185   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17186   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17187 
17188     else
17189       # We're on a unix platform. Hooray! :)
17190       path="$with_devkit"
17191       has_space=`$ECHO "$path" | $GREP " "`
17192       if test "x$has_space" != x; then
17193         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17194 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17195         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17196       fi
17197 
17198       # Use eval to expand a potential ~
17199       eval path="$path"
17200       if test ! -f "$path" && test ! -d "$path"; then
17201         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17202       fi
17203 
17204       if test -d "$path"; then
17205         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17206       else
17207         dir="`$DIRNAME "$path"`"
17208         base="`$BASENAME "$path"`"
17209         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17210       fi
17211     fi
17212   fi
17213 
17214         DEVKIT_ROOT="$with_devkit"
17215         # Check for a meta data info file in the root of the devkit
17216         if test -f "$DEVKIT_ROOT/devkit.info"; then
17217           . $DEVKIT_ROOT/devkit.info
17218           # This potentially sets the following:
17219           # A descriptive name of the devkit
17220 
17221   if test "x$DEVKIT_NAME" = x; then
17222     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17223   fi
17224 
17225           # Corresponds to --with-extra-path
17226 
17227   if test "x$DEVKIT_EXTRA_PATH" = x; then
17228     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17229   fi
17230 
17231           # Corresponds to --with-toolchain-path
17232 
17233   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17234     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17235   fi
17236 
17237           # Corresponds to --with-sysroot
17238 
17239   if test "x$DEVKIT_SYSROOT" = x; then
17240     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17241   fi
17242 
17243 
17244           # Identifies the Visual Studio version in the devkit
17245 
17246   if test "x$DEVKIT_VS_VERSION" = x; then
17247     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17248   fi
17249 
17250           # The Visual Studio include environment variable
17251 
17252   if test "x$DEVKIT_VS_INCLUDE" = x; then
17253     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17254   fi
17255 
17256           # The Visual Studio lib environment variable
17257 
17258   if test "x$DEVKIT_VS_LIB" = x; then
17259     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17260   fi
17261 
17262           # Corresponds to --with-msvcr-dll
17263 
17264   if test "x$DEVKIT_MSVCR_DLL" = x; then
17265     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17266   fi
17267 
17268           # Corresponds to --with-msvcp-dll
17269 
17270   if test "x$DEVKIT_MSVCP_DLL" = x; then
17271     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17272   fi
17273 
17274         fi
17275 
17276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17277 $as_echo_n "checking for devkit... " >&6; }
17278         if test "x$DEVKIT_NAME" != x; then
17279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17280 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17281         else
17282           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17283 $as_echo "$DEVKIT_ROOT" >&6; }
17284         fi
17285 
17286 
17287   if test "x$DEVKIT_EXTRA_PATH" != x; then
17288     if test "x$EXTRA_PATH" = x; then
17289       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17290     else
17291       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17292     fi
17293   fi
17294 
17295 
17296         # Fallback default of just /bin if DEVKIT_PATH is not defined
17297         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17298           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17299         fi
17300 
17301   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17302     if test "x$TOOLCHAIN_PATH" = x; then
17303       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17304     else
17305       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17306     fi
17307   fi
17308 
17309 
17310         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17311         # places for backwards compatiblity.
17312         if test "x$DEVKIT_SYSROOT" != x; then
17313           SYSROOT="$DEVKIT_SYSROOT"
17314         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17315           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17316         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17317           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17318         fi
17319 
17320         if test "x$DEVKIT_ROOT" != x; then
17321           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17322           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17323             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17324           fi
17325 
17326         fi
17327 
17328 
17329 fi
17330 
17331 
17332   # You can force the sysroot if the sysroot encoded into the compiler tools
17333   # is not correct.
17334 
17335 # Check whether --with-sys-root was given.
17336 if test "${with_sys_root+set}" = set; then :
17337   withval=$with_sys_root; SYSROOT=$with_sys_root
17338 
17339 fi
17340 
17341 
17342 
17343 # Check whether --with-sysroot was given.
17344 if test "${with_sysroot+set}" = set; then :
17345   withval=$with_sysroot; SYSROOT=$with_sysroot
17346 
17347 fi
17348 
17349 
17350 
17351 # Check whether --with-tools-dir was given.
17352 if test "${with_tools_dir+set}" = set; then :
17353   withval=$with_tools_dir;
17354   if test "x$with_tools_dir" != x; then
17355     if test "x$TOOLCHAIN_PATH" = x; then
17356       TOOLCHAIN_PATH="$with_tools_dir"
17357     else
17358       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17359     fi
17360   fi
17361 
17362 
17363 fi
17364 
17365 
17366 
17367 # Check whether --with-toolchain-path was given.
17368 if test "${with_toolchain_path+set}" = set; then :
17369   withval=$with_toolchain_path;
17370   if test "x$with_toolchain_path" != x; then
17371     if test "x$TOOLCHAIN_PATH" = x; then
17372       TOOLCHAIN_PATH="$with_toolchain_path"
17373     else
17374       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17375     fi
17376   fi
17377 
17378 
17379 fi
17380 
17381 
17382 
17383 # Check whether --with-extra-path was given.
17384 if test "${with_extra_path+set}" = set; then :
17385   withval=$with_extra_path;
17386   if test "x$with_extra_path" != x; then
17387     if test "x$EXTRA_PATH" = x; then
17388       EXTRA_PATH="$with_extra_path"
17389     else
17390       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17391     fi
17392   fi
17393 
17394 
17395 fi
17396 
17397 
17398   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17399     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17400     # If not, detect if Xcode is installed by running xcodebuild -version
17401     # if no Xcode installed, xcodebuild exits with 1
17402     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17403     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17404       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17405       # fall back on the stub binary in /usr/bin/xcodebuild
17406       # Extract the first word of "xcodebuild", so it can be a program name with args.
17407 set dummy xcodebuild; ac_word=$2
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17409 $as_echo_n "checking for $ac_word... " >&6; }
17410 if ${ac_cv_path_XCODEBUILD+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413   case $XCODEBUILD in
17414   [\\/]* | ?:[\\/]*)
17415   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17416   ;;
17417   *)
17418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $TOOLCHAIN_PATH
17420 do
17421   IFS=$as_save_IFS
17422   test -z "$as_dir" && as_dir=.
17423     for ac_exec_ext in '' $ac_executable_extensions; do
17424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17427     break 2
17428   fi
17429 done
17430   done
17431 IFS=$as_save_IFS
17432 
17433   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17434   ;;
17435 esac
17436 fi
17437 XCODEBUILD=$ac_cv_path_XCODEBUILD
17438 if test -n "$XCODEBUILD"; then
17439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17440 $as_echo "$XCODEBUILD" >&6; }
17441 else
17442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17443 $as_echo "no" >&6; }
17444 fi
17445 
17446 
17447     else
17448       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17449       # when only the command line tools are installed there are no SDKs, so headers
17450       # are copied into the system frameworks
17451       XCODEBUILD=
17452 
17453     fi
17454 
17455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17456 $as_echo_n "checking for sdk name... " >&6; }
17457 
17458 # Check whether --with-sdk-name was given.
17459 if test "${with_sdk_name+set}" = set; then :
17460   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17461 
17462 fi
17463 
17464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17465 $as_echo "$SDKNAME" >&6; }
17466 
17467     # if toolchain path is specified then don't rely on system headers, they may not compile
17468     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17469     test -z "$TOOLCHAIN_PATH" && \
17470       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17471 
17472     if test -z "$SYSROOT"; then
17473       if test -n "$XCODEBUILD"; then
17474         # if we don't have system headers, use default SDK name (last resort)
17475         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17476           SDKNAME=${SDKNAME:-macosx}
17477         fi
17478 
17479         if test -n "$SDKNAME"; then
17480           # Call xcodebuild to determine SYSROOT
17481           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17482         fi
17483       else
17484         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17485           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
17486         fi
17487       fi
17488     else
17489       # warn user if --with-sdk-name was also set
17490       if test -n "$with_sdk_name"; then
17491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17492 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17493       fi
17494     fi
17495 
17496     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17497       # If no system framework headers, then SYSROOT must be set, or we won't build
17498       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
17499     fi
17500 
17501     # Perform a basic sanity test
17502     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17503       if test -z "$SYSROOT"; then
17504         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
17505       else
17506         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17507       fi
17508     fi
17509 
17510     # set SDKROOT too, Xcode tools will pick it up
17511     SDKROOT="$SYSROOT"
17512 
17513   fi
17514 
17515   # Prepend the extra path to the global path
17516 
17517   if test "x$EXTRA_PATH" != x; then
17518     if test "x$PATH" = x; then
17519       PATH="$EXTRA_PATH"
17520     else
17521       PATH="$EXTRA_PATH:$PATH"
17522     fi
17523   fi
17524 
17525 
17526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17527 $as_echo_n "checking for sysroot... " >&6; }
17528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17529 $as_echo "$SYSROOT" >&6; }
17530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17531 $as_echo_n "checking for toolchain path... " >&6; }
17532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17533 $as_echo "$TOOLCHAIN_PATH" >&6; }
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17535 $as_echo_n "checking for extra path... " >&6; }
17536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17537 $as_echo "$EXTRA_PATH" >&6; }
17538 
17539 
17540 # To properly create a configuration name, we need to have the OpenJDK target
17541 # and options (variants and debug level) parsed.
17542 
17543 
17544 
17545 # Check whether --with-conf-name was given.
17546 if test "${with_conf_name+set}" = set; then :
17547   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17548 fi
17549 
17550 
17551   # Test from where we are running configure, in or outside of src root.
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17553 $as_echo_n "checking where to store configuration... " >&6; }
17554   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17555       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17556       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17557     # We are running configure from the src root.
17558     # Create a default ./build/target-variant-debuglevel output root.
17559     if test "x${CONF_NAME}" = x; then
17560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17561 $as_echo "in default location" >&6; }
17562       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17563     else
17564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17565 $as_echo "in build directory with custom name" >&6; }
17566     fi
17567 
17568     if test "x$CUSTOM_ROOT" != x; then
17569       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17570     else
17571       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17572     fi
17573     $MKDIR -p "$OUTPUTDIR"
17574     if test ! -d "$OUTPUTDIR"; then
17575       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17576     fi
17577   else
17578     # We are running configure from outside of the src dir.
17579     # Then use the current directory as output dir!
17580     # If configuration is situated in normal build directory, just use the build
17581     # directory name as configuration name, otherwise use the complete path.
17582     if test "x${CONF_NAME}" = x; then
17583       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17584     fi
17585     OUTPUTDIR="$CURDIR"
17586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17587 $as_echo "in current directory" >&6; }
17588 
17589     # WARNING: This might be a bad thing to do. You need to be sure you want to
17590     # have a configuration in this directory. Do some sanity checks!
17591 
17592     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17593       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17594       # other files
17595       files_present=`$LS $OUTPUTDIR`
17596       # Configure has already touched config.log and confdefs.h in the current dir when this check
17597       # is performed.
17598       filtered_files=`$ECHO "$files_present" \
17599           | $SED -e 's/config.log//g' \
17600               -e 's/configure.log//g' \
17601               -e 's/confdefs.h//g' \
17602               -e 's/ //g' \
17603           | $TR -d '\n'`
17604       if test "x$filtered_files" != x; then
17605         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17606 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17607         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17608 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17609         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17610 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17611         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17612 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17613         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17614 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17615         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17616 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17617         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17618 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17619         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17620       fi
17621     fi
17622   fi
17623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17624 $as_echo_n "checking what configuration name to use... " >&6; }
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17626 $as_echo "$CONF_NAME" >&6; }
17627 
17628 
17629   # Only process if variable expands to non-empty
17630 
17631   if test "x$OUTPUTDIR" != x; then
17632     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17633 
17634   # Input might be given as Windows format, start by converting to
17635   # unix format.
17636   path="$OUTPUTDIR"
17637   new_path=`$CYGPATH -u "$path"`
17638 
17639   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17640   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17641   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17642   # "foo.exe" is OK but "foo" is an error.
17643   #
17644   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17645   # It is also a way to make sure we got the proper file name for the real test later on.
17646   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17647   if test "x$test_shortpath" = x; then
17648     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17649 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17650     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17651   fi
17652 
17653   # Call helper function which possibly converts this using DOS-style short mode.
17654   # If so, the updated path is stored in $new_path.
17655 
17656   input_path="$new_path"
17657   # Check if we need to convert this using DOS-style short mode. If the path
17658   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17659   # take no chances and rewrite it.
17660   # Note: m4 eats our [], so we need to use [ and ] instead.
17661   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17662   if test "x$has_forbidden_chars" != x; then
17663     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17664     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17665     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17666     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17667       # Going to short mode and back again did indeed matter. Since short mode is
17668       # case insensitive, let's make it lowercase to improve readability.
17669       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17670       # Now convert it back to Unix-style (cygpath)
17671       input_path=`$CYGPATH -u "$shortmode_path"`
17672       new_path="$input_path"
17673     fi
17674   fi
17675 
17676   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17677   if test "x$test_cygdrive_prefix" = x; then
17678     # As a simple fix, exclude /usr/bin since it's not a real path.
17679     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17680       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17681       # a path prefixed by /cygdrive for fixpath to work.
17682       new_path="$CYGWIN_ROOT_PATH$input_path"
17683     fi
17684   fi
17685 
17686 
17687   if test "x$path" != "x$new_path"; then
17688     OUTPUTDIR="$new_path"
17689     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17690 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17691   fi
17692 
17693     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17694 
17695   path="$OUTPUTDIR"
17696   has_colon=`$ECHO $path | $GREP ^.:`
17697   new_path="$path"
17698   if test "x$has_colon" = x; then
17699     # Not in mixed or Windows style, start by that.
17700     new_path=`cmd //c echo $path`
17701   fi
17702 
17703 
17704   input_path="$new_path"
17705   # Check if we need to convert this using DOS-style short mode. If the path
17706   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17707   # take no chances and rewrite it.
17708   # Note: m4 eats our [], so we need to use [ and ] instead.
17709   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17710   if test "x$has_forbidden_chars" != x; then
17711     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17712     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17713   fi
17714 
17715 
17716   windows_path="$new_path"
17717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17718     unix_path=`$CYGPATH -u "$windows_path"`
17719     new_path="$unix_path"
17720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17722     new_path="$unix_path"
17723   fi
17724 
17725   if test "x$path" != "x$new_path"; then
17726     OUTPUTDIR="$new_path"
17727     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17728 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17729   fi
17730 
17731   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17732   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17733 
17734     else
17735       # We're on a unix platform. Hooray! :)
17736       path="$OUTPUTDIR"
17737       has_space=`$ECHO "$path" | $GREP " "`
17738       if test "x$has_space" != x; then
17739         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17740 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17741         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17742       fi
17743 
17744       # Use eval to expand a potential ~
17745       eval path="$path"
17746       if test ! -f "$path" && test ! -d "$path"; then
17747         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17748       fi
17749 
17750       if test -d "$path"; then
17751         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17752       else
17753         dir="`$DIRNAME "$path"`"
17754         base="`$BASENAME "$path"`"
17755         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17756       fi
17757     fi
17758   fi
17759 
17760 
17761   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17762   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17763 
17764   SPEC="$OUTPUTDIR/spec.gmk"
17765 
17766 
17767 
17768 
17769 
17770   # The spec.gmk file contains all variables for the make system.
17771   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17772 
17773   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17774   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17775 
17776   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17777   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17778 
17779   # The compare.sh is used to compare the build output to other builds.
17780   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17781 
17782   # The generated Makefile knows where the spec.gmk is and where the source is.
17783   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17784   # which will look for generated configurations
17785   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17786 
17787 
17788 
17789 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17790 
17791   for ac_prog in apt-get yum brew port pkgutil pkgadd
17792 do
17793   # Extract the first word of "$ac_prog", so it can be a program name with args.
17794 set dummy $ac_prog; ac_word=$2
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17796 $as_echo_n "checking for $ac_word... " >&6; }
17797 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17798   $as_echo_n "(cached) " >&6
17799 else
17800   if test -n "$PKGHANDLER"; then
17801   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17802 else
17803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17804 for as_dir in $PATH
17805 do
17806   IFS=$as_save_IFS
17807   test -z "$as_dir" && as_dir=.
17808     for ac_exec_ext in '' $ac_executable_extensions; do
17809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17810     ac_cv_prog_PKGHANDLER="$ac_prog"
17811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17812     break 2
17813   fi
17814 done
17815   done
17816 IFS=$as_save_IFS
17817 
17818 fi
17819 fi
17820 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17821 if test -n "$PKGHANDLER"; then
17822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17823 $as_echo "$PKGHANDLER" >&6; }
17824 else
17825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17826 $as_echo "no" >&6; }
17827 fi
17828 
17829 
17830   test -n "$PKGHANDLER" && break
17831 done
17832 
17833 
17834 
17835 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17836 
17837 
17838 
17839   # Publish this variable in the help.
17840 
17841 
17842   if [ -z "${MAKE+x}" ]; then
17843     # The variable is not set by user, try to locate tool using the code snippet
17844 
17845     # Try our hardest to locate a correct version of GNU make
17846     for ac_prog in gmake
17847 do
17848   # Extract the first word of "$ac_prog", so it can be a program name with args.
17849 set dummy $ac_prog; ac_word=$2
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17851 $as_echo_n "checking for $ac_word... " >&6; }
17852 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17853   $as_echo_n "(cached) " >&6
17854 else
17855   case $CHECK_GMAKE in
17856   [\\/]* | ?:[\\/]*)
17857   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17858   ;;
17859   *)
17860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17861 for as_dir in $PATH
17862 do
17863   IFS=$as_save_IFS
17864   test -z "$as_dir" && as_dir=.
17865     for ac_exec_ext in '' $ac_executable_extensions; do
17866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17867     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869     break 2
17870   fi
17871 done
17872   done
17873 IFS=$as_save_IFS
17874 
17875   ;;
17876 esac
17877 fi
17878 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17879 if test -n "$CHECK_GMAKE"; then
17880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17881 $as_echo "$CHECK_GMAKE" >&6; }
17882 else
17883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17884 $as_echo "no" >&6; }
17885 fi
17886 
17887 
17888   test -n "$CHECK_GMAKE" && break
17889 done
17890 
17891 
17892   MAKE_CANDIDATE=""$CHECK_GMAKE""
17893   DESCRIPTION="gmake in PATH"
17894 
17895   # On Cygwin, we require a newer version of make than on other platforms
17896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17897     MAKE_VERSION_EXPR="-e 4\."
17898     MAKE_REQUIRED_VERSION="4.0"
17899    else
17900     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17901     MAKE_REQUIRED_VERSION="3.81"
17902   fi
17903 
17904   if test "x$MAKE_CANDIDATE" != x; then
17905     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17906 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17907     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17908     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17909     if test "x$IS_GNU_MAKE" = x; then
17910       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17911 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17912     else
17913       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17914       if test "x$IS_MODERN_MAKE" = x; then
17915         { $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
17916 $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;}
17917       else
17918         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17919           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17920             MAKE_EXPECTED_ENV='cygwin'
17921           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17922             MAKE_EXPECTED_ENV='msys'
17923           else
17924             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17925           fi
17926           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17927           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17928         else
17929           # Not relevant for non-Windows
17930           IS_MAKE_CORRECT_ENV=true
17931         fi
17932         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17933           { $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
17934 $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;}
17935         else
17936           FOUND_MAKE=$MAKE_CANDIDATE
17937 
17938   # Only process if variable expands to non-empty
17939 
17940   if test "x$FOUND_MAKE" != x; then
17941     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17942 
17943   # First separate the path from the arguments. This will split at the first
17944   # space.
17945   complete="$FOUND_MAKE"
17946   path="${complete%% *}"
17947   tmp="$complete EOL"
17948   arguments="${tmp#* }"
17949 
17950   # Input might be given as Windows format, start by converting to
17951   # unix format.
17952   new_path=`$CYGPATH -u "$path"`
17953 
17954   # Now try to locate executable using which
17955   new_path=`$WHICH "$new_path" 2> /dev/null`
17956   # bat and cmd files are not always considered executable in cygwin causing which
17957   # to not find them
17958   if test "x$new_path" = x \
17959       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17960       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17961     new_path=`$CYGPATH -u "$path"`
17962   fi
17963   if test "x$new_path" = x; then
17964     # Oops. Which didn't find the executable.
17965     # The splitting of arguments from the executable at a space might have been incorrect,
17966     # since paths with space are more likely in Windows. Give it another try with the whole
17967     # argument.
17968     path="$complete"
17969     arguments="EOL"
17970     new_path=`$CYGPATH -u "$path"`
17971     new_path=`$WHICH "$new_path" 2> /dev/null`
17972     # bat and cmd files are not always considered executable in cygwin causing which
17973     # to not find them
17974     if test "x$new_path" = x \
17975         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17976         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17977       new_path=`$CYGPATH -u "$path"`
17978     fi
17979     if test "x$new_path" = x; then
17980       # It's still not found. Now this is an unrecoverable error.
17981       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17982 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17983       has_space=`$ECHO "$complete" | $GREP " "`
17984       if test "x$has_space" != x; then
17985         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17987       fi
17988       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17989     fi
17990   fi
17991 
17992   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17993   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17994   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17995   # "foo.exe" is OK but "foo" is an error.
17996   #
17997   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17998   # It is also a way to make sure we got the proper file name for the real test later on.
17999   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18000   if test "x$test_shortpath" = x; then
18001     # Short path failed, file does not exist as specified.
18002     # Try adding .exe or .cmd
18003     if test -f "${new_path}.exe"; then
18004       input_to_shortpath="${new_path}.exe"
18005     elif test -f "${new_path}.cmd"; then
18006       input_to_shortpath="${new_path}.cmd"
18007     else
18008       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18010       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18011 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18012       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18013     fi
18014   else
18015     input_to_shortpath="$new_path"
18016   fi
18017 
18018   # Call helper function which possibly converts this using DOS-style short mode.
18019   # If so, the updated path is stored in $new_path.
18020   new_path="$input_to_shortpath"
18021 
18022   input_path="$input_to_shortpath"
18023   # Check if we need to convert this using DOS-style short mode. If the path
18024   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18025   # take no chances and rewrite it.
18026   # Note: m4 eats our [], so we need to use [ and ] instead.
18027   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18028   if test "x$has_forbidden_chars" != x; then
18029     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18030     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18031     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18032     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18033       # Going to short mode and back again did indeed matter. Since short mode is
18034       # case insensitive, let's make it lowercase to improve readability.
18035       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18036       # Now convert it back to Unix-style (cygpath)
18037       input_path=`$CYGPATH -u "$shortmode_path"`
18038       new_path="$input_path"
18039     fi
18040   fi
18041 
18042   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18043   if test "x$test_cygdrive_prefix" = x; then
18044     # As a simple fix, exclude /usr/bin since it's not a real path.
18045     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18046       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18047       # a path prefixed by /cygdrive for fixpath to work.
18048       new_path="$CYGWIN_ROOT_PATH$input_path"
18049     fi
18050   fi
18051 
18052   # remove trailing .exe if any
18053   new_path="${new_path/%.exe/}"
18054 
18055     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18056 
18057   # First separate the path from the arguments. This will split at the first
18058   # space.
18059   complete="$FOUND_MAKE"
18060   path="${complete%% *}"
18061   tmp="$complete EOL"
18062   arguments="${tmp#* }"
18063 
18064   # Input might be given as Windows format, start by converting to
18065   # unix format.
18066   new_path="$path"
18067 
18068   windows_path="$new_path"
18069   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18070     unix_path=`$CYGPATH -u "$windows_path"`
18071     new_path="$unix_path"
18072   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18073     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18074     new_path="$unix_path"
18075   fi
18076 
18077 
18078   # Now try to locate executable using which
18079   new_path=`$WHICH "$new_path" 2> /dev/null`
18080 
18081   if test "x$new_path" = x; then
18082     # Oops. Which didn't find the executable.
18083     # The splitting of arguments from the executable at a space might have been incorrect,
18084     # since paths with space are more likely in Windows. Give it another try with the whole
18085     # argument.
18086     path="$complete"
18087     arguments="EOL"
18088     new_path="$path"
18089 
18090   windows_path="$new_path"
18091   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18092     unix_path=`$CYGPATH -u "$windows_path"`
18093     new_path="$unix_path"
18094   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18095     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18096     new_path="$unix_path"
18097   fi
18098 
18099 
18100     new_path=`$WHICH "$new_path" 2> /dev/null`
18101     # bat and cmd files are not always considered executable in MSYS causing which
18102     # to not find them
18103     if test "x$new_path" = x \
18104         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18105         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18106       new_path="$path"
18107 
18108   windows_path="$new_path"
18109   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18110     unix_path=`$CYGPATH -u "$windows_path"`
18111     new_path="$unix_path"
18112   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18113     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18114     new_path="$unix_path"
18115   fi
18116 
18117     fi
18118 
18119     if test "x$new_path" = x; then
18120       # It's still not found. Now this is an unrecoverable error.
18121       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18122 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18123       has_space=`$ECHO "$complete" | $GREP " "`
18124       if test "x$has_space" != x; then
18125         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18126 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18127       fi
18128       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18129     fi
18130   fi
18131 
18132   # Now new_path has a complete unix path to the binary
18133   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18134     # Keep paths in /bin as-is, but remove trailing .exe if any
18135     new_path="${new_path/%.exe/}"
18136     # Do not save /bin paths to all_fixpath_prefixes!
18137   else
18138     # Not in mixed or Windows style, start by that.
18139     new_path=`cmd //c echo $new_path`
18140 
18141   input_path="$new_path"
18142   # Check if we need to convert this using DOS-style short mode. If the path
18143   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18144   # take no chances and rewrite it.
18145   # Note: m4 eats our [], so we need to use [ and ] instead.
18146   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18147   if test "x$has_forbidden_chars" != x; then
18148     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18149     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18150   fi
18151 
18152     # Output is in $new_path
18153 
18154   windows_path="$new_path"
18155   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18156     unix_path=`$CYGPATH -u "$windows_path"`
18157     new_path="$unix_path"
18158   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18159     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18160     new_path="$unix_path"
18161   fi
18162 
18163     # remove trailing .exe if any
18164     new_path="${new_path/%.exe/}"
18165 
18166     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18167     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18168   fi
18169 
18170     else
18171       # We're on a unix platform. Hooray! :)
18172       # First separate the path from the arguments. This will split at the first
18173       # space.
18174       complete="$FOUND_MAKE"
18175       path="${complete%% *}"
18176       tmp="$complete EOL"
18177       arguments="${tmp#* }"
18178 
18179       # Cannot rely on the command "which" here since it doesn't always work.
18180       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18181       if test -z "$is_absolute_path"; then
18182         # Path to executable is not absolute. Find it.
18183         IFS_save="$IFS"
18184         IFS=:
18185         for p in $PATH; do
18186           if test -f "$p/$path" && test -x "$p/$path"; then
18187             new_path="$p/$path"
18188             break
18189           fi
18190         done
18191         IFS="$IFS_save"
18192       else
18193         # This is an absolute path, we can use it without further modifications.
18194         new_path="$path"
18195       fi
18196 
18197       if test "x$new_path" = x; then
18198         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18200         has_space=`$ECHO "$complete" | $GREP " "`
18201         if test "x$has_space" != x; then
18202           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18203 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18204         fi
18205         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18206       fi
18207     fi
18208 
18209     # Now join together the path and the arguments once again
18210     if test "x$arguments" != xEOL; then
18211       new_complete="$new_path ${arguments% *}"
18212     else
18213       new_complete="$new_path"
18214     fi
18215 
18216     if test "x$complete" != "x$new_complete"; then
18217       FOUND_MAKE="$new_complete"
18218       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18219 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18220     fi
18221   fi
18222 
18223         fi
18224       fi
18225     fi
18226   fi
18227 
18228 
18229     if test "x$FOUND_MAKE" = x; then
18230       for ac_prog in make
18231 do
18232   # Extract the first word of "$ac_prog", so it can be a program name with args.
18233 set dummy $ac_prog; ac_word=$2
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18235 $as_echo_n "checking for $ac_word... " >&6; }
18236 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18237   $as_echo_n "(cached) " >&6
18238 else
18239   case $CHECK_MAKE in
18240   [\\/]* | ?:[\\/]*)
18241   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18242   ;;
18243   *)
18244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18245 for as_dir in $PATH
18246 do
18247   IFS=$as_save_IFS
18248   test -z "$as_dir" && as_dir=.
18249     for ac_exec_ext in '' $ac_executable_extensions; do
18250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18251     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18253     break 2
18254   fi
18255 done
18256   done
18257 IFS=$as_save_IFS
18258 
18259   ;;
18260 esac
18261 fi
18262 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18263 if test -n "$CHECK_MAKE"; then
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18265 $as_echo "$CHECK_MAKE" >&6; }
18266 else
18267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18269 fi
18270 
18271 
18272   test -n "$CHECK_MAKE" && break
18273 done
18274 
18275 
18276   MAKE_CANDIDATE=""$CHECK_MAKE""
18277   DESCRIPTION="make in PATH"
18278 
18279   # On Cygwin, we require a newer version of make than on other platforms
18280   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18281     MAKE_VERSION_EXPR="-e 4\."
18282     MAKE_REQUIRED_VERSION="4.0"
18283    else
18284     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18285     MAKE_REQUIRED_VERSION="3.81"
18286   fi
18287 
18288   if test "x$MAKE_CANDIDATE" != x; then
18289     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18290 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18291     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18292     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18293     if test "x$IS_GNU_MAKE" = x; then
18294       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18295 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18296     else
18297       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18298       if test "x$IS_MODERN_MAKE" = x; then
18299         { $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
18300 $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;}
18301       else
18302         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18303           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18304             MAKE_EXPECTED_ENV='cygwin'
18305           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18306             MAKE_EXPECTED_ENV='msys'
18307           else
18308             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18309           fi
18310           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18311           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18312         else
18313           # Not relevant for non-Windows
18314           IS_MAKE_CORRECT_ENV=true
18315         fi
18316         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18317           { $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
18318 $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;}
18319         else
18320           FOUND_MAKE=$MAKE_CANDIDATE
18321 
18322   # Only process if variable expands to non-empty
18323 
18324   if test "x$FOUND_MAKE" != x; then
18325     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18326 
18327   # First separate the path from the arguments. This will split at the first
18328   # space.
18329   complete="$FOUND_MAKE"
18330   path="${complete%% *}"
18331   tmp="$complete EOL"
18332   arguments="${tmp#* }"
18333 
18334   # Input might be given as Windows format, start by converting to
18335   # unix format.
18336   new_path=`$CYGPATH -u "$path"`
18337 
18338   # Now try to locate executable using which
18339   new_path=`$WHICH "$new_path" 2> /dev/null`
18340   # bat and cmd files are not always considered executable in cygwin causing which
18341   # to not find them
18342   if test "x$new_path" = x \
18343       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18344       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18345     new_path=`$CYGPATH -u "$path"`
18346   fi
18347   if test "x$new_path" = x; then
18348     # Oops. Which didn't find the executable.
18349     # The splitting of arguments from the executable at a space might have been incorrect,
18350     # since paths with space are more likely in Windows. Give it another try with the whole
18351     # argument.
18352     path="$complete"
18353     arguments="EOL"
18354     new_path=`$CYGPATH -u "$path"`
18355     new_path=`$WHICH "$new_path" 2> /dev/null`
18356     # bat and cmd files are not always considered executable in cygwin causing which
18357     # to not find them
18358     if test "x$new_path" = x \
18359         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18360         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18361       new_path=`$CYGPATH -u "$path"`
18362     fi
18363     if test "x$new_path" = x; then
18364       # It's still not found. Now this is an unrecoverable error.
18365       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18366 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18367       has_space=`$ECHO "$complete" | $GREP " "`
18368       if test "x$has_space" != x; then
18369         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18370 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18371       fi
18372       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18373     fi
18374   fi
18375 
18376   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18377   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18378   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18379   # "foo.exe" is OK but "foo" is an error.
18380   #
18381   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18382   # It is also a way to make sure we got the proper file name for the real test later on.
18383   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18384   if test "x$test_shortpath" = x; then
18385     # Short path failed, file does not exist as specified.
18386     # Try adding .exe or .cmd
18387     if test -f "${new_path}.exe"; then
18388       input_to_shortpath="${new_path}.exe"
18389     elif test -f "${new_path}.cmd"; then
18390       input_to_shortpath="${new_path}.cmd"
18391     else
18392       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18393 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18394       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18395 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18396       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18397     fi
18398   else
18399     input_to_shortpath="$new_path"
18400   fi
18401 
18402   # Call helper function which possibly converts this using DOS-style short mode.
18403   # If so, the updated path is stored in $new_path.
18404   new_path="$input_to_shortpath"
18405 
18406   input_path="$input_to_shortpath"
18407   # Check if we need to convert this using DOS-style short mode. If the path
18408   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18409   # take no chances and rewrite it.
18410   # Note: m4 eats our [], so we need to use [ and ] instead.
18411   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18412   if test "x$has_forbidden_chars" != x; then
18413     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18414     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18415     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18416     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18417       # Going to short mode and back again did indeed matter. Since short mode is
18418       # case insensitive, let's make it lowercase to improve readability.
18419       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18420       # Now convert it back to Unix-style (cygpath)
18421       input_path=`$CYGPATH -u "$shortmode_path"`
18422       new_path="$input_path"
18423     fi
18424   fi
18425 
18426   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18427   if test "x$test_cygdrive_prefix" = x; then
18428     # As a simple fix, exclude /usr/bin since it's not a real path.
18429     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18430       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18431       # a path prefixed by /cygdrive for fixpath to work.
18432       new_path="$CYGWIN_ROOT_PATH$input_path"
18433     fi
18434   fi
18435 
18436   # remove trailing .exe if any
18437   new_path="${new_path/%.exe/}"
18438 
18439     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18440 
18441   # First separate the path from the arguments. This will split at the first
18442   # space.
18443   complete="$FOUND_MAKE"
18444   path="${complete%% *}"
18445   tmp="$complete EOL"
18446   arguments="${tmp#* }"
18447 
18448   # Input might be given as Windows format, start by converting to
18449   # unix format.
18450   new_path="$path"
18451 
18452   windows_path="$new_path"
18453   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18454     unix_path=`$CYGPATH -u "$windows_path"`
18455     new_path="$unix_path"
18456   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18457     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18458     new_path="$unix_path"
18459   fi
18460 
18461 
18462   # Now try to locate executable using which
18463   new_path=`$WHICH "$new_path" 2> /dev/null`
18464 
18465   if test "x$new_path" = x; then
18466     # Oops. Which didn't find the executable.
18467     # The splitting of arguments from the executable at a space might have been incorrect,
18468     # since paths with space are more likely in Windows. Give it another try with the whole
18469     # argument.
18470     path="$complete"
18471     arguments="EOL"
18472     new_path="$path"
18473 
18474   windows_path="$new_path"
18475   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18476     unix_path=`$CYGPATH -u "$windows_path"`
18477     new_path="$unix_path"
18478   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18479     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18480     new_path="$unix_path"
18481   fi
18482 
18483 
18484     new_path=`$WHICH "$new_path" 2> /dev/null`
18485     # bat and cmd files are not always considered executable in MSYS causing which
18486     # to not find them
18487     if test "x$new_path" = x \
18488         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18489         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18490       new_path="$path"
18491 
18492   windows_path="$new_path"
18493   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18494     unix_path=`$CYGPATH -u "$windows_path"`
18495     new_path="$unix_path"
18496   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18497     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18498     new_path="$unix_path"
18499   fi
18500 
18501     fi
18502 
18503     if test "x$new_path" = x; then
18504       # It's still not found. Now this is an unrecoverable error.
18505       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18506 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18507       has_space=`$ECHO "$complete" | $GREP " "`
18508       if test "x$has_space" != x; then
18509         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18510 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18511       fi
18512       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18513     fi
18514   fi
18515 
18516   # Now new_path has a complete unix path to the binary
18517   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18518     # Keep paths in /bin as-is, but remove trailing .exe if any
18519     new_path="${new_path/%.exe/}"
18520     # Do not save /bin paths to all_fixpath_prefixes!
18521   else
18522     # Not in mixed or Windows style, start by that.
18523     new_path=`cmd //c echo $new_path`
18524 
18525   input_path="$new_path"
18526   # Check if we need to convert this using DOS-style short mode. If the path
18527   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18528   # take no chances and rewrite it.
18529   # Note: m4 eats our [], so we need to use [ and ] instead.
18530   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18531   if test "x$has_forbidden_chars" != x; then
18532     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18533     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18534   fi
18535 
18536     # Output is in $new_path
18537 
18538   windows_path="$new_path"
18539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18540     unix_path=`$CYGPATH -u "$windows_path"`
18541     new_path="$unix_path"
18542   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18543     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18544     new_path="$unix_path"
18545   fi
18546 
18547     # remove trailing .exe if any
18548     new_path="${new_path/%.exe/}"
18549 
18550     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18551     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18552   fi
18553 
18554     else
18555       # We're on a unix platform. Hooray! :)
18556       # First separate the path from the arguments. This will split at the first
18557       # space.
18558       complete="$FOUND_MAKE"
18559       path="${complete%% *}"
18560       tmp="$complete EOL"
18561       arguments="${tmp#* }"
18562 
18563       # Cannot rely on the command "which" here since it doesn't always work.
18564       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18565       if test -z "$is_absolute_path"; then
18566         # Path to executable is not absolute. Find it.
18567         IFS_save="$IFS"
18568         IFS=:
18569         for p in $PATH; do
18570           if test -f "$p/$path" && test -x "$p/$path"; then
18571             new_path="$p/$path"
18572             break
18573           fi
18574         done
18575         IFS="$IFS_save"
18576       else
18577         # This is an absolute path, we can use it without further modifications.
18578         new_path="$path"
18579       fi
18580 
18581       if test "x$new_path" = x; then
18582         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18583 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18584         has_space=`$ECHO "$complete" | $GREP " "`
18585         if test "x$has_space" != x; then
18586           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18587 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18588         fi
18589         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18590       fi
18591     fi
18592 
18593     # Now join together the path and the arguments once again
18594     if test "x$arguments" != xEOL; then
18595       new_complete="$new_path ${arguments% *}"
18596     else
18597       new_complete="$new_path"
18598     fi
18599 
18600     if test "x$complete" != "x$new_complete"; then
18601       FOUND_MAKE="$new_complete"
18602       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18603 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18604     fi
18605   fi
18606 
18607         fi
18608       fi
18609     fi
18610   fi
18611 
18612     fi
18613 
18614     if test "x$FOUND_MAKE" = x; then
18615       if test "x$TOOLCHAIN_PATH" != x; then
18616         # We have a toolchain path, check that as well before giving up.
18617         OLD_PATH=$PATH
18618         PATH=$TOOLCHAIN_PATH:$PATH
18619         for ac_prog in gmake
18620 do
18621   # Extract the first word of "$ac_prog", so it can be a program name with args.
18622 set dummy $ac_prog; ac_word=$2
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18624 $as_echo_n "checking for $ac_word... " >&6; }
18625 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18626   $as_echo_n "(cached) " >&6
18627 else
18628   case $CHECK_TOOLSDIR_GMAKE in
18629   [\\/]* | ?:[\\/]*)
18630   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18631   ;;
18632   *)
18633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18634 for as_dir in $PATH
18635 do
18636   IFS=$as_save_IFS
18637   test -z "$as_dir" && as_dir=.
18638     for ac_exec_ext in '' $ac_executable_extensions; do
18639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18640     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18642     break 2
18643   fi
18644 done
18645   done
18646 IFS=$as_save_IFS
18647 
18648   ;;
18649 esac
18650 fi
18651 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18652 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18654 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18655 else
18656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18657 $as_echo "no" >&6; }
18658 fi
18659 
18660 
18661   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18662 done
18663 
18664 
18665   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18666   DESCRIPTION="gmake in tools-dir"
18667 
18668   # On Cygwin, we require a newer version of make than on other platforms
18669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18670     MAKE_VERSION_EXPR="-e 4\."
18671     MAKE_REQUIRED_VERSION="4.0"
18672    else
18673     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18674     MAKE_REQUIRED_VERSION="3.81"
18675   fi
18676 
18677   if test "x$MAKE_CANDIDATE" != x; then
18678     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18679 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18680     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18681     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18682     if test "x$IS_GNU_MAKE" = x; then
18683       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18684 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18685     else
18686       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18687       if test "x$IS_MODERN_MAKE" = x; then
18688         { $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
18689 $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;}
18690       else
18691         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18692           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18693             MAKE_EXPECTED_ENV='cygwin'
18694           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18695             MAKE_EXPECTED_ENV='msys'
18696           else
18697             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18698           fi
18699           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18700           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18701         else
18702           # Not relevant for non-Windows
18703           IS_MAKE_CORRECT_ENV=true
18704         fi
18705         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18706           { $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
18707 $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;}
18708         else
18709           FOUND_MAKE=$MAKE_CANDIDATE
18710 
18711   # Only process if variable expands to non-empty
18712 
18713   if test "x$FOUND_MAKE" != x; then
18714     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18715 
18716   # First separate the path from the arguments. This will split at the first
18717   # space.
18718   complete="$FOUND_MAKE"
18719   path="${complete%% *}"
18720   tmp="$complete EOL"
18721   arguments="${tmp#* }"
18722 
18723   # Input might be given as Windows format, start by converting to
18724   # unix format.
18725   new_path=`$CYGPATH -u "$path"`
18726 
18727   # Now try to locate executable using which
18728   new_path=`$WHICH "$new_path" 2> /dev/null`
18729   # bat and cmd files are not always considered executable in cygwin causing which
18730   # to not find them
18731   if test "x$new_path" = x \
18732       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18733       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18734     new_path=`$CYGPATH -u "$path"`
18735   fi
18736   if test "x$new_path" = x; then
18737     # Oops. Which didn't find the executable.
18738     # The splitting of arguments from the executable at a space might have been incorrect,
18739     # since paths with space are more likely in Windows. Give it another try with the whole
18740     # argument.
18741     path="$complete"
18742     arguments="EOL"
18743     new_path=`$CYGPATH -u "$path"`
18744     new_path=`$WHICH "$new_path" 2> /dev/null`
18745     # bat and cmd files are not always considered executable in cygwin causing which
18746     # to not find them
18747     if test "x$new_path" = x \
18748         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18749         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18750       new_path=`$CYGPATH -u "$path"`
18751     fi
18752     if test "x$new_path" = x; then
18753       # It's still not found. Now this is an unrecoverable error.
18754       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18755 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18756       has_space=`$ECHO "$complete" | $GREP " "`
18757       if test "x$has_space" != x; then
18758         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18759 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18760       fi
18761       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18762     fi
18763   fi
18764 
18765   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18766   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18767   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18768   # "foo.exe" is OK but "foo" is an error.
18769   #
18770   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18771   # It is also a way to make sure we got the proper file name for the real test later on.
18772   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18773   if test "x$test_shortpath" = x; then
18774     # Short path failed, file does not exist as specified.
18775     # Try adding .exe or .cmd
18776     if test -f "${new_path}.exe"; then
18777       input_to_shortpath="${new_path}.exe"
18778     elif test -f "${new_path}.cmd"; then
18779       input_to_shortpath="${new_path}.cmd"
18780     else
18781       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18782 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18783       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18784 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18785       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18786     fi
18787   else
18788     input_to_shortpath="$new_path"
18789   fi
18790 
18791   # Call helper function which possibly converts this using DOS-style short mode.
18792   # If so, the updated path is stored in $new_path.
18793   new_path="$input_to_shortpath"
18794 
18795   input_path="$input_to_shortpath"
18796   # Check if we need to convert this using DOS-style short mode. If the path
18797   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18798   # take no chances and rewrite it.
18799   # Note: m4 eats our [], so we need to use [ and ] instead.
18800   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18801   if test "x$has_forbidden_chars" != x; then
18802     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18803     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18804     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18805     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18806       # Going to short mode and back again did indeed matter. Since short mode is
18807       # case insensitive, let's make it lowercase to improve readability.
18808       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18809       # Now convert it back to Unix-style (cygpath)
18810       input_path=`$CYGPATH -u "$shortmode_path"`
18811       new_path="$input_path"
18812     fi
18813   fi
18814 
18815   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18816   if test "x$test_cygdrive_prefix" = x; then
18817     # As a simple fix, exclude /usr/bin since it's not a real path.
18818     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18819       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18820       # a path prefixed by /cygdrive for fixpath to work.
18821       new_path="$CYGWIN_ROOT_PATH$input_path"
18822     fi
18823   fi
18824 
18825   # remove trailing .exe if any
18826   new_path="${new_path/%.exe/}"
18827 
18828     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18829 
18830   # First separate the path from the arguments. This will split at the first
18831   # space.
18832   complete="$FOUND_MAKE"
18833   path="${complete%% *}"
18834   tmp="$complete EOL"
18835   arguments="${tmp#* }"
18836 
18837   # Input might be given as Windows format, start by converting to
18838   # unix format.
18839   new_path="$path"
18840 
18841   windows_path="$new_path"
18842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18843     unix_path=`$CYGPATH -u "$windows_path"`
18844     new_path="$unix_path"
18845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18846     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18847     new_path="$unix_path"
18848   fi
18849 
18850 
18851   # Now try to locate executable using which
18852   new_path=`$WHICH "$new_path" 2> /dev/null`
18853 
18854   if test "x$new_path" = x; then
18855     # Oops. Which didn't find the executable.
18856     # The splitting of arguments from the executable at a space might have been incorrect,
18857     # since paths with space are more likely in Windows. Give it another try with the whole
18858     # argument.
18859     path="$complete"
18860     arguments="EOL"
18861     new_path="$path"
18862 
18863   windows_path="$new_path"
18864   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18865     unix_path=`$CYGPATH -u "$windows_path"`
18866     new_path="$unix_path"
18867   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18868     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18869     new_path="$unix_path"
18870   fi
18871 
18872 
18873     new_path=`$WHICH "$new_path" 2> /dev/null`
18874     # bat and cmd files are not always considered executable in MSYS causing which
18875     # to not find them
18876     if test "x$new_path" = x \
18877         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18878         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18879       new_path="$path"
18880 
18881   windows_path="$new_path"
18882   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18883     unix_path=`$CYGPATH -u "$windows_path"`
18884     new_path="$unix_path"
18885   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18886     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18887     new_path="$unix_path"
18888   fi
18889 
18890     fi
18891 
18892     if test "x$new_path" = x; then
18893       # It's still not found. Now this is an unrecoverable error.
18894       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18895 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18896       has_space=`$ECHO "$complete" | $GREP " "`
18897       if test "x$has_space" != x; then
18898         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18899 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18900       fi
18901       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18902     fi
18903   fi
18904 
18905   # Now new_path has a complete unix path to the binary
18906   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18907     # Keep paths in /bin as-is, but remove trailing .exe if any
18908     new_path="${new_path/%.exe/}"
18909     # Do not save /bin paths to all_fixpath_prefixes!
18910   else
18911     # Not in mixed or Windows style, start by that.
18912     new_path=`cmd //c echo $new_path`
18913 
18914   input_path="$new_path"
18915   # Check if we need to convert this using DOS-style short mode. If the path
18916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18917   # take no chances and rewrite it.
18918   # Note: m4 eats our [], so we need to use [ and ] instead.
18919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18920   if test "x$has_forbidden_chars" != x; then
18921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18922     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18923   fi
18924 
18925     # Output is in $new_path
18926 
18927   windows_path="$new_path"
18928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18929     unix_path=`$CYGPATH -u "$windows_path"`
18930     new_path="$unix_path"
18931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18932     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18933     new_path="$unix_path"
18934   fi
18935 
18936     # remove trailing .exe if any
18937     new_path="${new_path/%.exe/}"
18938 
18939     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18940     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18941   fi
18942 
18943     else
18944       # We're on a unix platform. Hooray! :)
18945       # First separate the path from the arguments. This will split at the first
18946       # space.
18947       complete="$FOUND_MAKE"
18948       path="${complete%% *}"
18949       tmp="$complete EOL"
18950       arguments="${tmp#* }"
18951 
18952       # Cannot rely on the command "which" here since it doesn't always work.
18953       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18954       if test -z "$is_absolute_path"; then
18955         # Path to executable is not absolute. Find it.
18956         IFS_save="$IFS"
18957         IFS=:
18958         for p in $PATH; do
18959           if test -f "$p/$path" && test -x "$p/$path"; then
18960             new_path="$p/$path"
18961             break
18962           fi
18963         done
18964         IFS="$IFS_save"
18965       else
18966         # This is an absolute path, we can use it without further modifications.
18967         new_path="$path"
18968       fi
18969 
18970       if test "x$new_path" = x; then
18971         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18972 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18973         has_space=`$ECHO "$complete" | $GREP " "`
18974         if test "x$has_space" != x; then
18975           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18976 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18977         fi
18978         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18979       fi
18980     fi
18981 
18982     # Now join together the path and the arguments once again
18983     if test "x$arguments" != xEOL; then
18984       new_complete="$new_path ${arguments% *}"
18985     else
18986       new_complete="$new_path"
18987     fi
18988 
18989     if test "x$complete" != "x$new_complete"; then
18990       FOUND_MAKE="$new_complete"
18991       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18992 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18993     fi
18994   fi
18995 
18996         fi
18997       fi
18998     fi
18999   fi
19000 
19001         if test "x$FOUND_MAKE" = x; then
19002           for ac_prog in make
19003 do
19004   # Extract the first word of "$ac_prog", so it can be a program name with args.
19005 set dummy $ac_prog; ac_word=$2
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19007 $as_echo_n "checking for $ac_word... " >&6; }
19008 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19009   $as_echo_n "(cached) " >&6
19010 else
19011   case $CHECK_TOOLSDIR_MAKE in
19012   [\\/]* | ?:[\\/]*)
19013   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19014   ;;
19015   *)
19016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19017 for as_dir in $PATH
19018 do
19019   IFS=$as_save_IFS
19020   test -z "$as_dir" && as_dir=.
19021     for ac_exec_ext in '' $ac_executable_extensions; do
19022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19023     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19025     break 2
19026   fi
19027 done
19028   done
19029 IFS=$as_save_IFS
19030 
19031   ;;
19032 esac
19033 fi
19034 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19035 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19037 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19038 else
19039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19040 $as_echo "no" >&6; }
19041 fi
19042 
19043 
19044   test -n "$CHECK_TOOLSDIR_MAKE" && break
19045 done
19046 
19047 
19048   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19049   DESCRIPTION="make in tools-dir"
19050 
19051   # On Cygwin, we require a newer version of make than on other platforms
19052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19053     MAKE_VERSION_EXPR="-e 4\."
19054     MAKE_REQUIRED_VERSION="4.0"
19055    else
19056     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19057     MAKE_REQUIRED_VERSION="3.81"
19058   fi
19059 
19060   if test "x$MAKE_CANDIDATE" != x; then
19061     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19062 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19063     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19064     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19065     if test "x$IS_GNU_MAKE" = x; then
19066       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19067 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19068     else
19069       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19070       if test "x$IS_MODERN_MAKE" = x; then
19071         { $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
19072 $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;}
19073       else
19074         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19075           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19076             MAKE_EXPECTED_ENV='cygwin'
19077           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19078             MAKE_EXPECTED_ENV='msys'
19079           else
19080             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19081           fi
19082           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19083           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19084         else
19085           # Not relevant for non-Windows
19086           IS_MAKE_CORRECT_ENV=true
19087         fi
19088         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19089           { $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
19090 $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;}
19091         else
19092           FOUND_MAKE=$MAKE_CANDIDATE
19093 
19094   # Only process if variable expands to non-empty
19095 
19096   if test "x$FOUND_MAKE" != x; then
19097     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19098 
19099   # First separate the path from the arguments. This will split at the first
19100   # space.
19101   complete="$FOUND_MAKE"
19102   path="${complete%% *}"
19103   tmp="$complete EOL"
19104   arguments="${tmp#* }"
19105 
19106   # Input might be given as Windows format, start by converting to
19107   # unix format.
19108   new_path=`$CYGPATH -u "$path"`
19109 
19110   # Now try to locate executable using which
19111   new_path=`$WHICH "$new_path" 2> /dev/null`
19112   # bat and cmd files are not always considered executable in cygwin causing which
19113   # to not find them
19114   if test "x$new_path" = x \
19115       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19116       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19117     new_path=`$CYGPATH -u "$path"`
19118   fi
19119   if test "x$new_path" = x; then
19120     # Oops. Which didn't find the executable.
19121     # The splitting of arguments from the executable at a space might have been incorrect,
19122     # since paths with space are more likely in Windows. Give it another try with the whole
19123     # argument.
19124     path="$complete"
19125     arguments="EOL"
19126     new_path=`$CYGPATH -u "$path"`
19127     new_path=`$WHICH "$new_path" 2> /dev/null`
19128     # bat and cmd files are not always considered executable in cygwin causing which
19129     # to not find them
19130     if test "x$new_path" = x \
19131         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19132         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19133       new_path=`$CYGPATH -u "$path"`
19134     fi
19135     if test "x$new_path" = x; then
19136       # It's still not found. Now this is an unrecoverable error.
19137       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19138 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19139       has_space=`$ECHO "$complete" | $GREP " "`
19140       if test "x$has_space" != x; then
19141         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19142 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19143       fi
19144       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19145     fi
19146   fi
19147 
19148   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19149   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19150   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19151   # "foo.exe" is OK but "foo" is an error.
19152   #
19153   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19154   # It is also a way to make sure we got the proper file name for the real test later on.
19155   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19156   if test "x$test_shortpath" = x; then
19157     # Short path failed, file does not exist as specified.
19158     # Try adding .exe or .cmd
19159     if test -f "${new_path}.exe"; then
19160       input_to_shortpath="${new_path}.exe"
19161     elif test -f "${new_path}.cmd"; then
19162       input_to_shortpath="${new_path}.cmd"
19163     else
19164       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19165 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19166       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19167 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19168       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19169     fi
19170   else
19171     input_to_shortpath="$new_path"
19172   fi
19173 
19174   # Call helper function which possibly converts this using DOS-style short mode.
19175   # If so, the updated path is stored in $new_path.
19176   new_path="$input_to_shortpath"
19177 
19178   input_path="$input_to_shortpath"
19179   # Check if we need to convert this using DOS-style short mode. If the path
19180   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19181   # take no chances and rewrite it.
19182   # Note: m4 eats our [], so we need to use [ and ] instead.
19183   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19184   if test "x$has_forbidden_chars" != x; then
19185     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19186     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19187     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19188     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19189       # Going to short mode and back again did indeed matter. Since short mode is
19190       # case insensitive, let's make it lowercase to improve readability.
19191       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19192       # Now convert it back to Unix-style (cygpath)
19193       input_path=`$CYGPATH -u "$shortmode_path"`
19194       new_path="$input_path"
19195     fi
19196   fi
19197 
19198   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19199   if test "x$test_cygdrive_prefix" = x; then
19200     # As a simple fix, exclude /usr/bin since it's not a real path.
19201     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19202       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19203       # a path prefixed by /cygdrive for fixpath to work.
19204       new_path="$CYGWIN_ROOT_PATH$input_path"
19205     fi
19206   fi
19207 
19208   # remove trailing .exe if any
19209   new_path="${new_path/%.exe/}"
19210 
19211     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19212 
19213   # First separate the path from the arguments. This will split at the first
19214   # space.
19215   complete="$FOUND_MAKE"
19216   path="${complete%% *}"
19217   tmp="$complete EOL"
19218   arguments="${tmp#* }"
19219 
19220   # Input might be given as Windows format, start by converting to
19221   # unix format.
19222   new_path="$path"
19223 
19224   windows_path="$new_path"
19225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19226     unix_path=`$CYGPATH -u "$windows_path"`
19227     new_path="$unix_path"
19228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19229     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19230     new_path="$unix_path"
19231   fi
19232 
19233 
19234   # Now try to locate executable using which
19235   new_path=`$WHICH "$new_path" 2> /dev/null`
19236 
19237   if test "x$new_path" = x; then
19238     # Oops. Which didn't find the executable.
19239     # The splitting of arguments from the executable at a space might have been incorrect,
19240     # since paths with space are more likely in Windows. Give it another try with the whole
19241     # argument.
19242     path="$complete"
19243     arguments="EOL"
19244     new_path="$path"
19245 
19246   windows_path="$new_path"
19247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19248     unix_path=`$CYGPATH -u "$windows_path"`
19249     new_path="$unix_path"
19250   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19251     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19252     new_path="$unix_path"
19253   fi
19254 
19255 
19256     new_path=`$WHICH "$new_path" 2> /dev/null`
19257     # bat and cmd files are not always considered executable in MSYS causing which
19258     # to not find them
19259     if test "x$new_path" = x \
19260         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19261         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19262       new_path="$path"
19263 
19264   windows_path="$new_path"
19265   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19266     unix_path=`$CYGPATH -u "$windows_path"`
19267     new_path="$unix_path"
19268   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19269     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19270     new_path="$unix_path"
19271   fi
19272 
19273     fi
19274 
19275     if test "x$new_path" = x; then
19276       # It's still not found. Now this is an unrecoverable error.
19277       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19278 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19279       has_space=`$ECHO "$complete" | $GREP " "`
19280       if test "x$has_space" != x; then
19281         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19283       fi
19284       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19285     fi
19286   fi
19287 
19288   # Now new_path has a complete unix path to the binary
19289   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19290     # Keep paths in /bin as-is, but remove trailing .exe if any
19291     new_path="${new_path/%.exe/}"
19292     # Do not save /bin paths to all_fixpath_prefixes!
19293   else
19294     # Not in mixed or Windows style, start by that.
19295     new_path=`cmd //c echo $new_path`
19296 
19297   input_path="$new_path"
19298   # Check if we need to convert this using DOS-style short mode. If the path
19299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19300   # take no chances and rewrite it.
19301   # Note: m4 eats our [], so we need to use [ and ] instead.
19302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19303   if test "x$has_forbidden_chars" != x; then
19304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19305     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19306   fi
19307 
19308     # Output is in $new_path
19309 
19310   windows_path="$new_path"
19311   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19312     unix_path=`$CYGPATH -u "$windows_path"`
19313     new_path="$unix_path"
19314   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19315     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19316     new_path="$unix_path"
19317   fi
19318 
19319     # remove trailing .exe if any
19320     new_path="${new_path/%.exe/}"
19321 
19322     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19323     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19324   fi
19325 
19326     else
19327       # We're on a unix platform. Hooray! :)
19328       # First separate the path from the arguments. This will split at the first
19329       # space.
19330       complete="$FOUND_MAKE"
19331       path="${complete%% *}"
19332       tmp="$complete EOL"
19333       arguments="${tmp#* }"
19334 
19335       # Cannot rely on the command "which" here since it doesn't always work.
19336       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19337       if test -z "$is_absolute_path"; then
19338         # Path to executable is not absolute. Find it.
19339         IFS_save="$IFS"
19340         IFS=:
19341         for p in $PATH; do
19342           if test -f "$p/$path" && test -x "$p/$path"; then
19343             new_path="$p/$path"
19344             break
19345           fi
19346         done
19347         IFS="$IFS_save"
19348       else
19349         # This is an absolute path, we can use it without further modifications.
19350         new_path="$path"
19351       fi
19352 
19353       if test "x$new_path" = x; then
19354         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19355 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19356         has_space=`$ECHO "$complete" | $GREP " "`
19357         if test "x$has_space" != x; then
19358           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19359 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19360         fi
19361         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19362       fi
19363     fi
19364 
19365     # Now join together the path and the arguments once again
19366     if test "x$arguments" != xEOL; then
19367       new_complete="$new_path ${arguments% *}"
19368     else
19369       new_complete="$new_path"
19370     fi
19371 
19372     if test "x$complete" != "x$new_complete"; then
19373       FOUND_MAKE="$new_complete"
19374       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19375 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19376     fi
19377   fi
19378 
19379         fi
19380       fi
19381     fi
19382   fi
19383 
19384         fi
19385         PATH=$OLD_PATH
19386       fi
19387     fi
19388 
19389     if test "x$FOUND_MAKE" = x; then
19390       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
19391     fi
19392 
19393   else
19394     # The variable is set, but is it from the command line or the environment?
19395 
19396     # Try to remove the string !MAKE! from our list.
19397     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19398     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19399       # If it failed, the variable was not from the command line. Ignore it,
19400       # but warn the user (except for BASH, which is always set by the calling BASH).
19401       if test "xMAKE" != xBASH; then
19402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19403 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19404       fi
19405       # Try to locate tool using the code snippet
19406 
19407     # Try our hardest to locate a correct version of GNU make
19408     for ac_prog in gmake
19409 do
19410   # Extract the first word of "$ac_prog", so it can be a program name with args.
19411 set dummy $ac_prog; ac_word=$2
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19413 $as_echo_n "checking for $ac_word... " >&6; }
19414 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   case $CHECK_GMAKE in
19418   [\\/]* | ?:[\\/]*)
19419   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19420   ;;
19421   *)
19422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19424 do
19425   IFS=$as_save_IFS
19426   test -z "$as_dir" && as_dir=.
19427     for ac_exec_ext in '' $ac_executable_extensions; do
19428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19429     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19431     break 2
19432   fi
19433 done
19434   done
19435 IFS=$as_save_IFS
19436 
19437   ;;
19438 esac
19439 fi
19440 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19441 if test -n "$CHECK_GMAKE"; then
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19443 $as_echo "$CHECK_GMAKE" >&6; }
19444 else
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 $as_echo "no" >&6; }
19447 fi
19448 
19449 
19450   test -n "$CHECK_GMAKE" && break
19451 done
19452 
19453 
19454   MAKE_CANDIDATE=""$CHECK_GMAKE""
19455   DESCRIPTION="gmake in PATH"
19456 
19457   # On Cygwin, we require a newer version of make than on other platforms
19458   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19459     MAKE_VERSION_EXPR="-e 4\."
19460     MAKE_REQUIRED_VERSION="4.0"
19461    else
19462     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19463     MAKE_REQUIRED_VERSION="3.81"
19464   fi
19465 
19466   if test "x$MAKE_CANDIDATE" != x; then
19467     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19468 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19469     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19470     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19471     if test "x$IS_GNU_MAKE" = x; then
19472       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19473 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19474     else
19475       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19476       if test "x$IS_MODERN_MAKE" = x; then
19477         { $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
19478 $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;}
19479       else
19480         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19481           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19482             MAKE_EXPECTED_ENV='cygwin'
19483           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19484             MAKE_EXPECTED_ENV='msys'
19485           else
19486             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19487           fi
19488           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19489           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19490         else
19491           # Not relevant for non-Windows
19492           IS_MAKE_CORRECT_ENV=true
19493         fi
19494         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19495           { $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
19496 $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;}
19497         else
19498           FOUND_MAKE=$MAKE_CANDIDATE
19499 
19500   # Only process if variable expands to non-empty
19501 
19502   if test "x$FOUND_MAKE" != x; then
19503     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19504 
19505   # First separate the path from the arguments. This will split at the first
19506   # space.
19507   complete="$FOUND_MAKE"
19508   path="${complete%% *}"
19509   tmp="$complete EOL"
19510   arguments="${tmp#* }"
19511 
19512   # Input might be given as Windows format, start by converting to
19513   # unix format.
19514   new_path=`$CYGPATH -u "$path"`
19515 
19516   # Now try to locate executable using which
19517   new_path=`$WHICH "$new_path" 2> /dev/null`
19518   # bat and cmd files are not always considered executable in cygwin causing which
19519   # to not find them
19520   if test "x$new_path" = x \
19521       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19522       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19523     new_path=`$CYGPATH -u "$path"`
19524   fi
19525   if test "x$new_path" = x; then
19526     # Oops. Which didn't find the executable.
19527     # The splitting of arguments from the executable at a space might have been incorrect,
19528     # since paths with space are more likely in Windows. Give it another try with the whole
19529     # argument.
19530     path="$complete"
19531     arguments="EOL"
19532     new_path=`$CYGPATH -u "$path"`
19533     new_path=`$WHICH "$new_path" 2> /dev/null`
19534     # bat and cmd files are not always considered executable in cygwin causing which
19535     # to not find them
19536     if test "x$new_path" = x \
19537         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19538         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19539       new_path=`$CYGPATH -u "$path"`
19540     fi
19541     if test "x$new_path" = x; then
19542       # It's still not found. Now this is an unrecoverable error.
19543       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19544 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19545       has_space=`$ECHO "$complete" | $GREP " "`
19546       if test "x$has_space" != x; then
19547         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19549       fi
19550       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19551     fi
19552   fi
19553 
19554   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19555   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19556   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19557   # "foo.exe" is OK but "foo" is an error.
19558   #
19559   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19560   # It is also a way to make sure we got the proper file name for the real test later on.
19561   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19562   if test "x$test_shortpath" = x; then
19563     # Short path failed, file does not exist as specified.
19564     # Try adding .exe or .cmd
19565     if test -f "${new_path}.exe"; then
19566       input_to_shortpath="${new_path}.exe"
19567     elif test -f "${new_path}.cmd"; then
19568       input_to_shortpath="${new_path}.cmd"
19569     else
19570       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19571 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19572       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19574       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19575     fi
19576   else
19577     input_to_shortpath="$new_path"
19578   fi
19579 
19580   # Call helper function which possibly converts this using DOS-style short mode.
19581   # If so, the updated path is stored in $new_path.
19582   new_path="$input_to_shortpath"
19583 
19584   input_path="$input_to_shortpath"
19585   # Check if we need to convert this using DOS-style short mode. If the path
19586   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19587   # take no chances and rewrite it.
19588   # Note: m4 eats our [], so we need to use [ and ] instead.
19589   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19590   if test "x$has_forbidden_chars" != x; then
19591     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19592     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19593     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19594     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19595       # Going to short mode and back again did indeed matter. Since short mode is
19596       # case insensitive, let's make it lowercase to improve readability.
19597       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19598       # Now convert it back to Unix-style (cygpath)
19599       input_path=`$CYGPATH -u "$shortmode_path"`
19600       new_path="$input_path"
19601     fi
19602   fi
19603 
19604   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19605   if test "x$test_cygdrive_prefix" = x; then
19606     # As a simple fix, exclude /usr/bin since it's not a real path.
19607     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19608       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19609       # a path prefixed by /cygdrive for fixpath to work.
19610       new_path="$CYGWIN_ROOT_PATH$input_path"
19611     fi
19612   fi
19613 
19614   # remove trailing .exe if any
19615   new_path="${new_path/%.exe/}"
19616 
19617     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19618 
19619   # First separate the path from the arguments. This will split at the first
19620   # space.
19621   complete="$FOUND_MAKE"
19622   path="${complete%% *}"
19623   tmp="$complete EOL"
19624   arguments="${tmp#* }"
19625 
19626   # Input might be given as Windows format, start by converting to
19627   # unix format.
19628   new_path="$path"
19629 
19630   windows_path="$new_path"
19631   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19632     unix_path=`$CYGPATH -u "$windows_path"`
19633     new_path="$unix_path"
19634   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19635     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19636     new_path="$unix_path"
19637   fi
19638 
19639 
19640   # Now try to locate executable using which
19641   new_path=`$WHICH "$new_path" 2> /dev/null`
19642 
19643   if test "x$new_path" = x; then
19644     # Oops. Which didn't find the executable.
19645     # The splitting of arguments from the executable at a space might have been incorrect,
19646     # since paths with space are more likely in Windows. Give it another try with the whole
19647     # argument.
19648     path="$complete"
19649     arguments="EOL"
19650     new_path="$path"
19651 
19652   windows_path="$new_path"
19653   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19654     unix_path=`$CYGPATH -u "$windows_path"`
19655     new_path="$unix_path"
19656   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19657     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19658     new_path="$unix_path"
19659   fi
19660 
19661 
19662     new_path=`$WHICH "$new_path" 2> /dev/null`
19663     # bat and cmd files are not always considered executable in MSYS causing which
19664     # to not find them
19665     if test "x$new_path" = x \
19666         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19667         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19668       new_path="$path"
19669 
19670   windows_path="$new_path"
19671   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19672     unix_path=`$CYGPATH -u "$windows_path"`
19673     new_path="$unix_path"
19674   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19675     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19676     new_path="$unix_path"
19677   fi
19678 
19679     fi
19680 
19681     if test "x$new_path" = x; then
19682       # It's still not found. Now this is an unrecoverable error.
19683       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19684 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19685       has_space=`$ECHO "$complete" | $GREP " "`
19686       if test "x$has_space" != x; then
19687         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19688 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19689       fi
19690       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19691     fi
19692   fi
19693 
19694   # Now new_path has a complete unix path to the binary
19695   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19696     # Keep paths in /bin as-is, but remove trailing .exe if any
19697     new_path="${new_path/%.exe/}"
19698     # Do not save /bin paths to all_fixpath_prefixes!
19699   else
19700     # Not in mixed or Windows style, start by that.
19701     new_path=`cmd //c echo $new_path`
19702 
19703   input_path="$new_path"
19704   # Check if we need to convert this using DOS-style short mode. If the path
19705   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19706   # take no chances and rewrite it.
19707   # Note: m4 eats our [], so we need to use [ and ] instead.
19708   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19709   if test "x$has_forbidden_chars" != x; then
19710     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19711     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19712   fi
19713 
19714     # Output is in $new_path
19715 
19716   windows_path="$new_path"
19717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19718     unix_path=`$CYGPATH -u "$windows_path"`
19719     new_path="$unix_path"
19720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19722     new_path="$unix_path"
19723   fi
19724 
19725     # remove trailing .exe if any
19726     new_path="${new_path/%.exe/}"
19727 
19728     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19729     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19730   fi
19731 
19732     else
19733       # We're on a unix platform. Hooray! :)
19734       # First separate the path from the arguments. This will split at the first
19735       # space.
19736       complete="$FOUND_MAKE"
19737       path="${complete%% *}"
19738       tmp="$complete EOL"
19739       arguments="${tmp#* }"
19740 
19741       # Cannot rely on the command "which" here since it doesn't always work.
19742       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19743       if test -z "$is_absolute_path"; then
19744         # Path to executable is not absolute. Find it.
19745         IFS_save="$IFS"
19746         IFS=:
19747         for p in $PATH; do
19748           if test -f "$p/$path" && test -x "$p/$path"; then
19749             new_path="$p/$path"
19750             break
19751           fi
19752         done
19753         IFS="$IFS_save"
19754       else
19755         # This is an absolute path, we can use it without further modifications.
19756         new_path="$path"
19757       fi
19758 
19759       if test "x$new_path" = x; then
19760         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19761 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19762         has_space=`$ECHO "$complete" | $GREP " "`
19763         if test "x$has_space" != x; then
19764           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19765 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19766         fi
19767         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19768       fi
19769     fi
19770 
19771     # Now join together the path and the arguments once again
19772     if test "x$arguments" != xEOL; then
19773       new_complete="$new_path ${arguments% *}"
19774     else
19775       new_complete="$new_path"
19776     fi
19777 
19778     if test "x$complete" != "x$new_complete"; then
19779       FOUND_MAKE="$new_complete"
19780       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19781 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19782     fi
19783   fi
19784 
19785         fi
19786       fi
19787     fi
19788   fi
19789 
19790 
19791     if test "x$FOUND_MAKE" = x; then
19792       for ac_prog in make
19793 do
19794   # Extract the first word of "$ac_prog", so it can be a program name with args.
19795 set dummy $ac_prog; ac_word=$2
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19797 $as_echo_n "checking for $ac_word... " >&6; }
19798 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19799   $as_echo_n "(cached) " >&6
19800 else
19801   case $CHECK_MAKE in
19802   [\\/]* | ?:[\\/]*)
19803   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19804   ;;
19805   *)
19806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19808 do
19809   IFS=$as_save_IFS
19810   test -z "$as_dir" && as_dir=.
19811     for ac_exec_ext in '' $ac_executable_extensions; do
19812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19813     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19815     break 2
19816   fi
19817 done
19818   done
19819 IFS=$as_save_IFS
19820 
19821   ;;
19822 esac
19823 fi
19824 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19825 if test -n "$CHECK_MAKE"; then
19826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19827 $as_echo "$CHECK_MAKE" >&6; }
19828 else
19829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830 $as_echo "no" >&6; }
19831 fi
19832 
19833 
19834   test -n "$CHECK_MAKE" && break
19835 done
19836 
19837 
19838   MAKE_CANDIDATE=""$CHECK_MAKE""
19839   DESCRIPTION="make in PATH"
19840 
19841   # On Cygwin, we require a newer version of make than on other platforms
19842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19843     MAKE_VERSION_EXPR="-e 4\."
19844     MAKE_REQUIRED_VERSION="4.0"
19845    else
19846     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19847     MAKE_REQUIRED_VERSION="3.81"
19848   fi
19849 
19850   if test "x$MAKE_CANDIDATE" != x; then
19851     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19852 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19853     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19854     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19855     if test "x$IS_GNU_MAKE" = x; then
19856       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19857 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19858     else
19859       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19860       if test "x$IS_MODERN_MAKE" = x; then
19861         { $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
19862 $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;}
19863       else
19864         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19865           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19866             MAKE_EXPECTED_ENV='cygwin'
19867           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19868             MAKE_EXPECTED_ENV='msys'
19869           else
19870             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19871           fi
19872           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19873           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19874         else
19875           # Not relevant for non-Windows
19876           IS_MAKE_CORRECT_ENV=true
19877         fi
19878         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19879           { $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
19880 $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;}
19881         else
19882           FOUND_MAKE=$MAKE_CANDIDATE
19883 
19884   # Only process if variable expands to non-empty
19885 
19886   if test "x$FOUND_MAKE" != x; then
19887     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19888 
19889   # First separate the path from the arguments. This will split at the first
19890   # space.
19891   complete="$FOUND_MAKE"
19892   path="${complete%% *}"
19893   tmp="$complete EOL"
19894   arguments="${tmp#* }"
19895 
19896   # Input might be given as Windows format, start by converting to
19897   # unix format.
19898   new_path=`$CYGPATH -u "$path"`
19899 
19900   # Now try to locate executable using which
19901   new_path=`$WHICH "$new_path" 2> /dev/null`
19902   # bat and cmd files are not always considered executable in cygwin causing which
19903   # to not find them
19904   if test "x$new_path" = x \
19905       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19906       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19907     new_path=`$CYGPATH -u "$path"`
19908   fi
19909   if test "x$new_path" = x; then
19910     # Oops. Which didn't find the executable.
19911     # The splitting of arguments from the executable at a space might have been incorrect,
19912     # since paths with space are more likely in Windows. Give it another try with the whole
19913     # argument.
19914     path="$complete"
19915     arguments="EOL"
19916     new_path=`$CYGPATH -u "$path"`
19917     new_path=`$WHICH "$new_path" 2> /dev/null`
19918     # bat and cmd files are not always considered executable in cygwin causing which
19919     # to not find them
19920     if test "x$new_path" = x \
19921         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19922         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19923       new_path=`$CYGPATH -u "$path"`
19924     fi
19925     if test "x$new_path" = x; then
19926       # It's still not found. Now this is an unrecoverable error.
19927       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19928 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19929       has_space=`$ECHO "$complete" | $GREP " "`
19930       if test "x$has_space" != x; then
19931         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19932 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19933       fi
19934       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19935     fi
19936   fi
19937 
19938   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19939   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19940   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19941   # "foo.exe" is OK but "foo" is an error.
19942   #
19943   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19944   # It is also a way to make sure we got the proper file name for the real test later on.
19945   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19946   if test "x$test_shortpath" = x; then
19947     # Short path failed, file does not exist as specified.
19948     # Try adding .exe or .cmd
19949     if test -f "${new_path}.exe"; then
19950       input_to_shortpath="${new_path}.exe"
19951     elif test -f "${new_path}.cmd"; then
19952       input_to_shortpath="${new_path}.cmd"
19953     else
19954       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19955 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19956       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19957 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19958       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19959     fi
19960   else
19961     input_to_shortpath="$new_path"
19962   fi
19963 
19964   # Call helper function which possibly converts this using DOS-style short mode.
19965   # If so, the updated path is stored in $new_path.
19966   new_path="$input_to_shortpath"
19967 
19968   input_path="$input_to_shortpath"
19969   # Check if we need to convert this using DOS-style short mode. If the path
19970   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19971   # take no chances and rewrite it.
19972   # Note: m4 eats our [], so we need to use [ and ] instead.
19973   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19974   if test "x$has_forbidden_chars" != x; then
19975     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19976     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19977     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19978     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19979       # Going to short mode and back again did indeed matter. Since short mode is
19980       # case insensitive, let's make it lowercase to improve readability.
19981       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19982       # Now convert it back to Unix-style (cygpath)
19983       input_path=`$CYGPATH -u "$shortmode_path"`
19984       new_path="$input_path"
19985     fi
19986   fi
19987 
19988   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19989   if test "x$test_cygdrive_prefix" = x; then
19990     # As a simple fix, exclude /usr/bin since it's not a real path.
19991     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19992       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19993       # a path prefixed by /cygdrive for fixpath to work.
19994       new_path="$CYGWIN_ROOT_PATH$input_path"
19995     fi
19996   fi
19997 
19998   # remove trailing .exe if any
19999   new_path="${new_path/%.exe/}"
20000 
20001     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20002 
20003   # First separate the path from the arguments. This will split at the first
20004   # space.
20005   complete="$FOUND_MAKE"
20006   path="${complete%% *}"
20007   tmp="$complete EOL"
20008   arguments="${tmp#* }"
20009 
20010   # Input might be given as Windows format, start by converting to
20011   # unix format.
20012   new_path="$path"
20013 
20014   windows_path="$new_path"
20015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20016     unix_path=`$CYGPATH -u "$windows_path"`
20017     new_path="$unix_path"
20018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20019     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20020     new_path="$unix_path"
20021   fi
20022 
20023 
20024   # Now try to locate executable using which
20025   new_path=`$WHICH "$new_path" 2> /dev/null`
20026 
20027   if test "x$new_path" = x; then
20028     # Oops. Which didn't find the executable.
20029     # The splitting of arguments from the executable at a space might have been incorrect,
20030     # since paths with space are more likely in Windows. Give it another try with the whole
20031     # argument.
20032     path="$complete"
20033     arguments="EOL"
20034     new_path="$path"
20035 
20036   windows_path="$new_path"
20037   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20038     unix_path=`$CYGPATH -u "$windows_path"`
20039     new_path="$unix_path"
20040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20041     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20042     new_path="$unix_path"
20043   fi
20044 
20045 
20046     new_path=`$WHICH "$new_path" 2> /dev/null`
20047     # bat and cmd files are not always considered executable in MSYS causing which
20048     # to not find them
20049     if test "x$new_path" = x \
20050         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20051         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20052       new_path="$path"
20053 
20054   windows_path="$new_path"
20055   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20056     unix_path=`$CYGPATH -u "$windows_path"`
20057     new_path="$unix_path"
20058   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20059     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20060     new_path="$unix_path"
20061   fi
20062 
20063     fi
20064 
20065     if test "x$new_path" = x; then
20066       # It's still not found. Now this is an unrecoverable error.
20067       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20068 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20069       has_space=`$ECHO "$complete" | $GREP " "`
20070       if test "x$has_space" != x; then
20071         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20073       fi
20074       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20075     fi
20076   fi
20077 
20078   # Now new_path has a complete unix path to the binary
20079   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20080     # Keep paths in /bin as-is, but remove trailing .exe if any
20081     new_path="${new_path/%.exe/}"
20082     # Do not save /bin paths to all_fixpath_prefixes!
20083   else
20084     # Not in mixed or Windows style, start by that.
20085     new_path=`cmd //c echo $new_path`
20086 
20087   input_path="$new_path"
20088   # Check if we need to convert this using DOS-style short mode. If the path
20089   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20090   # take no chances and rewrite it.
20091   # Note: m4 eats our [], so we need to use [ and ] instead.
20092   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20093   if test "x$has_forbidden_chars" != x; then
20094     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20095     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20096   fi
20097 
20098     # Output is in $new_path
20099 
20100   windows_path="$new_path"
20101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20102     unix_path=`$CYGPATH -u "$windows_path"`
20103     new_path="$unix_path"
20104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20106     new_path="$unix_path"
20107   fi
20108 
20109     # remove trailing .exe if any
20110     new_path="${new_path/%.exe/}"
20111 
20112     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20113     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20114   fi
20115 
20116     else
20117       # We're on a unix platform. Hooray! :)
20118       # First separate the path from the arguments. This will split at the first
20119       # space.
20120       complete="$FOUND_MAKE"
20121       path="${complete%% *}"
20122       tmp="$complete EOL"
20123       arguments="${tmp#* }"
20124 
20125       # Cannot rely on the command "which" here since it doesn't always work.
20126       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20127       if test -z "$is_absolute_path"; then
20128         # Path to executable is not absolute. Find it.
20129         IFS_save="$IFS"
20130         IFS=:
20131         for p in $PATH; do
20132           if test -f "$p/$path" && test -x "$p/$path"; then
20133             new_path="$p/$path"
20134             break
20135           fi
20136         done
20137         IFS="$IFS_save"
20138       else
20139         # This is an absolute path, we can use it without further modifications.
20140         new_path="$path"
20141       fi
20142 
20143       if test "x$new_path" = x; then
20144         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20146         has_space=`$ECHO "$complete" | $GREP " "`
20147         if test "x$has_space" != x; then
20148           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20149 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20150         fi
20151         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20152       fi
20153     fi
20154 
20155     # Now join together the path and the arguments once again
20156     if test "x$arguments" != xEOL; then
20157       new_complete="$new_path ${arguments% *}"
20158     else
20159       new_complete="$new_path"
20160     fi
20161 
20162     if test "x$complete" != "x$new_complete"; then
20163       FOUND_MAKE="$new_complete"
20164       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20165 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20166     fi
20167   fi
20168 
20169         fi
20170       fi
20171     fi
20172   fi
20173 
20174     fi
20175 
20176     if test "x$FOUND_MAKE" = x; then
20177       if test "x$TOOLCHAIN_PATH" != x; then
20178         # We have a toolchain path, check that as well before giving up.
20179         OLD_PATH=$PATH
20180         PATH=$TOOLCHAIN_PATH:$PATH
20181         for ac_prog in gmake
20182 do
20183   # Extract the first word of "$ac_prog", so it can be a program name with args.
20184 set dummy $ac_prog; ac_word=$2
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20186 $as_echo_n "checking for $ac_word... " >&6; }
20187 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20188   $as_echo_n "(cached) " >&6
20189 else
20190   case $CHECK_TOOLSDIR_GMAKE in
20191   [\\/]* | ?:[\\/]*)
20192   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20193   ;;
20194   *)
20195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20196 for as_dir in $PATH
20197 do
20198   IFS=$as_save_IFS
20199   test -z "$as_dir" && as_dir=.
20200     for ac_exec_ext in '' $ac_executable_extensions; do
20201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20202     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20204     break 2
20205   fi
20206 done
20207   done
20208 IFS=$as_save_IFS
20209 
20210   ;;
20211 esac
20212 fi
20213 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20214 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20216 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20217 else
20218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219 $as_echo "no" >&6; }
20220 fi
20221 
20222 
20223   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20224 done
20225 
20226 
20227   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20228   DESCRIPTION="gmake in tools-dir"
20229 
20230   # On Cygwin, we require a newer version of make than on other platforms
20231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20232     MAKE_VERSION_EXPR="-e 4\."
20233     MAKE_REQUIRED_VERSION="4.0"
20234    else
20235     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20236     MAKE_REQUIRED_VERSION="3.81"
20237   fi
20238 
20239   if test "x$MAKE_CANDIDATE" != x; then
20240     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20241 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20242     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20243     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20244     if test "x$IS_GNU_MAKE" = x; then
20245       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20246 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20247     else
20248       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20249       if test "x$IS_MODERN_MAKE" = x; then
20250         { $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
20251 $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;}
20252       else
20253         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20254           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20255             MAKE_EXPECTED_ENV='cygwin'
20256           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20257             MAKE_EXPECTED_ENV='msys'
20258           else
20259             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20260           fi
20261           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20262           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20263         else
20264           # Not relevant for non-Windows
20265           IS_MAKE_CORRECT_ENV=true
20266         fi
20267         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20268           { $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
20269 $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;}
20270         else
20271           FOUND_MAKE=$MAKE_CANDIDATE
20272 
20273   # Only process if variable expands to non-empty
20274 
20275   if test "x$FOUND_MAKE" != x; then
20276     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20277 
20278   # First separate the path from the arguments. This will split at the first
20279   # space.
20280   complete="$FOUND_MAKE"
20281   path="${complete%% *}"
20282   tmp="$complete EOL"
20283   arguments="${tmp#* }"
20284 
20285   # Input might be given as Windows format, start by converting to
20286   # unix format.
20287   new_path=`$CYGPATH -u "$path"`
20288 
20289   # Now try to locate executable using which
20290   new_path=`$WHICH "$new_path" 2> /dev/null`
20291   # bat and cmd files are not always considered executable in cygwin causing which
20292   # to not find them
20293   if test "x$new_path" = x \
20294       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20295       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20296     new_path=`$CYGPATH -u "$path"`
20297   fi
20298   if test "x$new_path" = x; then
20299     # Oops. Which didn't find the executable.
20300     # The splitting of arguments from the executable at a space might have been incorrect,
20301     # since paths with space are more likely in Windows. Give it another try with the whole
20302     # argument.
20303     path="$complete"
20304     arguments="EOL"
20305     new_path=`$CYGPATH -u "$path"`
20306     new_path=`$WHICH "$new_path" 2> /dev/null`
20307     # bat and cmd files are not always considered executable in cygwin causing which
20308     # to not find them
20309     if test "x$new_path" = x \
20310         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20311         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20312       new_path=`$CYGPATH -u "$path"`
20313     fi
20314     if test "x$new_path" = x; then
20315       # It's still not found. Now this is an unrecoverable error.
20316       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20317 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20318       has_space=`$ECHO "$complete" | $GREP " "`
20319       if test "x$has_space" != x; then
20320         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20321 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20322       fi
20323       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20324     fi
20325   fi
20326 
20327   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20328   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20329   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20330   # "foo.exe" is OK but "foo" is an error.
20331   #
20332   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20333   # It is also a way to make sure we got the proper file name for the real test later on.
20334   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20335   if test "x$test_shortpath" = x; then
20336     # Short path failed, file does not exist as specified.
20337     # Try adding .exe or .cmd
20338     if test -f "${new_path}.exe"; then
20339       input_to_shortpath="${new_path}.exe"
20340     elif test -f "${new_path}.cmd"; then
20341       input_to_shortpath="${new_path}.cmd"
20342     else
20343       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20344 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20345       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20346 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20347       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20348     fi
20349   else
20350     input_to_shortpath="$new_path"
20351   fi
20352 
20353   # Call helper function which possibly converts this using DOS-style short mode.
20354   # If so, the updated path is stored in $new_path.
20355   new_path="$input_to_shortpath"
20356 
20357   input_path="$input_to_shortpath"
20358   # Check if we need to convert this using DOS-style short mode. If the path
20359   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20360   # take no chances and rewrite it.
20361   # Note: m4 eats our [], so we need to use [ and ] instead.
20362   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20363   if test "x$has_forbidden_chars" != x; then
20364     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20365     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20366     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20367     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20368       # Going to short mode and back again did indeed matter. Since short mode is
20369       # case insensitive, let's make it lowercase to improve readability.
20370       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20371       # Now convert it back to Unix-style (cygpath)
20372       input_path=`$CYGPATH -u "$shortmode_path"`
20373       new_path="$input_path"
20374     fi
20375   fi
20376 
20377   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20378   if test "x$test_cygdrive_prefix" = x; then
20379     # As a simple fix, exclude /usr/bin since it's not a real path.
20380     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20381       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20382       # a path prefixed by /cygdrive for fixpath to work.
20383       new_path="$CYGWIN_ROOT_PATH$input_path"
20384     fi
20385   fi
20386 
20387   # remove trailing .exe if any
20388   new_path="${new_path/%.exe/}"
20389 
20390     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20391 
20392   # First separate the path from the arguments. This will split at the first
20393   # space.
20394   complete="$FOUND_MAKE"
20395   path="${complete%% *}"
20396   tmp="$complete EOL"
20397   arguments="${tmp#* }"
20398 
20399   # Input might be given as Windows format, start by converting to
20400   # unix format.
20401   new_path="$path"
20402 
20403   windows_path="$new_path"
20404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20405     unix_path=`$CYGPATH -u "$windows_path"`
20406     new_path="$unix_path"
20407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20408     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20409     new_path="$unix_path"
20410   fi
20411 
20412 
20413   # Now try to locate executable using which
20414   new_path=`$WHICH "$new_path" 2> /dev/null`
20415 
20416   if test "x$new_path" = x; then
20417     # Oops. Which didn't find the executable.
20418     # The splitting of arguments from the executable at a space might have been incorrect,
20419     # since paths with space are more likely in Windows. Give it another try with the whole
20420     # argument.
20421     path="$complete"
20422     arguments="EOL"
20423     new_path="$path"
20424 
20425   windows_path="$new_path"
20426   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20427     unix_path=`$CYGPATH -u "$windows_path"`
20428     new_path="$unix_path"
20429   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20430     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20431     new_path="$unix_path"
20432   fi
20433 
20434 
20435     new_path=`$WHICH "$new_path" 2> /dev/null`
20436     # bat and cmd files are not always considered executable in MSYS causing which
20437     # to not find them
20438     if test "x$new_path" = x \
20439         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20440         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20441       new_path="$path"
20442 
20443   windows_path="$new_path"
20444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20445     unix_path=`$CYGPATH -u "$windows_path"`
20446     new_path="$unix_path"
20447   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20448     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20449     new_path="$unix_path"
20450   fi
20451 
20452     fi
20453 
20454     if test "x$new_path" = x; then
20455       # It's still not found. Now this is an unrecoverable error.
20456       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20457 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20458       has_space=`$ECHO "$complete" | $GREP " "`
20459       if test "x$has_space" != x; then
20460         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20461 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20462       fi
20463       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20464     fi
20465   fi
20466 
20467   # Now new_path has a complete unix path to the binary
20468   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20469     # Keep paths in /bin as-is, but remove trailing .exe if any
20470     new_path="${new_path/%.exe/}"
20471     # Do not save /bin paths to all_fixpath_prefixes!
20472   else
20473     # Not in mixed or Windows style, start by that.
20474     new_path=`cmd //c echo $new_path`
20475 
20476   input_path="$new_path"
20477   # Check if we need to convert this using DOS-style short mode. If the path
20478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20479   # take no chances and rewrite it.
20480   # Note: m4 eats our [], so we need to use [ and ] instead.
20481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20482   if test "x$has_forbidden_chars" != x; then
20483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20484     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20485   fi
20486 
20487     # Output is in $new_path
20488 
20489   windows_path="$new_path"
20490   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20491     unix_path=`$CYGPATH -u "$windows_path"`
20492     new_path="$unix_path"
20493   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20494     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20495     new_path="$unix_path"
20496   fi
20497 
20498     # remove trailing .exe if any
20499     new_path="${new_path/%.exe/}"
20500 
20501     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20502     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20503   fi
20504 
20505     else
20506       # We're on a unix platform. Hooray! :)
20507       # First separate the path from the arguments. This will split at the first
20508       # space.
20509       complete="$FOUND_MAKE"
20510       path="${complete%% *}"
20511       tmp="$complete EOL"
20512       arguments="${tmp#* }"
20513 
20514       # Cannot rely on the command "which" here since it doesn't always work.
20515       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20516       if test -z "$is_absolute_path"; then
20517         # Path to executable is not absolute. Find it.
20518         IFS_save="$IFS"
20519         IFS=:
20520         for p in $PATH; do
20521           if test -f "$p/$path" && test -x "$p/$path"; then
20522             new_path="$p/$path"
20523             break
20524           fi
20525         done
20526         IFS="$IFS_save"
20527       else
20528         # This is an absolute path, we can use it without further modifications.
20529         new_path="$path"
20530       fi
20531 
20532       if test "x$new_path" = x; then
20533         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20534 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20535         has_space=`$ECHO "$complete" | $GREP " "`
20536         if test "x$has_space" != x; then
20537           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20538 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20539         fi
20540         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20541       fi
20542     fi
20543 
20544     # Now join together the path and the arguments once again
20545     if test "x$arguments" != xEOL; then
20546       new_complete="$new_path ${arguments% *}"
20547     else
20548       new_complete="$new_path"
20549     fi
20550 
20551     if test "x$complete" != "x$new_complete"; then
20552       FOUND_MAKE="$new_complete"
20553       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20554 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20555     fi
20556   fi
20557 
20558         fi
20559       fi
20560     fi
20561   fi
20562 
20563         if test "x$FOUND_MAKE" = x; then
20564           for ac_prog in make
20565 do
20566   # Extract the first word of "$ac_prog", so it can be a program name with args.
20567 set dummy $ac_prog; ac_word=$2
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20569 $as_echo_n "checking for $ac_word... " >&6; }
20570 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20571   $as_echo_n "(cached) " >&6
20572 else
20573   case $CHECK_TOOLSDIR_MAKE in
20574   [\\/]* | ?:[\\/]*)
20575   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20576   ;;
20577   *)
20578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579 for as_dir in $PATH
20580 do
20581   IFS=$as_save_IFS
20582   test -z "$as_dir" && as_dir=.
20583     for ac_exec_ext in '' $ac_executable_extensions; do
20584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20585     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20587     break 2
20588   fi
20589 done
20590   done
20591 IFS=$as_save_IFS
20592 
20593   ;;
20594 esac
20595 fi
20596 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20597 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20599 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20600 else
20601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20602 $as_echo "no" >&6; }
20603 fi
20604 
20605 
20606   test -n "$CHECK_TOOLSDIR_MAKE" && break
20607 done
20608 
20609 
20610   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20611   DESCRIPTION="make in tools-dir"
20612 
20613   # On Cygwin, we require a newer version of make than on other platforms
20614   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20615     MAKE_VERSION_EXPR="-e 4\."
20616     MAKE_REQUIRED_VERSION="4.0"
20617    else
20618     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20619     MAKE_REQUIRED_VERSION="3.81"
20620   fi
20621 
20622   if test "x$MAKE_CANDIDATE" != x; then
20623     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20624 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20625     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20626     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20627     if test "x$IS_GNU_MAKE" = x; then
20628       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20629 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20630     else
20631       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20632       if test "x$IS_MODERN_MAKE" = x; then
20633         { $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
20634 $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;}
20635       else
20636         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20637           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20638             MAKE_EXPECTED_ENV='cygwin'
20639           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20640             MAKE_EXPECTED_ENV='msys'
20641           else
20642             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20643           fi
20644           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20645           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20646         else
20647           # Not relevant for non-Windows
20648           IS_MAKE_CORRECT_ENV=true
20649         fi
20650         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20651           { $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
20652 $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;}
20653         else
20654           FOUND_MAKE=$MAKE_CANDIDATE
20655 
20656   # Only process if variable expands to non-empty
20657 
20658   if test "x$FOUND_MAKE" != x; then
20659     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20660 
20661   # First separate the path from the arguments. This will split at the first
20662   # space.
20663   complete="$FOUND_MAKE"
20664   path="${complete%% *}"
20665   tmp="$complete EOL"
20666   arguments="${tmp#* }"
20667 
20668   # Input might be given as Windows format, start by converting to
20669   # unix format.
20670   new_path=`$CYGPATH -u "$path"`
20671 
20672   # Now try to locate executable using which
20673   new_path=`$WHICH "$new_path" 2> /dev/null`
20674   # bat and cmd files are not always considered executable in cygwin causing which
20675   # to not find them
20676   if test "x$new_path" = x \
20677       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20678       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20679     new_path=`$CYGPATH -u "$path"`
20680   fi
20681   if test "x$new_path" = x; then
20682     # Oops. Which didn't find the executable.
20683     # The splitting of arguments from the executable at a space might have been incorrect,
20684     # since paths with space are more likely in Windows. Give it another try with the whole
20685     # argument.
20686     path="$complete"
20687     arguments="EOL"
20688     new_path=`$CYGPATH -u "$path"`
20689     new_path=`$WHICH "$new_path" 2> /dev/null`
20690     # bat and cmd files are not always considered executable in cygwin causing which
20691     # to not find them
20692     if test "x$new_path" = x \
20693         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20694         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20695       new_path=`$CYGPATH -u "$path"`
20696     fi
20697     if test "x$new_path" = x; then
20698       # It's still not found. Now this is an unrecoverable error.
20699       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20700 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20701       has_space=`$ECHO "$complete" | $GREP " "`
20702       if test "x$has_space" != x; then
20703         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20704 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20705       fi
20706       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20707     fi
20708   fi
20709 
20710   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20711   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20712   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20713   # "foo.exe" is OK but "foo" is an error.
20714   #
20715   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20716   # It is also a way to make sure we got the proper file name for the real test later on.
20717   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20718   if test "x$test_shortpath" = x; then
20719     # Short path failed, file does not exist as specified.
20720     # Try adding .exe or .cmd
20721     if test -f "${new_path}.exe"; then
20722       input_to_shortpath="${new_path}.exe"
20723     elif test -f "${new_path}.cmd"; then
20724       input_to_shortpath="${new_path}.cmd"
20725     else
20726       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20727 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20728       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20729 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20730       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20731     fi
20732   else
20733     input_to_shortpath="$new_path"
20734   fi
20735 
20736   # Call helper function which possibly converts this using DOS-style short mode.
20737   # If so, the updated path is stored in $new_path.
20738   new_path="$input_to_shortpath"
20739 
20740   input_path="$input_to_shortpath"
20741   # Check if we need to convert this using DOS-style short mode. If the path
20742   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20743   # take no chances and rewrite it.
20744   # Note: m4 eats our [], so we need to use [ and ] instead.
20745   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20746   if test "x$has_forbidden_chars" != x; then
20747     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20748     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20749     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20750     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20751       # Going to short mode and back again did indeed matter. Since short mode is
20752       # case insensitive, let's make it lowercase to improve readability.
20753       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20754       # Now convert it back to Unix-style (cygpath)
20755       input_path=`$CYGPATH -u "$shortmode_path"`
20756       new_path="$input_path"
20757     fi
20758   fi
20759 
20760   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20761   if test "x$test_cygdrive_prefix" = x; then
20762     # As a simple fix, exclude /usr/bin since it's not a real path.
20763     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20764       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20765       # a path prefixed by /cygdrive for fixpath to work.
20766       new_path="$CYGWIN_ROOT_PATH$input_path"
20767     fi
20768   fi
20769 
20770   # remove trailing .exe if any
20771   new_path="${new_path/%.exe/}"
20772 
20773     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20774 
20775   # First separate the path from the arguments. This will split at the first
20776   # space.
20777   complete="$FOUND_MAKE"
20778   path="${complete%% *}"
20779   tmp="$complete EOL"
20780   arguments="${tmp#* }"
20781 
20782   # Input might be given as Windows format, start by converting to
20783   # unix format.
20784   new_path="$path"
20785 
20786   windows_path="$new_path"
20787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20788     unix_path=`$CYGPATH -u "$windows_path"`
20789     new_path="$unix_path"
20790   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20791     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20792     new_path="$unix_path"
20793   fi
20794 
20795 
20796   # Now try to locate executable using which
20797   new_path=`$WHICH "$new_path" 2> /dev/null`
20798 
20799   if test "x$new_path" = x; then
20800     # Oops. Which didn't find the executable.
20801     # The splitting of arguments from the executable at a space might have been incorrect,
20802     # since paths with space are more likely in Windows. Give it another try with the whole
20803     # argument.
20804     path="$complete"
20805     arguments="EOL"
20806     new_path="$path"
20807 
20808   windows_path="$new_path"
20809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20810     unix_path=`$CYGPATH -u "$windows_path"`
20811     new_path="$unix_path"
20812   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20813     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20814     new_path="$unix_path"
20815   fi
20816 
20817 
20818     new_path=`$WHICH "$new_path" 2> /dev/null`
20819     # bat and cmd files are not always considered executable in MSYS causing which
20820     # to not find them
20821     if test "x$new_path" = x \
20822         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20823         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20824       new_path="$path"
20825 
20826   windows_path="$new_path"
20827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20828     unix_path=`$CYGPATH -u "$windows_path"`
20829     new_path="$unix_path"
20830   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20831     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20832     new_path="$unix_path"
20833   fi
20834 
20835     fi
20836 
20837     if test "x$new_path" = x; then
20838       # It's still not found. Now this is an unrecoverable error.
20839       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20840 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20841       has_space=`$ECHO "$complete" | $GREP " "`
20842       if test "x$has_space" != x; then
20843         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20844 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20845       fi
20846       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20847     fi
20848   fi
20849 
20850   # Now new_path has a complete unix path to the binary
20851   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20852     # Keep paths in /bin as-is, but remove trailing .exe if any
20853     new_path="${new_path/%.exe/}"
20854     # Do not save /bin paths to all_fixpath_prefixes!
20855   else
20856     # Not in mixed or Windows style, start by that.
20857     new_path=`cmd //c echo $new_path`
20858 
20859   input_path="$new_path"
20860   # Check if we need to convert this using DOS-style short mode. If the path
20861   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20862   # take no chances and rewrite it.
20863   # Note: m4 eats our [], so we need to use [ and ] instead.
20864   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20865   if test "x$has_forbidden_chars" != x; then
20866     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20867     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20868   fi
20869 
20870     # Output is in $new_path
20871 
20872   windows_path="$new_path"
20873   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20874     unix_path=`$CYGPATH -u "$windows_path"`
20875     new_path="$unix_path"
20876   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20877     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20878     new_path="$unix_path"
20879   fi
20880 
20881     # remove trailing .exe if any
20882     new_path="${new_path/%.exe/}"
20883 
20884     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20885     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20886   fi
20887 
20888     else
20889       # We're on a unix platform. Hooray! :)
20890       # First separate the path from the arguments. This will split at the first
20891       # space.
20892       complete="$FOUND_MAKE"
20893       path="${complete%% *}"
20894       tmp="$complete EOL"
20895       arguments="${tmp#* }"
20896 
20897       # Cannot rely on the command "which" here since it doesn't always work.
20898       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20899       if test -z "$is_absolute_path"; then
20900         # Path to executable is not absolute. Find it.
20901         IFS_save="$IFS"
20902         IFS=:
20903         for p in $PATH; do
20904           if test -f "$p/$path" && test -x "$p/$path"; then
20905             new_path="$p/$path"
20906             break
20907           fi
20908         done
20909         IFS="$IFS_save"
20910       else
20911         # This is an absolute path, we can use it without further modifications.
20912         new_path="$path"
20913       fi
20914 
20915       if test "x$new_path" = x; then
20916         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20917 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20918         has_space=`$ECHO "$complete" | $GREP " "`
20919         if test "x$has_space" != x; then
20920           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20921 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20922         fi
20923         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20924       fi
20925     fi
20926 
20927     # Now join together the path and the arguments once again
20928     if test "x$arguments" != xEOL; then
20929       new_complete="$new_path ${arguments% *}"
20930     else
20931       new_complete="$new_path"
20932     fi
20933 
20934     if test "x$complete" != "x$new_complete"; then
20935       FOUND_MAKE="$new_complete"
20936       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20937 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20938     fi
20939   fi
20940 
20941         fi
20942       fi
20943     fi
20944   fi
20945 
20946         fi
20947         PATH=$OLD_PATH
20948       fi
20949     fi
20950 
20951     if test "x$FOUND_MAKE" = x; then
20952       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
20953     fi
20954 
20955     else
20956       # If it succeeded, then it was overridden by the user. We will use it
20957       # for the tool.
20958 
20959       # First remove it from the list of overridden variables, so we can test
20960       # for unknown variables in the end.
20961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20962 
20963       # Check if we try to supply an empty value
20964       if test "x$MAKE" = x; then
20965         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20966 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20968 $as_echo_n "checking for MAKE... " >&6; }
20969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20970 $as_echo "disabled" >&6; }
20971       else
20972         # Check if the provided tool contains a complete path.
20973         tool_specified="$MAKE"
20974         tool_basename="${tool_specified##*/}"
20975         if test "x$tool_basename" = "x$tool_specified"; then
20976           # A command without a complete path is provided, search $PATH.
20977           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20978 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20979           # Extract the first word of "$tool_basename", so it can be a program name with args.
20980 set dummy $tool_basename; ac_word=$2
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20982 $as_echo_n "checking for $ac_word... " >&6; }
20983 if ${ac_cv_path_MAKE+:} false; then :
20984   $as_echo_n "(cached) " >&6
20985 else
20986   case $MAKE in
20987   [\\/]* | ?:[\\/]*)
20988   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20989   ;;
20990   *)
20991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20992 for as_dir in $PATH
20993 do
20994   IFS=$as_save_IFS
20995   test -z "$as_dir" && as_dir=.
20996     for ac_exec_ext in '' $ac_executable_extensions; do
20997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20998     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21000     break 2
21001   fi
21002 done
21003   done
21004 IFS=$as_save_IFS
21005 
21006   ;;
21007 esac
21008 fi
21009 MAKE=$ac_cv_path_MAKE
21010 if test -n "$MAKE"; then
21011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21012 $as_echo "$MAKE" >&6; }
21013 else
21014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21015 $as_echo "no" >&6; }
21016 fi
21017 
21018 
21019           if test "x$MAKE" = x; then
21020             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21021           fi
21022         else
21023           # Otherwise we believe it is a complete path. Use it as it is.
21024           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21025 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21026           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21027 $as_echo_n "checking for MAKE... " >&6; }
21028           if test ! -x "$tool_specified"; then
21029             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21030 $as_echo "not found" >&6; }
21031             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21032           fi
21033           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21034 $as_echo "$tool_specified" >&6; }
21035         fi
21036       fi
21037     fi
21038 
21039     # If MAKE was set by user, verify the version
21040 
21041   MAKE_CANDIDATE=""$MAKE""
21042   DESCRIPTION="user supplied MAKE=$MAKE"
21043 
21044   # On Cygwin, we require a newer version of make than on other platforms
21045   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21046     MAKE_VERSION_EXPR="-e 4\."
21047     MAKE_REQUIRED_VERSION="4.0"
21048    else
21049     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21050     MAKE_REQUIRED_VERSION="3.81"
21051   fi
21052 
21053   if test "x$MAKE_CANDIDATE" != x; then
21054     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21055 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21056     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21057     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21058     if test "x$IS_GNU_MAKE" = x; then
21059       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21060 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21061     else
21062       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21063       if test "x$IS_MODERN_MAKE" = x; then
21064         { $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
21065 $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;}
21066       else
21067         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21068           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21069             MAKE_EXPECTED_ENV='cygwin'
21070           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21071             MAKE_EXPECTED_ENV='msys'
21072           else
21073             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21074           fi
21075           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21076           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21077         else
21078           # Not relevant for non-Windows
21079           IS_MAKE_CORRECT_ENV=true
21080         fi
21081         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21082           { $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
21083 $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;}
21084         else
21085           FOUND_MAKE=$MAKE_CANDIDATE
21086 
21087   # Only process if variable expands to non-empty
21088 
21089   if test "x$FOUND_MAKE" != x; then
21090     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21091 
21092   # First separate the path from the arguments. This will split at the first
21093   # space.
21094   complete="$FOUND_MAKE"
21095   path="${complete%% *}"
21096   tmp="$complete EOL"
21097   arguments="${tmp#* }"
21098 
21099   # Input might be given as Windows format, start by converting to
21100   # unix format.
21101   new_path=`$CYGPATH -u "$path"`
21102 
21103   # Now try to locate executable using which
21104   new_path=`$WHICH "$new_path" 2> /dev/null`
21105   # bat and cmd files are not always considered executable in cygwin causing which
21106   # to not find them
21107   if test "x$new_path" = x \
21108       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21109       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21110     new_path=`$CYGPATH -u "$path"`
21111   fi
21112   if test "x$new_path" = x; then
21113     # Oops. Which didn't find the executable.
21114     # The splitting of arguments from the executable at a space might have been incorrect,
21115     # since paths with space are more likely in Windows. Give it another try with the whole
21116     # argument.
21117     path="$complete"
21118     arguments="EOL"
21119     new_path=`$CYGPATH -u "$path"`
21120     new_path=`$WHICH "$new_path" 2> /dev/null`
21121     # bat and cmd files are not always considered executable in cygwin causing which
21122     # to not find them
21123     if test "x$new_path" = x \
21124         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21125         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21126       new_path=`$CYGPATH -u "$path"`
21127     fi
21128     if test "x$new_path" = x; then
21129       # It's still not found. Now this is an unrecoverable error.
21130       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21131 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21132       has_space=`$ECHO "$complete" | $GREP " "`
21133       if test "x$has_space" != x; then
21134         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21135 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21136       fi
21137       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21138     fi
21139   fi
21140 
21141   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21142   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21143   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21144   # "foo.exe" is OK but "foo" is an error.
21145   #
21146   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21147   # It is also a way to make sure we got the proper file name for the real test later on.
21148   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21149   if test "x$test_shortpath" = x; then
21150     # Short path failed, file does not exist as specified.
21151     # Try adding .exe or .cmd
21152     if test -f "${new_path}.exe"; then
21153       input_to_shortpath="${new_path}.exe"
21154     elif test -f "${new_path}.cmd"; then
21155       input_to_shortpath="${new_path}.cmd"
21156     else
21157       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21158 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21159       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21160 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21161       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21162     fi
21163   else
21164     input_to_shortpath="$new_path"
21165   fi
21166 
21167   # Call helper function which possibly converts this using DOS-style short mode.
21168   # If so, the updated path is stored in $new_path.
21169   new_path="$input_to_shortpath"
21170 
21171   input_path="$input_to_shortpath"
21172   # Check if we need to convert this using DOS-style short mode. If the path
21173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21174   # take no chances and rewrite it.
21175   # Note: m4 eats our [], so we need to use [ and ] instead.
21176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21177   if test "x$has_forbidden_chars" != x; then
21178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21179     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21180     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21181     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21182       # Going to short mode and back again did indeed matter. Since short mode is
21183       # case insensitive, let's make it lowercase to improve readability.
21184       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21185       # Now convert it back to Unix-style (cygpath)
21186       input_path=`$CYGPATH -u "$shortmode_path"`
21187       new_path="$input_path"
21188     fi
21189   fi
21190 
21191   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21192   if test "x$test_cygdrive_prefix" = x; then
21193     # As a simple fix, exclude /usr/bin since it's not a real path.
21194     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21195       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21196       # a path prefixed by /cygdrive for fixpath to work.
21197       new_path="$CYGWIN_ROOT_PATH$input_path"
21198     fi
21199   fi
21200 
21201   # remove trailing .exe if any
21202   new_path="${new_path/%.exe/}"
21203 
21204     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21205 
21206   # First separate the path from the arguments. This will split at the first
21207   # space.
21208   complete="$FOUND_MAKE"
21209   path="${complete%% *}"
21210   tmp="$complete EOL"
21211   arguments="${tmp#* }"
21212 
21213   # Input might be given as Windows format, start by converting to
21214   # unix format.
21215   new_path="$path"
21216 
21217   windows_path="$new_path"
21218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21219     unix_path=`$CYGPATH -u "$windows_path"`
21220     new_path="$unix_path"
21221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21222     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21223     new_path="$unix_path"
21224   fi
21225 
21226 
21227   # Now try to locate executable using which
21228   new_path=`$WHICH "$new_path" 2> /dev/null`
21229 
21230   if test "x$new_path" = x; then
21231     # Oops. Which didn't find the executable.
21232     # The splitting of arguments from the executable at a space might have been incorrect,
21233     # since paths with space are more likely in Windows. Give it another try with the whole
21234     # argument.
21235     path="$complete"
21236     arguments="EOL"
21237     new_path="$path"
21238 
21239   windows_path="$new_path"
21240   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21241     unix_path=`$CYGPATH -u "$windows_path"`
21242     new_path="$unix_path"
21243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21244     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21245     new_path="$unix_path"
21246   fi
21247 
21248 
21249     new_path=`$WHICH "$new_path" 2> /dev/null`
21250     # bat and cmd files are not always considered executable in MSYS causing which
21251     # to not find them
21252     if test "x$new_path" = x \
21253         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21254         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21255       new_path="$path"
21256 
21257   windows_path="$new_path"
21258   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21259     unix_path=`$CYGPATH -u "$windows_path"`
21260     new_path="$unix_path"
21261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21262     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21263     new_path="$unix_path"
21264   fi
21265 
21266     fi
21267 
21268     if test "x$new_path" = x; then
21269       # It's still not found. Now this is an unrecoverable error.
21270       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21271 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21272       has_space=`$ECHO "$complete" | $GREP " "`
21273       if test "x$has_space" != x; then
21274         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21275 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21276       fi
21277       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21278     fi
21279   fi
21280 
21281   # Now new_path has a complete unix path to the binary
21282   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21283     # Keep paths in /bin as-is, but remove trailing .exe if any
21284     new_path="${new_path/%.exe/}"
21285     # Do not save /bin paths to all_fixpath_prefixes!
21286   else
21287     # Not in mixed or Windows style, start by that.
21288     new_path=`cmd //c echo $new_path`
21289 
21290   input_path="$new_path"
21291   # Check if we need to convert this using DOS-style short mode. If the path
21292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21293   # take no chances and rewrite it.
21294   # Note: m4 eats our [], so we need to use [ and ] instead.
21295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21296   if test "x$has_forbidden_chars" != x; then
21297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21298     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21299   fi
21300 
21301     # Output is in $new_path
21302 
21303   windows_path="$new_path"
21304   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21305     unix_path=`$CYGPATH -u "$windows_path"`
21306     new_path="$unix_path"
21307   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21308     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21309     new_path="$unix_path"
21310   fi
21311 
21312     # remove trailing .exe if any
21313     new_path="${new_path/%.exe/}"
21314 
21315     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21316     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21317   fi
21318 
21319     else
21320       # We're on a unix platform. Hooray! :)
21321       # First separate the path from the arguments. This will split at the first
21322       # space.
21323       complete="$FOUND_MAKE"
21324       path="${complete%% *}"
21325       tmp="$complete EOL"
21326       arguments="${tmp#* }"
21327 
21328       # Cannot rely on the command "which" here since it doesn't always work.
21329       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21330       if test -z "$is_absolute_path"; then
21331         # Path to executable is not absolute. Find it.
21332         IFS_save="$IFS"
21333         IFS=:
21334         for p in $PATH; do
21335           if test -f "$p/$path" && test -x "$p/$path"; then
21336             new_path="$p/$path"
21337             break
21338           fi
21339         done
21340         IFS="$IFS_save"
21341       else
21342         # This is an absolute path, we can use it without further modifications.
21343         new_path="$path"
21344       fi
21345 
21346       if test "x$new_path" = x; then
21347         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21348 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21349         has_space=`$ECHO "$complete" | $GREP " "`
21350         if test "x$has_space" != x; then
21351           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21352 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21353         fi
21354         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21355       fi
21356     fi
21357 
21358     # Now join together the path and the arguments once again
21359     if test "x$arguments" != xEOL; then
21360       new_complete="$new_path ${arguments% *}"
21361     else
21362       new_complete="$new_path"
21363     fi
21364 
21365     if test "x$complete" != "x$new_complete"; then
21366       FOUND_MAKE="$new_complete"
21367       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21368 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21369     fi
21370   fi
21371 
21372         fi
21373       fi
21374     fi
21375   fi
21376 
21377     if test "x$FOUND_MAKE" = x; then
21378       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21379     fi
21380 
21381   fi
21382 
21383 
21384   MAKE=$FOUND_MAKE
21385 
21386   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21387 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21388 
21389 
21390   # Check if make supports the output sync option and if so, setup using it.
21391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21392 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21393   if $MAKE --version -O > /dev/null 2>&1; then
21394     OUTPUT_SYNC_SUPPORTED=true
21395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21396 $as_echo "yes" >&6; }
21397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21398 $as_echo_n "checking for output-sync value... " >&6; }
21399 
21400 # Check whether --with-output-sync was given.
21401 if test "${with_output_sync+set}" = set; then :
21402   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21403 fi
21404 
21405     if test "x$OUTPUT_SYNC" = "x"; then
21406       OUTPUT_SYNC=none
21407     fi
21408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21409 $as_echo "$OUTPUT_SYNC" >&6; }
21410     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21411       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21412     fi
21413   else
21414     OUTPUT_SYNC_SUPPORTED=false
21415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417   fi
21418 
21419 
21420 
21421 
21422 
21423 
21424   # Test if find supports -delete
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21426 $as_echo_n "checking if find supports -delete... " >&6; }
21427   FIND_DELETE="-delete"
21428 
21429   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21430 
21431   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21432 
21433   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21434   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21435     # No, it does not.
21436     $RM $DELETEDIR/TestIfFindSupportsDelete
21437     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21438       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21439       FIND_DELETE="-print | $XARGS $RM"
21440     else
21441       FIND_DELETE="-exec $RM \{\} \+"
21442     fi
21443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21445   else
21446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21447 $as_echo "yes" >&6; }
21448   fi
21449   $RMDIR $DELETEDIR
21450 
21451 
21452 
21453   # Test which kind of tar was found
21454   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21455     TAR_TYPE="gnu"
21456   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21457     TAR_TYPE="bsd"
21458   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21459     TAR_TYPE="bsd"
21460   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21461     TAR_TYPE="solaris"
21462   fi
21463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21464 $as_echo_n "checking what type of tar was found... " >&6; }
21465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21466 $as_echo "$TAR_TYPE" >&6; }
21467 
21468   TAR_CREATE_FILE_PARAM=""
21469 
21470   if test "x$TAR_TYPE" = "xgnu"; then
21471     TAR_INCLUDE_PARAM="T"
21472     TAR_SUPPORTS_TRANSFORM="true"
21473     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21474       # When using gnu tar for Solaris targets, need to use compatibility mode
21475       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21476     fi
21477   else
21478     TAR_INCLUDE_PARAM="I"
21479     TAR_SUPPORTS_TRANSFORM="false"
21480   fi
21481 
21482 
21483 
21484 
21485 
21486 
21487   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21488   # This is a problem for the grep resident on AIX.
21489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21490 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21491   # Multiple subsequent spaces..
21492   STACK_SPACES='aaa   bbb   ccc'
21493   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21494   # patterns in it.
21495   STACK_LIST=${STACK_SPACES// /$'\n'}
21496   NEEDLE_SPACES='ccc bbb aaa'
21497   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21498   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21499   if test "x$RESULT" == "x"; then
21500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 $as_echo "yes" >&6; }
21502   else
21503     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21504       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21505     fi
21506     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21507   fi
21508 
21509 
21510   # These tools might not be installed by default,
21511   # need hint on how to install them.
21512 
21513 
21514 
21515   # Publish this variable in the help.
21516 
21517 
21518   if [ -z "${UNZIP+x}" ]; then
21519     # The variable is not set by user, try to locate tool using the code snippet
21520     for ac_prog in unzip
21521 do
21522   # Extract the first word of "$ac_prog", so it can be a program name with args.
21523 set dummy $ac_prog; ac_word=$2
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21525 $as_echo_n "checking for $ac_word... " >&6; }
21526 if ${ac_cv_path_UNZIP+:} false; then :
21527   $as_echo_n "(cached) " >&6
21528 else
21529   case $UNZIP in
21530   [\\/]* | ?:[\\/]*)
21531   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21532   ;;
21533   *)
21534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 for as_dir in $PATH
21536 do
21537   IFS=$as_save_IFS
21538   test -z "$as_dir" && as_dir=.
21539     for ac_exec_ext in '' $ac_executable_extensions; do
21540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21541     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21543     break 2
21544   fi
21545 done
21546   done
21547 IFS=$as_save_IFS
21548 
21549   ;;
21550 esac
21551 fi
21552 UNZIP=$ac_cv_path_UNZIP
21553 if test -n "$UNZIP"; then
21554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21555 $as_echo "$UNZIP" >&6; }
21556 else
21557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21558 $as_echo "no" >&6; }
21559 fi
21560 
21561 
21562   test -n "$UNZIP" && break
21563 done
21564 
21565   else
21566     # The variable is set, but is it from the command line or the environment?
21567 
21568     # Try to remove the string !UNZIP! from our list.
21569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21571       # If it failed, the variable was not from the command line. Ignore it,
21572       # but warn the user (except for BASH, which is always set by the calling BASH).
21573       if test "xUNZIP" != xBASH; then
21574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21575 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21576       fi
21577       # Try to locate tool using the code snippet
21578       for ac_prog in unzip
21579 do
21580   # Extract the first word of "$ac_prog", so it can be a program name with args.
21581 set dummy $ac_prog; ac_word=$2
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 $as_echo_n "checking for $ac_word... " >&6; }
21584 if ${ac_cv_path_UNZIP+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   case $UNZIP in
21588   [\\/]* | ?:[\\/]*)
21589   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21590   ;;
21591   *)
21592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21593 for as_dir in $PATH
21594 do
21595   IFS=$as_save_IFS
21596   test -z "$as_dir" && as_dir=.
21597     for ac_exec_ext in '' $ac_executable_extensions; do
21598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21599     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21601     break 2
21602   fi
21603 done
21604   done
21605 IFS=$as_save_IFS
21606 
21607   ;;
21608 esac
21609 fi
21610 UNZIP=$ac_cv_path_UNZIP
21611 if test -n "$UNZIP"; then
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21613 $as_echo "$UNZIP" >&6; }
21614 else
21615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21616 $as_echo "no" >&6; }
21617 fi
21618 
21619 
21620   test -n "$UNZIP" && break
21621 done
21622 
21623     else
21624       # If it succeeded, then it was overridden by the user. We will use it
21625       # for the tool.
21626 
21627       # First remove it from the list of overridden variables, so we can test
21628       # for unknown variables in the end.
21629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21630 
21631       # Check if we try to supply an empty value
21632       if test "x$UNZIP" = x; then
21633         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21634 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21636 $as_echo_n "checking for UNZIP... " >&6; }
21637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21638 $as_echo "disabled" >&6; }
21639       else
21640         # Check if the provided tool contains a complete path.
21641         tool_specified="$UNZIP"
21642         tool_basename="${tool_specified##*/}"
21643         if test "x$tool_basename" = "x$tool_specified"; then
21644           # A command without a complete path is provided, search $PATH.
21645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21646 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21647           # Extract the first word of "$tool_basename", so it can be a program name with args.
21648 set dummy $tool_basename; ac_word=$2
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21650 $as_echo_n "checking for $ac_word... " >&6; }
21651 if ${ac_cv_path_UNZIP+:} false; then :
21652   $as_echo_n "(cached) " >&6
21653 else
21654   case $UNZIP in
21655   [\\/]* | ?:[\\/]*)
21656   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21657   ;;
21658   *)
21659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21660 for as_dir in $PATH
21661 do
21662   IFS=$as_save_IFS
21663   test -z "$as_dir" && as_dir=.
21664     for ac_exec_ext in '' $ac_executable_extensions; do
21665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21666     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21668     break 2
21669   fi
21670 done
21671   done
21672 IFS=$as_save_IFS
21673 
21674   ;;
21675 esac
21676 fi
21677 UNZIP=$ac_cv_path_UNZIP
21678 if test -n "$UNZIP"; then
21679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21680 $as_echo "$UNZIP" >&6; }
21681 else
21682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21684 fi
21685 
21686 
21687           if test "x$UNZIP" = x; then
21688             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21689           fi
21690         else
21691           # Otherwise we believe it is a complete path. Use it as it is.
21692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21693 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21694           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21695 $as_echo_n "checking for UNZIP... " >&6; }
21696           if test ! -x "$tool_specified"; then
21697             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21698 $as_echo "not found" >&6; }
21699             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21700           fi
21701           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21702 $as_echo "$tool_specified" >&6; }
21703         fi
21704       fi
21705     fi
21706 
21707   fi
21708 
21709 
21710 
21711   if test "x$UNZIP" = x; then
21712     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21713   fi
21714 
21715 
21716   # Since zip uses "ZIP" as a environment variable for passing options, we need
21717   # to name our variable differently, hence ZIPEXE.
21718 
21719 
21720 
21721   # Publish this variable in the help.
21722 
21723 
21724   if [ -z "${ZIPEXE+x}" ]; then
21725     # The variable is not set by user, try to locate tool using the code snippet
21726     for ac_prog in zip
21727 do
21728   # Extract the first word of "$ac_prog", so it can be a program name with args.
21729 set dummy $ac_prog; ac_word=$2
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21731 $as_echo_n "checking for $ac_word... " >&6; }
21732 if ${ac_cv_path_ZIPEXE+:} false; then :
21733   $as_echo_n "(cached) " >&6
21734 else
21735   case $ZIPEXE in
21736   [\\/]* | ?:[\\/]*)
21737   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21738   ;;
21739   *)
21740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21741 for as_dir in $PATH
21742 do
21743   IFS=$as_save_IFS
21744   test -z "$as_dir" && as_dir=.
21745     for ac_exec_ext in '' $ac_executable_extensions; do
21746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21747     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21749     break 2
21750   fi
21751 done
21752   done
21753 IFS=$as_save_IFS
21754 
21755   ;;
21756 esac
21757 fi
21758 ZIPEXE=$ac_cv_path_ZIPEXE
21759 if test -n "$ZIPEXE"; then
21760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21761 $as_echo "$ZIPEXE" >&6; }
21762 else
21763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21764 $as_echo "no" >&6; }
21765 fi
21766 
21767 
21768   test -n "$ZIPEXE" && break
21769 done
21770 
21771   else
21772     # The variable is set, but is it from the command line or the environment?
21773 
21774     # Try to remove the string !ZIPEXE! from our list.
21775     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21776     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21777       # If it failed, the variable was not from the command line. Ignore it,
21778       # but warn the user (except for BASH, which is always set by the calling BASH).
21779       if test "xZIPEXE" != xBASH; then
21780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21781 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21782       fi
21783       # Try to locate tool using the code snippet
21784       for ac_prog in zip
21785 do
21786   # Extract the first word of "$ac_prog", so it can be a program name with args.
21787 set dummy $ac_prog; ac_word=$2
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21789 $as_echo_n "checking for $ac_word... " >&6; }
21790 if ${ac_cv_path_ZIPEXE+:} false; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793   case $ZIPEXE in
21794   [\\/]* | ?:[\\/]*)
21795   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21796   ;;
21797   *)
21798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21799 for as_dir in $PATH
21800 do
21801   IFS=$as_save_IFS
21802   test -z "$as_dir" && as_dir=.
21803     for ac_exec_ext in '' $ac_executable_extensions; do
21804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21805     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21807     break 2
21808   fi
21809 done
21810   done
21811 IFS=$as_save_IFS
21812 
21813   ;;
21814 esac
21815 fi
21816 ZIPEXE=$ac_cv_path_ZIPEXE
21817 if test -n "$ZIPEXE"; then
21818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21819 $as_echo "$ZIPEXE" >&6; }
21820 else
21821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 $as_echo "no" >&6; }
21823 fi
21824 
21825 
21826   test -n "$ZIPEXE" && break
21827 done
21828 
21829     else
21830       # If it succeeded, then it was overridden by the user. We will use it
21831       # for the tool.
21832 
21833       # First remove it from the list of overridden variables, so we can test
21834       # for unknown variables in the end.
21835       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21836 
21837       # Check if we try to supply an empty value
21838       if test "x$ZIPEXE" = x; then
21839         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21840 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21842 $as_echo_n "checking for ZIPEXE... " >&6; }
21843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21844 $as_echo "disabled" >&6; }
21845       else
21846         # Check if the provided tool contains a complete path.
21847         tool_specified="$ZIPEXE"
21848         tool_basename="${tool_specified##*/}"
21849         if test "x$tool_basename" = "x$tool_specified"; then
21850           # A command without a complete path is provided, search $PATH.
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21852 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21853           # Extract the first word of "$tool_basename", so it can be a program name with args.
21854 set dummy $tool_basename; ac_word=$2
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21856 $as_echo_n "checking for $ac_word... " >&6; }
21857 if ${ac_cv_path_ZIPEXE+:} false; then :
21858   $as_echo_n "(cached) " >&6
21859 else
21860   case $ZIPEXE in
21861   [\\/]* | ?:[\\/]*)
21862   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21863   ;;
21864   *)
21865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21866 for as_dir in $PATH
21867 do
21868   IFS=$as_save_IFS
21869   test -z "$as_dir" && as_dir=.
21870     for ac_exec_ext in '' $ac_executable_extensions; do
21871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21872     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21874     break 2
21875   fi
21876 done
21877   done
21878 IFS=$as_save_IFS
21879 
21880   ;;
21881 esac
21882 fi
21883 ZIPEXE=$ac_cv_path_ZIPEXE
21884 if test -n "$ZIPEXE"; then
21885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21886 $as_echo "$ZIPEXE" >&6; }
21887 else
21888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889 $as_echo "no" >&6; }
21890 fi
21891 
21892 
21893           if test "x$ZIPEXE" = x; then
21894             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21895           fi
21896         else
21897           # Otherwise we believe it is a complete path. Use it as it is.
21898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21899 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21900           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21901 $as_echo_n "checking for ZIPEXE... " >&6; }
21902           if test ! -x "$tool_specified"; then
21903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21904 $as_echo "not found" >&6; }
21905             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21906           fi
21907           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21908 $as_echo "$tool_specified" >&6; }
21909         fi
21910       fi
21911     fi
21912 
21913   fi
21914 
21915 
21916 
21917   if test "x$ZIPEXE" = x; then
21918     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21919   fi
21920 
21921 
21922 
21923   # Non-required basic tools
21924 
21925 
21926 
21927   # Publish this variable in the help.
21928 
21929 
21930   if [ -z "${LDD+x}" ]; then
21931     # The variable is not set by user, try to locate tool using the code snippet
21932     for ac_prog in ldd
21933 do
21934   # Extract the first word of "$ac_prog", so it can be a program name with args.
21935 set dummy $ac_prog; ac_word=$2
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21937 $as_echo_n "checking for $ac_word... " >&6; }
21938 if ${ac_cv_path_LDD+:} false; then :
21939   $as_echo_n "(cached) " >&6
21940 else
21941   case $LDD in
21942   [\\/]* | ?:[\\/]*)
21943   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21944   ;;
21945   *)
21946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21948 do
21949   IFS=$as_save_IFS
21950   test -z "$as_dir" && as_dir=.
21951     for ac_exec_ext in '' $ac_executable_extensions; do
21952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21953     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21955     break 2
21956   fi
21957 done
21958   done
21959 IFS=$as_save_IFS
21960 
21961   ;;
21962 esac
21963 fi
21964 LDD=$ac_cv_path_LDD
21965 if test -n "$LDD"; then
21966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21967 $as_echo "$LDD" >&6; }
21968 else
21969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21970 $as_echo "no" >&6; }
21971 fi
21972 
21973 
21974   test -n "$LDD" && break
21975 done
21976 
21977   else
21978     # The variable is set, but is it from the command line or the environment?
21979 
21980     # Try to remove the string !LDD! from our list.
21981     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21982     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21983       # If it failed, the variable was not from the command line. Ignore it,
21984       # but warn the user (except for BASH, which is always set by the calling BASH).
21985       if test "xLDD" != xBASH; then
21986         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21987 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21988       fi
21989       # Try to locate tool using the code snippet
21990       for ac_prog in ldd
21991 do
21992   # Extract the first word of "$ac_prog", so it can be a program name with args.
21993 set dummy $ac_prog; ac_word=$2
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21995 $as_echo_n "checking for $ac_word... " >&6; }
21996 if ${ac_cv_path_LDD+:} false; then :
21997   $as_echo_n "(cached) " >&6
21998 else
21999   case $LDD in
22000   [\\/]* | ?:[\\/]*)
22001   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22002   ;;
22003   *)
22004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22005 for as_dir in $PATH
22006 do
22007   IFS=$as_save_IFS
22008   test -z "$as_dir" && as_dir=.
22009     for ac_exec_ext in '' $ac_executable_extensions; do
22010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22011     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22013     break 2
22014   fi
22015 done
22016   done
22017 IFS=$as_save_IFS
22018 
22019   ;;
22020 esac
22021 fi
22022 LDD=$ac_cv_path_LDD
22023 if test -n "$LDD"; then
22024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22025 $as_echo "$LDD" >&6; }
22026 else
22027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028 $as_echo "no" >&6; }
22029 fi
22030 
22031 
22032   test -n "$LDD" && break
22033 done
22034 
22035     else
22036       # If it succeeded, then it was overridden by the user. We will use it
22037       # for the tool.
22038 
22039       # First remove it from the list of overridden variables, so we can test
22040       # for unknown variables in the end.
22041       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22042 
22043       # Check if we try to supply an empty value
22044       if test "x$LDD" = x; then
22045         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22046 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22048 $as_echo_n "checking for LDD... " >&6; }
22049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22050 $as_echo "disabled" >&6; }
22051       else
22052         # Check if the provided tool contains a complete path.
22053         tool_specified="$LDD"
22054         tool_basename="${tool_specified##*/}"
22055         if test "x$tool_basename" = "x$tool_specified"; then
22056           # A command without a complete path is provided, search $PATH.
22057           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22058 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22059           # Extract the first word of "$tool_basename", so it can be a program name with args.
22060 set dummy $tool_basename; ac_word=$2
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22062 $as_echo_n "checking for $ac_word... " >&6; }
22063 if ${ac_cv_path_LDD+:} false; then :
22064   $as_echo_n "(cached) " >&6
22065 else
22066   case $LDD in
22067   [\\/]* | ?:[\\/]*)
22068   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22069   ;;
22070   *)
22071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22072 for as_dir in $PATH
22073 do
22074   IFS=$as_save_IFS
22075   test -z "$as_dir" && as_dir=.
22076     for ac_exec_ext in '' $ac_executable_extensions; do
22077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22078     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22080     break 2
22081   fi
22082 done
22083   done
22084 IFS=$as_save_IFS
22085 
22086   ;;
22087 esac
22088 fi
22089 LDD=$ac_cv_path_LDD
22090 if test -n "$LDD"; then
22091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22092 $as_echo "$LDD" >&6; }
22093 else
22094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22096 fi
22097 
22098 
22099           if test "x$LDD" = x; then
22100             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22101           fi
22102         else
22103           # Otherwise we believe it is a complete path. Use it as it is.
22104           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22105 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22106           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22107 $as_echo_n "checking for LDD... " >&6; }
22108           if test ! -x "$tool_specified"; then
22109             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22110 $as_echo "not found" >&6; }
22111             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22112           fi
22113           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22114 $as_echo "$tool_specified" >&6; }
22115         fi
22116       fi
22117     fi
22118 
22119   fi
22120 
22121 
22122   if test "x$LDD" = "x"; then
22123     # List shared lib dependencies is used for
22124     # debug output and checking for forbidden dependencies.
22125     # We can build without it.
22126     LDD="true"
22127   fi
22128 
22129 
22130   # Publish this variable in the help.
22131 
22132 
22133   if [ -z "${READELF+x}" ]; then
22134     # The variable is not set by user, try to locate tool using the code snippet
22135     for ac_prog in greadelf readelf
22136 do
22137   # Extract the first word of "$ac_prog", so it can be a program name with args.
22138 set dummy $ac_prog; ac_word=$2
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22140 $as_echo_n "checking for $ac_word... " >&6; }
22141 if ${ac_cv_path_READELF+:} false; then :
22142   $as_echo_n "(cached) " >&6
22143 else
22144   case $READELF in
22145   [\\/]* | ?:[\\/]*)
22146   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22147   ;;
22148   *)
22149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22150 for as_dir in $PATH
22151 do
22152   IFS=$as_save_IFS
22153   test -z "$as_dir" && as_dir=.
22154     for ac_exec_ext in '' $ac_executable_extensions; do
22155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22156     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22158     break 2
22159   fi
22160 done
22161   done
22162 IFS=$as_save_IFS
22163 
22164   ;;
22165 esac
22166 fi
22167 READELF=$ac_cv_path_READELF
22168 if test -n "$READELF"; then
22169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22170 $as_echo "$READELF" >&6; }
22171 else
22172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22173 $as_echo "no" >&6; }
22174 fi
22175 
22176 
22177   test -n "$READELF" && break
22178 done
22179 
22180   else
22181     # The variable is set, but is it from the command line or the environment?
22182 
22183     # Try to remove the string !READELF! from our list.
22184     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22185     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22186       # If it failed, the variable was not from the command line. Ignore it,
22187       # but warn the user (except for BASH, which is always set by the calling BASH).
22188       if test "xREADELF" != xBASH; then
22189         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22190 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22191       fi
22192       # Try to locate tool using the code snippet
22193       for ac_prog in greadelf readelf
22194 do
22195   # Extract the first word of "$ac_prog", so it can be a program name with args.
22196 set dummy $ac_prog; ac_word=$2
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22198 $as_echo_n "checking for $ac_word... " >&6; }
22199 if ${ac_cv_path_READELF+:} false; then :
22200   $as_echo_n "(cached) " >&6
22201 else
22202   case $READELF in
22203   [\\/]* | ?:[\\/]*)
22204   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22205   ;;
22206   *)
22207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22209 do
22210   IFS=$as_save_IFS
22211   test -z "$as_dir" && as_dir=.
22212     for ac_exec_ext in '' $ac_executable_extensions; do
22213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22214     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22216     break 2
22217   fi
22218 done
22219   done
22220 IFS=$as_save_IFS
22221 
22222   ;;
22223 esac
22224 fi
22225 READELF=$ac_cv_path_READELF
22226 if test -n "$READELF"; then
22227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22228 $as_echo "$READELF" >&6; }
22229 else
22230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22232 fi
22233 
22234 
22235   test -n "$READELF" && break
22236 done
22237 
22238     else
22239       # If it succeeded, then it was overridden by the user. We will use it
22240       # for the tool.
22241 
22242       # First remove it from the list of overridden variables, so we can test
22243       # for unknown variables in the end.
22244       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22245 
22246       # Check if we try to supply an empty value
22247       if test "x$READELF" = x; then
22248         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22249 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22251 $as_echo_n "checking for READELF... " >&6; }
22252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22253 $as_echo "disabled" >&6; }
22254       else
22255         # Check if the provided tool contains a complete path.
22256         tool_specified="$READELF"
22257         tool_basename="${tool_specified##*/}"
22258         if test "x$tool_basename" = "x$tool_specified"; then
22259           # A command without a complete path is provided, search $PATH.
22260           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22261 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22262           # Extract the first word of "$tool_basename", so it can be a program name with args.
22263 set dummy $tool_basename; ac_word=$2
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22265 $as_echo_n "checking for $ac_word... " >&6; }
22266 if ${ac_cv_path_READELF+:} false; then :
22267   $as_echo_n "(cached) " >&6
22268 else
22269   case $READELF in
22270   [\\/]* | ?:[\\/]*)
22271   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22272   ;;
22273   *)
22274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22275 for as_dir in $PATH
22276 do
22277   IFS=$as_save_IFS
22278   test -z "$as_dir" && as_dir=.
22279     for ac_exec_ext in '' $ac_executable_extensions; do
22280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22281     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22283     break 2
22284   fi
22285 done
22286   done
22287 IFS=$as_save_IFS
22288 
22289   ;;
22290 esac
22291 fi
22292 READELF=$ac_cv_path_READELF
22293 if test -n "$READELF"; then
22294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22295 $as_echo "$READELF" >&6; }
22296 else
22297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22299 fi
22300 
22301 
22302           if test "x$READELF" = x; then
22303             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22304           fi
22305         else
22306           # Otherwise we believe it is a complete path. Use it as it is.
22307           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22308 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22310 $as_echo_n "checking for READELF... " >&6; }
22311           if test ! -x "$tool_specified"; then
22312             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22313 $as_echo "not found" >&6; }
22314             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22315           fi
22316           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22317 $as_echo "$tool_specified" >&6; }
22318         fi
22319       fi
22320     fi
22321 
22322   fi
22323 
22324 
22325 
22326 
22327   # Publish this variable in the help.
22328 
22329 
22330   if [ -z "${DOT+x}" ]; then
22331     # The variable is not set by user, try to locate tool using the code snippet
22332     for ac_prog in dot
22333 do
22334   # Extract the first word of "$ac_prog", so it can be a program name with args.
22335 set dummy $ac_prog; ac_word=$2
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22337 $as_echo_n "checking for $ac_word... " >&6; }
22338 if ${ac_cv_path_DOT+:} false; then :
22339   $as_echo_n "(cached) " >&6
22340 else
22341   case $DOT in
22342   [\\/]* | ?:[\\/]*)
22343   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22344   ;;
22345   *)
22346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22348 do
22349   IFS=$as_save_IFS
22350   test -z "$as_dir" && as_dir=.
22351     for ac_exec_ext in '' $ac_executable_extensions; do
22352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22353     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22355     break 2
22356   fi
22357 done
22358   done
22359 IFS=$as_save_IFS
22360 
22361   ;;
22362 esac
22363 fi
22364 DOT=$ac_cv_path_DOT
22365 if test -n "$DOT"; then
22366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22367 $as_echo "$DOT" >&6; }
22368 else
22369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 $as_echo "no" >&6; }
22371 fi
22372 
22373 
22374   test -n "$DOT" && break
22375 done
22376 
22377   else
22378     # The variable is set, but is it from the command line or the environment?
22379 
22380     # Try to remove the string !DOT! from our list.
22381     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22382     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22383       # If it failed, the variable was not from the command line. Ignore it,
22384       # but warn the user (except for BASH, which is always set by the calling BASH).
22385       if test "xDOT" != xBASH; then
22386         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22387 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22388       fi
22389       # Try to locate tool using the code snippet
22390       for ac_prog in dot
22391 do
22392   # Extract the first word of "$ac_prog", so it can be a program name with args.
22393 set dummy $ac_prog; ac_word=$2
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22395 $as_echo_n "checking for $ac_word... " >&6; }
22396 if ${ac_cv_path_DOT+:} false; then :
22397   $as_echo_n "(cached) " >&6
22398 else
22399   case $DOT in
22400   [\\/]* | ?:[\\/]*)
22401   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22402   ;;
22403   *)
22404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407   IFS=$as_save_IFS
22408   test -z "$as_dir" && as_dir=.
22409     for ac_exec_ext in '' $ac_executable_extensions; do
22410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413     break 2
22414   fi
22415 done
22416   done
22417 IFS=$as_save_IFS
22418 
22419   ;;
22420 esac
22421 fi
22422 DOT=$ac_cv_path_DOT
22423 if test -n "$DOT"; then
22424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22425 $as_echo "$DOT" >&6; }
22426 else
22427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429 fi
22430 
22431 
22432   test -n "$DOT" && break
22433 done
22434 
22435     else
22436       # If it succeeded, then it was overridden by the user. We will use it
22437       # for the tool.
22438 
22439       # First remove it from the list of overridden variables, so we can test
22440       # for unknown variables in the end.
22441       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22442 
22443       # Check if we try to supply an empty value
22444       if test "x$DOT" = x; then
22445         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22446 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22448 $as_echo_n "checking for DOT... " >&6; }
22449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22450 $as_echo "disabled" >&6; }
22451       else
22452         # Check if the provided tool contains a complete path.
22453         tool_specified="$DOT"
22454         tool_basename="${tool_specified##*/}"
22455         if test "x$tool_basename" = "x$tool_specified"; then
22456           # A command without a complete path is provided, search $PATH.
22457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22458 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22459           # Extract the first word of "$tool_basename", so it can be a program name with args.
22460 set dummy $tool_basename; ac_word=$2
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22462 $as_echo_n "checking for $ac_word... " >&6; }
22463 if ${ac_cv_path_DOT+:} false; then :
22464   $as_echo_n "(cached) " >&6
22465 else
22466   case $DOT in
22467   [\\/]* | ?:[\\/]*)
22468   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22469   ;;
22470   *)
22471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22472 for as_dir in $PATH
22473 do
22474   IFS=$as_save_IFS
22475   test -z "$as_dir" && as_dir=.
22476     for ac_exec_ext in '' $ac_executable_extensions; do
22477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22478     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22480     break 2
22481   fi
22482 done
22483   done
22484 IFS=$as_save_IFS
22485 
22486   ;;
22487 esac
22488 fi
22489 DOT=$ac_cv_path_DOT
22490 if test -n "$DOT"; then
22491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22492 $as_echo "$DOT" >&6; }
22493 else
22494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22495 $as_echo "no" >&6; }
22496 fi
22497 
22498 
22499           if test "x$DOT" = x; then
22500             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22501           fi
22502         else
22503           # Otherwise we believe it is a complete path. Use it as it is.
22504           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22505 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22506           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22507 $as_echo_n "checking for DOT... " >&6; }
22508           if test ! -x "$tool_specified"; then
22509             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22510 $as_echo "not found" >&6; }
22511             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22512           fi
22513           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22514 $as_echo "$tool_specified" >&6; }
22515         fi
22516       fi
22517     fi
22518 
22519   fi
22520 
22521 
22522 
22523 
22524   # Publish this variable in the help.
22525 
22526 
22527   if [ -z "${HG+x}" ]; then
22528     # The variable is not set by user, try to locate tool using the code snippet
22529     for ac_prog in hg
22530 do
22531   # Extract the first word of "$ac_prog", so it can be a program name with args.
22532 set dummy $ac_prog; ac_word=$2
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22534 $as_echo_n "checking for $ac_word... " >&6; }
22535 if ${ac_cv_path_HG+:} false; then :
22536   $as_echo_n "(cached) " >&6
22537 else
22538   case $HG in
22539   [\\/]* | ?:[\\/]*)
22540   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22541   ;;
22542   *)
22543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22544 for as_dir in $PATH
22545 do
22546   IFS=$as_save_IFS
22547   test -z "$as_dir" && as_dir=.
22548     for ac_exec_ext in '' $ac_executable_extensions; do
22549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22550     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22552     break 2
22553   fi
22554 done
22555   done
22556 IFS=$as_save_IFS
22557 
22558   ;;
22559 esac
22560 fi
22561 HG=$ac_cv_path_HG
22562 if test -n "$HG"; then
22563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22564 $as_echo "$HG" >&6; }
22565 else
22566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22567 $as_echo "no" >&6; }
22568 fi
22569 
22570 
22571   test -n "$HG" && break
22572 done
22573 
22574   else
22575     # The variable is set, but is it from the command line or the environment?
22576 
22577     # Try to remove the string !HG! from our list.
22578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22580       # If it failed, the variable was not from the command line. Ignore it,
22581       # but warn the user (except for BASH, which is always set by the calling BASH).
22582       if test "xHG" != xBASH; then
22583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22584 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22585       fi
22586       # Try to locate tool using the code snippet
22587       for ac_prog in hg
22588 do
22589   # Extract the first word of "$ac_prog", so it can be a program name with args.
22590 set dummy $ac_prog; ac_word=$2
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22592 $as_echo_n "checking for $ac_word... " >&6; }
22593 if ${ac_cv_path_HG+:} false; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   case $HG in
22597   [\\/]* | ?:[\\/]*)
22598   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22599   ;;
22600   *)
22601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22602 for as_dir in $PATH
22603 do
22604   IFS=$as_save_IFS
22605   test -z "$as_dir" && as_dir=.
22606     for ac_exec_ext in '' $ac_executable_extensions; do
22607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22608     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22610     break 2
22611   fi
22612 done
22613   done
22614 IFS=$as_save_IFS
22615 
22616   ;;
22617 esac
22618 fi
22619 HG=$ac_cv_path_HG
22620 if test -n "$HG"; then
22621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22622 $as_echo "$HG" >&6; }
22623 else
22624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22626 fi
22627 
22628 
22629   test -n "$HG" && break
22630 done
22631 
22632     else
22633       # If it succeeded, then it was overridden by the user. We will use it
22634       # for the tool.
22635 
22636       # First remove it from the list of overridden variables, so we can test
22637       # for unknown variables in the end.
22638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22639 
22640       # Check if we try to supply an empty value
22641       if test "x$HG" = x; then
22642         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22643 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22645 $as_echo_n "checking for HG... " >&6; }
22646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22647 $as_echo "disabled" >&6; }
22648       else
22649         # Check if the provided tool contains a complete path.
22650         tool_specified="$HG"
22651         tool_basename="${tool_specified##*/}"
22652         if test "x$tool_basename" = "x$tool_specified"; then
22653           # A command without a complete path is provided, search $PATH.
22654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22655 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22656           # Extract the first word of "$tool_basename", so it can be a program name with args.
22657 set dummy $tool_basename; ac_word=$2
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22659 $as_echo_n "checking for $ac_word... " >&6; }
22660 if ${ac_cv_path_HG+:} false; then :
22661   $as_echo_n "(cached) " >&6
22662 else
22663   case $HG in
22664   [\\/]* | ?:[\\/]*)
22665   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22666   ;;
22667   *)
22668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22669 for as_dir in $PATH
22670 do
22671   IFS=$as_save_IFS
22672   test -z "$as_dir" && as_dir=.
22673     for ac_exec_ext in '' $ac_executable_extensions; do
22674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22675     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22677     break 2
22678   fi
22679 done
22680   done
22681 IFS=$as_save_IFS
22682 
22683   ;;
22684 esac
22685 fi
22686 HG=$ac_cv_path_HG
22687 if test -n "$HG"; then
22688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22689 $as_echo "$HG" >&6; }
22690 else
22691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22692 $as_echo "no" >&6; }
22693 fi
22694 
22695 
22696           if test "x$HG" = x; then
22697             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22698           fi
22699         else
22700           # Otherwise we believe it is a complete path. Use it as it is.
22701           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22702 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22704 $as_echo_n "checking for HG... " >&6; }
22705           if test ! -x "$tool_specified"; then
22706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22707 $as_echo "not found" >&6; }
22708             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22709           fi
22710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22711 $as_echo "$tool_specified" >&6; }
22712         fi
22713       fi
22714     fi
22715 
22716   fi
22717 
22718 
22719 
22720 
22721   # Publish this variable in the help.
22722 
22723 
22724   if [ -z "${STAT+x}" ]; then
22725     # The variable is not set by user, try to locate tool using the code snippet
22726     for ac_prog in stat
22727 do
22728   # Extract the first word of "$ac_prog", so it can be a program name with args.
22729 set dummy $ac_prog; ac_word=$2
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731 $as_echo_n "checking for $ac_word... " >&6; }
22732 if ${ac_cv_path_STAT+:} false; then :
22733   $as_echo_n "(cached) " >&6
22734 else
22735   case $STAT in
22736   [\\/]* | ?:[\\/]*)
22737   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22738   ;;
22739   *)
22740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22742 do
22743   IFS=$as_save_IFS
22744   test -z "$as_dir" && as_dir=.
22745     for ac_exec_ext in '' $ac_executable_extensions; do
22746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749     break 2
22750   fi
22751 done
22752   done
22753 IFS=$as_save_IFS
22754 
22755   ;;
22756 esac
22757 fi
22758 STAT=$ac_cv_path_STAT
22759 if test -n "$STAT"; then
22760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22761 $as_echo "$STAT" >&6; }
22762 else
22763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22765 fi
22766 
22767 
22768   test -n "$STAT" && break
22769 done
22770 
22771   else
22772     # The variable is set, but is it from the command line or the environment?
22773 
22774     # Try to remove the string !STAT! from our list.
22775     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22776     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22777       # If it failed, the variable was not from the command line. Ignore it,
22778       # but warn the user (except for BASH, which is always set by the calling BASH).
22779       if test "xSTAT" != xBASH; then
22780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22781 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22782       fi
22783       # Try to locate tool using the code snippet
22784       for ac_prog in stat
22785 do
22786   # Extract the first word of "$ac_prog", so it can be a program name with args.
22787 set dummy $ac_prog; ac_word=$2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22789 $as_echo_n "checking for $ac_word... " >&6; }
22790 if ${ac_cv_path_STAT+:} false; then :
22791   $as_echo_n "(cached) " >&6
22792 else
22793   case $STAT in
22794   [\\/]* | ?:[\\/]*)
22795   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22796   ;;
22797   *)
22798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22799 for as_dir in $PATH
22800 do
22801   IFS=$as_save_IFS
22802   test -z "$as_dir" && as_dir=.
22803     for ac_exec_ext in '' $ac_executable_extensions; do
22804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22805     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22807     break 2
22808   fi
22809 done
22810   done
22811 IFS=$as_save_IFS
22812 
22813   ;;
22814 esac
22815 fi
22816 STAT=$ac_cv_path_STAT
22817 if test -n "$STAT"; then
22818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22819 $as_echo "$STAT" >&6; }
22820 else
22821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22822 $as_echo "no" >&6; }
22823 fi
22824 
22825 
22826   test -n "$STAT" && break
22827 done
22828 
22829     else
22830       # If it succeeded, then it was overridden by the user. We will use it
22831       # for the tool.
22832 
22833       # First remove it from the list of overridden variables, so we can test
22834       # for unknown variables in the end.
22835       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22836 
22837       # Check if we try to supply an empty value
22838       if test "x$STAT" = x; then
22839         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22840 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22842 $as_echo_n "checking for STAT... " >&6; }
22843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22844 $as_echo "disabled" >&6; }
22845       else
22846         # Check if the provided tool contains a complete path.
22847         tool_specified="$STAT"
22848         tool_basename="${tool_specified##*/}"
22849         if test "x$tool_basename" = "x$tool_specified"; then
22850           # A command without a complete path is provided, search $PATH.
22851           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22852 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22853           # Extract the first word of "$tool_basename", so it can be a program name with args.
22854 set dummy $tool_basename; ac_word=$2
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22856 $as_echo_n "checking for $ac_word... " >&6; }
22857 if ${ac_cv_path_STAT+:} false; then :
22858   $as_echo_n "(cached) " >&6
22859 else
22860   case $STAT in
22861   [\\/]* | ?:[\\/]*)
22862   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22863   ;;
22864   *)
22865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22867 do
22868   IFS=$as_save_IFS
22869   test -z "$as_dir" && as_dir=.
22870     for ac_exec_ext in '' $ac_executable_extensions; do
22871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22874     break 2
22875   fi
22876 done
22877   done
22878 IFS=$as_save_IFS
22879 
22880   ;;
22881 esac
22882 fi
22883 STAT=$ac_cv_path_STAT
22884 if test -n "$STAT"; then
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22886 $as_echo "$STAT" >&6; }
22887 else
22888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22890 fi
22891 
22892 
22893           if test "x$STAT" = x; then
22894             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22895           fi
22896         else
22897           # Otherwise we believe it is a complete path. Use it as it is.
22898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22899 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22900           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22901 $as_echo_n "checking for STAT... " >&6; }
22902           if test ! -x "$tool_specified"; then
22903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22904 $as_echo "not found" >&6; }
22905             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22906           fi
22907           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22908 $as_echo "$tool_specified" >&6; }
22909         fi
22910       fi
22911     fi
22912 
22913   fi
22914 
22915 
22916 
22917 
22918   # Publish this variable in the help.
22919 
22920 
22921   if [ -z "${TIME+x}" ]; then
22922     # The variable is not set by user, try to locate tool using the code snippet
22923     for ac_prog in time
22924 do
22925   # Extract the first word of "$ac_prog", so it can be a program name with args.
22926 set dummy $ac_prog; ac_word=$2
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22928 $as_echo_n "checking for $ac_word... " >&6; }
22929 if ${ac_cv_path_TIME+:} false; then :
22930   $as_echo_n "(cached) " >&6
22931 else
22932   case $TIME in
22933   [\\/]* | ?:[\\/]*)
22934   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22935   ;;
22936   *)
22937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938 for as_dir in $PATH
22939 do
22940   IFS=$as_save_IFS
22941   test -z "$as_dir" && as_dir=.
22942     for ac_exec_ext in '' $ac_executable_extensions; do
22943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22944     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22946     break 2
22947   fi
22948 done
22949   done
22950 IFS=$as_save_IFS
22951 
22952   ;;
22953 esac
22954 fi
22955 TIME=$ac_cv_path_TIME
22956 if test -n "$TIME"; then
22957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22958 $as_echo "$TIME" >&6; }
22959 else
22960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961 $as_echo "no" >&6; }
22962 fi
22963 
22964 
22965   test -n "$TIME" && break
22966 done
22967 
22968   else
22969     # The variable is set, but is it from the command line or the environment?
22970 
22971     # Try to remove the string !TIME! from our list.
22972     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22973     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22974       # If it failed, the variable was not from the command line. Ignore it,
22975       # but warn the user (except for BASH, which is always set by the calling BASH).
22976       if test "xTIME" != xBASH; then
22977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22978 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22979       fi
22980       # Try to locate tool using the code snippet
22981       for ac_prog in time
22982 do
22983   # Extract the first word of "$ac_prog", so it can be a program name with args.
22984 set dummy $ac_prog; ac_word=$2
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22986 $as_echo_n "checking for $ac_word... " >&6; }
22987 if ${ac_cv_path_TIME+:} false; then :
22988   $as_echo_n "(cached) " >&6
22989 else
22990   case $TIME in
22991   [\\/]* | ?:[\\/]*)
22992   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22993   ;;
22994   *)
22995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996 for as_dir in $PATH
22997 do
22998   IFS=$as_save_IFS
22999   test -z "$as_dir" && as_dir=.
23000     for ac_exec_ext in '' $ac_executable_extensions; do
23001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23002     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23004     break 2
23005   fi
23006 done
23007   done
23008 IFS=$as_save_IFS
23009 
23010   ;;
23011 esac
23012 fi
23013 TIME=$ac_cv_path_TIME
23014 if test -n "$TIME"; then
23015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23016 $as_echo "$TIME" >&6; }
23017 else
23018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23019 $as_echo "no" >&6; }
23020 fi
23021 
23022 
23023   test -n "$TIME" && break
23024 done
23025 
23026     else
23027       # If it succeeded, then it was overridden by the user. We will use it
23028       # for the tool.
23029 
23030       # First remove it from the list of overridden variables, so we can test
23031       # for unknown variables in the end.
23032       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23033 
23034       # Check if we try to supply an empty value
23035       if test "x$TIME" = x; then
23036         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23037 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23039 $as_echo_n "checking for TIME... " >&6; }
23040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23041 $as_echo "disabled" >&6; }
23042       else
23043         # Check if the provided tool contains a complete path.
23044         tool_specified="$TIME"
23045         tool_basename="${tool_specified##*/}"
23046         if test "x$tool_basename" = "x$tool_specified"; then
23047           # A command without a complete path is provided, search $PATH.
23048           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23049 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23050           # Extract the first word of "$tool_basename", so it can be a program name with args.
23051 set dummy $tool_basename; ac_word=$2
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23053 $as_echo_n "checking for $ac_word... " >&6; }
23054 if ${ac_cv_path_TIME+:} false; then :
23055   $as_echo_n "(cached) " >&6
23056 else
23057   case $TIME in
23058   [\\/]* | ?:[\\/]*)
23059   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23060   ;;
23061   *)
23062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23063 for as_dir in $PATH
23064 do
23065   IFS=$as_save_IFS
23066   test -z "$as_dir" && as_dir=.
23067     for ac_exec_ext in '' $ac_executable_extensions; do
23068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23069     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23071     break 2
23072   fi
23073 done
23074   done
23075 IFS=$as_save_IFS
23076 
23077   ;;
23078 esac
23079 fi
23080 TIME=$ac_cv_path_TIME
23081 if test -n "$TIME"; then
23082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23083 $as_echo "$TIME" >&6; }
23084 else
23085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23086 $as_echo "no" >&6; }
23087 fi
23088 
23089 
23090           if test "x$TIME" = x; then
23091             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23092           fi
23093         else
23094           # Otherwise we believe it is a complete path. Use it as it is.
23095           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23096 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23098 $as_echo_n "checking for TIME... " >&6; }
23099           if test ! -x "$tool_specified"; then
23100             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23101 $as_echo "not found" >&6; }
23102             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23103           fi
23104           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23105 $as_echo "$tool_specified" >&6; }
23106         fi
23107       fi
23108     fi
23109 
23110   fi
23111 
23112 
23113 
23114 
23115   # Publish this variable in the help.
23116 
23117 
23118   if [ -z "${FLOCK+x}" ]; then
23119     # The variable is not set by user, try to locate tool using the code snippet
23120     for ac_prog in flock
23121 do
23122   # Extract the first word of "$ac_prog", so it can be a program name with args.
23123 set dummy $ac_prog; ac_word=$2
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23125 $as_echo_n "checking for $ac_word... " >&6; }
23126 if ${ac_cv_path_FLOCK+:} false; then :
23127   $as_echo_n "(cached) " >&6
23128 else
23129   case $FLOCK in
23130   [\\/]* | ?:[\\/]*)
23131   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23132   ;;
23133   *)
23134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23135 for as_dir in $PATH
23136 do
23137   IFS=$as_save_IFS
23138   test -z "$as_dir" && as_dir=.
23139     for ac_exec_ext in '' $ac_executable_extensions; do
23140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23141     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23143     break 2
23144   fi
23145 done
23146   done
23147 IFS=$as_save_IFS
23148 
23149   ;;
23150 esac
23151 fi
23152 FLOCK=$ac_cv_path_FLOCK
23153 if test -n "$FLOCK"; then
23154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23155 $as_echo "$FLOCK" >&6; }
23156 else
23157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23158 $as_echo "no" >&6; }
23159 fi
23160 
23161 
23162   test -n "$FLOCK" && break
23163 done
23164 
23165   else
23166     # The variable is set, but is it from the command line or the environment?
23167 
23168     # Try to remove the string !FLOCK! from our list.
23169     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23170     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23171       # If it failed, the variable was not from the command line. Ignore it,
23172       # but warn the user (except for BASH, which is always set by the calling BASH).
23173       if test "xFLOCK" != xBASH; then
23174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23175 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23176       fi
23177       # Try to locate tool using the code snippet
23178       for ac_prog in flock
23179 do
23180   # Extract the first word of "$ac_prog", so it can be a program name with args.
23181 set dummy $ac_prog; ac_word=$2
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23183 $as_echo_n "checking for $ac_word... " >&6; }
23184 if ${ac_cv_path_FLOCK+:} false; then :
23185   $as_echo_n "(cached) " >&6
23186 else
23187   case $FLOCK in
23188   [\\/]* | ?:[\\/]*)
23189   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23190   ;;
23191   *)
23192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23193 for as_dir in $PATH
23194 do
23195   IFS=$as_save_IFS
23196   test -z "$as_dir" && as_dir=.
23197     for ac_exec_ext in '' $ac_executable_extensions; do
23198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23199     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23201     break 2
23202   fi
23203 done
23204   done
23205 IFS=$as_save_IFS
23206 
23207   ;;
23208 esac
23209 fi
23210 FLOCK=$ac_cv_path_FLOCK
23211 if test -n "$FLOCK"; then
23212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23213 $as_echo "$FLOCK" >&6; }
23214 else
23215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23216 $as_echo "no" >&6; }
23217 fi
23218 
23219 
23220   test -n "$FLOCK" && break
23221 done
23222 
23223     else
23224       # If it succeeded, then it was overridden by the user. We will use it
23225       # for the tool.
23226 
23227       # First remove it from the list of overridden variables, so we can test
23228       # for unknown variables in the end.
23229       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23230 
23231       # Check if we try to supply an empty value
23232       if test "x$FLOCK" = x; then
23233         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23234 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23236 $as_echo_n "checking for FLOCK... " >&6; }
23237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23238 $as_echo "disabled" >&6; }
23239       else
23240         # Check if the provided tool contains a complete path.
23241         tool_specified="$FLOCK"
23242         tool_basename="${tool_specified##*/}"
23243         if test "x$tool_basename" = "x$tool_specified"; then
23244           # A command without a complete path is provided, search $PATH.
23245           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23246 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23247           # Extract the first word of "$tool_basename", so it can be a program name with args.
23248 set dummy $tool_basename; ac_word=$2
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23250 $as_echo_n "checking for $ac_word... " >&6; }
23251 if ${ac_cv_path_FLOCK+:} false; then :
23252   $as_echo_n "(cached) " >&6
23253 else
23254   case $FLOCK in
23255   [\\/]* | ?:[\\/]*)
23256   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23257   ;;
23258   *)
23259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23260 for as_dir in $PATH
23261 do
23262   IFS=$as_save_IFS
23263   test -z "$as_dir" && as_dir=.
23264     for ac_exec_ext in '' $ac_executable_extensions; do
23265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23266     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23268     break 2
23269   fi
23270 done
23271   done
23272 IFS=$as_save_IFS
23273 
23274   ;;
23275 esac
23276 fi
23277 FLOCK=$ac_cv_path_FLOCK
23278 if test -n "$FLOCK"; then
23279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23280 $as_echo "$FLOCK" >&6; }
23281 else
23282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23284 fi
23285 
23286 
23287           if test "x$FLOCK" = x; then
23288             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23289           fi
23290         else
23291           # Otherwise we believe it is a complete path. Use it as it is.
23292           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23293 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23294           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23295 $as_echo_n "checking for FLOCK... " >&6; }
23296           if test ! -x "$tool_specified"; then
23297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23298 $as_echo "not found" >&6; }
23299             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23300           fi
23301           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23302 $as_echo "$tool_specified" >&6; }
23303         fi
23304       fi
23305     fi
23306 
23307   fi
23308 
23309 
23310   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23311   # be in the user path.
23312 
23313 
23314   # Publish this variable in the help.
23315 
23316 
23317   if [ -z "${DTRACE+x}" ]; then
23318     # The variable is not set by user, try to locate tool using the code snippet
23319     for ac_prog in dtrace
23320 do
23321   # Extract the first word of "$ac_prog", so it can be a program name with args.
23322 set dummy $ac_prog; ac_word=$2
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23324 $as_echo_n "checking for $ac_word... " >&6; }
23325 if ${ac_cv_path_DTRACE+:} false; then :
23326   $as_echo_n "(cached) " >&6
23327 else
23328   case $DTRACE in
23329   [\\/]* | ?:[\\/]*)
23330   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23331   ;;
23332   *)
23333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23334 as_dummy="$PATH:/usr/sbin"
23335 for as_dir in $as_dummy
23336 do
23337   IFS=$as_save_IFS
23338   test -z "$as_dir" && as_dir=.
23339     for ac_exec_ext in '' $ac_executable_extensions; do
23340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23341     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23343     break 2
23344   fi
23345 done
23346   done
23347 IFS=$as_save_IFS
23348 
23349   ;;
23350 esac
23351 fi
23352 DTRACE=$ac_cv_path_DTRACE
23353 if test -n "$DTRACE"; then
23354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23355 $as_echo "$DTRACE" >&6; }
23356 else
23357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23358 $as_echo "no" >&6; }
23359 fi
23360 
23361 
23362   test -n "$DTRACE" && break
23363 done
23364 
23365   else
23366     # The variable is set, but is it from the command line or the environment?
23367 
23368     # Try to remove the string !DTRACE! from our list.
23369     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23370     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23371       # If it failed, the variable was not from the command line. Ignore it,
23372       # but warn the user (except for BASH, which is always set by the calling BASH).
23373       if test "xDTRACE" != xBASH; then
23374         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23375 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23376       fi
23377       # Try to locate tool using the code snippet
23378       for ac_prog in dtrace
23379 do
23380   # Extract the first word of "$ac_prog", so it can be a program name with args.
23381 set dummy $ac_prog; ac_word=$2
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23383 $as_echo_n "checking for $ac_word... " >&6; }
23384 if ${ac_cv_path_DTRACE+:} false; then :
23385   $as_echo_n "(cached) " >&6
23386 else
23387   case $DTRACE in
23388   [\\/]* | ?:[\\/]*)
23389   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23390   ;;
23391   *)
23392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23393 as_dummy="$PATH:/usr/sbin"
23394 for as_dir in $as_dummy
23395 do
23396   IFS=$as_save_IFS
23397   test -z "$as_dir" && as_dir=.
23398     for ac_exec_ext in '' $ac_executable_extensions; do
23399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23400     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23402     break 2
23403   fi
23404 done
23405   done
23406 IFS=$as_save_IFS
23407 
23408   ;;
23409 esac
23410 fi
23411 DTRACE=$ac_cv_path_DTRACE
23412 if test -n "$DTRACE"; then
23413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23414 $as_echo "$DTRACE" >&6; }
23415 else
23416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417 $as_echo "no" >&6; }
23418 fi
23419 
23420 
23421   test -n "$DTRACE" && break
23422 done
23423 
23424     else
23425       # If it succeeded, then it was overridden by the user. We will use it
23426       # for the tool.
23427 
23428       # First remove it from the list of overridden variables, so we can test
23429       # for unknown variables in the end.
23430       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23431 
23432       # Check if we try to supply an empty value
23433       if test "x$DTRACE" = x; then
23434         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23435 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23437 $as_echo_n "checking for DTRACE... " >&6; }
23438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23439 $as_echo "disabled" >&6; }
23440       else
23441         # Check if the provided tool contains a complete path.
23442         tool_specified="$DTRACE"
23443         tool_basename="${tool_specified##*/}"
23444         if test "x$tool_basename" = "x$tool_specified"; then
23445           # A command without a complete path is provided, search $PATH.
23446           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23447 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23448           # Extract the first word of "$tool_basename", so it can be a program name with args.
23449 set dummy $tool_basename; ac_word=$2
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23451 $as_echo_n "checking for $ac_word... " >&6; }
23452 if ${ac_cv_path_DTRACE+:} false; then :
23453   $as_echo_n "(cached) " >&6
23454 else
23455   case $DTRACE in
23456   [\\/]* | ?:[\\/]*)
23457   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23458   ;;
23459   *)
23460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23461 for as_dir in $PATH
23462 do
23463   IFS=$as_save_IFS
23464   test -z "$as_dir" && as_dir=.
23465     for ac_exec_ext in '' $ac_executable_extensions; do
23466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23467     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23469     break 2
23470   fi
23471 done
23472   done
23473 IFS=$as_save_IFS
23474 
23475   ;;
23476 esac
23477 fi
23478 DTRACE=$ac_cv_path_DTRACE
23479 if test -n "$DTRACE"; then
23480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23481 $as_echo "$DTRACE" >&6; }
23482 else
23483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23484 $as_echo "no" >&6; }
23485 fi
23486 
23487 
23488           if test "x$DTRACE" = x; then
23489             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23490           fi
23491         else
23492           # Otherwise we believe it is a complete path. Use it as it is.
23493           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23494 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23496 $as_echo_n "checking for DTRACE... " >&6; }
23497           if test ! -x "$tool_specified"; then
23498             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23499 $as_echo "not found" >&6; }
23500             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23501           fi
23502           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23503 $as_echo "$tool_specified" >&6; }
23504         fi
23505       fi
23506     fi
23507 
23508   fi
23509 
23510 
23511 
23512 
23513   # Publish this variable in the help.
23514 
23515 
23516   if [ -z "${PATCH+x}" ]; then
23517     # The variable is not set by user, try to locate tool using the code snippet
23518     for ac_prog in gpatch patch
23519 do
23520   # Extract the first word of "$ac_prog", so it can be a program name with args.
23521 set dummy $ac_prog; ac_word=$2
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23523 $as_echo_n "checking for $ac_word... " >&6; }
23524 if ${ac_cv_path_PATCH+:} false; then :
23525   $as_echo_n "(cached) " >&6
23526 else
23527   case $PATCH in
23528   [\\/]* | ?:[\\/]*)
23529   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23530   ;;
23531   *)
23532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23533 for as_dir in $PATH
23534 do
23535   IFS=$as_save_IFS
23536   test -z "$as_dir" && as_dir=.
23537     for ac_exec_ext in '' $ac_executable_extensions; do
23538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23539     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23541     break 2
23542   fi
23543 done
23544   done
23545 IFS=$as_save_IFS
23546 
23547   ;;
23548 esac
23549 fi
23550 PATCH=$ac_cv_path_PATCH
23551 if test -n "$PATCH"; then
23552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23553 $as_echo "$PATCH" >&6; }
23554 else
23555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 $as_echo "no" >&6; }
23557 fi
23558 
23559 
23560   test -n "$PATCH" && break
23561 done
23562 
23563   else
23564     # The variable is set, but is it from the command line or the environment?
23565 
23566     # Try to remove the string !PATCH! from our list.
23567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23569       # If it failed, the variable was not from the command line. Ignore it,
23570       # but warn the user (except for BASH, which is always set by the calling BASH).
23571       if test "xPATCH" != xBASH; then
23572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23573 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23574       fi
23575       # Try to locate tool using the code snippet
23576       for ac_prog in gpatch patch
23577 do
23578   # Extract the first word of "$ac_prog", so it can be a program name with args.
23579 set dummy $ac_prog; ac_word=$2
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23581 $as_echo_n "checking for $ac_word... " >&6; }
23582 if ${ac_cv_path_PATCH+:} false; then :
23583   $as_echo_n "(cached) " >&6
23584 else
23585   case $PATCH in
23586   [\\/]* | ?:[\\/]*)
23587   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23588   ;;
23589   *)
23590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23591 for as_dir in $PATH
23592 do
23593   IFS=$as_save_IFS
23594   test -z "$as_dir" && as_dir=.
23595     for ac_exec_ext in '' $ac_executable_extensions; do
23596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23597     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23599     break 2
23600   fi
23601 done
23602   done
23603 IFS=$as_save_IFS
23604 
23605   ;;
23606 esac
23607 fi
23608 PATCH=$ac_cv_path_PATCH
23609 if test -n "$PATCH"; then
23610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23611 $as_echo "$PATCH" >&6; }
23612 else
23613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23614 $as_echo "no" >&6; }
23615 fi
23616 
23617 
23618   test -n "$PATCH" && break
23619 done
23620 
23621     else
23622       # If it succeeded, then it was overridden by the user. We will use it
23623       # for the tool.
23624 
23625       # First remove it from the list of overridden variables, so we can test
23626       # for unknown variables in the end.
23627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23628 
23629       # Check if we try to supply an empty value
23630       if test "x$PATCH" = x; then
23631         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23632 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23634 $as_echo_n "checking for PATCH... " >&6; }
23635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23636 $as_echo "disabled" >&6; }
23637       else
23638         # Check if the provided tool contains a complete path.
23639         tool_specified="$PATCH"
23640         tool_basename="${tool_specified##*/}"
23641         if test "x$tool_basename" = "x$tool_specified"; then
23642           # A command without a complete path is provided, search $PATH.
23643           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23644 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23645           # Extract the first word of "$tool_basename", so it can be a program name with args.
23646 set dummy $tool_basename; ac_word=$2
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23648 $as_echo_n "checking for $ac_word... " >&6; }
23649 if ${ac_cv_path_PATCH+:} false; then :
23650   $as_echo_n "(cached) " >&6
23651 else
23652   case $PATCH in
23653   [\\/]* | ?:[\\/]*)
23654   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23655   ;;
23656   *)
23657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23658 for as_dir in $PATH
23659 do
23660   IFS=$as_save_IFS
23661   test -z "$as_dir" && as_dir=.
23662     for ac_exec_ext in '' $ac_executable_extensions; do
23663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23664     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23666     break 2
23667   fi
23668 done
23669   done
23670 IFS=$as_save_IFS
23671 
23672   ;;
23673 esac
23674 fi
23675 PATCH=$ac_cv_path_PATCH
23676 if test -n "$PATCH"; then
23677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23678 $as_echo "$PATCH" >&6; }
23679 else
23680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23681 $as_echo "no" >&6; }
23682 fi
23683 
23684 
23685           if test "x$PATCH" = x; then
23686             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23687           fi
23688         else
23689           # Otherwise we believe it is a complete path. Use it as it is.
23690           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23691 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23692           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23693 $as_echo_n "checking for PATCH... " >&6; }
23694           if test ! -x "$tool_specified"; then
23695             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23696 $as_echo "not found" >&6; }
23697             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23698           fi
23699           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23700 $as_echo "$tool_specified" >&6; }
23701         fi
23702       fi
23703     fi
23704 
23705   fi
23706 
23707 
23708   # Check if it's GNU time
23709   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23710   if test "x$IS_GNU_TIME" != x; then
23711     IS_GNU_TIME=yes
23712   else
23713     IS_GNU_TIME=no
23714   fi
23715 
23716 
23717   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23718 
23719 
23720 
23721   # Publish this variable in the help.
23722 
23723 
23724   if [ -z "${DSYMUTIL+x}" ]; then
23725     # The variable is not set by user, try to locate tool using the code snippet
23726     for ac_prog in dsymutil
23727 do
23728   # Extract the first word of "$ac_prog", so it can be a program name with args.
23729 set dummy $ac_prog; ac_word=$2
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23731 $as_echo_n "checking for $ac_word... " >&6; }
23732 if ${ac_cv_path_DSYMUTIL+:} false; then :
23733   $as_echo_n "(cached) " >&6
23734 else
23735   case $DSYMUTIL in
23736   [\\/]* | ?:[\\/]*)
23737   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23738   ;;
23739   *)
23740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23741 for as_dir in $PATH
23742 do
23743   IFS=$as_save_IFS
23744   test -z "$as_dir" && as_dir=.
23745     for ac_exec_ext in '' $ac_executable_extensions; do
23746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23747     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23749     break 2
23750   fi
23751 done
23752   done
23753 IFS=$as_save_IFS
23754 
23755   ;;
23756 esac
23757 fi
23758 DSYMUTIL=$ac_cv_path_DSYMUTIL
23759 if test -n "$DSYMUTIL"; then
23760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23761 $as_echo "$DSYMUTIL" >&6; }
23762 else
23763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23764 $as_echo "no" >&6; }
23765 fi
23766 
23767 
23768   test -n "$DSYMUTIL" && break
23769 done
23770 
23771   else
23772     # The variable is set, but is it from the command line or the environment?
23773 
23774     # Try to remove the string !DSYMUTIL! from our list.
23775     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23776     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23777       # If it failed, the variable was not from the command line. Ignore it,
23778       # but warn the user (except for BASH, which is always set by the calling BASH).
23779       if test "xDSYMUTIL" != xBASH; then
23780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23781 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23782       fi
23783       # Try to locate tool using the code snippet
23784       for ac_prog in dsymutil
23785 do
23786   # Extract the first word of "$ac_prog", so it can be a program name with args.
23787 set dummy $ac_prog; ac_word=$2
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23789 $as_echo_n "checking for $ac_word... " >&6; }
23790 if ${ac_cv_path_DSYMUTIL+:} false; then :
23791   $as_echo_n "(cached) " >&6
23792 else
23793   case $DSYMUTIL in
23794   [\\/]* | ?:[\\/]*)
23795   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23796   ;;
23797   *)
23798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23799 for as_dir in $PATH
23800 do
23801   IFS=$as_save_IFS
23802   test -z "$as_dir" && as_dir=.
23803     for ac_exec_ext in '' $ac_executable_extensions; do
23804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23805     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23807     break 2
23808   fi
23809 done
23810   done
23811 IFS=$as_save_IFS
23812 
23813   ;;
23814 esac
23815 fi
23816 DSYMUTIL=$ac_cv_path_DSYMUTIL
23817 if test -n "$DSYMUTIL"; then
23818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23819 $as_echo "$DSYMUTIL" >&6; }
23820 else
23821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23822 $as_echo "no" >&6; }
23823 fi
23824 
23825 
23826   test -n "$DSYMUTIL" && break
23827 done
23828 
23829     else
23830       # If it succeeded, then it was overridden by the user. We will use it
23831       # for the tool.
23832 
23833       # First remove it from the list of overridden variables, so we can test
23834       # for unknown variables in the end.
23835       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23836 
23837       # Check if we try to supply an empty value
23838       if test "x$DSYMUTIL" = x; then
23839         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23840 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23842 $as_echo_n "checking for DSYMUTIL... " >&6; }
23843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23844 $as_echo "disabled" >&6; }
23845       else
23846         # Check if the provided tool contains a complete path.
23847         tool_specified="$DSYMUTIL"
23848         tool_basename="${tool_specified##*/}"
23849         if test "x$tool_basename" = "x$tool_specified"; then
23850           # A command without a complete path is provided, search $PATH.
23851           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23852 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23853           # Extract the first word of "$tool_basename", so it can be a program name with args.
23854 set dummy $tool_basename; ac_word=$2
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23856 $as_echo_n "checking for $ac_word... " >&6; }
23857 if ${ac_cv_path_DSYMUTIL+:} false; then :
23858   $as_echo_n "(cached) " >&6
23859 else
23860   case $DSYMUTIL in
23861   [\\/]* | ?:[\\/]*)
23862   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23863   ;;
23864   *)
23865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23866 for as_dir in $PATH
23867 do
23868   IFS=$as_save_IFS
23869   test -z "$as_dir" && as_dir=.
23870     for ac_exec_ext in '' $ac_executable_extensions; do
23871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23872     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23874     break 2
23875   fi
23876 done
23877   done
23878 IFS=$as_save_IFS
23879 
23880   ;;
23881 esac
23882 fi
23883 DSYMUTIL=$ac_cv_path_DSYMUTIL
23884 if test -n "$DSYMUTIL"; then
23885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23886 $as_echo "$DSYMUTIL" >&6; }
23887 else
23888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23889 $as_echo "no" >&6; }
23890 fi
23891 
23892 
23893           if test "x$DSYMUTIL" = x; then
23894             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23895           fi
23896         else
23897           # Otherwise we believe it is a complete path. Use it as it is.
23898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23899 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23900           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23901 $as_echo_n "checking for DSYMUTIL... " >&6; }
23902           if test ! -x "$tool_specified"; then
23903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23904 $as_echo "not found" >&6; }
23905             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23906           fi
23907           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23908 $as_echo "$tool_specified" >&6; }
23909         fi
23910       fi
23911     fi
23912 
23913   fi
23914 
23915 
23916 
23917   if test "x$DSYMUTIL" = x; then
23918     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23919   fi
23920 
23921 
23922 
23923 
23924 
23925   # Publish this variable in the help.
23926 
23927 
23928   if [ -z "${XATTR+x}" ]; then
23929     # The variable is not set by user, try to locate tool using the code snippet
23930     for ac_prog in xattr
23931 do
23932   # Extract the first word of "$ac_prog", so it can be a program name with args.
23933 set dummy $ac_prog; ac_word=$2
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23935 $as_echo_n "checking for $ac_word... " >&6; }
23936 if ${ac_cv_path_XATTR+:} false; then :
23937   $as_echo_n "(cached) " >&6
23938 else
23939   case $XATTR in
23940   [\\/]* | ?:[\\/]*)
23941   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23942   ;;
23943   *)
23944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23945 for as_dir in $PATH
23946 do
23947   IFS=$as_save_IFS
23948   test -z "$as_dir" && as_dir=.
23949     for ac_exec_ext in '' $ac_executable_extensions; do
23950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23951     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23953     break 2
23954   fi
23955 done
23956   done
23957 IFS=$as_save_IFS
23958 
23959   ;;
23960 esac
23961 fi
23962 XATTR=$ac_cv_path_XATTR
23963 if test -n "$XATTR"; then
23964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23965 $as_echo "$XATTR" >&6; }
23966 else
23967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23968 $as_echo "no" >&6; }
23969 fi
23970 
23971 
23972   test -n "$XATTR" && break
23973 done
23974 
23975   else
23976     # The variable is set, but is it from the command line or the environment?
23977 
23978     # Try to remove the string !XATTR! from our list.
23979     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23980     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23981       # If it failed, the variable was not from the command line. Ignore it,
23982       # but warn the user (except for BASH, which is always set by the calling BASH).
23983       if test "xXATTR" != xBASH; then
23984         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23985 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23986       fi
23987       # Try to locate tool using the code snippet
23988       for ac_prog in xattr
23989 do
23990   # Extract the first word of "$ac_prog", so it can be a program name with args.
23991 set dummy $ac_prog; ac_word=$2
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23993 $as_echo_n "checking for $ac_word... " >&6; }
23994 if ${ac_cv_path_XATTR+:} false; then :
23995   $as_echo_n "(cached) " >&6
23996 else
23997   case $XATTR in
23998   [\\/]* | ?:[\\/]*)
23999   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24000   ;;
24001   *)
24002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24003 for as_dir in $PATH
24004 do
24005   IFS=$as_save_IFS
24006   test -z "$as_dir" && as_dir=.
24007     for ac_exec_ext in '' $ac_executable_extensions; do
24008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24009     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24011     break 2
24012   fi
24013 done
24014   done
24015 IFS=$as_save_IFS
24016 
24017   ;;
24018 esac
24019 fi
24020 XATTR=$ac_cv_path_XATTR
24021 if test -n "$XATTR"; then
24022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24023 $as_echo "$XATTR" >&6; }
24024 else
24025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24026 $as_echo "no" >&6; }
24027 fi
24028 
24029 
24030   test -n "$XATTR" && break
24031 done
24032 
24033     else
24034       # If it succeeded, then it was overridden by the user. We will use it
24035       # for the tool.
24036 
24037       # First remove it from the list of overridden variables, so we can test
24038       # for unknown variables in the end.
24039       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24040 
24041       # Check if we try to supply an empty value
24042       if test "x$XATTR" = x; then
24043         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24044 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24046 $as_echo_n "checking for XATTR... " >&6; }
24047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24048 $as_echo "disabled" >&6; }
24049       else
24050         # Check if the provided tool contains a complete path.
24051         tool_specified="$XATTR"
24052         tool_basename="${tool_specified##*/}"
24053         if test "x$tool_basename" = "x$tool_specified"; then
24054           # A command without a complete path is provided, search $PATH.
24055           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24056 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24057           # Extract the first word of "$tool_basename", so it can be a program name with args.
24058 set dummy $tool_basename; ac_word=$2
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24060 $as_echo_n "checking for $ac_word... " >&6; }
24061 if ${ac_cv_path_XATTR+:} false; then :
24062   $as_echo_n "(cached) " >&6
24063 else
24064   case $XATTR in
24065   [\\/]* | ?:[\\/]*)
24066   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24067   ;;
24068   *)
24069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24070 for as_dir in $PATH
24071 do
24072   IFS=$as_save_IFS
24073   test -z "$as_dir" && as_dir=.
24074     for ac_exec_ext in '' $ac_executable_extensions; do
24075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24076     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24078     break 2
24079   fi
24080 done
24081   done
24082 IFS=$as_save_IFS
24083 
24084   ;;
24085 esac
24086 fi
24087 XATTR=$ac_cv_path_XATTR
24088 if test -n "$XATTR"; then
24089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24090 $as_echo "$XATTR" >&6; }
24091 else
24092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24094 fi
24095 
24096 
24097           if test "x$XATTR" = x; then
24098             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24099           fi
24100         else
24101           # Otherwise we believe it is a complete path. Use it as it is.
24102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24103 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24105 $as_echo_n "checking for XATTR... " >&6; }
24106           if test ! -x "$tool_specified"; then
24107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24108 $as_echo "not found" >&6; }
24109             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24110           fi
24111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24112 $as_echo "$tool_specified" >&6; }
24113         fi
24114       fi
24115     fi
24116 
24117   fi
24118 
24119 
24120 
24121   if test "x$XATTR" = x; then
24122     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24123   fi
24124 
24125 
24126 
24127 
24128   # Publish this variable in the help.
24129 
24130 
24131   if [ -z "${CODESIGN+x}" ]; then
24132     # The variable is not set by user, try to locate tool using the code snippet
24133     for ac_prog in codesign
24134 do
24135   # Extract the first word of "$ac_prog", so it can be a program name with args.
24136 set dummy $ac_prog; ac_word=$2
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24138 $as_echo_n "checking for $ac_word... " >&6; }
24139 if ${ac_cv_path_CODESIGN+:} false; then :
24140   $as_echo_n "(cached) " >&6
24141 else
24142   case $CODESIGN in
24143   [\\/]* | ?:[\\/]*)
24144   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24145   ;;
24146   *)
24147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148 for as_dir in $PATH
24149 do
24150   IFS=$as_save_IFS
24151   test -z "$as_dir" && as_dir=.
24152     for ac_exec_ext in '' $ac_executable_extensions; do
24153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24154     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24156     break 2
24157   fi
24158 done
24159   done
24160 IFS=$as_save_IFS
24161 
24162   ;;
24163 esac
24164 fi
24165 CODESIGN=$ac_cv_path_CODESIGN
24166 if test -n "$CODESIGN"; then
24167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24168 $as_echo "$CODESIGN" >&6; }
24169 else
24170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24171 $as_echo "no" >&6; }
24172 fi
24173 
24174 
24175   test -n "$CODESIGN" && break
24176 done
24177 
24178   else
24179     # The variable is set, but is it from the command line or the environment?
24180 
24181     # Try to remove the string !CODESIGN! from our list.
24182     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24183     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24184       # If it failed, the variable was not from the command line. Ignore it,
24185       # but warn the user (except for BASH, which is always set by the calling BASH).
24186       if test "xCODESIGN" != xBASH; then
24187         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24188 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24189       fi
24190       # Try to locate tool using the code snippet
24191       for ac_prog in codesign
24192 do
24193   # Extract the first word of "$ac_prog", so it can be a program name with args.
24194 set dummy $ac_prog; ac_word=$2
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24196 $as_echo_n "checking for $ac_word... " >&6; }
24197 if ${ac_cv_path_CODESIGN+:} false; then :
24198   $as_echo_n "(cached) " >&6
24199 else
24200   case $CODESIGN in
24201   [\\/]* | ?:[\\/]*)
24202   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24203   ;;
24204   *)
24205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24206 for as_dir in $PATH
24207 do
24208   IFS=$as_save_IFS
24209   test -z "$as_dir" && as_dir=.
24210     for ac_exec_ext in '' $ac_executable_extensions; do
24211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24212     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24214     break 2
24215   fi
24216 done
24217   done
24218 IFS=$as_save_IFS
24219 
24220   ;;
24221 esac
24222 fi
24223 CODESIGN=$ac_cv_path_CODESIGN
24224 if test -n "$CODESIGN"; then
24225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24226 $as_echo "$CODESIGN" >&6; }
24227 else
24228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24229 $as_echo "no" >&6; }
24230 fi
24231 
24232 
24233   test -n "$CODESIGN" && break
24234 done
24235 
24236     else
24237       # If it succeeded, then it was overridden by the user. We will use it
24238       # for the tool.
24239 
24240       # First remove it from the list of overridden variables, so we can test
24241       # for unknown variables in the end.
24242       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24243 
24244       # Check if we try to supply an empty value
24245       if test "x$CODESIGN" = x; then
24246         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24247 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24249 $as_echo_n "checking for CODESIGN... " >&6; }
24250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24251 $as_echo "disabled" >&6; }
24252       else
24253         # Check if the provided tool contains a complete path.
24254         tool_specified="$CODESIGN"
24255         tool_basename="${tool_specified##*/}"
24256         if test "x$tool_basename" = "x$tool_specified"; then
24257           # A command without a complete path is provided, search $PATH.
24258           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24259 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24260           # Extract the first word of "$tool_basename", so it can be a program name with args.
24261 set dummy $tool_basename; ac_word=$2
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24263 $as_echo_n "checking for $ac_word... " >&6; }
24264 if ${ac_cv_path_CODESIGN+:} false; then :
24265   $as_echo_n "(cached) " >&6
24266 else
24267   case $CODESIGN in
24268   [\\/]* | ?:[\\/]*)
24269   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24270   ;;
24271   *)
24272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24273 for as_dir in $PATH
24274 do
24275   IFS=$as_save_IFS
24276   test -z "$as_dir" && as_dir=.
24277     for ac_exec_ext in '' $ac_executable_extensions; do
24278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24279     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24281     break 2
24282   fi
24283 done
24284   done
24285 IFS=$as_save_IFS
24286 
24287   ;;
24288 esac
24289 fi
24290 CODESIGN=$ac_cv_path_CODESIGN
24291 if test -n "$CODESIGN"; then
24292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24293 $as_echo "$CODESIGN" >&6; }
24294 else
24295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24296 $as_echo "no" >&6; }
24297 fi
24298 
24299 
24300           if test "x$CODESIGN" = x; then
24301             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24302           fi
24303         else
24304           # Otherwise we believe it is a complete path. Use it as it is.
24305           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24306 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24307           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24308 $as_echo_n "checking for CODESIGN... " >&6; }
24309           if test ! -x "$tool_specified"; then
24310             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24311 $as_echo "not found" >&6; }
24312             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24313           fi
24314           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24315 $as_echo "$tool_specified" >&6; }
24316         fi
24317       fi
24318     fi
24319 
24320   fi
24321 
24322 
24323     if test "x$CODESIGN" != "x"; then
24324       # Verify that the openjdk_codesign certificate is present
24325       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24326 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24327       $RM codesign-testfile
24328       $TOUCH codesign-testfile
24329       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24330       $RM codesign-testfile
24331       if test "x$CODESIGN" = x; then
24332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24333 $as_echo "no" >&6; }
24334       else
24335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24336 $as_echo "yes" >&6; }
24337       fi
24338     fi
24339 
24340 
24341 
24342   # Publish this variable in the help.
24343 
24344 
24345   if [ -z "${SETFILE+x}" ]; then
24346     # The variable is not set by user, try to locate tool using the code snippet
24347     for ac_prog in SetFile
24348 do
24349   # Extract the first word of "$ac_prog", so it can be a program name with args.
24350 set dummy $ac_prog; ac_word=$2
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24352 $as_echo_n "checking for $ac_word... " >&6; }
24353 if ${ac_cv_path_SETFILE+:} false; then :
24354   $as_echo_n "(cached) " >&6
24355 else
24356   case $SETFILE in
24357   [\\/]* | ?:[\\/]*)
24358   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24359   ;;
24360   *)
24361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24362 for as_dir in $PATH
24363 do
24364   IFS=$as_save_IFS
24365   test -z "$as_dir" && as_dir=.
24366     for ac_exec_ext in '' $ac_executable_extensions; do
24367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24368     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24370     break 2
24371   fi
24372 done
24373   done
24374 IFS=$as_save_IFS
24375 
24376   ;;
24377 esac
24378 fi
24379 SETFILE=$ac_cv_path_SETFILE
24380 if test -n "$SETFILE"; then
24381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24382 $as_echo "$SETFILE" >&6; }
24383 else
24384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 $as_echo "no" >&6; }
24386 fi
24387 
24388 
24389   test -n "$SETFILE" && break
24390 done
24391 
24392   else
24393     # The variable is set, but is it from the command line or the environment?
24394 
24395     # Try to remove the string !SETFILE! from our list.
24396     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24397     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24398       # If it failed, the variable was not from the command line. Ignore it,
24399       # but warn the user (except for BASH, which is always set by the calling BASH).
24400       if test "xSETFILE" != xBASH; then
24401         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24402 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24403       fi
24404       # Try to locate tool using the code snippet
24405       for ac_prog in SetFile
24406 do
24407   # Extract the first word of "$ac_prog", so it can be a program name with args.
24408 set dummy $ac_prog; ac_word=$2
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24410 $as_echo_n "checking for $ac_word... " >&6; }
24411 if ${ac_cv_path_SETFILE+:} false; then :
24412   $as_echo_n "(cached) " >&6
24413 else
24414   case $SETFILE in
24415   [\\/]* | ?:[\\/]*)
24416   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24417   ;;
24418   *)
24419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24420 for as_dir in $PATH
24421 do
24422   IFS=$as_save_IFS
24423   test -z "$as_dir" && as_dir=.
24424     for ac_exec_ext in '' $ac_executable_extensions; do
24425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24426     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24428     break 2
24429   fi
24430 done
24431   done
24432 IFS=$as_save_IFS
24433 
24434   ;;
24435 esac
24436 fi
24437 SETFILE=$ac_cv_path_SETFILE
24438 if test -n "$SETFILE"; then
24439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24440 $as_echo "$SETFILE" >&6; }
24441 else
24442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24443 $as_echo "no" >&6; }
24444 fi
24445 
24446 
24447   test -n "$SETFILE" && break
24448 done
24449 
24450     else
24451       # If it succeeded, then it was overridden by the user. We will use it
24452       # for the tool.
24453 
24454       # First remove it from the list of overridden variables, so we can test
24455       # for unknown variables in the end.
24456       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24457 
24458       # Check if we try to supply an empty value
24459       if test "x$SETFILE" = x; then
24460         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24461 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24463 $as_echo_n "checking for SETFILE... " >&6; }
24464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24465 $as_echo "disabled" >&6; }
24466       else
24467         # Check if the provided tool contains a complete path.
24468         tool_specified="$SETFILE"
24469         tool_basename="${tool_specified##*/}"
24470         if test "x$tool_basename" = "x$tool_specified"; then
24471           # A command without a complete path is provided, search $PATH.
24472           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24473 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24474           # Extract the first word of "$tool_basename", so it can be a program name with args.
24475 set dummy $tool_basename; ac_word=$2
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24477 $as_echo_n "checking for $ac_word... " >&6; }
24478 if ${ac_cv_path_SETFILE+:} false; then :
24479   $as_echo_n "(cached) " >&6
24480 else
24481   case $SETFILE in
24482   [\\/]* | ?:[\\/]*)
24483   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24484   ;;
24485   *)
24486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24487 for as_dir in $PATH
24488 do
24489   IFS=$as_save_IFS
24490   test -z "$as_dir" && as_dir=.
24491     for ac_exec_ext in '' $ac_executable_extensions; do
24492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24493     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24495     break 2
24496   fi
24497 done
24498   done
24499 IFS=$as_save_IFS
24500 
24501   ;;
24502 esac
24503 fi
24504 SETFILE=$ac_cv_path_SETFILE
24505 if test -n "$SETFILE"; then
24506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24507 $as_echo "$SETFILE" >&6; }
24508 else
24509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24510 $as_echo "no" >&6; }
24511 fi
24512 
24513 
24514           if test "x$SETFILE" = x; then
24515             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24516           fi
24517         else
24518           # Otherwise we believe it is a complete path. Use it as it is.
24519           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24520 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24521           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24522 $as_echo_n "checking for SETFILE... " >&6; }
24523           if test ! -x "$tool_specified"; then
24524             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24525 $as_echo "not found" >&6; }
24526             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24527           fi
24528           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24529 $as_echo "$tool_specified" >&6; }
24530         fi
24531       fi
24532     fi
24533 
24534   fi
24535 
24536 
24537 
24538   if test "x$SETFILE" = x; then
24539     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24540   fi
24541 
24542 
24543   fi
24544 
24545 
24546   # Check bash version
24547   # Extra [ ] to stop m4 mangling
24548    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24550 $as_echo_n "checking bash version... " >&6; }
24551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24552 $as_echo "$BASH_VER" >&6; }
24553 
24554   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24555   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24556   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24557     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24558   fi
24559 
24560   # Test if bash supports pipefail.
24561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24562 $as_echo_n "checking if bash supports pipefail... " >&6; }
24563   if ${BASH} -c 'set -o pipefail'; then
24564     BASH_ARGS="$BASH_ARGS -o pipefail"
24565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24566 $as_echo "yes" >&6; }
24567   else
24568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24569 $as_echo "no" >&6; }
24570   fi
24571 
24572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24573 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24574   if ${BASH} -e -c 'true'; then
24575     BASH_ARGS="$BASH_ARGS -e"
24576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24577 $as_echo "yes" >&6; }
24578   else
24579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24580 $as_echo "no" >&6; }
24581   fi
24582 
24583 
24584 
24585 
24586 # Check if pkg-config is available.
24587 
24588 
24589 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24590         if test -n "$ac_tool_prefix"; then
24591   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24592 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24594 $as_echo_n "checking for $ac_word... " >&6; }
24595 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24596   $as_echo_n "(cached) " >&6
24597 else
24598   case $PKG_CONFIG in
24599   [\\/]* | ?:[\\/]*)
24600   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24601   ;;
24602   *)
24603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604 for as_dir in $PATH
24605 do
24606   IFS=$as_save_IFS
24607   test -z "$as_dir" && as_dir=.
24608     for ac_exec_ext in '' $ac_executable_extensions; do
24609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24610     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24612     break 2
24613   fi
24614 done
24615   done
24616 IFS=$as_save_IFS
24617 
24618   ;;
24619 esac
24620 fi
24621 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24622 if test -n "$PKG_CONFIG"; then
24623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24624 $as_echo "$PKG_CONFIG" >&6; }
24625 else
24626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24627 $as_echo "no" >&6; }
24628 fi
24629 
24630 
24631 fi
24632 if test -z "$ac_cv_path_PKG_CONFIG"; then
24633   ac_pt_PKG_CONFIG=$PKG_CONFIG
24634   # Extract the first word of "pkg-config", so it can be a program name with args.
24635 set dummy pkg-config; ac_word=$2
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24637 $as_echo_n "checking for $ac_word... " >&6; }
24638 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24639   $as_echo_n "(cached) " >&6
24640 else
24641   case $ac_pt_PKG_CONFIG in
24642   [\\/]* | ?:[\\/]*)
24643   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24644   ;;
24645   *)
24646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24647 for as_dir in $PATH
24648 do
24649   IFS=$as_save_IFS
24650   test -z "$as_dir" && as_dir=.
24651     for ac_exec_ext in '' $ac_executable_extensions; do
24652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24653     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24655     break 2
24656   fi
24657 done
24658   done
24659 IFS=$as_save_IFS
24660 
24661   ;;
24662 esac
24663 fi
24664 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24665 if test -n "$ac_pt_PKG_CONFIG"; then
24666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24667 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24668 else
24669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24670 $as_echo "no" >&6; }
24671 fi
24672 
24673   if test "x$ac_pt_PKG_CONFIG" = x; then
24674     PKG_CONFIG=""
24675   else
24676     case $cross_compiling:$ac_tool_warned in
24677 yes:)
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24680 ac_tool_warned=yes ;;
24681 esac
24682     PKG_CONFIG=$ac_pt_PKG_CONFIG
24683   fi
24684 else
24685   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24686 fi
24687 
24688 fi
24689 if test -n "$PKG_CONFIG"; then
24690         _pkg_min_version=0.9.0
24691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24692 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24693         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695 $as_echo "yes" >&6; }
24696         else
24697                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698 $as_echo "no" >&6; }
24699                 PKG_CONFIG=""
24700         fi
24701 
24702 fi
24703 
24704 # After basic tools have been setup, we can check build os specific details.
24705 
24706   ###############################################################################
24707 
24708   # Note that this is the build platform OS version!
24709 
24710   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24711   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24712   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24713   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24714 
24715 
24716 
24717 
24718 
24719 # Misc basic settings
24720 
24721 
24722 # Check whether --with-default-make-target was given.
24723 if test "${with_default_make_target+set}" = set; then :
24724   withval=$with_default_make_target;
24725 fi
24726 
24727   if test "x$with_default_make_target" = "x" \
24728       || test "x$with_default_make_target" = "xyes"; then
24729     DEFAULT_MAKE_TARGET="exploded-image"
24730   elif test "x$with_default_make_target" = "xno"; then
24731     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24732   else
24733     DEFAULT_MAKE_TARGET="$with_default_make_target"
24734   fi
24735 
24736 
24737 
24738 
24739 ###############################################################################
24740 #
24741 # Determine OpenJDK variants, options and version numbers.
24742 #
24743 ###############################################################################
24744 
24745 # We need build & target for this.
24746 
24747   # Should we build a JDK without a graphical UI?
24748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24749 $as_echo_n "checking headless only... " >&6; }
24750   # Check whether --enable-headless-only was given.
24751 if test "${enable_headless_only+set}" = set; then :
24752   enableval=$enable_headless_only;
24753 fi
24754 
24755 
24756   if test "x$enable_headless_only" = "xyes"; then
24757     ENABLE_HEADLESS_ONLY="true"
24758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24759 $as_echo "yes" >&6; }
24760   elif test "x$enable_headless_only" = "xno"; then
24761     ENABLE_HEADLESS_ONLY="false"
24762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24763 $as_echo "no" >&6; }
24764   elif test "x$enable_headless_only" = "x"; then
24765     ENABLE_HEADLESS_ONLY="false"
24766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24767 $as_echo "no" >&6; }
24768   else
24769     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24770   fi
24771 
24772 
24773 
24774   # Should we build the complete docs, or just a lightweight version?
24775   # Check whether --enable-full-docs was given.
24776 if test "${enable_full_docs+set}" = set; then :
24777   enableval=$enable_full_docs;
24778 fi
24779 
24780 
24781   # Verify dependencies
24782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24783 $as_echo_n "checking for graphviz dot... " >&6; }
24784   if test "x$DOT" != "x"; then
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24786 $as_echo "yes" >&6; }
24787   else
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24789 $as_echo "no, cannot generate full docs" >&6; }
24790     FULL_DOCS_DEP_MISSING=true
24791   fi
24792 
24793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24794 $as_echo_n "checking for pandoc... " >&6; }
24795   if test "x$PANDOC" != "x"; then
24796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24797 $as_echo "yes" >&6; }
24798   else
24799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24800 $as_echo "no, cannot generate full docs" >&6; }
24801     FULL_DOCS_DEP_MISSING=true
24802   fi
24803 
24804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24805 $as_echo_n "checking full docs... " >&6; }
24806   if test "x$enable_full_docs" = xyes; then
24807     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24809 $as_echo "no, missing dependencies" >&6; }
24810 
24811   # Print a helpful message on how to acquire the necessary build dependency.
24812   # dot is the help tag: freetype, cups, alsa etc
24813   MISSING_DEPENDENCY=dot
24814 
24815   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24816     cygwin_help $MISSING_DEPENDENCY
24817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24818     msys_help $MISSING_DEPENDENCY
24819   else
24820     PKGHANDLER_COMMAND=
24821 
24822     case $PKGHANDLER in
24823       apt-get)
24824         apt_help     $MISSING_DEPENDENCY ;;
24825       yum)
24826         yum_help     $MISSING_DEPENDENCY ;;
24827       brew)
24828         brew_help    $MISSING_DEPENDENCY ;;
24829       port)
24830         port_help    $MISSING_DEPENDENCY ;;
24831       pkgutil)
24832         pkgutil_help $MISSING_DEPENDENCY ;;
24833       pkgadd)
24834         pkgadd_help  $MISSING_DEPENDENCY ;;
24835     esac
24836 
24837     if test "x$PKGHANDLER_COMMAND" != x; then
24838       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24839     fi
24840   fi
24841 
24842       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24843     else
24844       ENABLE_FULL_DOCS=true
24845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24846 $as_echo "yes, forced" >&6; }
24847     fi
24848   elif test "x$enable_full_docs" = xno; then
24849     ENABLE_FULL_DOCS=false
24850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24851 $as_echo "no, forced" >&6; }
24852   elif test "x$enable_full_docs" = x; then
24853     # Check for prerequisites
24854     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24855       ENABLE_FULL_DOCS=false
24856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24857 $as_echo "no, missing dependencies" >&6; }
24858     else
24859       ENABLE_FULL_DOCS=true
24860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24861 $as_echo "yes, dependencies present" >&6; }
24862     fi
24863   else
24864     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24865   fi
24866 
24867 
24868 
24869   # Choose cacerts source file
24870 
24871 # Check whether --with-cacerts-file was given.
24872 if test "${with_cacerts_file+set}" = set; then :
24873   withval=$with_cacerts_file;
24874 fi
24875 
24876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24877 $as_echo_n "checking for cacerts file... " >&6; }
24878   if test "x$with_cacerts_file" == x; then
24879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24880 $as_echo "default" >&6; }
24881   else
24882     CACERTS_FILE=$with_cacerts_file
24883     if test ! -f "$CACERTS_FILE"; then
24884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24885 $as_echo "fail" >&6; }
24886       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24887     fi
24888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24889 $as_echo "$CACERTS_FILE" >&6; }
24890   fi
24891 
24892 
24893   # Enable or disable unlimited crypto
24894   # Check whether --enable-unlimited-crypto was given.
24895 if test "${enable_unlimited_crypto+set}" = set; then :
24896   enableval=$enable_unlimited_crypto;
24897 else
24898   enable_unlimited_crypto=yes
24899 fi
24900 
24901   if test "x$enable_unlimited_crypto" = "xyes"; then
24902     UNLIMITED_CRYPTO=true
24903   else
24904     UNLIMITED_CRYPTO=false
24905   fi
24906 
24907 
24908   # Should we build the serviceability agent (SA)?
24909   INCLUDE_SA=true
24910   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24911     INCLUDE_SA=false
24912   fi
24913   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24914     INCLUDE_SA=false
24915   fi
24916 
24917 
24918   # Compress jars
24919   COMPRESS_JARS=false
24920 
24921 
24922 
24923   # Setup default copyright year. Mostly overridden when building close to a new year.
24924 
24925 # Check whether --with-copyright-year was given.
24926 if test "${with_copyright_year+set}" = set; then :
24927   withval=$with_copyright_year;
24928 fi
24929 
24930   if test "x$with_copyright_year" = xyes; then
24931     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24932   elif test "x$with_copyright_year" != x; then
24933     COPYRIGHT_YEAR="$with_copyright_year"
24934   else
24935     COPYRIGHT_YEAR=`$DATE +'%Y'`
24936   fi
24937 
24938 
24939 
24940   # Check whether --enable-keep-packaged-modules was given.
24941 if test "${enable_keep_packaged_modules+set}" = set; then :
24942   enableval=$enable_keep_packaged_modules;
24943 fi
24944 
24945 
24946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24947 $as_echo_n "checking if packaged modules are kept... " >&6; }
24948   if test "x$enable_keep_packaged_modules" = "xyes"; then
24949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24950 $as_echo "yes" >&6; }
24951     JLINK_KEEP_PACKAGED_MODULES=true
24952   elif test "x$enable_keep_packaged_modules" = "xno"; then
24953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24954 $as_echo "no" >&6; }
24955     JLINK_KEEP_PACKAGED_MODULES=false
24956   elif test "x$enable_keep_packaged_modules" = "x"; then
24957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24958 $as_echo "yes (default)" >&6; }
24959     JLINK_KEEP_PACKAGED_MODULES=true
24960   else
24961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24962 $as_echo "error" >&6; }
24963     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24964   fi
24965 
24966 
24967 
24968 
24969   # Warn user that old version arguments are deprecated.
24970 
24971 
24972 # Check whether --with-milestone was given.
24973 if test "${with_milestone+set}" = set; then :
24974   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24975 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24976 fi
24977 
24978 
24979 
24980 
24981 # Check whether --with-update-version was given.
24982 if test "${with_update_version+set}" = set; then :
24983   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24984 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24985 fi
24986 
24987 
24988 
24989 
24990 # Check whether --with-user-release-suffix was given.
24991 if test "${with_user_release_suffix+set}" = set; then :
24992   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
24993 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24994 fi
24995 
24996 
24997 
24998 
24999 # Check whether --with-build-number was given.
25000 if test "${with_build_number+set}" = set; then :
25001   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25002 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25003 fi
25004 
25005 
25006 
25007   # Source the version numbers file
25008   . $AUTOCONF_DIR/version-numbers
25009 
25010   # Some non-version number information is set in that file
25011 
25012 
25013 
25014 
25015 
25016 
25017 
25018 
25019 
25020   # Override version from arguments
25021 
25022   # If --with-version-string is set, process it first. It is possible to
25023   # override parts with more specific flags, since these are processed later.
25024 
25025 # Check whether --with-version-string was given.
25026 if test "${with_version_string+set}" = set; then :
25027   withval=$with_version_string;
25028 fi
25029 
25030   if test "x$with_version_string" = xyes; then
25031     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25032   elif test "x$with_version_string" != x; then
25033     # Additional [] needed to keep m4 from mangling shell constructs.
25034     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25035       VERSION_MAJOR=${BASH_REMATCH[1]}
25036       VERSION_MINOR=${BASH_REMATCH[3]}
25037       VERSION_SECURITY=${BASH_REMATCH[5]}
25038       VERSION_PATCH=${BASH_REMATCH[7]}
25039       VERSION_PRE=${BASH_REMATCH[9]}
25040       version_plus_separator=${BASH_REMATCH[11]}
25041       VERSION_BUILD=${BASH_REMATCH[12]}
25042       VERSION_OPT=${BASH_REMATCH[14]}
25043       # Unspecified numerical fields are interpreted as 0.
25044       if test "x$VERSION_MINOR" = x; then
25045         VERSION_MINOR=0
25046       fi
25047       if test "x$VERSION_SECURITY" = x; then
25048         VERSION_SECURITY=0
25049       fi
25050       if test "x$VERSION_PATCH" = x; then
25051         VERSION_PATCH=0
25052       fi
25053       if test "x$version_plus_separator" != x \
25054           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25055         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25056       fi
25057       # Stop the version part process from setting default values.
25058       # We still allow them to explicitly override though.
25059       NO_DEFAULT_VERSION_PARTS=true
25060     else
25061       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25062     fi
25063   fi
25064 
25065 
25066 # Check whether --with-version-pre was given.
25067 if test "${with_version_pre+set}" = set; then :
25068   withval=$with_version_pre; with_version_pre_present=true
25069 else
25070   with_version_pre_present=false
25071 fi
25072 
25073 
25074   if test "x$with_version_pre_present" = xtrue; then
25075     if test "x$with_version_pre" = xyes; then
25076       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25077     elif test "x$with_version_pre" = xno; then
25078       # Interpret --without-* as empty string instead of the literal "no"
25079       VERSION_PRE=
25080     else
25081       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25082        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25083       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25084         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25085 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25086       fi
25087     fi
25088   else
25089     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25090       # Default is to use "internal" as pre
25091       VERSION_PRE="internal"
25092     fi
25093   fi
25094 
25095 
25096 # Check whether --with-version-opt was given.
25097 if test "${with_version_opt+set}" = set; then :
25098   withval=$with_version_opt; with_version_opt_present=true
25099 else
25100   with_version_opt_present=false
25101 fi
25102 
25103 
25104   if test "x$with_version_opt_present" = xtrue; then
25105     if test "x$with_version_opt" = xyes; then
25106       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25107     elif test "x$with_version_opt" = xno; then
25108       # Interpret --without-* as empty string instead of the literal "no"
25109       VERSION_OPT=
25110     else
25111       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25112        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25113       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25114         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25115 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25116       fi
25117     fi
25118   else
25119     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25120       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25121       # Outer [ ] to quote m4.
25122        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25123       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25124     fi
25125   fi
25126 
25127 
25128 # Check whether --with-version-build was given.
25129 if test "${with_version_build+set}" = set; then :
25130   withval=$with_version_build; with_version_build_present=true
25131 else
25132   with_version_build_present=false
25133 fi
25134 
25135 
25136   if test "x$with_version_build_present" = xtrue; then
25137     if test "x$with_version_build" = xyes; then
25138       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25139     elif test "x$with_version_build" = xno; then
25140       # Interpret --without-* as empty string instead of the literal "no"
25141       VERSION_BUILD=
25142     elif test "x$with_version_build" = x; then
25143       VERSION_BUILD=
25144     else
25145 
25146   # Additional [] needed to keep m4 from mangling shell constructs.
25147   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25148     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25149   fi
25150   # Extract the version number without leading zeros.
25151   cleaned_value=${BASH_REMATCH[1]}
25152   if test "x$cleaned_value" = x; then
25153     # Special case for zero
25154     cleaned_value=${BASH_REMATCH[2]}
25155   fi
25156 
25157   if test $cleaned_value -gt 255; then
25158     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25159   fi
25160   if test "x$cleaned_value" != "x$with_version_build"; then
25161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25162 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25163   fi
25164   VERSION_BUILD=$cleaned_value
25165 
25166     fi
25167   else
25168     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25169       # Default is to not have a build number.
25170       VERSION_BUILD=""
25171       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25172       VERSION_BUILD=0
25173     fi
25174   fi
25175 
25176 
25177 # Check whether --with-version-major was given.
25178 if test "${with_version_major+set}" = set; then :
25179   withval=$with_version_major; with_version_major_present=true
25180 else
25181   with_version_major_present=false
25182 fi
25183 
25184 
25185   if test "x$with_version_major_present" = xtrue; then
25186     if test "x$with_version_major" = xyes; then
25187       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
25188     else
25189 
25190   # Additional [] needed to keep m4 from mangling shell constructs.
25191   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25192     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
25193   fi
25194   # Extract the version number without leading zeros.
25195   cleaned_value=${BASH_REMATCH[1]}
25196   if test "x$cleaned_value" = x; then
25197     # Special case for zero
25198     cleaned_value=${BASH_REMATCH[2]}
25199   fi
25200 
25201   if test $cleaned_value -gt 255; then
25202     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
25203   fi
25204   if test "x$cleaned_value" != "x$with_version_major"; then
25205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
25206 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
25207   fi
25208   VERSION_MAJOR=$cleaned_value
25209 
25210     fi
25211   else
25212     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25213       # Default is to get value from version-numbers
25214       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
25215     fi
25216   fi
25217 
25218 
25219 # Check whether --with-version-minor was given.
25220 if test "${with_version_minor+set}" = set; then :
25221   withval=$with_version_minor; with_version_minor_present=true
25222 else
25223   with_version_minor_present=false
25224 fi
25225 
25226 
25227   if test "x$with_version_minor_present" = xtrue; then
25228     if test "x$with_version_minor" = xyes; then
25229       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
25230     elif test "x$with_version_minor" = xno; then
25231       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25232       VERSION_MINOR=0
25233     elif test "x$with_version_minor" = x; then
25234       VERSION_MINOR=0
25235     else
25236 
25237   # Additional [] needed to keep m4 from mangling shell constructs.
25238   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25239     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
25240   fi
25241   # Extract the version number without leading zeros.
25242   cleaned_value=${BASH_REMATCH[1]}
25243   if test "x$cleaned_value" = x; then
25244     # Special case for zero
25245     cleaned_value=${BASH_REMATCH[2]}
25246   fi
25247 
25248   if test $cleaned_value -gt 255; then
25249     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
25250   fi
25251   if test "x$cleaned_value" != "x$with_version_minor"; then
25252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
25253 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
25254   fi
25255   VERSION_MINOR=$cleaned_value
25256 
25257     fi
25258   else
25259     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25260       # Default is 0, if unspecified
25261       VERSION_MINOR=$DEFAULT_VERSION_MINOR
25262     fi
25263   fi
25264 
25265 
25266 # Check whether --with-version-security was given.
25267 if test "${with_version_security+set}" = set; then :
25268   withval=$with_version_security; with_version_security_present=true
25269 else
25270   with_version_security_present=false
25271 fi
25272 
25273 
25274   if test "x$with_version_security_present" = xtrue; then
25275     if test "x$with_version_security" = xyes; then
25276       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
25277     elif test "x$with_version_security" = xno; then
25278       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25279       VERSION_SECURITY=0
25280     elif test "x$with_version_security" = x; then
25281       VERSION_SECURITY=0
25282     else
25283 
25284   # Additional [] needed to keep m4 from mangling shell constructs.
25285   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25286     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
25287   fi
25288   # Extract the version number without leading zeros.
25289   cleaned_value=${BASH_REMATCH[1]}
25290   if test "x$cleaned_value" = x; then
25291     # Special case for zero
25292     cleaned_value=${BASH_REMATCH[2]}
25293   fi
25294 
25295   if test $cleaned_value -gt 255; then
25296     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
25297   fi
25298   if test "x$cleaned_value" != "x$with_version_security"; then
25299     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
25300 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
25301   fi
25302   VERSION_SECURITY=$cleaned_value
25303 
25304     fi
25305   else
25306     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25307       # Default is 0, if unspecified
25308       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
25309     fi
25310   fi
25311 
25312 
25313 # Check whether --with-version-patch was given.
25314 if test "${with_version_patch+set}" = set; then :
25315   withval=$with_version_patch; with_version_patch_present=true
25316 else
25317   with_version_patch_present=false
25318 fi
25319 
25320 
25321   if test "x$with_version_patch_present" = xtrue; then
25322     if test "x$with_version_patch" = xyes; then
25323       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25324     elif test "x$with_version_patch" = xno; then
25325       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25326       VERSION_PATCH=0
25327     elif test "x$with_version_patch" = x; then
25328       VERSION_PATCH=0
25329     else
25330 
25331   # Additional [] needed to keep m4 from mangling shell constructs.
25332   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25333     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25334   fi
25335   # Extract the version number without leading zeros.
25336   cleaned_value=${BASH_REMATCH[1]}
25337   if test "x$cleaned_value" = x; then
25338     # Special case for zero
25339     cleaned_value=${BASH_REMATCH[2]}
25340   fi
25341 
25342   if test $cleaned_value -gt 255; then
25343     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25344   fi
25345   if test "x$cleaned_value" != "x$with_version_patch"; then
25346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25347 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25348   fi
25349   VERSION_PATCH=$cleaned_value
25350 
25351     fi
25352   else
25353     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25354       # Default is 0, if unspecified
25355       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25356     fi
25357   fi
25358 
25359   # Calculate derived version properties
25360 
25361   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25362   if test "x$VERSION_PRE" = x; then
25363     VERSION_IS_GA=true
25364   else
25365     VERSION_IS_GA=false
25366   fi
25367 
25368   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25369   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
25370 
25371   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25372   # Strip trailing zeroes from stripped_version_number
25373   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25374   VERSION_NUMBER=$stripped_version_number
25375 
25376   # The complete version string, with additional build information
25377   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25378     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25379   else
25380     # If either build or opt is set, we need a + separator
25381     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25382   fi
25383 
25384   # The short version string, just VERSION_NUMBER and PRE, if present.
25385   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25386 
25387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25388 $as_echo_n "checking for version string... " >&6; }
25389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25390 $as_echo "$VERSION_STRING" >&6; }
25391 
25392 
25393 
25394 
25395 
25396 
25397 
25398 
25399 
25400 
25401 
25402 
25403 
25404 
25405 
25406 ###############################################################################
25407 #
25408 # Setup BootJDK, used to bootstrap the build.
25409 #
25410 ###############################################################################
25411 
25412 
25413   BOOT_JDK_FOUND=no
25414 
25415 # Check whether --with-boot-jdk was given.
25416 if test "${with_boot_jdk+set}" = set; then :
25417   withval=$with_boot_jdk;
25418 fi
25419 
25420 
25421   # We look for the Boot JDK through various means, going from more certain to
25422   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25423   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25424   # must check if this is indeed valid; otherwise we'll continue looking.
25425 
25426   # Test: Is bootjdk explicitly set by command line arguments?
25427 
25428   if test "x$BOOT_JDK_FOUND" = xno; then
25429     # Now execute the test
25430 
25431   if test "x$with_boot_jdk" != x; then
25432     BOOT_JDK=$with_boot_jdk
25433     BOOT_JDK_FOUND=maybe
25434     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25435 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25436   fi
25437 
25438 
25439     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25440     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25441       # Do we have a bin/java?
25442       if test ! -x "$BOOT_JDK/bin/java"; then
25443         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25444 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25445         BOOT_JDK_FOUND=no
25446       else
25447         # Do we have a bin/javac?
25448         if test ! -x "$BOOT_JDK/bin/javac"; then
25449           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25450 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25451           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25452 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25453           BOOT_JDK_FOUND=no
25454         else
25455           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25456           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25457 
25458           # Extra M4 quote needed to protect [] in grep expression.
25459           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
25460           if test "x$FOUND_CORRECT_VERSION" = x; then
25461             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25463             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
25464 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
25465             BOOT_JDK_FOUND=no
25466           else
25467             # We're done! :-)
25468             BOOT_JDK_FOUND=yes
25469 
25470   # Only process if variable expands to non-empty
25471 
25472   if test "x$BOOT_JDK" != x; then
25473     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25474 
25475   # Input might be given as Windows format, start by converting to
25476   # unix format.
25477   path="$BOOT_JDK"
25478   new_path=`$CYGPATH -u "$path"`
25479 
25480   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25481   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25482   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25483   # "foo.exe" is OK but "foo" is an error.
25484   #
25485   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25486   # It is also a way to make sure we got the proper file name for the real test later on.
25487   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25488   if test "x$test_shortpath" = x; then
25489     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25490 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25491     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25492   fi
25493 
25494   # Call helper function which possibly converts this using DOS-style short mode.
25495   # If so, the updated path is stored in $new_path.
25496 
25497   input_path="$new_path"
25498   # Check if we need to convert this using DOS-style short mode. If the path
25499   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25500   # take no chances and rewrite it.
25501   # Note: m4 eats our [], so we need to use [ and ] instead.
25502   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25503   if test "x$has_forbidden_chars" != x; then
25504     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25505     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25506     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25507     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25508       # Going to short mode and back again did indeed matter. Since short mode is
25509       # case insensitive, let's make it lowercase to improve readability.
25510       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25511       # Now convert it back to Unix-style (cygpath)
25512       input_path=`$CYGPATH -u "$shortmode_path"`
25513       new_path="$input_path"
25514     fi
25515   fi
25516 
25517   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25518   if test "x$test_cygdrive_prefix" = x; then
25519     # As a simple fix, exclude /usr/bin since it's not a real path.
25520     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25521       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25522       # a path prefixed by /cygdrive for fixpath to work.
2