common/autoconf/generated-configure.sh

Print this page
rev 769 : 8024265: Enable new build on AIX
   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.67 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:
  24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25   # is contrary to our usage.  Disable this feature.
  26   alias -g '${1+"$@"}'='"$@"'
  27   setopt NO_GLOB_SUBST
  28 else
  29   case `(set -o) 2>/dev/null` in #(
  30   *posix*) :


  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.

  94 case $0 in #((
  95   *[\\/]* ) as_myself=$0 ;;
  96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97 for as_dir in $PATH
  98 do
  99   IFS=$as_save_IFS
 100   test -z "$as_dir" && as_dir=.
 101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 102   done
 103 IFS=$as_save_IFS
 104 
 105      ;;
 106 esac
 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
 108 # in which case we are not to be found in the path.
 109 if test "x$as_myself" = x; then
 110   as_myself=$0
 111 fi
 112 if test ! -f "$as_myself"; then
 113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 119 # suppresses any "Segmentation fault" message there.  '((' could
 120 # trigger a bug in pdksh 5.2.14.
 121 for as_var in BASH_ENV ENV MAIL MAILPATH
 122 do eval test x\${$as_var+set} = xset \
 123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 124 done
 125 PS1='$ '
 126 PS2='> '
 127 PS4='+ '
 128 
 129 # NLS nuisances.
 130 LC_ALL=C
 131 export LC_ALL
 132 LANGUAGE=C
 133 export LANGUAGE
 134 
 135 # CDPATH.
 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 137 

























 138 if test "x$CONFIG_SHELL" = x; then
 139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 140   emulate sh
 141   NULLCMD=:
 142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 143   # is contrary to our usage.  Disable this feature.
 144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 145   setopt NO_GLOB_SUBST
 146 else
 147   case \`(set -o) 2>/dev/null\` in #(
 148   *posix*) :
 149     set -o posix ;; #(
 150   *) :
 151      ;;
 152 esac
 153 fi
 154 "
 155   as_required="as_fn_return () { (exit \$1); }
 156 as_fn_success () { as_fn_return 0; }
 157 as_fn_failure () { as_fn_return 1; }
 158 as_fn_ret_success () { return 0; }
 159 as_fn_ret_failure () { return 1; }
 160 
 161 exitcode=0
 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 167 
 168 else
 169   exitcode=1; echo positional parameters were not saved.
 170 fi
 171 test x\$exitcode = x0 || exit 1"

 172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 176 test \$(( 1 + 1 )) = 2 || exit 1"
 177   if (eval "$as_required") 2>/dev/null; then :
 178   as_have_required=yes
 179 else
 180   as_have_required=no
 181 fi
 182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 183 
 184 else
 185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 186 as_found=false
 187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 188 do
 189   IFS=$as_save_IFS
 190   test -z "$as_dir" && as_dir=.
 191   as_found=:


 196              as_shell=$as_dir/$as_base
 197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 199   CONFIG_SHELL=$as_shell as_have_required=yes
 200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 201   break 2
 202 fi
 203 fi
 204            done;;
 205        esac
 206   as_found=false
 207 done
 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 210   CONFIG_SHELL=$SHELL as_have_required=yes
 211 fi; }
 212 IFS=$as_save_IFS
 213 
 214 
 215       if test "x$CONFIG_SHELL" != x; then :
 216   # We cannot yet assume a decent shell, so we have to provide a
 217         # neutralization value for shells without unset; and this also
 218         # works around shells that cannot unset nonexistent variables.
 219         BASH_ENV=/dev/null
 220         ENV=/dev/null
 221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 222         export CONFIG_SHELL
 223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}

















 224 fi
 225 
 226     if test x$as_have_required = xno; then :
 227   $as_echo "$0: This script requires a shell more modern than all"
 228   $as_echo "$0: the shells that I found on your system."
 229   if test x${ZSH_VERSION+set} = xset ; then
 230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 232   else
 233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 234 $0: build-dev@openjdk.java.net about your system, including
 235 $0: any error possibly output before this message. Then
 236 $0: install a modern shell, or manually run the script
 237 $0: under such a shell if you do have one."
 238   fi
 239   exit 1
 240 fi
 241 fi
 242 fi
 243 SHELL=${CONFIG_SHELL-/bin/sh}


 306           /^X\(\/\/\)[^/].*/{
 307             s//\1/
 308             q
 309           }
 310           /^X\(\/\/\)$/{
 311             s//\1/
 312             q
 313           }
 314           /^X\(\/\).*/{
 315             s//\1/
 316             q
 317           }
 318           s/.*/./; q'`
 319       test -d "$as_dir" && break
 320     done
 321     test -z "$as_dirs" || eval "mkdir $as_dirs"
 322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 323 
 324 
 325 } # as_fn_mkdir_p








 326 # as_fn_append VAR VALUE
 327 # ----------------------
 328 # Append the text in VALUE to the end of the definition contained in VAR. Take
 329 # advantage of any shell optimizations that allow amortized linear growth over
 330 # repeated appends, instead of the typical quadratic growth present in naive
 331 # implementations.
 332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 333   eval 'as_fn_append ()
 334   {
 335     eval $1+=\$2
 336   }'
 337 else
 338   as_fn_append ()
 339   {
 340     eval $1=\$$1\$2
 341   }
 342 fi # as_fn_append
 343 
 344 # as_fn_arith ARG...
 345 # ------------------


 427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 429   sed -n '
 430     p
 431     /[$]LINENO/=
 432   ' <$as_myself |
 433     sed '
 434       s/[$]LINENO.*/&-/
 435       t lineno
 436       b
 437       :lineno
 438       N
 439       :loop
 440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 441       t loop
 442       s/-\n.*//
 443     ' >$as_me.lineno &&
 444   chmod +x "$as_me.lineno" ||
 445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 446 




 447   # Don't try to exec as it changes $[0], causing all sort of problems
 448   # (the dirname of $[0] is not the place where we might find the
 449   # original and so on.  Autoconf is especially sensitive to this).
 450   . "./$as_me.lineno"
 451   # Exit status is that of the last command.
 452   exit
 453 }
 454 
 455 ECHO_C= ECHO_N= ECHO_T=
 456 case `echo -n x` in #(((((
 457 -n*)
 458   case `echo 'xy\c'` in
 459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 460   xy)  ECHO_C='\c';;
 461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 462        ECHO_T=' ';;
 463   esac;;
 464 *)
 465   ECHO_N='-n';;
 466 esac
 467 
 468 rm -f conf$$ conf$$.exe conf$$.file
 469 if test -d conf$$.dir; then
 470   rm -f conf$$.dir/conf$$.file
 471 else
 472   rm -f conf$$.dir
 473   mkdir conf$$.dir 2>/dev/null
 474 fi
 475 if (echo >conf$$.file) 2>/dev/null; then
 476   if ln -s conf$$.file conf$$ 2>/dev/null; then
 477     as_ln_s='ln -s'
 478     # ... but there are two gotchas:
 479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 481     # In both cases, we have to default to `cp -p'.
 482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 483       as_ln_s='cp -p'
 484   elif ln conf$$.file conf$$ 2>/dev/null; then
 485     as_ln_s=ln
 486   else
 487     as_ln_s='cp -p'
 488   fi
 489 else
 490   as_ln_s='cp -p'
 491 fi
 492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 493 rmdir conf$$.dir 2>/dev/null
 494 
 495 if mkdir -p . 2>/dev/null; then
 496   as_mkdir_p='mkdir -p "$as_dir"'
 497 else
 498   test -d ./-p && rmdir ./-p
 499   as_mkdir_p=false
 500 fi
 501 
 502 if test -x / >/dev/null 2>&1; then
 503   as_test_x='test -x'
 504 else
 505   if ls -dL / >/dev/null 2>&1; then
 506     as_ls_L_option=L
 507   else
 508     as_ls_L_option=
 509   fi
 510   as_test_x='
 511     eval sh -c '\''
 512       if test -d "$1"; then
 513         test -d "$1/.";
 514       else
 515         case $1 in #(
 516         -*)set "./$1";;
 517         esac;
 518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 519         ???[sx]*):;;*)false;;esac;fi
 520     '\'' sh
 521   '
 522 fi
 523 as_executable_p=$as_test_x
 524 
 525 # Sed expression to map a string onto a valid CPP name.
 526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 527 
 528 # Sed expression to map a string onto a valid variable name.
 529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 530 
 531 
 532 test -n "$DJDIR" || exec 7<&0 </dev/null
 533 exec 6>&1
 534 
 535 # Name of the host.
 536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 537 # so uname gets run too.
 538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 539 
 540 #
 541 # Initializations.
 542 #
 543 ac_default_prefix=/usr/local


 638 CFLAGS_DEBUG_SYMBOLS
 639 ZIP_DEBUGINFO_FILES
 640 ENABLE_DEBUG_SYMBOLS
 641 USING_BROKEN_SUSE_LD
 642 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 643 ZERO_ARCHFLAG
 644 LDFLAGS_CXX_JDK
 645 LDFLAGS_JDKEXE_SUFFIX
 646 LDFLAGS_JDKLIB_SUFFIX
 647 LDFLAGS_JDKEXE
 648 LDFLAGS_JDKLIB
 649 CXXFLAGS_JDKEXE
 650 CXXFLAGS_JDKLIB
 651 CFLAGS_JDKEXE
 652 CFLAGS_JDKLIB
 653 MACOSX_VERSION_MIN
 654 PACKAGE_PATH
 655 LEGACY_EXTRA_LDFLAGS
 656 LEGACY_EXTRA_CXXFLAGS
 657 LEGACY_EXTRA_CFLAGS

 658 CXX_FLAG_DEPS
 659 C_FLAG_DEPS
 660 CXX_O_FLAG_NONE
 661 CXX_O_FLAG_NORM
 662 CXX_O_FLAG_HI
 663 CXX_O_FLAG_HIGHEST
 664 C_O_FLAG_NONE
 665 C_O_FLAG_NORM
 666 C_O_FLAG_HI
 667 C_O_FLAG_HIGHEST
 668 POST_MCS_CMD
 669 POST_STRIP_CMD
 670 SET_EXECUTABLE_ORIGIN
 671 SET_SHARED_LIBRARY_ORIGIN
 672 CXX_FLAG_REORDER
 673 C_FLAG_REORDER
 674 SET_SHARED_LIBRARY_MAPFILE
 675 SET_SHARED_LIBRARY_NAME
 676 SHARED_LIBRARY_FLAGS
 677 EXE_SUFFIX


1448 
1449   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information"
1451     ;;
1452 
1453   *=*)
1454     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455     # Reject names that are not valid shell variable names.
1456     case $ac_envvar in #(
1457       '' | [0-9]* | *[!_$as_cr_alnum]* )
1458       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1459     esac
1460     eval $ac_envvar=\$ac_optarg
1461     export $ac_envvar ;;
1462 
1463   *)
1464     # FIXME: should be removed in autoconf 3.0.
1465     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1469     ;;
1470 
1471   esac
1472 done
1473 
1474 if test -n "$ac_prev"; then
1475   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476   as_fn_error $? "missing argument to $ac_option"
1477 fi
1478 
1479 if test -n "$ac_unrecognized_opts"; then
1480   case $enable_option_checking in
1481     no) ;;
1482     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1483     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484   esac
1485 fi
1486 
1487 # Check all directory arguments for consistency.
1488 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1499   esac
1500   # Be sure to have absolute directory names.
1501   case $ac_val in
1502     [\\/$]* | ?:[\\/]* )  continue;;
1503     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504   esac
1505   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1507 
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1514 
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517   if test "x$build_alias" = x; then
1518     cross_compiling=maybe
1519     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1520     If a cross compiler is detected then cross compile mode will be used" >&2
1521   elif test "x$build_alias" != "x$host_alias"; then
1522     cross_compiling=yes
1523   fi
1524 fi
1525 
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1528 
1529 test "$silent" = yes && exec 6>/dev/null
1530 
1531 
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535   as_fn_error $? "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537   as_fn_error $? "pwd does not report name of working directory"
1538 
1539 
1540 # Find the source files, if location was not specified.


1886 
1887     cd "$ac_dir" || { ac_status=$?; continue; }
1888     # Check for guested configure.
1889     if test -f "$ac_srcdir/configure.gnu"; then
1890       echo &&
1891       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1892     elif test -f "$ac_srcdir/configure"; then
1893       echo &&
1894       $SHELL "$ac_srcdir/configure" --help=recursive
1895     else
1896       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1897     fi || ac_status=$?
1898     cd "$ac_pwd" || { ac_status=$?; break; }
1899   done
1900 fi
1901 
1902 test -n "$ac_init_help" && exit $ac_status
1903 if $ac_init_version; then
1904   cat <<\_ACEOF
1905 OpenJDK configure jdk8
1906 generated by GNU Autoconf 2.67
1907 
1908 Copyright (C) 2010 Free Software Foundation, Inc.
1909 This configure script is free software; the Free Software Foundation
1910 gives unlimited permission to copy, distribute and modify it.
1911 _ACEOF
1912   exit
1913 fi
1914 
1915 ## ------------------------ ##
1916 ## Autoconf initialization. ##
1917 ## ------------------------ ##
1918 
1919 # ac_fn_c_try_compile LINENO
1920 # --------------------------
1921 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_compile ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   rm -f conftest.$ac_objext
1926   if { { ac_try="$ac_compile"
1927 case "(($ac_try" in
1928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;


1932 $as_echo "$ac_try_echo"; } >&5
1933   (eval "$ac_compile") 2>conftest.err
1934   ac_status=$?
1935   if test -s conftest.err; then
1936     grep -v '^ *+' conftest.err >conftest.er1
1937     cat conftest.er1 >&5
1938     mv -f conftest.er1 conftest.err
1939   fi
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && {
1942          test -z "$ac_c_werror_flag" ||
1943          test ! -s conftest.err
1944        } && test -s conftest.$ac_objext; then :
1945   ac_retval=0
1946 else
1947   $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949 
1950         ac_retval=1
1951 fi
1952   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953   as_fn_set_status $ac_retval
1954 
1955 } # ac_fn_c_try_compile
1956 
1957 # ac_fn_cxx_try_compile LINENO
1958 # ----------------------------
1959 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_cxx_try_compile ()
1961 {
1962   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963   rm -f conftest.$ac_objext
1964   if { { ac_try="$ac_compile"
1965 case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_compile") 2>conftest.err
1972   ac_status=$?
1973   if test -s conftest.err; then
1974     grep -v '^ *+' conftest.err >conftest.er1
1975     cat conftest.er1 >&5
1976     mv -f conftest.er1 conftest.err
1977   fi
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; } && {
1980          test -z "$ac_cxx_werror_flag" ||
1981          test ! -s conftest.err
1982        } && test -s conftest.$ac_objext; then :
1983   ac_retval=0
1984 else
1985   $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1987 
1988         ac_retval=1
1989 fi
1990   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991   as_fn_set_status $ac_retval
1992 
1993 } # ac_fn_cxx_try_compile
1994 
1995 # ac_fn_objc_try_compile LINENO
1996 # -----------------------------
1997 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1998 ac_fn_objc_try_compile ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   rm -f conftest.$ac_objext
2002   if { { ac_try="$ac_compile"
2003 case "(($ac_try" in
2004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005   *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009   (eval "$ac_compile") 2>conftest.err
2010   ac_status=$?
2011   if test -s conftest.err; then
2012     grep -v '^ *+' conftest.err >conftest.er1
2013     cat conftest.er1 >&5
2014     mv -f conftest.er1 conftest.err
2015   fi
2016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017   test $ac_status = 0; } && {
2018          test -z "$ac_objc_werror_flag" ||
2019          test ! -s conftest.err
2020        } && test -s conftest.$ac_objext; then :
2021   ac_retval=0
2022 else
2023   $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025 
2026         ac_retval=1
2027 fi
2028   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029   as_fn_set_status $ac_retval
2030 
2031 } # ac_fn_objc_try_compile
2032 
2033 # ac_fn_c_try_cpp LINENO
2034 # ----------------------
2035 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_c_try_cpp ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   if { { ac_try="$ac_cpp conftest.$ac_ext"
2040 case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2047   ac_status=$?
2048   if test -s conftest.err; then
2049     grep -v '^ *+' conftest.err >conftest.er1
2050     cat conftest.er1 >&5
2051     mv -f conftest.er1 conftest.err
2052   fi
2053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054   test $ac_status = 0; } > conftest.i && {
2055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2056          test ! -s conftest.err
2057        }; then :
2058   ac_retval=0
2059 else
2060   $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062 
2063     ac_retval=1
2064 fi
2065   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066   as_fn_set_status $ac_retval
2067 
2068 } # ac_fn_c_try_cpp
2069 
2070 # ac_fn_cxx_try_cpp LINENO
2071 # ------------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_cpp ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   if { { ac_try="$ac_cpp conftest.$ac_ext"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2084   ac_status=$?
2085   if test -s conftest.err; then
2086     grep -v '^ *+' conftest.err >conftest.er1
2087     cat conftest.er1 >&5
2088     mv -f conftest.er1 conftest.err
2089   fi
2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091   test $ac_status = 0; } > conftest.i && {
2092          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2093          test ! -s conftest.err
2094        }; then :
2095   ac_retval=0
2096 else
2097   $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099 
2100     ac_retval=1
2101 fi
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103   as_fn_set_status $ac_retval
2104 
2105 } # ac_fn_cxx_try_cpp
2106 
2107 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2108 # ---------------------------------------------------------
2109 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2110 # the include files in INCLUDES and setting the cache variable VAR
2111 # accordingly.
2112 ac_fn_cxx_check_header_mongrel ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   if eval "test \"\${$3+set}\"" = set; then :
2116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval "test \"\${$3+set}\"" = set; then :
2119   $as_echo_n "(cached) " >&6
2120 fi
2121 eval ac_res=\$$3
2122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 else
2125   # Is the header compilable?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2127 $as_echo_n "checking $2 usability... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h.  */
2130 $4
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_cxx_try_compile "$LINENO"; then :
2134   ac_header_compiler=yes
2135 else
2136   ac_header_compiler=no
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2165     ;;
2166   no:yes:* )
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2168 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2169     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2170 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2172 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2174 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ( $as_echo "## ----------------------------------------- ##
2178 ## Report this to build-dev@openjdk.java.net ##
2179 ## ----------------------------------------- ##"
2180      ) | sed "s/^/$as_me: WARNING:     /" >&2
2181     ;;
2182 esac
2183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval "test \"\${$3+set}\"" = set; then :
2186   $as_echo_n "(cached) " >&6
2187 else
2188   eval "$3=\$ac_header_compiler"
2189 fi
2190 eval ac_res=\$$3
2191                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 fi
2194   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 
2196 } # ac_fn_cxx_check_header_mongrel
2197 
2198 # ac_fn_cxx_try_run LINENO
2199 # ------------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2201 # that executables *can* be run.
2202 ac_fn_cxx_try_run ()
2203 {
2204   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205   if { { ac_try="$ac_link"
2206 case "(($ac_try" in
2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208   *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212   (eval "$ac_link") 2>&5
2213   ac_status=$?
2214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2216   { { case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222   (eval "$ac_try") 2>&5
2223   ac_status=$?
2224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2225   test $ac_status = 0; }; }; then :
2226   ac_retval=0
2227 else
2228   $as_echo "$as_me: program exited with status $ac_status" >&5
2229        $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231 
2232        ac_retval=$ac_status
2233 fi
2234   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236   as_fn_set_status $ac_retval
2237 
2238 } # ac_fn_cxx_try_run
2239 
2240 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2241 # ---------------------------------------------------------
2242 # Tests whether HEADER exists and can be compiled using the include files in
2243 # INCLUDES, setting the cache variable VAR accordingly.
2244 ac_fn_cxx_check_header_compile ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval "test \"\${$3+set}\"" = set; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258   eval "$3=yes"
2259 else
2260   eval "$3=no"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268 
2269 } # ac_fn_cxx_check_header_compile
2270 
2271 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2272 # ----------------------------------------------
2273 # Tries to find the compile-time value of EXPR in a program that includes
2274 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2275 # computed
2276 ac_fn_cxx_compute_int ()
2277 {
2278   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279   if test "$cross_compiling" = yes; then
2280     # Depending upon the size, compute the lo and hi bounds.
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h.  */
2283 $4
2284 int
2285 main ()
2286 {
2287 static int test_array [1 - 2 * !(($2) >= 0)];
2288 test_array [0] = 0

2289 
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_cxx_try_compile "$LINENO"; then :
2295   ac_lo=0 ac_mid=0
2296   while :; do
2297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h.  */
2299 $4
2300 int
2301 main ()
2302 {
2303 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2304 test_array [0] = 0

2305 
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2311   ac_hi=$ac_mid; break
2312 else
2313   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2314                         if test $ac_lo -le $ac_mid; then
2315                           ac_lo= ac_hi=
2316                           break
2317                         fi
2318                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321   done
2322 else
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int
2327 main ()
2328 {
2329 static int test_array [1 - 2 * !(($2) < 0)];
2330 test_array [0] = 0

2331 
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337   ac_hi=-1 ac_mid=-1
2338   while :; do
2339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $4
2342 int
2343 main ()
2344 {
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2346 test_array [0] = 0

2347 
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353   ac_lo=$ac_mid; break
2354 else
2355   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2356                         if test $ac_mid -le $ac_hi; then
2357                           ac_lo= ac_hi=
2358                           break
2359                         fi
2360                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363   done
2364 else
2365   ac_lo= ac_hi=
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 # Binary search between lo and hi bounds.
2371 while test "x$ac_lo" != "x$ac_hi"; do
2372   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 int
2377 main ()
2378 {
2379 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2380 test_array [0] = 0

2381 
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_cxx_try_compile "$LINENO"; then :
2387   ac_hi=$ac_mid
2388 else
2389   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 done
2393 case $ac_lo in #((
2394 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2395 '') ac_retval=1 ;;
2396 esac
2397   else
2398     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h.  */
2400 $4


2424       fprintf (f, "%lu", i);
2425     }
2426   /* Do not output a trailing newline, as this causes \r\n confusion
2427      on some platforms.  */
2428   return ferror (f) || fclose (f) != 0;
2429 
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_cxx_try_run "$LINENO"; then :
2435   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2436 else
2437   ac_retval=1
2438 fi
2439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2440   conftest.$ac_objext conftest.beam conftest.$ac_ext
2441 rm -f conftest.val
2442 
2443   fi
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445   as_fn_set_status $ac_retval
2446 
2447 } # ac_fn_cxx_compute_int
2448 
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2453 {
2454   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455   rm -f conftest.$ac_objext conftest$ac_exeext
2456   if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463   (eval "$ac_link") 2>conftest.err
2464   ac_status=$?
2465   if test -s conftest.err; then
2466     grep -v '^ *+' conftest.err >conftest.er1
2467     cat conftest.er1 >&5
2468     mv -f conftest.er1 conftest.err
2469   fi
2470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471   test $ac_status = 0; } && {
2472          test -z "$ac_cxx_werror_flag" ||
2473          test ! -s conftest.err
2474        } && test -s conftest$ac_exeext && {
2475          test "$cross_compiling" = yes ||
2476          $as_test_x conftest$ac_exeext
2477        }; then :
2478   ac_retval=0
2479 else
2480   $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482 
2483         ac_retval=1
2484 fi
2485   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487   # interfere with the next link command; also delete a directory that is
2488   # left behind by Apple's compiler.  We do this before executing the actions.
2489   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491   as_fn_set_status $ac_retval
2492 
2493 } # ac_fn_cxx_try_link
2494 
2495 # ac_fn_cxx_check_func LINENO FUNC VAR
2496 # ------------------------------------
2497 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2498 ac_fn_cxx_check_func ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval "test \"\${$3+set}\"" = set; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h.  */
2508 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2510 #define $2 innocuous_$2
2511 
2512 /* System header to define __stub macros and hopefully few prototypes,
2513     which can conflict with char $2 (); below.
2514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515     <limits.h> exists even on freestanding compilers.  */
2516 
2517 #ifdef __STDC__
2518 # include <limits.h>
2519 #else
2520 # include <assert.h>
2521 #endif
2522 
2523 #undef $2


2538 
2539 int
2540 main ()
2541 {
2542 return $2 ();
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_cxx_try_link "$LINENO"; then :
2548   eval "$3=yes"
2549 else
2550   eval "$3=no"
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext \
2553     conftest$ac_exeext conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 
2560 } # ac_fn_cxx_check_func
2561 
2562 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2563 # -------------------------------------------------------
2564 # Tests whether HEADER exists and can be compiled using the include files in
2565 # INCLUDES, setting the cache variable VAR accordingly.
2566 ac_fn_c_check_header_compile ()
2567 {
2568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2570 $as_echo_n "checking for $2... " >&6; }
2571 if eval "test \"\${$3+set}\"" = set; then :
2572   $as_echo_n "(cached) " >&6
2573 else
2574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h.  */
2576 $4
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580   eval "$3=yes"
2581 else
2582   eval "$3=no"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 eval ac_res=\$$3
2587                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590 
2591 } # ac_fn_c_check_header_compile
2592 cat >config.log <<_ACEOF
2593 This file contains any messages produced by compilers while
2594 running configure, to aid debugging if configure makes a mistake.
2595 
2596 It was created by OpenJDK $as_me jdk8, which was
2597 generated by GNU Autoconf 2.67.  Invocation command line was
2598 
2599   $ $0 $@
2600 
2601 _ACEOF
2602 exec 5>>config.log
2603 {
2604 cat <<_ASUNAME
2605 ## --------- ##
2606 ## Platform. ##
2607 ## --------- ##
2608 
2609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2614 
2615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2617 


3777 
3778 # Check if the VS env variables were setup prior to running configure.
3779 # If not, then find vcvarsall.bat and run it automatically, and integrate
3780 # the set env variables into the spec file.
3781 
3782 
3783 
3784 # Setup the DXSDK paths
3785 
3786 
3787 
3788 
3789 
3790 
3791 # This line needs to be here, verbatim, after all includes and the dummy hook
3792 # definitions. It is replaced with custom functionality when building
3793 # custom sources.
3794 #CUSTOM_AUTOCONF_INCLUDE
3795 
3796 # Do not change or remove the following line, it is needed for consistency checks:
3797 DATE_WHEN_GENERATED=1376695332
3798 
3799 ###############################################################################
3800 #
3801 # Initialization / Boot-strapping
3802 #
3803 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3804 # thus it jumps back and forth, each time gaining something needed later on.
3805 #
3806 ###############################################################################
3807 
3808 # Basic initialization that must happen first of all
3809 
3810 # Save the original command line. This is passed to us by the wrapper configure script.
3811 
3812 DATE_WHEN_CONFIGURED=`LANG=C date`
3813 
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3815 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3817 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3818 
3819 
3820 
3821 # Start with tools that do not need have cross compilation support
3822 # and can be expected to be found in the default PATH. These tools are
3823 # used by configure. Nor are these tools expected to be found in the
3824 # devkit from the builddeps server either, since they are
3825 # needed to download the devkit.
3826 
3827 # First are all the simple required tools.
3828 
3829     for ac_prog in basename
3830 do
3831   # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_path_BASENAME+set}" = set; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   case $BASENAME in
3839   [\\/]* | ?:[\\/]*)
3840   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3841   ;;
3842   *)
3843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855   done
3856 IFS=$as_save_IFS
3857 
3858   ;;
3859 esac
3860 fi
3861 BASENAME=$ac_cv_path_BASENAME
3862 if test -n "$BASENAME"; then
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
3864 $as_echo "$BASENAME" >&6; }
3865 else
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869 


3874 
3875     if test "x$BASENAME" = x; then
3876         if test "xbasename" = x; then
3877           PROG_NAME=basename
3878         else
3879           PROG_NAME=basename
3880         fi
3881         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3882 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3883         as_fn_error $? "Cannot continue" "$LINENO" 5
3884     fi
3885 
3886 
3887 
3888     for ac_prog in bash
3889 do
3890   # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_path_BASH+set}" = set; then :
3895   $as_echo_n "(cached) " >&6
3896 else
3897   case $BASH in
3898   [\\/]* | ?:[\\/]*)
3899   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3900   ;;
3901   *)
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916 
3917   ;;
3918 esac
3919 fi
3920 BASH=$ac_cv_path_BASH
3921 if test -n "$BASH"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
3923 $as_echo "$BASH" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928 


3933 
3934     if test "x$BASH" = x; then
3935         if test "xbash" = x; then
3936           PROG_NAME=bash
3937         else
3938           PROG_NAME=bash
3939         fi
3940         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3941 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3942         as_fn_error $? "Cannot continue" "$LINENO" 5
3943     fi
3944 
3945 
3946 
3947     for ac_prog in cat
3948 do
3949   # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy $ac_prog; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_path_CAT+set}" = set; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   case $CAT in
3957   [\\/]* | ?:[\\/]*)
3958   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3959   ;;
3960   *)
3961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966     for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973   done
3974 IFS=$as_save_IFS
3975 
3976   ;;
3977 esac
3978 fi
3979 CAT=$ac_cv_path_CAT
3980 if test -n "$CAT"; then
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
3982 $as_echo "$CAT" >&6; }
3983 else
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987 


3992 
3993     if test "x$CAT" = x; then
3994         if test "xcat" = x; then
3995           PROG_NAME=cat
3996         else
3997           PROG_NAME=cat
3998         fi
3999         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4000 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4001         as_fn_error $? "Cannot continue" "$LINENO" 5
4002     fi
4003 
4004 
4005 
4006     for ac_prog in chmod
4007 do
4008   # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_path_CHMOD+set}" = set; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   case $CHMOD in
4016   [\\/]* | ?:[\\/]*)
4017   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4018   ;;
4019   *)
4020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025     for ac_exec_ext in '' $ac_executable_extensions; do
4026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4027     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029     break 2
4030   fi
4031 done
4032   done
4033 IFS=$as_save_IFS
4034 
4035   ;;
4036 esac
4037 fi
4038 CHMOD=$ac_cv_path_CHMOD
4039 if test -n "$CHMOD"; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4041 $as_echo "$CHMOD" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046 


4051 
4052     if test "x$CHMOD" = x; then
4053         if test "xchmod" = x; then
4054           PROG_NAME=chmod
4055         else
4056           PROG_NAME=chmod
4057         fi
4058         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4059 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4060         as_fn_error $? "Cannot continue" "$LINENO" 5
4061     fi
4062 
4063 
4064 
4065     for ac_prog in cmp
4066 do
4067   # Extract the first word of "$ac_prog", so it can be a program name with args.
4068 set dummy $ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_path_CMP+set}" = set; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   case $CMP in
4075   [\\/]* | ?:[\\/]*)
4076   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4077   ;;
4078   *)
4079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091   done
4092 IFS=$as_save_IFS
4093 
4094   ;;
4095 esac
4096 fi
4097 CMP=$ac_cv_path_CMP
4098 if test -n "$CMP"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4100 $as_echo "$CMP" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105 


4110 
4111     if test "x$CMP" = x; then
4112         if test "xcmp" = x; then
4113           PROG_NAME=cmp
4114         else
4115           PROG_NAME=cmp
4116         fi
4117         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4118 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4119         as_fn_error $? "Cannot continue" "$LINENO" 5
4120     fi
4121 
4122 
4123 
4124     for ac_prog in comm
4125 do
4126   # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_path_COMM+set}" = set; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   case $COMM in
4134   [\\/]* | ?:[\\/]*)
4135   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4136   ;;
4137   *)
4138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152 
4153   ;;
4154 esac
4155 fi
4156 COMM=$ac_cv_path_COMM
4157 if test -n "$COMM"; then
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
4159 $as_echo "$COMM" >&6; }
4160 else
4161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164 


4169 
4170     if test "x$COMM" = x; then
4171         if test "xcomm" = x; then
4172           PROG_NAME=comm
4173         else
4174           PROG_NAME=comm
4175         fi
4176         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4177 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4178         as_fn_error $? "Cannot continue" "$LINENO" 5
4179     fi
4180 
4181 
4182 
4183     for ac_prog in cp
4184 do
4185   # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_path_CP+set}" = set; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   case $CP in
4193   [\\/]* | ?:[\\/]*)
4194   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4195   ;;
4196   *)
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211 
4212   ;;
4213 esac
4214 fi
4215 CP=$ac_cv_path_CP
4216 if test -n "$CP"; then
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4218 $as_echo "$CP" >&6; }
4219 else
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223 


4228 
4229     if test "x$CP" = x; then
4230         if test "xcp" = x; then
4231           PROG_NAME=cp
4232         else
4233           PROG_NAME=cp
4234         fi
4235         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4236 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4237         as_fn_error $? "Cannot continue" "$LINENO" 5
4238     fi
4239 
4240 
4241 
4242     for ac_prog in cpio
4243 do
4244   # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_path_CPIO+set}" = set; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   case $CPIO in
4252   [\\/]* | ?:[\\/]*)
4253   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4254   ;;
4255   *)
4256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268   done
4269 IFS=$as_save_IFS
4270 
4271   ;;
4272 esac
4273 fi
4274 CPIO=$ac_cv_path_CPIO
4275 if test -n "$CPIO"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
4277 $as_echo "$CPIO" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282 


4287 
4288     if test "x$CPIO" = x; then
4289         if test "xcpio" = x; then
4290           PROG_NAME=cpio
4291         else
4292           PROG_NAME=cpio
4293         fi
4294         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4295 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4296         as_fn_error $? "Cannot continue" "$LINENO" 5
4297     fi
4298 
4299 
4300 
4301     for ac_prog in cut
4302 do
4303   # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_path_CUT+set}" = set; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   case $CUT in
4311   [\\/]* | ?:[\\/]*)
4312   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4313   ;;
4314   *)
4315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329 
4330   ;;
4331 esac
4332 fi
4333 CUT=$ac_cv_path_CUT
4334 if test -n "$CUT"; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
4336 $as_echo "$CUT" >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341 


4346 
4347     if test "x$CUT" = x; then
4348         if test "xcut" = x; then
4349           PROG_NAME=cut
4350         else
4351           PROG_NAME=cut
4352         fi
4353         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4354 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4355         as_fn_error $? "Cannot continue" "$LINENO" 5
4356     fi
4357 
4358 
4359 
4360     for ac_prog in date
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_path_DATE+set}" = set; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   case $DATE in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379     for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386   done
4387 IFS=$as_save_IFS
4388 
4389   ;;
4390 esac
4391 fi
4392 DATE=$ac_cv_path_DATE
4393 if test -n "$DATE"; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
4395 $as_echo "$DATE" >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400 


4405 
4406     if test "x$DATE" = x; then
4407         if test "xdate" = x; then
4408           PROG_NAME=date
4409         else
4410           PROG_NAME=date
4411         fi
4412         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4413 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4414         as_fn_error $? "Cannot continue" "$LINENO" 5
4415     fi
4416 
4417 
4418 
4419     for ac_prog in gdiff diff
4420 do
4421   # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_path_DIFF+set}" = set; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   case $DIFF in
4429   [\\/]* | ?:[\\/]*)
4430   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4431   ;;
4432   *)
4433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445   done
4446 IFS=$as_save_IFS
4447 
4448   ;;
4449 esac
4450 fi
4451 DIFF=$ac_cv_path_DIFF
4452 if test -n "$DIFF"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4454 $as_echo "$DIFF" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459 


4464 
4465     if test "x$DIFF" = x; then
4466         if test "xgdiff diff" = x; then
4467           PROG_NAME=diff
4468         else
4469           PROG_NAME=gdiff diff
4470         fi
4471         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4472 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4473         as_fn_error $? "Cannot continue" "$LINENO" 5
4474     fi
4475 
4476 
4477 
4478     for ac_prog in dirname
4479 do
4480   # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   case $DIRNAME in
4488   [\\/]* | ?:[\\/]*)
4489   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4490   ;;
4491   *)
4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_exec_ext in '' $ac_executable_extensions; do
4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504   done
4505 IFS=$as_save_IFS
4506 
4507   ;;
4508 esac
4509 fi
4510 DIRNAME=$ac_cv_path_DIRNAME
4511 if test -n "$DIRNAME"; then
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
4513 $as_echo "$DIRNAME" >&6; }
4514 else
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518 


4523 
4524     if test "x$DIRNAME" = x; then
4525         if test "xdirname" = x; then
4526           PROG_NAME=dirname
4527         else
4528           PROG_NAME=dirname
4529         fi
4530         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4531 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4532         as_fn_error $? "Cannot continue" "$LINENO" 5
4533     fi
4534 
4535 
4536 
4537     for ac_prog in echo
4538 do
4539   # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_path_ECHO+set}" = set; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   case $ECHO in
4547   [\\/]* | ?:[\\/]*)
4548   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4549   ;;
4550   *)
4551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563   done
4564 IFS=$as_save_IFS
4565 
4566   ;;
4567 esac
4568 fi
4569 ECHO=$ac_cv_path_ECHO
4570 if test -n "$ECHO"; then
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4572 $as_echo "$ECHO" >&6; }
4573 else
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577 


4582 
4583     if test "x$ECHO" = x; then
4584         if test "xecho" = x; then
4585           PROG_NAME=echo
4586         else
4587           PROG_NAME=echo
4588         fi
4589         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4590 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4591         as_fn_error $? "Cannot continue" "$LINENO" 5
4592     fi
4593 
4594 
4595 
4596     for ac_prog in expr
4597 do
4598   # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_path_EXPR+set}" = set; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   case $EXPR in
4606   [\\/]* | ?:[\\/]*)
4607   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4608   ;;
4609   *)
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_exec_ext in '' $ac_executable_extensions; do
4616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622   done
4623 IFS=$as_save_IFS
4624 
4625   ;;
4626 esac
4627 fi
4628 EXPR=$ac_cv_path_EXPR
4629 if test -n "$EXPR"; then
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
4631 $as_echo "$EXPR" >&6; }
4632 else
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636 


4641 
4642     if test "x$EXPR" = x; then
4643         if test "xexpr" = x; then
4644           PROG_NAME=expr
4645         else
4646           PROG_NAME=expr
4647         fi
4648         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4649 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4650         as_fn_error $? "Cannot continue" "$LINENO" 5
4651     fi
4652 
4653 
4654 
4655     for ac_prog in file
4656 do
4657   # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_path_FILE+set}" = set; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   case $FILE in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681   done
4682 IFS=$as_save_IFS
4683 
4684   ;;
4685 esac
4686 fi
4687 FILE=$ac_cv_path_FILE
4688 if test -n "$FILE"; then
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
4690 $as_echo "$FILE" >&6; }
4691 else
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695 


4700 
4701     if test "x$FILE" = x; then
4702         if test "xfile" = x; then
4703           PROG_NAME=file
4704         else
4705           PROG_NAME=file
4706         fi
4707         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4708 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4709         as_fn_error $? "Cannot continue" "$LINENO" 5
4710     fi
4711 
4712 
4713 
4714     for ac_prog in find
4715 do
4716   # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_path_FIND+set}" = set; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723   case $FIND in
4724   [\\/]* | ?:[\\/]*)
4725   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4726   ;;
4727   *)
4728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731   IFS=$as_save_IFS
4732   test -z "$as_dir" && as_dir=.
4733     for ac_exec_ext in '' $ac_executable_extensions; do
4734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737     break 2
4738   fi
4739 done
4740   done
4741 IFS=$as_save_IFS
4742 
4743   ;;
4744 esac
4745 fi
4746 FIND=$ac_cv_path_FIND
4747 if test -n "$FIND"; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4749 $as_echo "$FIND" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754 


4759 
4760     if test "x$FIND" = x; then
4761         if test "xfind" = x; then
4762           PROG_NAME=find
4763         else
4764           PROG_NAME=find
4765         fi
4766         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4767 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4768         as_fn_error $? "Cannot continue" "$LINENO" 5
4769     fi
4770 
4771 
4772 
4773     for ac_prog in head
4774 do
4775   # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_path_HEAD+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   case $HEAD in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799   done
4800 IFS=$as_save_IFS
4801 
4802   ;;
4803 esac
4804 fi
4805 HEAD=$ac_cv_path_HEAD
4806 if test -n "$HEAD"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4808 $as_echo "$HEAD" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813 


4818 
4819     if test "x$HEAD" = x; then
4820         if test "xhead" = x; then
4821           PROG_NAME=head
4822         else
4823           PROG_NAME=head
4824         fi
4825         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4826 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4827         as_fn_error $? "Cannot continue" "$LINENO" 5
4828     fi
4829 
4830 
4831 
4832     for ac_prog in ln
4833 do
4834   # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if test "${ac_cv_path_LN+set}" = set; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   case $LN in
4842   [\\/]* | ?:[\\/]*)
4843   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4844   ;;
4845   *)
4846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851     for ac_exec_ext in '' $ac_executable_extensions; do
4852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858   done
4859 IFS=$as_save_IFS
4860 
4861   ;;
4862 esac
4863 fi
4864 LN=$ac_cv_path_LN
4865 if test -n "$LN"; then
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4867 $as_echo "$LN" >&6; }
4868 else
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872 


4877 
4878     if test "x$LN" = x; then
4879         if test "xln" = x; then
4880           PROG_NAME=ln
4881         else
4882           PROG_NAME=ln
4883         fi
4884         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4885 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4886         as_fn_error $? "Cannot continue" "$LINENO" 5
4887     fi
4888 
4889 
4890 
4891     for ac_prog in ls
4892 do
4893   # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_path_LS+set}" = set; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   case $LS in
4901   [\\/]* | ?:[\\/]*)
4902   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4903   ;;
4904   *)
4905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910     for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917   done
4918 IFS=$as_save_IFS
4919 
4920   ;;
4921 esac
4922 fi
4923 LS=$ac_cv_path_LS
4924 if test -n "$LS"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4926 $as_echo "$LS" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931 


4936 
4937     if test "x$LS" = x; then
4938         if test "xls" = x; then
4939           PROG_NAME=ls
4940         else
4941           PROG_NAME=ls
4942         fi
4943         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4944 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4945         as_fn_error $? "Cannot continue" "$LINENO" 5
4946     fi
4947 
4948 
4949 
4950     for ac_prog in mkdir
4951 do
4952   # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if test "${ac_cv_path_MKDIR+set}" = set; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   case $MKDIR in
4960   [\\/]* | ?:[\\/]*)
4961   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4962   ;;
4963   *)
4964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976   done
4977 IFS=$as_save_IFS
4978 
4979   ;;
4980 esac
4981 fi
4982 MKDIR=$ac_cv_path_MKDIR
4983 if test -n "$MKDIR"; then
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4985 $as_echo "$MKDIR" >&6; }
4986 else
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990 


4995 
4996     if test "x$MKDIR" = x; then
4997         if test "xmkdir" = x; then
4998           PROG_NAME=mkdir
4999         else
5000           PROG_NAME=mkdir
5001         fi
5002         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5003 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5004         as_fn_error $? "Cannot continue" "$LINENO" 5
5005     fi
5006 
5007 
5008 
5009     for ac_prog in mktemp
5010 do
5011   # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_path_MKTEMP+set}" = set; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   case $MKTEMP in
5019   [\\/]* | ?:[\\/]*)
5020   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5021   ;;
5022   *)
5023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035   done
5036 IFS=$as_save_IFS
5037 
5038   ;;
5039 esac
5040 fi
5041 MKTEMP=$ac_cv_path_MKTEMP
5042 if test -n "$MKTEMP"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
5044 $as_echo "$MKTEMP" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049 


5054 
5055     if test "x$MKTEMP" = x; then
5056         if test "xmktemp" = x; then
5057           PROG_NAME=mktemp
5058         else
5059           PROG_NAME=mktemp
5060         fi
5061         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5062 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5063         as_fn_error $? "Cannot continue" "$LINENO" 5
5064     fi
5065 
5066 
5067 
5068     for ac_prog in mv
5069 do
5070   # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_MV+set}" = set; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   case $MV in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096 
5097   ;;
5098 esac
5099 fi
5100 MV=$ac_cv_path_MV
5101 if test -n "$MV"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5103 $as_echo "$MV" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108 


5113 
5114     if test "x$MV" = x; then
5115         if test "xmv" = x; then
5116           PROG_NAME=mv
5117         else
5118           PROG_NAME=mv
5119         fi
5120         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5121 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5122         as_fn_error $? "Cannot continue" "$LINENO" 5
5123     fi
5124 
5125 
5126 
5127     for ac_prog in printf
5128 do
5129   # Extract the first word of "$ac_prog", so it can be a program name with args.
5130 set dummy $ac_prog; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_PRINTF+set}" = set; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   case $PRINTF in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146     for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153   done
5154 IFS=$as_save_IFS
5155 
5156   ;;
5157 esac
5158 fi
5159 PRINTF=$ac_cv_path_PRINTF
5160 if test -n "$PRINTF"; then
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
5162 $as_echo "$PRINTF" >&6; }
5163 else
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167 


5172 
5173     if test "x$PRINTF" = x; then
5174         if test "xprintf" = x; then
5175           PROG_NAME=printf
5176         else
5177           PROG_NAME=printf
5178         fi
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5180 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5181         as_fn_error $? "Cannot continue" "$LINENO" 5
5182     fi
5183 
5184 
5185 
5186     for ac_prog in rm
5187 do
5188   # Extract the first word of "$ac_prog", so it can be a program name with args.
5189 set dummy $ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_path_RM+set}" = set; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   case $RM in
5196   [\\/]* | ?:[\\/]*)
5197   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5198   ;;
5199   *)
5200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205     for ac_exec_ext in '' $ac_executable_extensions; do
5206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212   done
5213 IFS=$as_save_IFS
5214 
5215   ;;
5216 esac
5217 fi
5218 RM=$ac_cv_path_RM
5219 if test -n "$RM"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5221 $as_echo "$RM" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226 


5231 
5232     if test "x$RM" = x; then
5233         if test "xrm" = x; then
5234           PROG_NAME=rm
5235         else
5236           PROG_NAME=rm
5237         fi
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5239 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5240         as_fn_error $? "Cannot continue" "$LINENO" 5
5241     fi
5242 
5243 
5244 
5245     for ac_prog in sh
5246 do
5247   # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_path_SH+set}" = set; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   case $SH in
5255   [\\/]* | ?:[\\/]*)
5256   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5257   ;;
5258   *)
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273 
5274   ;;
5275 esac
5276 fi
5277 SH=$ac_cv_path_SH
5278 if test -n "$SH"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5280 $as_echo "$SH" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285 


5290 
5291     if test "x$SH" = x; then
5292         if test "xsh" = x; then
5293           PROG_NAME=sh
5294         else
5295           PROG_NAME=sh
5296         fi
5297         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5298 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5299         as_fn_error $? "Cannot continue" "$LINENO" 5
5300     fi
5301 
5302 
5303 
5304     for ac_prog in sort
5305 do
5306   # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_SORT+set}" = set; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   case $SORT in
5314   [\\/]* | ?:[\\/]*)
5315   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5316   ;;
5317   *)
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332 
5333   ;;
5334 esac
5335 fi
5336 SORT=$ac_cv_path_SORT
5337 if test -n "$SORT"; then
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5339 $as_echo "$SORT" >&6; }
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344 


5349 
5350     if test "x$SORT" = x; then
5351         if test "xsort" = x; then
5352           PROG_NAME=sort
5353         else
5354           PROG_NAME=sort
5355         fi
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5357 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5358         as_fn_error $? "Cannot continue" "$LINENO" 5
5359     fi
5360 
5361 
5362 
5363     for ac_prog in tail
5364 do
5365   # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_TAIL+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   case $TAIL in
5373   [\\/]* | ?:[\\/]*)
5374   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5375   ;;
5376   *)
5377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382     for ac_exec_ext in '' $ac_executable_extensions; do
5383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386     break 2
5387   fi
5388 done
5389   done
5390 IFS=$as_save_IFS
5391 
5392   ;;
5393 esac
5394 fi
5395 TAIL=$ac_cv_path_TAIL
5396 if test -n "$TAIL"; then
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
5398 $as_echo "$TAIL" >&6; }
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403 


5408 
5409     if test "x$TAIL" = x; then
5410         if test "xtail" = x; then
5411           PROG_NAME=tail
5412         else
5413           PROG_NAME=tail
5414         fi
5415         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5416 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5417         as_fn_error $? "Cannot continue" "$LINENO" 5
5418     fi
5419 
5420 
5421 
5422     for ac_prog in tar
5423 do
5424   # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_path_TAR+set}" = set; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   case $TAR in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450 
5451   ;;
5452 esac
5453 fi
5454 TAR=$ac_cv_path_TAR
5455 if test -n "$TAR"; then
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5457 $as_echo "$TAR" >&6; }
5458 else
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462 


5467 
5468     if test "x$TAR" = x; then
5469         if test "xtar" = x; then
5470           PROG_NAME=tar
5471         else
5472           PROG_NAME=tar
5473         fi
5474         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5475 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5476         as_fn_error $? "Cannot continue" "$LINENO" 5
5477     fi
5478 
5479 
5480 
5481     for ac_prog in tee
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_path_TEE+set}" = set; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   case $TEE in
5491   [\\/]* | ?:[\\/]*)
5492   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5493   ;;
5494   *)
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509 
5510   ;;
5511 esac
5512 fi
5513 TEE=$ac_cv_path_TEE
5514 if test -n "$TEE"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
5516 $as_echo "$TEE" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521 


5526 
5527     if test "x$TEE" = x; then
5528         if test "xtee" = x; then
5529           PROG_NAME=tee
5530         else
5531           PROG_NAME=tee
5532         fi
5533         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5534 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5535         as_fn_error $? "Cannot continue" "$LINENO" 5
5536     fi
5537 
5538 
5539 
5540     for ac_prog in touch
5541 do
5542   # Extract the first word of "$ac_prog", so it can be a program name with args.
5543 set dummy $ac_prog; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_path_TOUCH+set}" = set; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   case $TOUCH in
5550   [\\/]* | ?:[\\/]*)
5551   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5552   ;;
5553   *)
5554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559     for ac_exec_ext in '' $ac_executable_extensions; do
5560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566   done
5567 IFS=$as_save_IFS
5568 
5569   ;;
5570 esac
5571 fi
5572 TOUCH=$ac_cv_path_TOUCH
5573 if test -n "$TOUCH"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5575 $as_echo "$TOUCH" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580 


5585 
5586     if test "x$TOUCH" = x; then
5587         if test "xtouch" = x; then
5588           PROG_NAME=touch
5589         else
5590           PROG_NAME=touch
5591         fi
5592         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5593 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5594         as_fn_error $? "Cannot continue" "$LINENO" 5
5595     fi
5596 
5597 
5598 
5599     for ac_prog in tr
5600 do
5601   # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_path_TR+set}" = set; then :
5606   $as_echo_n "(cached) " >&6
5607 else
5608   case $TR in
5609   [\\/]* | ?:[\\/]*)
5610   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5611   ;;
5612   *)
5613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625   done
5626 IFS=$as_save_IFS
5627 
5628   ;;
5629 esac
5630 fi
5631 TR=$ac_cv_path_TR
5632 if test -n "$TR"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
5634 $as_echo "$TR" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639 


5644 
5645     if test "x$TR" = x; then
5646         if test "xtr" = x; then
5647           PROG_NAME=tr
5648         else
5649           PROG_NAME=tr
5650         fi
5651         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5652 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5653         as_fn_error $? "Cannot continue" "$LINENO" 5
5654     fi
5655 
5656 
5657 
5658     for ac_prog in uname
5659 do
5660   # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_path_UNAME+set}" = set; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   case $UNAME in
5668   [\\/]* | ?:[\\/]*)
5669   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5670   ;;
5671   *)
5672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686 
5687   ;;
5688 esac
5689 fi
5690 UNAME=$ac_cv_path_UNAME
5691 if test -n "$UNAME"; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
5693 $as_echo "$UNAME" >&6; }
5694 else
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698 


5703 
5704     if test "x$UNAME" = x; then
5705         if test "xuname" = x; then
5706           PROG_NAME=uname
5707         else
5708           PROG_NAME=uname
5709         fi
5710         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5711 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5712         as_fn_error $? "Cannot continue" "$LINENO" 5
5713     fi
5714 
5715 
5716 
5717     for ac_prog in uniq
5718 do
5719   # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_path_UNIQ+set}" = set; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   case $UNIQ in
5727   [\\/]* | ?:[\\/]*)
5728   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5729   ;;
5730   *)
5731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745 
5746   ;;
5747 esac
5748 fi
5749 UNIQ=$ac_cv_path_UNIQ
5750 if test -n "$UNIQ"; then
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5752 $as_echo "$UNIQ" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757 


5762 
5763     if test "x$UNIQ" = x; then
5764         if test "xuniq" = x; then
5765           PROG_NAME=uniq
5766         else
5767           PROG_NAME=uniq
5768         fi
5769         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5770 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5771         as_fn_error $? "Cannot continue" "$LINENO" 5
5772     fi
5773 
5774 
5775 
5776     for ac_prog in wc
5777 do
5778   # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_WC+set}" = set; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $WC in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804 
5805   ;;
5806 esac
5807 fi
5808 WC=$ac_cv_path_WC
5809 if test -n "$WC"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5811 $as_echo "$WC" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816 


5821 
5822     if test "x$WC" = x; then
5823         if test "xwc" = x; then
5824           PROG_NAME=wc
5825         else
5826           PROG_NAME=wc
5827         fi
5828         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5829 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5830         as_fn_error $? "Cannot continue" "$LINENO" 5
5831     fi
5832 
5833 
5834 
5835     for ac_prog in which
5836 do
5837   # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_path_WHICH+set}" = set; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   case $WHICH in
5845   [\\/]* | ?:[\\/]*)
5846   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5847   ;;
5848   *)
5849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863 
5864   ;;
5865 esac
5866 fi
5867 WHICH=$ac_cv_path_WHICH
5868 if test -n "$WHICH"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
5870 $as_echo "$WHICH" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875 


5880 
5881     if test "x$WHICH" = x; then
5882         if test "xwhich" = x; then
5883           PROG_NAME=which
5884         else
5885           PROG_NAME=which
5886         fi
5887         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5888 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5889         as_fn_error $? "Cannot continue" "$LINENO" 5
5890     fi
5891 
5892 
5893 
5894     for ac_prog in xargs
5895 do
5896   # Extract the first word of "$ac_prog", so it can be a program name with args.
5897 set dummy $ac_prog; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_path_XARGS+set}" = set; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   case $XARGS in
5904   [\\/]* | ?:[\\/]*)
5905   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5906   ;;
5907   *)
5908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922 
5923   ;;
5924 esac
5925 fi
5926 XARGS=$ac_cv_path_XARGS
5927 if test -n "$XARGS"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5929 $as_echo "$XARGS" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934 


5940     if test "x$XARGS" = x; then
5941         if test "xxargs" = x; then
5942           PROG_NAME=xargs
5943         else
5944           PROG_NAME=xargs
5945         fi
5946         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5947 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5948         as_fn_error $? "Cannot continue" "$LINENO" 5
5949     fi
5950 
5951 
5952 
5953 # Then required tools that require some special treatment.
5954 for ac_prog in gawk mawk nawk awk
5955 do
5956   # Extract the first word of "$ac_prog", so it can be a program name with args.
5957 set dummy $ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_AWK+set}" = set; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   if test -n "$AWK"; then
5964   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971     for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_prog_AWK="$ac_prog"
5974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978   done
5979 IFS=$as_save_IFS
5980 
5981 fi
5982 fi
5983 AWK=$ac_cv_prog_AWK
5984 if test -n "$AWK"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5986 $as_echo "$AWK" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991 
5992 
5993   test -n "$AWK" && break
5994 done
5995 
5996 
5997     if test "x$AWK" = x; then
5998         if test "x" = x; then
5999           PROG_NAME=awk
6000         else
6001           PROG_NAME=
6002         fi
6003         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6004 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6005         as_fn_error $? "Cannot continue" "$LINENO" 5
6006     fi
6007 
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6010 if test "${ac_cv_path_GREP+set}" = set; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -z "$GREP"; then
6014   ac_path_GREP_found=false
6015   # Loop through the user's path and test for each of PROGNAME-LIST
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_prog in grep ggrep; do
6022     for ac_exec_ext in '' $ac_executable_extensions; do
6023       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6024       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6025 # Check for GNU ac_path_GREP and select it if it is found.
6026   # Check for GNU $ac_path_GREP
6027 case `"$ac_path_GREP" --version 2>&1` in
6028 *GNU*)
6029   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6030 *)
6031   ac_count=0
6032   $as_echo_n 0123456789 >"conftest.in"
6033   while :
6034   do
6035     cat "conftest.in" "conftest.in" >"conftest.tmp"
6036     mv "conftest.tmp" "conftest.in"
6037     cp "conftest.in" "conftest.nl"
6038     $as_echo 'GREP' >> "conftest.nl"
6039     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041     as_fn_arith $ac_count + 1 && ac_count=$as_val
6042     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6043       # Best one so far, save it but keep looking for a better one
6044       ac_cv_path_GREP="$ac_path_GREP"


6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6067 $as_echo "$ac_cv_path_GREP" >&6; }
6068  GREP="$ac_cv_path_GREP"
6069 
6070 
6071 
6072     if test "x$GREP" = x; then
6073         if test "x" = x; then
6074           PROG_NAME=grep
6075         else
6076           PROG_NAME=
6077         fi
6078         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6079 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6080         as_fn_error $? "Cannot continue" "$LINENO" 5
6081     fi
6082 
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6084 $as_echo_n "checking for egrep... " >&6; }
6085 if test "${ac_cv_path_EGREP+set}" = set; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6089    then ac_cv_path_EGREP="$GREP -E"
6090    else
6091      if test -z "$EGREP"; then
6092   ac_path_EGREP_found=false
6093   # Loop through the user's path and test for each of PROGNAME-LIST
6094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099     for ac_prog in egrep; do
6100     for ac_exec_ext in '' $ac_executable_extensions; do
6101       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6102       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6103 # Check for GNU ac_path_EGREP and select it if it is found.
6104   # Check for GNU $ac_path_EGREP
6105 case `"$ac_path_EGREP" --version 2>&1` in
6106 *GNU*)
6107   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6108 *)
6109   ac_count=0
6110   $as_echo_n 0123456789 >"conftest.in"
6111   while :
6112   do
6113     cat "conftest.in" "conftest.in" >"conftest.tmp"
6114     mv "conftest.tmp" "conftest.in"
6115     cp "conftest.in" "conftest.nl"
6116     $as_echo 'EGREP' >> "conftest.nl"
6117     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6119     as_fn_arith $ac_count + 1 && ac_count=$as_val
6120     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6121       # Best one so far, save it but keep looking for a better one
6122       ac_cv_path_EGREP="$ac_path_EGREP"


6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6146 $as_echo "$ac_cv_path_EGREP" >&6; }
6147  EGREP="$ac_cv_path_EGREP"
6148 
6149 
6150 
6151     if test "x$EGREP" = x; then
6152         if test "x" = x; then
6153           PROG_NAME=egrep
6154         else
6155           PROG_NAME=
6156         fi
6157         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6158 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6159         as_fn_error $? "Cannot continue" "$LINENO" 5
6160     fi
6161 
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6163 $as_echo_n "checking for fgrep... " >&6; }
6164 if test "${ac_cv_path_FGREP+set}" = set; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6168    then ac_cv_path_FGREP="$GREP -F"
6169    else
6170      if test -z "$FGREP"; then
6171   ac_path_FGREP_found=false
6172   # Loop through the user's path and test for each of PROGNAME-LIST
6173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_prog in fgrep; do
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6181       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6182 # Check for GNU ac_path_FGREP and select it if it is found.
6183   # Check for GNU $ac_path_FGREP
6184 case `"$ac_path_FGREP" --version 2>&1` in
6185 *GNU*)
6186   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6187 *)
6188   ac_count=0
6189   $as_echo_n 0123456789 >"conftest.in"
6190   while :
6191   do
6192     cat "conftest.in" "conftest.in" >"conftest.tmp"
6193     mv "conftest.tmp" "conftest.in"
6194     cp "conftest.in" "conftest.nl"
6195     $as_echo 'FGREP' >> "conftest.nl"
6196     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198     as_fn_arith $ac_count + 1 && ac_count=$as_val
6199     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6200       # Best one so far, save it but keep looking for a better one
6201       ac_cv_path_FGREP="$ac_path_FGREP"


6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6225 $as_echo "$ac_cv_path_FGREP" >&6; }
6226  FGREP="$ac_cv_path_FGREP"
6227 
6228 
6229 
6230     if test "x$FGREP" = x; then
6231         if test "x" = x; then
6232           PROG_NAME=fgrep
6233         else
6234           PROG_NAME=
6235         fi
6236         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6237 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6238         as_fn_error $? "Cannot continue" "$LINENO" 5
6239     fi
6240 
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6242 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then :
6244   $as_echo_n "(cached) " >&6
6245 else
6246             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6247      for ac_i in 1 2 3 4 5 6 7; do
6248        ac_script="$ac_script$as_nl$ac_script"
6249      done
6250      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6251      { ac_script=; unset ac_script;}
6252      if test -z "$SED"; then
6253   ac_path_SED_found=false
6254   # Loop through the user's path and test for each of PROGNAME-LIST
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_prog in sed gsed; do
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6263       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6264 # Check for GNU ac_path_SED and select it if it is found.
6265   # Check for GNU $ac_path_SED
6266 case `"$ac_path_SED" --version 2>&1` in
6267 *GNU*)
6268   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6269 *)
6270   ac_count=0
6271   $as_echo_n 0123456789 >"conftest.in"
6272   while :
6273   do
6274     cat "conftest.in" "conftest.in" >"conftest.tmp"
6275     mv "conftest.tmp" "conftest.in"
6276     cp "conftest.in" "conftest.nl"
6277     $as_echo '' >> "conftest.nl"
6278     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280     as_fn_arith $ac_count + 1 && ac_count=$as_val
6281     if test $ac_count -gt ${ac_path_SED_max-0}; then
6282       # Best one so far, save it but keep looking for a better one
6283       ac_cv_path_SED="$ac_path_SED"


6309 
6310 
6311     if test "x$SED" = x; then
6312         if test "x" = x; then
6313           PROG_NAME=sed
6314         else
6315           PROG_NAME=
6316         fi
6317         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6318 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6319         as_fn_error $? "Cannot continue" "$LINENO" 5
6320     fi
6321 
6322 
6323 for ac_prog in nawk gawk awk
6324 do
6325   # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_path_NAWK+set}" = set; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   case $NAWK in
6333   [\\/]* | ?:[\\/]*)
6334   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6335   ;;
6336   *)
6337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351 
6352   ;;
6353 esac
6354 fi
6355 NAWK=$ac_cv_path_NAWK
6356 if test -n "$NAWK"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
6358 $as_echo "$NAWK" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363 


6373           PROG_NAME=
6374         fi
6375         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6376 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6377         as_fn_error $? "Cannot continue" "$LINENO" 5
6378     fi
6379 
6380 
6381 # Always force rm.
6382 RM="$RM -f"
6383 
6384 # pwd behaves differently on various platforms and some don't support the -L flag.
6385 # Always use the bash builtin pwd to get uniform behavior.
6386 THEPWDCMD=pwd
6387 
6388 # These are not required on all platforms
6389 # Extract the first word of "cygpath", so it can be a program name with args.
6390 set dummy cygpath; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   case $CYGPATH in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415 
6416   ;;
6417 esac
6418 fi
6419 CYGPATH=$ac_cv_path_CYGPATH
6420 if test -n "$CYGPATH"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6422 $as_echo "$CYGPATH" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427 
6428 
6429 # Extract the first word of "readlink", so it can be a program name with args.
6430 set dummy readlink; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_path_READLINK+set}" = set; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   case $READLINK in
6437   [\\/]* | ?:[\\/]*)
6438   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6439   ;;
6440   *)
6441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455 
6456   ;;
6457 esac
6458 fi
6459 READLINK=$ac_cv_path_READLINK
6460 if test -n "$READLINK"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6462 $as_echo "$READLINK" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467 
6468 
6469 # Extract the first word of "df", so it can be a program name with args.
6470 set dummy df; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_path_DF+set}" = set; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   case $DF in
6477   [\\/]* | ?:[\\/]*)
6478   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6479   ;;
6480   *)
6481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495 
6496   ;;
6497 esac
6498 fi
6499 DF=$ac_cv_path_DF
6500 if test -n "$DF"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6502 $as_echo "$DF" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507 
6508 
6509 # Extract the first word of "SetFile", so it can be a program name with args.
6510 set dummy SetFile; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_path_SETFILE+set}" = set; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   case $SETFILE in
6517   [\\/]* | ?:[\\/]*)
6518   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6519   ;;
6520   *)
6521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535 
6536   ;;
6537 esac
6538 fi
6539 SETFILE=$ac_cv_path_SETFILE
6540 if test -n "$SETFILE"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6542 $as_echo "$SETFILE" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547 
6548 
6549 
6550 
6551 # Now we can determine OpenJDK build and target platforms. This is required to
6552 # have early on.
6553 # Make sure we can run config.sub.
6554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6555   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6556 
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6558 $as_echo_n "checking build system type... " >&6; }
6559 if test "${ac_cv_build+set}" = set; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   ac_build_alias=$build_alias
6563 test "x$ac_build_alias" = x &&
6564   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6565 test "x$ac_build_alias" = x &&
6566   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6568   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6569 
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6572 $as_echo "$ac_cv_build" >&6; }
6573 case $ac_cv_build in
6574 *-*-*) ;;
6575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6576 esac
6577 build=$ac_cv_build
6578 ac_save_IFS=$IFS; IFS='-'
6579 set x $ac_cv_build
6580 shift
6581 build_cpu=$1
6582 build_vendor=$2
6583 shift; shift
6584 # Remember, the first character of IFS is used to create $*,
6585 # except with old shells:
6586 build_os=$*
6587 IFS=$ac_save_IFS
6588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6589 
6590 
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6592 $as_echo_n "checking host system type... " >&6; }
6593 if test "${ac_cv_host+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test "x$host_alias" = x; then
6597   ac_cv_host=$ac_cv_build
6598 else
6599   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6600     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6601 fi
6602 
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6605 $as_echo "$ac_cv_host" >&6; }
6606 case $ac_cv_host in
6607 *-*-*) ;;
6608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6609 esac
6610 host=$ac_cv_host
6611 ac_save_IFS=$IFS; IFS='-'
6612 set x $ac_cv_host
6613 shift
6614 host_cpu=$1
6615 host_vendor=$2
6616 shift; shift
6617 # Remember, the first character of IFS is used to create $*,
6618 # except with old shells:
6619 host_os=$*
6620 IFS=$ac_save_IFS
6621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6622 
6623 
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6625 $as_echo_n "checking target system type... " >&6; }
6626 if test "${ac_cv_target+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test "x$target_alias" = x; then
6630   ac_cv_target=$ac_cv_host
6631 else
6632   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6633     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6634 fi
6635 
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6638 $as_echo "$ac_cv_target" >&6; }
6639 case $ac_cv_target in
6640 *-*-*) ;;
6641 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6642 esac
6643 target=$ac_cv_target
6644 ac_save_IFS=$IFS; IFS='-'
6645 set x $ac_cv_target
6646 shift


6696     *darwin*)
6697       VAR_OS=macosx
6698       VAR_OS_API=posix
6699       VAR_OS_ENV=macosx
6700       ;;
6701     *bsd*)
6702       VAR_OS=bsd
6703       VAR_OS_API=posix
6704       VAR_OS_ENV=bsd
6705       ;;
6706     *cygwin*)
6707       VAR_OS=windows
6708       VAR_OS_API=winapi
6709       VAR_OS_ENV=windows.cygwin
6710       ;;
6711     *mingw*)
6712       VAR_OS=windows
6713       VAR_OS_API=winapi
6714       VAR_OS_ENV=windows.msys
6715       ;;





6716     *)
6717       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
6718       ;;
6719   esac
6720 
6721 
6722   # First argument is the cpu name from the trip/quad
6723   case "$build_cpu" in
6724     x86_64)
6725       VAR_CPU=x86_64
6726       VAR_CPU_ARCH=x86
6727       VAR_CPU_BITS=64
6728       VAR_CPU_ENDIAN=little
6729       ;;
6730     i?86)
6731       VAR_CPU=x86
6732       VAR_CPU_ARCH=x86
6733       VAR_CPU_BITS=32
6734       VAR_CPU_ENDIAN=little
6735       ;;
6736     arm*)
6737       VAR_CPU=arm
6738       VAR_CPU_ARCH=arm
6739       VAR_CPU_BITS=32
6740       VAR_CPU_ENDIAN=little
6741       ;;
6742     powerpc)
6743       VAR_CPU=ppc
6744       VAR_CPU_ARCH=ppc
6745       VAR_CPU_BITS=32
6746       VAR_CPU_ENDIAN=big
6747        ;;
6748     powerpc64)
6749       VAR_CPU=ppc64
6750       VAR_CPU_ARCH=ppc
6751       VAR_CPU_BITS=64
6752       VAR_CPU_ENDIAN=big
6753        ;;






6754     sparc)
6755       VAR_CPU=sparc
6756       VAR_CPU_ARCH=sparc
6757       VAR_CPU_BITS=32
6758       VAR_CPU_ENDIAN=big
6759        ;;
6760     sparcv9)
6761       VAR_CPU=sparcv9
6762       VAR_CPU_ARCH=sparc
6763       VAR_CPU_BITS=64
6764       VAR_CPU_ENDIAN=big
6765        ;;
6766     *)
6767       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
6768       ;;
6769   esac
6770 
6771     # ..and setup our own variables. (Do this explicitely to facilitate searching)
6772     OPENJDK_BUILD_OS="$VAR_OS"
6773     OPENJDK_BUILD_OS_API="$VAR_OS_API"


6804     *darwin*)
6805       VAR_OS=macosx
6806       VAR_OS_API=posix
6807       VAR_OS_ENV=macosx
6808       ;;
6809     *bsd*)
6810       VAR_OS=bsd
6811       VAR_OS_API=posix
6812       VAR_OS_ENV=bsd
6813       ;;
6814     *cygwin*)
6815       VAR_OS=windows
6816       VAR_OS_API=winapi
6817       VAR_OS_ENV=windows.cygwin
6818       ;;
6819     *mingw*)
6820       VAR_OS=windows
6821       VAR_OS_API=winapi
6822       VAR_OS_ENV=windows.msys
6823       ;;





6824     *)
6825       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
6826       ;;
6827   esac
6828 
6829 
6830   # First argument is the cpu name from the trip/quad
6831   case "$host_cpu" in
6832     x86_64)
6833       VAR_CPU=x86_64
6834       VAR_CPU_ARCH=x86
6835       VAR_CPU_BITS=64
6836       VAR_CPU_ENDIAN=little
6837       ;;
6838     i?86)
6839       VAR_CPU=x86
6840       VAR_CPU_ARCH=x86
6841       VAR_CPU_BITS=32
6842       VAR_CPU_ENDIAN=little
6843       ;;
6844     arm*)
6845       VAR_CPU=arm
6846       VAR_CPU_ARCH=arm
6847       VAR_CPU_BITS=32
6848       VAR_CPU_ENDIAN=little
6849       ;;
6850     powerpc)
6851       VAR_CPU=ppc
6852       VAR_CPU_ARCH=ppc
6853       VAR_CPU_BITS=32
6854       VAR_CPU_ENDIAN=big
6855        ;;
6856     powerpc64)
6857       VAR_CPU=ppc64
6858       VAR_CPU_ARCH=ppc
6859       VAR_CPU_BITS=64
6860       VAR_CPU_ENDIAN=big
6861        ;;






6862     sparc)
6863       VAR_CPU=sparc
6864       VAR_CPU_ARCH=sparc
6865       VAR_CPU_BITS=32
6866       VAR_CPU_ENDIAN=big
6867        ;;
6868     sparcv9)
6869       VAR_CPU=sparcv9
6870       VAR_CPU_ARCH=sparc
6871       VAR_CPU_BITS=64
6872       VAR_CPU_ENDIAN=big
6873        ;;
6874     *)
6875       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
6876       ;;
6877   esac
6878 
6879     # ... and setup our own variables. (Do this explicitely to facilitate searching)
6880     OPENJDK_TARGET_OS="$VAR_OS"
6881     OPENJDK_TARGET_OS_API="$VAR_OS_API"


8188 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8189 
8190 # The generated Makefile knows where the spec.gmk is and where the source is.
8191 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8192 # which will look for generated configurations
8193 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8194 
8195 
8196 # Save the arguments given to us
8197 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8198 
8199 
8200 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8201 
8202     for ac_prog in apt-get yum port pkgutil pkgadd
8203 do
8204   # Extract the first word of "$ac_prog", so it can be a program name with args.
8205 set dummy $ac_prog; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$PKGHANDLER"; then
8212   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_PKGHANDLER="$ac_prog"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228 
8229 fi
8230 fi
8231 PKGHANDLER=$ac_cv_prog_PKGHANDLER
8232 if test -n "$PKGHANDLER"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
8234 $as_echo "$PKGHANDLER" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239 
8240 


8553       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8554 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8555     fi
8556 
8557         fi
8558       fi
8559     fi
8560   fi
8561 
8562     if test "x$FOUND_MAKE" = x; then
8563       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8564     fi
8565   else
8566     # Try our hardest to locate a correct version of GNU make
8567     for ac_prog in gmake
8568 do
8569   # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   case $CHECK_GMAKE in
8577   [\\/]* | ?:[\\/]*)
8578   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8579   ;;
8580   *)
8581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586     for ac_exec_ext in '' $ac_executable_extensions; do
8587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593   done
8594 IFS=$as_save_IFS
8595 
8596   ;;
8597 esac
8598 fi
8599 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
8600 if test -n "$CHECK_GMAKE"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
8602 $as_echo "$CHECK_GMAKE" >&6; }
8603 else
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607 


8907 
8908   if test "x$complete" != "x$new_complete"; then
8909       FOUND_MAKE="$new_complete"
8910       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8911 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8912     fi
8913 
8914         fi
8915       fi
8916     fi
8917   fi
8918 
8919 
8920     if test "x$FOUND_MAKE" = x; then
8921       for ac_prog in make
8922 do
8923   # Extract the first word of "$ac_prog", so it can be a program name with args.
8924 set dummy $ac_prog; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   case $CHECK_MAKE in
8931   [\\/]* | ?:[\\/]*)
8932   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8933   ;;
8934   *)
8935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938   IFS=$as_save_IFS
8939   test -z "$as_dir" && as_dir=.
8940     for ac_exec_ext in '' $ac_executable_extensions; do
8941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944     break 2
8945   fi
8946 done
8947   done
8948 IFS=$as_save_IFS
8949 
8950   ;;
8951 esac
8952 fi
8953 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
8954 if test -n "$CHECK_MAKE"; then
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
8956 $as_echo "$CHECK_MAKE" >&6; }
8957 else
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961 


9266     fi
9267 
9268         fi
9269       fi
9270     fi
9271   fi
9272 
9273     fi
9274 
9275     if test "x$FOUND_MAKE" = x; then
9276       if test "x$TOOLS_DIR" != x; then
9277         # We have a tools-dir, check that as well before giving up.
9278         OLD_PATH=$PATH
9279         PATH=$TOOLS_DIR:$PATH
9280         for ac_prog in gmake
9281 do
9282   # Extract the first word of "$ac_prog", so it can be a program name with args.
9283 set dummy $ac_prog; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   case $CHECK_TOOLSDIR_GMAKE in
9290   [\\/]* | ?:[\\/]*)
9291   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9292   ;;
9293   *)
9294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297   IFS=$as_save_IFS
9298   test -z "$as_dir" && as_dir=.
9299     for ac_exec_ext in '' $ac_executable_extensions; do
9300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303     break 2
9304   fi
9305 done
9306   done
9307 IFS=$as_save_IFS
9308 
9309   ;;
9310 esac
9311 fi
9312 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
9313 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
9315 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
9316 else
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9319 fi
9320 


9619       fi
9620 
9621   if test "x$complete" != "x$new_complete"; then
9622       FOUND_MAKE="$new_complete"
9623       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9624 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9625     fi
9626 
9627         fi
9628       fi
9629     fi
9630   fi
9631 
9632         if test "x$FOUND_MAKE" = x; then
9633           for ac_prog in make
9634 do
9635   # Extract the first word of "$ac_prog", so it can be a program name with args.
9636 set dummy $ac_prog; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   case $CHECK_TOOLSDIR_MAKE in
9643   [\\/]* | ?:[\\/]*)
9644   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9645   ;;
9646   *)
9647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652     for ac_exec_ext in '' $ac_executable_extensions; do
9653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656     break 2
9657   fi
9658 done
9659   done
9660 IFS=$as_save_IFS
9661 
9662   ;;
9663 esac
9664 fi
9665 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
9666 if test -n "$CHECK_TOOLSDIR_MAKE"; then
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
9668 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
9669 else
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9672 fi
9673 


10015         FIND_DELETE="-exec rm \{\} \+"
10016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018     else
10019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10020 $as_echo "yes" >&6; }
10021     fi
10022     rmdir $DELETEDIR
10023 
10024 
10025 
10026 # These tools might not be installed by default,
10027 # need hint on how to install them.
10028 
10029     for ac_prog in unzip
10030 do
10031   # Extract the first word of "$ac_prog", so it can be a program name with args.
10032 set dummy $ac_prog; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_path_UNZIP+set}" = set; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   case $UNZIP in
10039   [\\/]* | ?:[\\/]*)
10040   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
10041   ;;
10042   *)
10043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046   IFS=$as_save_IFS
10047   test -z "$as_dir" && as_dir=.
10048     for ac_exec_ext in '' $ac_executable_extensions; do
10049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052     break 2
10053   fi
10054 done
10055   done
10056 IFS=$as_save_IFS
10057 
10058   ;;
10059 esac
10060 fi
10061 UNZIP=$ac_cv_path_UNZIP
10062 if test -n "$UNZIP"; then
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
10064 $as_echo "$UNZIP" >&6; }
10065 else
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 fi
10069 


10074 
10075     if test "x$UNZIP" = x; then
10076         if test "xunzip" = x; then
10077           PROG_NAME=unzip
10078         else
10079           PROG_NAME=unzip
10080         fi
10081         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10082 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10083         as_fn_error $? "Cannot continue" "$LINENO" 5
10084     fi
10085 
10086 
10087 
10088     for ac_prog in zip
10089 do
10090   # Extract the first word of "$ac_prog", so it can be a program name with args.
10091 set dummy $ac_prog; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_path_ZIP+set}" = set; then :
10095   $as_echo_n "(cached) " >&6
10096 else
10097   case $ZIP in
10098   [\\/]* | ?:[\\/]*)
10099   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10100   ;;
10101   *)
10102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105   IFS=$as_save_IFS
10106   test -z "$as_dir" && as_dir=.
10107     for ac_exec_ext in '' $ac_executable_extensions; do
10108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111     break 2
10112   fi
10113 done
10114   done
10115 IFS=$as_save_IFS
10116 
10117   ;;
10118 esac
10119 fi
10120 ZIP=$ac_cv_path_ZIP
10121 if test -n "$ZIP"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
10123 $as_echo "$ZIP" >&6; }
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128 


10133 
10134     if test "x$ZIP" = x; then
10135         if test "xzip" = x; then
10136           PROG_NAME=zip
10137         else
10138           PROG_NAME=zip
10139         fi
10140         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10141 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10142         as_fn_error $? "Cannot continue" "$LINENO" 5
10143     fi
10144 
10145 
10146 
10147 # Non-required basic tools
10148 
10149 # Extract the first word of "ldd", so it can be a program name with args.
10150 set dummy ldd; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if test "${ac_cv_path_LDD+set}" = set; then :
10154   $as_echo_n "(cached) " >&6
10155 else
10156   case $LDD in
10157   [\\/]* | ?:[\\/]*)
10158   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10159   ;;
10160   *)
10161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164   IFS=$as_save_IFS
10165   test -z "$as_dir" && as_dir=.
10166     for ac_exec_ext in '' $ac_executable_extensions; do
10167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170     break 2
10171   fi
10172 done
10173   done
10174 IFS=$as_save_IFS
10175 
10176   ;;
10177 esac
10178 fi
10179 LDD=$ac_cv_path_LDD
10180 if test -n "$LDD"; then
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10182 $as_echo "$LDD" >&6; }
10183 else
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187 
10188 
10189 if test "x$LDD" = "x"; then
10190     # List shared lib dependencies is used for
10191     # debug output and checking for forbidden dependencies.
10192     # We can build without it.
10193     LDD="true"
10194 fi
10195 # Extract the first word of "otool", so it can be a program name with args.
10196 set dummy otool; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if test "${ac_cv_path_OTOOL+set}" = set; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   case $OTOOL in
10203   [\\/]* | ?:[\\/]*)
10204   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10205   ;;
10206   *)
10207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210   IFS=$as_save_IFS
10211   test -z "$as_dir" && as_dir=.
10212     for ac_exec_ext in '' $ac_executable_extensions; do
10213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216     break 2
10217   fi
10218 done
10219   done
10220 IFS=$as_save_IFS
10221 
10222   ;;
10223 esac
10224 fi
10225 OTOOL=$ac_cv_path_OTOOL
10226 if test -n "$OTOOL"; then
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10228 $as_echo "$OTOOL" >&6; }
10229 else
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10232 fi
10233 
10234 
10235 if test "x$OTOOL" = "x"; then
10236    OTOOL="true"
10237 fi
10238 for ac_prog in readelf greadelf
10239 do
10240   # Extract the first word of "$ac_prog", so it can be a program name with args.
10241 set dummy $ac_prog; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_path_READELF+set}" = set; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   case $READELF in
10248   [\\/]* | ?:[\\/]*)
10249   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10250   ;;
10251   *)
10252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255   IFS=$as_save_IFS
10256   test -z "$as_dir" && as_dir=.
10257     for ac_exec_ext in '' $ac_executable_extensions; do
10258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261     break 2
10262   fi
10263 done
10264   done
10265 IFS=$as_save_IFS
10266 
10267   ;;
10268 esac
10269 fi
10270 READELF=$ac_cv_path_READELF
10271 if test -n "$READELF"; then
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10273 $as_echo "$READELF" >&6; }
10274 else
10275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10277 fi
10278 
10279 
10280   test -n "$READELF" && break
10281 done
10282 
10283 # Extract the first word of "hg", so it can be a program name with args.
10284 set dummy hg; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if test "${ac_cv_path_HG+set}" = set; then :
10288   $as_echo_n "(cached) " >&6
10289 else
10290   case $HG in
10291   [\\/]* | ?:[\\/]*)
10292   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10293   ;;
10294   *)
10295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309 
10310   ;;
10311 esac
10312 fi
10313 HG=$ac_cv_path_HG
10314 if test -n "$HG"; then
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10316 $as_echo "$HG" >&6; }
10317 else
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10320 fi
10321 
10322 
10323 # Extract the first word of "stat", so it can be a program name with args.
10324 set dummy stat; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if test "${ac_cv_path_STAT+set}" = set; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   case $STAT in
10331   [\\/]* | ?:[\\/]*)
10332   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10333   ;;
10334   *)
10335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340     for ac_exec_ext in '' $ac_executable_extensions; do
10341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347   done
10348 IFS=$as_save_IFS
10349 
10350   ;;
10351 esac
10352 fi
10353 STAT=$ac_cv_path_STAT
10354 if test -n "$STAT"; then
10355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10356 $as_echo "$STAT" >&6; }
10357 else
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10360 fi
10361 
10362 
10363 # Extract the first word of "time", so it can be a program name with args.
10364 set dummy time; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if test "${ac_cv_path_TIME+set}" = set; then :
10368   $as_echo_n "(cached) " >&6
10369 else
10370   case $TIME in
10371   [\\/]* | ?:[\\/]*)
10372   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10373   ;;
10374   *)
10375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378   IFS=$as_save_IFS
10379   test -z "$as_dir" && as_dir=.
10380     for ac_exec_ext in '' $ac_executable_extensions; do
10381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384     break 2
10385   fi
10386 done
10387   done
10388 IFS=$as_save_IFS
10389 
10390   ;;
10391 esac
10392 fi
10393 TIME=$ac_cv_path_TIME
10394 if test -n "$TIME"; then
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10396 $as_echo "$TIME" >&6; }
10397 else
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401 
10402 
10403 # Check if it's GNU time
10404 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
10405 if test "x$IS_GNU_TIME" != x; then
10406   IS_GNU_TIME=yes
10407 else
10408   IS_GNU_TIME=no
10409 fi
10410 
10411 
10412 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10413 
10414     for ac_prog in comm
10415 do
10416   # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if test "${ac_cv_path_COMM+set}" = set; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   case $COMM in
10424   [\\/]* | ?:[\\/]*)
10425   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10426   ;;
10427   *)
10428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10430 do
10431   IFS=$as_save_IFS
10432   test -z "$as_dir" && as_dir=.
10433     for ac_exec_ext in '' $ac_executable_extensions; do
10434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10435     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437     break 2
10438   fi
10439 done
10440   done
10441 IFS=$as_save_IFS
10442 
10443   ;;
10444 esac
10445 fi
10446 COMM=$ac_cv_path_COMM
10447 if test -n "$COMM"; then
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
10449 $as_echo "$COMM" >&6; }
10450 else
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454 


10462           PROG_NAME=comm
10463         else
10464           PROG_NAME=comm
10465         fi
10466         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10467 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10468         as_fn_error $? "Cannot continue" "$LINENO" 5
10469     fi
10470 
10471 
10472 fi
10473 
10474 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10475 
10476     for ac_prog in xattr
10477 do
10478   # Extract the first word of "$ac_prog", so it can be a program name with args.
10479 set dummy $ac_prog; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_path_XATTR+set}" = set; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   case $XATTR in
10486   [\\/]* | ?:[\\/]*)
10487   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10488   ;;
10489   *)
10490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493   IFS=$as_save_IFS
10494   test -z "$as_dir" && as_dir=.
10495     for ac_exec_ext in '' $ac_executable_extensions; do
10496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499     break 2
10500   fi
10501 done
10502   done
10503 IFS=$as_save_IFS
10504 
10505   ;;
10506 esac
10507 fi
10508 XATTR=$ac_cv_path_XATTR
10509 if test -n "$XATTR"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
10511 $as_echo "$XATTR" >&6; }
10512 else
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516 


10518   test -n "$XATTR" && break
10519 done
10520 
10521 
10522     if test "x$XATTR" = x; then
10523         if test "xxattr" = x; then
10524           PROG_NAME=xattr
10525         else
10526           PROG_NAME=xattr
10527         fi
10528         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10529 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10530         as_fn_error $? "Cannot continue" "$LINENO" 5
10531     fi
10532 
10533 
10534   # Extract the first word of "codesign", so it can be a program name with args.
10535 set dummy codesign; 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 test "${ac_cv_path_CODESIGN+set}" = set; then :
10539   $as_echo_n "(cached) " >&6
10540 else
10541   case $CODESIGN in
10542   [\\/]* | ?:[\\/]*)
10543   ac_cv_path_CODESIGN="$CODESIGN" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553     ac_cv_path_CODESIGN="$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 CODESIGN=$ac_cv_path_CODESIGN
10565 if test -n "$CODESIGN"; then
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
10567 $as_echo "$CODESIGN" >&6; }
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572 


10582     if test "x$CODESIGN" = x; then
10583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585     else
10586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10587 $as_echo "yes" >&6; }
10588     fi
10589   fi
10590 fi
10591 
10592 
10593 # Check if pkg-config is available.
10594 
10595 
10596 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10597         if test -n "$ac_tool_prefix"; then
10598   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10599 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10603   $as_echo_n "(cached) " >&6
10604 else
10605   case $PKG_CONFIG in
10606   [\\/]* | ?:[\\/]*)
10607   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10608   ;;
10609   *)
10610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613   IFS=$as_save_IFS
10614   test -z "$as_dir" && as_dir=.
10615     for ac_exec_ext in '' $ac_executable_extensions; do
10616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619     break 2
10620   fi
10621 done
10622   done
10623 IFS=$as_save_IFS
10624 
10625   ;;
10626 esac
10627 fi
10628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10629 if test -n "$PKG_CONFIG"; then
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10631 $as_echo "$PKG_CONFIG" >&6; }
10632 else
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 fi
10636 
10637 
10638 fi
10639 if test -z "$ac_cv_path_PKG_CONFIG"; then
10640   ac_pt_PKG_CONFIG=$PKG_CONFIG
10641   # Extract the first word of "pkg-config", so it can be a program name with args.
10642 set dummy pkg-config; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   case $ac_pt_PKG_CONFIG in
10649   [\\/]* | ?:[\\/]*)
10650   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10651   ;;
10652   *)
10653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10655 do
10656   IFS=$as_save_IFS
10657   test -z "$as_dir" && as_dir=.
10658     for ac_exec_ext in '' $ac_executable_extensions; do
10659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10660     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662     break 2
10663   fi
10664 done
10665   done
10666 IFS=$as_save_IFS
10667 
10668   ;;
10669 esac
10670 fi
10671 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10672 if test -n "$ac_pt_PKG_CONFIG"; then
10673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10674 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10675 else
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 $as_echo "no" >&6; }
10678 fi
10679 


10798             echo Build stays the same $rewritten_build
10799         else
10800             echo Rewriting build for builddeps into $rewritten_build
10801         fi
10802         eval rewritten_target=\${REWRITE_${target_var}}
10803         if test "x$rewritten_target" = x; then
10804             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10805             echo Target stays the same $rewritten_target
10806         else
10807             echo Rewriting target for builddeps into $rewritten_target
10808         fi
10809         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10810         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10811     fi
10812     for ac_prog in 7z unzip
10813 do
10814   # Extract the first word of "$ac_prog", so it can be a program name with args.
10815 set dummy $ac_prog; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   if test -n "$BDEPS_UNZIP"; then
10822   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10823 else
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827   IFS=$as_save_IFS
10828   test -z "$as_dir" && as_dir=.
10829     for ac_exec_ext in '' $ac_executable_extensions; do
10830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833     break 2
10834   fi
10835 done
10836   done
10837 IFS=$as_save_IFS
10838 
10839 fi
10840 fi
10841 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
10842 if test -n "$BDEPS_UNZIP"; then
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
10844 $as_echo "$BDEPS_UNZIP" >&6; }
10845 else
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849 
10850 
10851   test -n "$BDEPS_UNZIP" && break
10852 done
10853 
10854     if test "x$BDEPS_UNZIP" = x7z; then
10855         BDEPS_UNZIP="7z x"
10856     fi
10857 
10858     for ac_prog in wget lftp ftp
10859 do
10860   # Extract the first word of "$ac_prog", so it can be a program name with args.
10861 set dummy $ac_prog; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10865   $as_echo_n "(cached) " >&6
10866 else
10867   if test -n "$BDEPS_FTP"; then
10868   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10872 do
10873   IFS=$as_save_IFS
10874   test -z "$as_dir" && as_dir=.
10875     for ac_exec_ext in '' $ac_executable_extensions; do
10876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877     ac_cv_prog_BDEPS_FTP="$ac_prog"
10878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879     break 2
10880   fi
10881 done
10882   done
10883 IFS=$as_save_IFS
10884 
10885 fi
10886 fi
10887 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
10888 if test -n "$BDEPS_FTP"; then
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
10890 $as_echo "$BDEPS_FTP" >&6; }
10891 else
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895 
10896 


12140               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
12141               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12142 $as_echo "$BOOT_JDK_VERSION" >&6; }
12143             fi # end check jdk version
12144           fi # end check rt.jar
12145         fi # end check javac
12146       fi # end check java
12147     fi # end check boot jdk found
12148   fi
12149 
12150 
12151 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12152 
12153   if test "x$BOOT_JDK_FOUND" = xno; then
12154     # Now execute the test
12155 
12156     # Extract the first word of "javac", so it can be a program name with args.
12157 set dummy javac; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
12161   $as_echo_n "(cached) " >&6
12162 else
12163   case $JAVAC_CHECK in
12164   [\\/]* | ?:[\\/]*)
12165   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12166   ;;
12167   *)
12168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171   IFS=$as_save_IFS
12172   test -z "$as_dir" && as_dir=.
12173     for ac_exec_ext in '' $ac_executable_extensions; do
12174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12175     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177     break 2
12178   fi
12179 done
12180   done
12181 IFS=$as_save_IFS
12182 
12183   ;;
12184 esac
12185 fi
12186 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12187 if test -n "$JAVAC_CHECK"; then
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12189 $as_echo "$JAVAC_CHECK" >&6; }
12190 else
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12193 fi
12194 
12195 
12196     # Extract the first word of "java", so it can be a program name with args.
12197 set dummy java; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   case $JAVA_CHECK in
12204   [\\/]* | ?:[\\/]*)
12205   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12206   ;;
12207   *)
12208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12210 do
12211   IFS=$as_save_IFS
12212   test -z "$as_dir" && as_dir=.
12213     for ac_exec_ext in '' $ac_executable_extensions; do
12214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12215     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217     break 2
12218   fi
12219 done
12220   done
12221 IFS=$as_save_IFS
12222 
12223   ;;
12224 esac
12225 fi
12226 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
12227 if test -n "$JAVA_CHECK"; then
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
12229 $as_echo "$JAVA_CHECK" >&6; }
12230 else
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234 


16509 
16510 
16511       # jtreg win32 script works for everybody
16512       JTREGEXE="$JT_HOME/win32/bin/jtreg"
16513 
16514       if test ! -f "$JTREGEXE"; then
16515         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16516       fi
16517 
16518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16519 $as_echo "$JTREGEXE" >&6; }
16520     else
16521       # try to find jtreg on path
16522 
16523     for ac_prog in jtreg
16524 do
16525   # Extract the first word of "$ac_prog", so it can be a program name with args.
16526 set dummy $ac_prog; ac_word=$2
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16528 $as_echo_n "checking for $ac_word... " >&6; }
16529 if test "${ac_cv_path_JTREGEXE+set}" = set; then :
16530   $as_echo_n "(cached) " >&6
16531 else
16532   case $JTREGEXE in
16533   [\\/]* | ?:[\\/]*)
16534   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16535   ;;
16536   *)
16537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16538 for as_dir in $PATH
16539 do
16540   IFS=$as_save_IFS
16541   test -z "$as_dir" && as_dir=.
16542     for ac_exec_ext in '' $ac_executable_extensions; do
16543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16544     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16546     break 2
16547   fi
16548 done
16549   done
16550 IFS=$as_save_IFS
16551 
16552   ;;
16553 esac
16554 fi
16555 JTREGEXE=$ac_cv_path_JTREGEXE
16556 if test -n "$JTREGEXE"; then
16557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16558 $as_echo "$JTREGEXE" >&6; }
16559 else
16560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16562 fi
16563 


16577         as_fn_error $? "Cannot continue" "$LINENO" 5
16578     fi
16579 
16580 
16581       JT_HOME="`$DIRNAME $JTREGEXE`"
16582     fi
16583   fi
16584 
16585 
16586 
16587 
16588 
16589 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16590 
16591   # Store path to cygwin link.exe to help excluding it when searching for
16592   # VS linker. This must be done before changing the PATH when looking for VS.
16593   # Extract the first word of "link", so it can be a program name with args.
16594 set dummy link; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
16598   $as_echo_n "(cached) " >&6
16599 else
16600   case $CYGWIN_LINK in
16601   [\\/]* | ?:[\\/]*)
16602   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16603   ;;
16604   *)
16605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16606 for as_dir in $PATH
16607 do
16608   IFS=$as_save_IFS
16609   test -z "$as_dir" && as_dir=.
16610     for ac_exec_ext in '' $ac_executable_extensions; do
16611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16612     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16614     break 2
16615   fi
16616 done
16617   done
16618 IFS=$as_save_IFS
16619 
16620   ;;
16621 esac
16622 fi
16623 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
16624 if test -n "$CYGWIN_LINK"; then
16625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
16626 $as_echo "$CYGWIN_LINK" >&6; }
16627 else
16628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16630 fi
16631 


18020 # For example the binary i686-sun-solaris2.10-gcc
18021 # will cross compile for i686-sun-solaris2.10
18022 # If neither of build and host is not set, then build=host and the
18023 # default compiler found in the path will be used.
18024 # Setting only --host, does not seem to be really supported.
18025 # Please set both --build and --host if you want to cross compile.
18026 
18027 if test "x$COMPILE_TYPE" = "xcross"; then
18028     # Now we to find a C/C++ compiler that can build executables for the build
18029     # platform. We can't use the AC_PROG_CC macro, since it can only be used
18030     # once. Also, we need to do this before adding a tools dir to the path,
18031     # otherwise we might pick up cross-compilers which don't use standard naming.
18032     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
18033     # to wait until they are properly discovered.
18034     for ac_prog in cl cc gcc
18035 do
18036   # Extract the first word of "$ac_prog", so it can be a program name with args.
18037 set dummy $ac_prog; ac_word=$2
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18039 $as_echo_n "checking for $ac_word... " >&6; }
18040 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
18041   $as_echo_n "(cached) " >&6
18042 else
18043   case $BUILD_CC in
18044   [\\/]* | ?:[\\/]*)
18045   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
18046   ;;
18047   *)
18048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18049 for as_dir in $PATH
18050 do
18051   IFS=$as_save_IFS
18052   test -z "$as_dir" && as_dir=.
18053     for ac_exec_ext in '' $ac_executable_extensions; do
18054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18055     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
18056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18057     break 2
18058   fi
18059 done
18060   done
18061 IFS=$as_save_IFS
18062 
18063   ;;
18064 esac
18065 fi
18066 BUILD_CC=$ac_cv_path_BUILD_CC
18067 if test -n "$BUILD_CC"; then
18068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
18069 $as_echo "$BUILD_CC" >&6; }
18070 else
18071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 fi
18074 


18331 
18332       # Now join together the path and the arguments once again
18333       if test "x$arguments" != xEOL; then
18334         new_complete="$new_path ${arguments% *}"
18335       else
18336         new_complete="$new_path"
18337       fi
18338 
18339   if test "x$complete" != "x$new_complete"; then
18340       BUILD_CC="$new_complete"
18341       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18342 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18343     fi
18344 
18345     for ac_prog in cl CC g++
18346 do
18347   # Extract the first word of "$ac_prog", so it can be a program name with args.
18348 set dummy $ac_prog; ac_word=$2
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18350 $as_echo_n "checking for $ac_word... " >&6; }
18351 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
18352   $as_echo_n "(cached) " >&6
18353 else
18354   case $BUILD_CXX in
18355   [\\/]* | ?:[\\/]*)
18356   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18357   ;;
18358   *)
18359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18360 for as_dir in $PATH
18361 do
18362   IFS=$as_save_IFS
18363   test -z "$as_dir" && as_dir=.
18364     for ac_exec_ext in '' $ac_executable_extensions; do
18365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18366     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18368     break 2
18369   fi
18370 done
18371   done
18372 IFS=$as_save_IFS
18373 
18374   ;;
18375 esac
18376 fi
18377 BUILD_CXX=$ac_cv_path_BUILD_CXX
18378 if test -n "$BUILD_CXX"; then
18379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
18380 $as_echo "$BUILD_CXX" >&6; }
18381 else
18382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18384 fi
18385 


18640       fi
18641   fi
18642 
18643       # Now join together the path and the arguments once again
18644       if test "x$arguments" != xEOL; then
18645         new_complete="$new_path ${arguments% *}"
18646       else
18647         new_complete="$new_path"
18648       fi
18649 
18650   if test "x$complete" != "x$new_complete"; then
18651       BUILD_CXX="$new_complete"
18652       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18653 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18654     fi
18655 
18656     # Extract the first word of "ld", so it can be a program name with args.
18657 set dummy ld; ac_word=$2
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 $as_echo_n "checking for $ac_word... " >&6; }
18660 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
18661   $as_echo_n "(cached) " >&6
18662 else
18663   case $BUILD_LD in
18664   [\\/]* | ?:[\\/]*)
18665   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18666   ;;
18667   *)
18668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18669 for as_dir in $PATH
18670 do
18671   IFS=$as_save_IFS
18672   test -z "$as_dir" && as_dir=.
18673     for ac_exec_ext in '' $ac_executable_extensions; do
18674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18675     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18677     break 2
18678   fi
18679 done
18680   done
18681 IFS=$as_save_IFS
18682 
18683   ;;
18684 esac
18685 fi
18686 BUILD_LD=$ac_cv_path_BUILD_LD
18687 if test -n "$BUILD_LD"; then
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
18689 $as_echo "$BUILD_LD" >&6; }
18690 else
18691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693 fi
18694 


19128 
19129 # autoconf magic only relies on PATH, so update it if tools dir is specified
19130 OLD_PATH="$PATH"
19131 if test "x$TOOLS_DIR" != x; then
19132   PATH=$TOOLS_DIR:$PATH
19133 fi
19134 
19135 
19136 ### Locate C compiler (CC)
19137 
19138 # On windows, only cl.exe is supported.
19139 # On Solaris, cc is preferred to gcc.
19140 # Elsewhere, gcc is preferred to cc.
19141 
19142 if test "x$CC" != x; then
19143   COMPILER_CHECK_LIST="$CC"
19144 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19145   COMPILER_CHECK_LIST="cl"
19146 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19147   COMPILER_CHECK_LIST="cc gcc"






19148 else
19149   COMPILER_CHECK_LIST="gcc cc"
19150 fi
19151 
19152 
19153   COMPILER_NAME=C
19154 
19155   CC=
19156   # If TOOLS_DIR is set, check for all compiler names in there first
19157   # before checking the rest of the PATH.
19158   if test -n "$TOOLS_DIR"; then
19159     PATH_save="$PATH"
19160     PATH="$TOOLS_DIR"
19161     for ac_prog in $COMPILER_CHECK_LIST
19162 do
19163   # Extract the first word of "$ac_prog", so it can be a program name with args.
19164 set dummy $ac_prog; ac_word=$2
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19166 $as_echo_n "checking for $ac_word... " >&6; }
19167 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
19168   $as_echo_n "(cached) " >&6
19169 else
19170   case $TOOLS_DIR_CC in
19171   [\\/]* | ?:[\\/]*)
19172   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19173   ;;
19174   *)
19175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19176 for as_dir in $PATH
19177 do
19178   IFS=$as_save_IFS
19179   test -z "$as_dir" && as_dir=.
19180     for ac_exec_ext in '' $ac_executable_extensions; do
19181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19182     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19184     break 2
19185   fi
19186 done
19187   done
19188 IFS=$as_save_IFS
19189 
19190   ;;
19191 esac
19192 fi
19193 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
19194 if test -n "$TOOLS_DIR_CC"; then
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
19196 $as_echo "$TOOLS_DIR_CC" >&6; }
19197 else
19198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19200 fi
19201 
19202 
19203   test -n "$TOOLS_DIR_CC" && break
19204 done
19205 
19206     CC=$TOOLS_DIR_CC
19207     PATH="$PATH_save"
19208   fi
19209 
19210   # AC_PATH_PROGS can't be run multiple times with the same variable,
19211   # so create a new name for this run.
19212   if test "x$CC" = x; then
19213     for ac_prog in $COMPILER_CHECK_LIST
19214 do
19215   # Extract the first word of "$ac_prog", so it can be a program name with args.
19216 set dummy $ac_prog; ac_word=$2
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19218 $as_echo_n "checking for $ac_word... " >&6; }
19219 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
19220   $as_echo_n "(cached) " >&6
19221 else
19222   case $POTENTIAL_CC in
19223   [\\/]* | ?:[\\/]*)
19224   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19225   ;;
19226   *)
19227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19228 for as_dir in $PATH
19229 do
19230   IFS=$as_save_IFS
19231   test -z "$as_dir" && as_dir=.
19232     for ac_exec_ext in '' $ac_executable_extensions; do
19233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19234     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19236     break 2
19237   fi
19238 done
19239   done
19240 IFS=$as_save_IFS
19241 
19242   ;;
19243 esac
19244 fi
19245 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
19246 if test -n "$POTENTIAL_CC"; then
19247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
19248 $as_echo "$POTENTIAL_CC" >&6; }
19249 else
19250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251 $as_echo "no" >&6; }
19252 fi
19253 


19535           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19536 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19537         fi
19538         as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
19539       fi
19540   fi
19541 
19542       # Now join together the path and the arguments once again
19543       if test "x$arguments" != xEOL; then
19544         new_complete="$new_path ${arguments% *}"
19545       else
19546         new_complete="$new_path"
19547       fi
19548 
19549   if test "x$complete" != "x$new_complete"; then
19550       CC="$new_complete"
19551       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
19552 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
19553     fi
19554 




19555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
19556 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
19557   TEST_COMPILER="$CC"
19558 
19559     if test "x$OPENJDK_BUILD_OS" != xwindows; then
19560         # Follow a chain of symbolic links. Use readlink
19561         # where it exists, else fall back to horribly
19562         # complicated shell code.
19563         if test "x$READLINK_TESTED" != yes; then
19564             # On MacOSX there is a readlink tool with a different
19565             # purpose than the GNU readlink tool. Check the found readlink.
19566             ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
19567             if test "x$ISGNU" = x; then
19568                  # A readlink that we do not know how to use.
19569                  # Are there other non-GNU readlinks out there?
19570                  READLINK_TESTED=yes
19571                  READLINK=
19572             fi
19573         fi
19574 
19575         if test "x$READLINK" != x; then
19576             TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
19577         else


19588             while test $COUNTER -lt 20; do
19589                 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
19590                 if test "x$ISLINK" == x; then
19591                     # This is not a symbolic link! We are done!
19592                     break
19593                 fi
19594                 # Again resolve directory symlinks since the target of the just found
19595                 # link could be in a different directory
19596                 cd `$DIRNAME $ISLINK`
19597                 sym_link_dir=`$THEPWDCMD -P`
19598                 sym_link_file=`$BASENAME $ISLINK`
19599                 let COUNTER=COUNTER+1
19600             done
19601             cd $STARTDIR
19602             TEST_COMPILER=$sym_link_dir/$sym_link_file
19603         fi
19604     fi
19605 
19606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
19607 $as_echo "$TEST_COMPILER" >&6; }

19608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
19609 $as_echo_n "checking if CC is disguised ccache... " >&6; }
19610 
19611   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
19612   if test "x$COMPILER_BASENAME" = "xccache"; then
19613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19614 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19615     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19616     # We want to control ccache invocation ourselves, so ignore this cc and try
19617     # searching again.
19618 
19619     # Remove the path to the fake ccache cc from the PATH
19620     RETRY_COMPILER_SAVED_PATH="$PATH"
19621     COMPILER_DIRNAME=`$DIRNAME $CC`
19622     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19623 
19624     # Try again looking for our compiler
19625     if test -n "$ac_tool_prefix"; then
19626   for ac_prog in $COMPILER_CHECK_LIST
19627   do
19628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19631 $as_echo_n "checking for $ac_word... " >&6; }
19632 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
19633   $as_echo_n "(cached) " >&6
19634 else
19635   if test -n "$PROPER_COMPILER_CC"; then
19636   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19637 else
19638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19639 for as_dir in $PATH
19640 do
19641   IFS=$as_save_IFS
19642   test -z "$as_dir" && as_dir=.
19643     for ac_exec_ext in '' $ac_executable_extensions; do
19644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19645     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19647     break 2
19648   fi
19649 done
19650   done
19651 IFS=$as_save_IFS
19652 
19653 fi
19654 fi
19655 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
19656 if test -n "$PROPER_COMPILER_CC"; then
19657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19658 $as_echo "$PROPER_COMPILER_CC" >&6; }
19659 else
19660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19662 fi
19663 
19664 
19665     test -n "$PROPER_COMPILER_CC" && break
19666   done
19667 fi
19668 if test -z "$PROPER_COMPILER_CC"; then
19669   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19670   for ac_prog in $COMPILER_CHECK_LIST
19671 do
19672   # Extract the first word of "$ac_prog", so it can be a program name with args.
19673 set dummy $ac_prog; ac_word=$2
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19675 $as_echo_n "checking for $ac_word... " >&6; }
19676 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19680   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19681 else
19682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19683 for as_dir in $PATH
19684 do
19685   IFS=$as_save_IFS
19686   test -z "$as_dir" && as_dir=.
19687     for ac_exec_ext in '' $ac_executable_extensions; do
19688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19689     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19691     break 2
19692   fi
19693 done
19694   done
19695 IFS=$as_save_IFS
19696 
19697 fi
19698 fi
19699 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
19700 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
19702 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
19703 else
19704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705 $as_echo "no" >&6; }
19706 fi
19707 
19708 


20051 
20052   COMPILER=$CC
20053   COMPILER_NAME=$COMPILER_NAME
20054 
20055   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
20056     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
20057     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
20058     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
20059     if test $? -ne 0; then
20060       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20061 
20062       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
20063 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
20064       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
20065 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
20066       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
20067     else
20068       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
20069       COMPILER_VENDOR="Sun Studio"
20070     fi









20071   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
20072     # First line typically looks something like:
20073     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
20074     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
20075     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
20076     COMPILER_VENDOR="Microsoft CL.EXE"
20077     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
20078     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
20079       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
20080         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
20081       fi
20082     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
20083       if test "x$COMPILER_CPU_TEST" != "xx64"; then
20084         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
20085       fi
20086     fi
20087   else
20088     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20089     # Check that this is likely to be GCC.
20090     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null


20106   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
20107   CC_VENDOR="$COMPILER_VENDOR"
20108 
20109   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
20110 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20111 
20112 
20113 # Now that we have resolved CC ourself, let autoconf have its go at it
20114 ac_ext=c
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20119 if test -n "$ac_tool_prefix"; then
20120   for ac_prog in $CC
20121   do
20122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20125 $as_echo_n "checking for $ac_word... " >&6; }
20126 if test "${ac_cv_prog_CC+set}" = set; then :
20127   $as_echo_n "(cached) " >&6
20128 else
20129   if test -n "$CC"; then
20130   ac_cv_prog_CC="$CC" # Let the user override the test.
20131 else
20132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20134 do
20135   IFS=$as_save_IFS
20136   test -z "$as_dir" && as_dir=.
20137     for ac_exec_ext in '' $ac_executable_extensions; do
20138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20139     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141     break 2
20142   fi
20143 done
20144   done
20145 IFS=$as_save_IFS
20146 
20147 fi
20148 fi
20149 CC=$ac_cv_prog_CC
20150 if test -n "$CC"; then
20151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20152 $as_echo "$CC" >&6; }
20153 else
20154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155 $as_echo "no" >&6; }
20156 fi
20157 
20158 
20159     test -n "$CC" && break
20160   done
20161 fi
20162 if test -z "$CC"; then
20163   ac_ct_CC=$CC
20164   for ac_prog in $CC
20165 do
20166   # Extract the first word of "$ac_prog", so it can be a program name with args.
20167 set dummy $ac_prog; ac_word=$2
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20169 $as_echo_n "checking for $ac_word... " >&6; }
20170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
20171   $as_echo_n "(cached) " >&6
20172 else
20173   if test -n "$ac_ct_CC"; then
20174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20175 else
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179   IFS=$as_save_IFS
20180   test -z "$as_dir" && as_dir=.
20181     for ac_exec_ext in '' $ac_executable_extensions; do
20182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183     ac_cv_prog_ac_ct_CC="$ac_prog"
20184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20185     break 2
20186   fi
20187 done
20188   done
20189 IFS=$as_save_IFS
20190 
20191 fi
20192 fi
20193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20194 if test -n "$ac_ct_CC"; then
20195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20196 $as_echo "$ac_ct_CC" >&6; }
20197 else
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201 
20202 


20431     cross_compiling=no
20432   else
20433     if test "$cross_compiling" = maybe; then
20434         cross_compiling=yes
20435     else
20436         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20438 as_fn_error $? "cannot run C compiled programs.
20439 If you meant to cross compile, use \`--host'.
20440 See \`config.log' for more details" "$LINENO" 5; }
20441     fi
20442   fi
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20445 $as_echo "$cross_compiling" >&6; }
20446 
20447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20448 ac_clean_files=$ac_clean_files_save
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20450 $as_echo_n "checking for suffix of object files... " >&6; }
20451 if test "${ac_cv_objext+set}" = set; then :
20452   $as_echo_n "(cached) " >&6
20453 else
20454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h.  */
20456 
20457 int
20458 main ()
20459 {
20460 
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.o conftest.obj
20466 if { { ac_try="$ac_compile"
20467 case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


20482        break;;
20483   esac
20484 done
20485 else
20486   $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488 
20489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20491 as_fn_error $? "cannot compute suffix of object files: cannot compile
20492 See \`config.log' for more details" "$LINENO" 5; }
20493 fi
20494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20497 $as_echo "$ac_cv_objext" >&6; }
20498 OBJEXT=$ac_cv_objext
20499 ac_objext=$OBJEXT
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20502 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
20503   $as_echo_n "(cached) " >&6
20504 else
20505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507 
20508 int
20509 main ()
20510 {
20511 #ifndef __GNUC__
20512        choke me
20513 #endif
20514 
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 if ac_fn_c_try_compile "$LINENO"; then :
20520   ac_compiler_gnu=yes
20521 else
20522   ac_compiler_gnu=no
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20526 
20527 fi
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20530 if test $ac_compiler_gnu = yes; then
20531   GCC=yes
20532 else
20533   GCC=
20534 fi
20535 ac_test_CFLAGS=${CFLAGS+set}
20536 ac_save_CFLAGS=$CFLAGS
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20539 if test "${ac_cv_prog_cc_g+set}" = set; then :
20540   $as_echo_n "(cached) " >&6
20541 else
20542   ac_save_c_werror_flag=$ac_c_werror_flag
20543    ac_c_werror_flag=yes
20544    ac_cv_prog_cc_g=no
20545    CFLAGS="-g"
20546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h.  */
20548 
20549 int
20550 main ()
20551 {
20552 
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 if ac_fn_c_try_compile "$LINENO"; then :
20558   ac_cv_prog_cc_g=yes
20559 else


20597 fi
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20599 $as_echo "$ac_cv_prog_cc_g" >&6; }
20600 if test "$ac_test_CFLAGS" = set; then
20601   CFLAGS=$ac_save_CFLAGS
20602 elif test $ac_cv_prog_cc_g = yes; then
20603   if test "$GCC" = yes; then
20604     CFLAGS="-g -O2"
20605   else
20606     CFLAGS="-g"
20607   fi
20608 else
20609   if test "$GCC" = yes; then
20610     CFLAGS="-O2"
20611   else
20612     CFLAGS=
20613   fi
20614 fi
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20617 if test "${ac_cv_prog_cc_c89+set}" = set; then :
20618   $as_echo_n "(cached) " >&6
20619 else
20620   ac_cv_prog_cc_c89=no
20621 ac_save_CC=$CC
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h.  */
20624 #include <stdarg.h>
20625 #include <stdio.h>
20626 #include <sys/types.h>
20627 #include <sys/stat.h>
20628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20629 struct buf { int x; };
20630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20631 static char *e (p, i)
20632      char **p;
20633      int i;
20634 {
20635   return p[i];
20636 }
20637 static char *f (char * (*g) (char **, int), char **p, ...)
20638 {
20639   char *s;
20640   va_list v;
20641   va_start (v,p);
20642   s = g (p, va_arg (v,int));
20643   va_end (v);
20644   return s;
20645 }
20646 
20647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has


20701 esac
20702 if test "x$ac_cv_prog_cc_c89" != xno; then :
20703 
20704 fi
20705 
20706 ac_ext=cpp
20707 ac_cpp='$CXXCPP $CPPFLAGS'
20708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20711 
20712 
20713 ### Locate C++ compiler (CXX)
20714 
20715 if test "x$CXX" != x; then
20716   COMPILER_CHECK_LIST="$CXX"
20717 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
20718   COMPILER_CHECK_LIST="cl"
20719 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
20720   COMPILER_CHECK_LIST="CC g++"






20721 else
20722   COMPILER_CHECK_LIST="g++ CC"
20723 fi
20724 
20725 
20726   COMPILER_NAME=C++
20727 
20728   CXX=
20729   # If TOOLS_DIR is set, check for all compiler names in there first
20730   # before checking the rest of the PATH.
20731   if test -n "$TOOLS_DIR"; then
20732     PATH_save="$PATH"
20733     PATH="$TOOLS_DIR"
20734     for ac_prog in $COMPILER_CHECK_LIST
20735 do
20736   # Extract the first word of "$ac_prog", so it can be a program name with args.
20737 set dummy $ac_prog; ac_word=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
20741   $as_echo_n "(cached) " >&6
20742 else
20743   case $TOOLS_DIR_CXX in
20744   [\\/]* | ?:[\\/]*)
20745   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20746   ;;
20747   *)
20748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $PATH
20750 do
20751   IFS=$as_save_IFS
20752   test -z "$as_dir" && as_dir=.
20753     for ac_exec_ext in '' $ac_executable_extensions; do
20754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20755     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20757     break 2
20758   fi
20759 done
20760   done
20761 IFS=$as_save_IFS
20762 
20763   ;;
20764 esac
20765 fi
20766 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
20767 if test -n "$TOOLS_DIR_CXX"; then
20768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
20769 $as_echo "$TOOLS_DIR_CXX" >&6; }
20770 else
20771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773 fi
20774 
20775 
20776   test -n "$TOOLS_DIR_CXX" && break
20777 done
20778 
20779     CXX=$TOOLS_DIR_CXX
20780     PATH="$PATH_save"
20781   fi
20782 
20783   # AC_PATH_PROGS can't be run multiple times with the same variable,
20784   # so create a new name for this run.
20785   if test "x$CXX" = x; then
20786     for ac_prog in $COMPILER_CHECK_LIST
20787 do
20788   # Extract the first word of "$ac_prog", so it can be a program name with args.
20789 set dummy $ac_prog; ac_word=$2
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20791 $as_echo_n "checking for $ac_word... " >&6; }
20792 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
20793   $as_echo_n "(cached) " >&6
20794 else
20795   case $POTENTIAL_CXX in
20796   [\\/]* | ?:[\\/]*)
20797   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20798   ;;
20799   *)
20800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20801 for as_dir in $PATH
20802 do
20803   IFS=$as_save_IFS
20804   test -z "$as_dir" && as_dir=.
20805     for ac_exec_ext in '' $ac_executable_extensions; do
20806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20807     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20809     break 2
20810   fi
20811 done
20812   done
20813 IFS=$as_save_IFS
20814 
20815   ;;
20816 esac
20817 fi
20818 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
20819 if test -n "$POTENTIAL_CXX"; then
20820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
20821 $as_echo "$POTENTIAL_CXX" >&6; }
20822 else
20823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20824 $as_echo "no" >&6; }
20825 fi
20826 


21108           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21109 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21110         fi
21111         as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
21112       fi
21113   fi
21114 
21115       # Now join together the path and the arguments once again
21116       if test "x$arguments" != xEOL; then
21117         new_complete="$new_path ${arguments% *}"
21118       else
21119         new_complete="$new_path"
21120       fi
21121 
21122   if test "x$complete" != "x$new_complete"; then
21123       CXX="$new_complete"
21124       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
21125 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
21126     fi
21127 




21128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
21129 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
21130   TEST_COMPILER="$CXX"
21131 
21132     if test "x$OPENJDK_BUILD_OS" != xwindows; then
21133         # Follow a chain of symbolic links. Use readlink
21134         # where it exists, else fall back to horribly
21135         # complicated shell code.
21136         if test "x$READLINK_TESTED" != yes; then
21137             # On MacOSX there is a readlink tool with a different
21138             # purpose than the GNU readlink tool. Check the found readlink.
21139             ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21140             if test "x$ISGNU" = x; then
21141                  # A readlink that we do not know how to use.
21142                  # Are there other non-GNU readlinks out there?
21143                  READLINK_TESTED=yes
21144                  READLINK=
21145             fi
21146         fi
21147 
21148         if test "x$READLINK" != x; then
21149             TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
21150         else


21161             while test $COUNTER -lt 20; do
21162                 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21163                 if test "x$ISLINK" == x; then
21164                     # This is not a symbolic link! We are done!
21165                     break
21166                 fi
21167                 # Again resolve directory symlinks since the target of the just found
21168                 # link could be in a different directory
21169                 cd `$DIRNAME $ISLINK`
21170                 sym_link_dir=`$THEPWDCMD -P`
21171                 sym_link_file=`$BASENAME $ISLINK`
21172                 let COUNTER=COUNTER+1
21173             done
21174             cd $STARTDIR
21175             TEST_COMPILER=$sym_link_dir/$sym_link_file
21176         fi
21177     fi
21178 
21179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
21180 $as_echo "$TEST_COMPILER" >&6; }

21181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
21182 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
21183 
21184   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
21185   if test "x$COMPILER_BASENAME" = "xccache"; then
21186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21187 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21188     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21189     # We want to control ccache invocation ourselves, so ignore this cc and try
21190     # searching again.
21191 
21192     # Remove the path to the fake ccache cc from the PATH
21193     RETRY_COMPILER_SAVED_PATH="$PATH"
21194     COMPILER_DIRNAME=`$DIRNAME $CXX`
21195     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21196 
21197     # Try again looking for our compiler
21198     if test -n "$ac_tool_prefix"; then
21199   for ac_prog in $COMPILER_CHECK_LIST
21200   do
21201     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21204 $as_echo_n "checking for $ac_word... " >&6; }
21205 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
21206   $as_echo_n "(cached) " >&6
21207 else
21208   if test -n "$PROPER_COMPILER_CXX"; then
21209   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21210 else
21211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21212 for as_dir in $PATH
21213 do
21214   IFS=$as_save_IFS
21215   test -z "$as_dir" && as_dir=.
21216     for ac_exec_ext in '' $ac_executable_extensions; do
21217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21218     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21220     break 2
21221   fi
21222 done
21223   done
21224 IFS=$as_save_IFS
21225 
21226 fi
21227 fi
21228 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
21229 if test -n "$PROPER_COMPILER_CXX"; then
21230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21231 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21232 else
21233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21234 $as_echo "no" >&6; }
21235 fi
21236 
21237 
21238     test -n "$PROPER_COMPILER_CXX" && break
21239   done
21240 fi
21241 if test -z "$PROPER_COMPILER_CXX"; then
21242   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21243   for ac_prog in $COMPILER_CHECK_LIST
21244 do
21245   # Extract the first word of "$ac_prog", so it can be a program name with args.
21246 set dummy $ac_prog; ac_word=$2
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21248 $as_echo_n "checking for $ac_word... " >&6; }
21249 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
21250   $as_echo_n "(cached) " >&6
21251 else
21252   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21253   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21254 else
21255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21256 for as_dir in $PATH
21257 do
21258   IFS=$as_save_IFS
21259   test -z "$as_dir" && as_dir=.
21260     for ac_exec_ext in '' $ac_executable_extensions; do
21261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21262     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21264     break 2
21265   fi
21266 done
21267   done
21268 IFS=$as_save_IFS
21269 
21270 fi
21271 fi
21272 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
21273 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
21275 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
21276 else
21277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21278 $as_echo "no" >&6; }
21279 fi
21280 
21281 


21624 
21625   COMPILER=$CXX
21626   COMPILER_NAME=$COMPILER_NAME
21627 
21628   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
21629     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
21630     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
21631     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
21632     if test $? -ne 0; then
21633       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21634 
21635       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
21636 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
21637       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
21638 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
21639       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
21640     else
21641       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
21642       COMPILER_VENDOR="Sun Studio"
21643     fi









21644   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
21645     # First line typically looks something like:
21646     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
21647     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
21648     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
21649     COMPILER_VENDOR="Microsoft CL.EXE"
21650     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
21651     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
21652       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
21653         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
21654       fi
21655     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
21656       if test "x$COMPILER_CPU_TEST" != "xx64"; then
21657         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
21658       fi
21659     fi
21660   else
21661     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21662     # Check that this is likely to be GCC.
21663     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null


21683 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21684 
21685 
21686 # Now that we have resolved CXX ourself, let autoconf have its go at it
21687 ac_ext=cpp
21688 ac_cpp='$CXXCPP $CPPFLAGS'
21689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21692 if test -z "$CXX"; then
21693   if test -n "$CCC"; then
21694     CXX=$CCC
21695   else
21696     if test -n "$ac_tool_prefix"; then
21697   for ac_prog in $CXX
21698   do
21699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_prog_CXX+set}" = set; then :
21704   $as_echo_n "(cached) " >&6
21705 else
21706   if test -n "$CXX"; then
21707   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21708 else
21709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21711 do
21712   IFS=$as_save_IFS
21713   test -z "$as_dir" && as_dir=.
21714     for ac_exec_ext in '' $ac_executable_extensions; do
21715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21718     break 2
21719   fi
21720 done
21721   done
21722 IFS=$as_save_IFS
21723 
21724 fi
21725 fi
21726 CXX=$ac_cv_prog_CXX
21727 if test -n "$CXX"; then
21728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21729 $as_echo "$CXX" >&6; }
21730 else
21731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732 $as_echo "no" >&6; }
21733 fi
21734 
21735 
21736     test -n "$CXX" && break
21737   done
21738 fi
21739 if test -z "$CXX"; then
21740   ac_ct_CXX=$CXX
21741   for ac_prog in $CXX
21742 do
21743   # Extract the first word of "$ac_prog", so it can be a program name with args.
21744 set dummy $ac_prog; ac_word=$2
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21746 $as_echo_n "checking for $ac_word... " >&6; }
21747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
21748   $as_echo_n "(cached) " >&6
21749 else
21750   if test -n "$ac_ct_CXX"; then
21751   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21752 else
21753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21754 for as_dir in $PATH
21755 do
21756   IFS=$as_save_IFS
21757   test -z "$as_dir" && as_dir=.
21758     for ac_exec_ext in '' $ac_executable_extensions; do
21759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21760     ac_cv_prog_ac_ct_CXX="$ac_prog"
21761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21762     break 2
21763   fi
21764 done
21765   done
21766 IFS=$as_save_IFS
21767 
21768 fi
21769 fi
21770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21771 if test -n "$ac_ct_CXX"; then
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
21773 $as_echo "$ac_ct_CXX" >&6; }
21774 else
21775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21776 $as_echo "no" >&6; }
21777 fi
21778 
21779 


21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21809 $as_echo "$ac_try_echo"; } >&5
21810   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21811   ac_status=$?
21812   if test -s conftest.err; then
21813     sed '10a\
21814 ... rest of stderr output deleted ...
21815          10q' conftest.err >conftest.er1
21816     cat conftest.er1 >&5
21817   fi
21818   rm -f conftest.er1 conftest.err
21819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820   test $ac_status = 0; }
21821 done
21822 
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21825 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
21826   $as_echo_n "(cached) " >&6
21827 else
21828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h.  */
21830 
21831 int
21832 main ()
21833 {
21834 #ifndef __GNUC__
21835        choke me
21836 #endif
21837 
21838   ;
21839   return 0;
21840 }
21841 _ACEOF
21842 if ac_fn_cxx_try_compile "$LINENO"; then :
21843   ac_compiler_gnu=yes
21844 else
21845   ac_compiler_gnu=no
21846 fi
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21849 
21850 fi
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21853 if test $ac_compiler_gnu = yes; then
21854   GXX=yes
21855 else
21856   GXX=
21857 fi
21858 ac_test_CXXFLAGS=${CXXFLAGS+set}
21859 ac_save_CXXFLAGS=$CXXFLAGS
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21862 if test "${ac_cv_prog_cxx_g+set}" = set; then :
21863   $as_echo_n "(cached) " >&6
21864 else
21865   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21866    ac_cxx_werror_flag=yes
21867    ac_cv_prog_cxx_g=no
21868    CXXFLAGS="-g"
21869    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h.  */
21871 
21872 int
21873 main ()
21874 {
21875 
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 if ac_fn_cxx_try_compile "$LINENO"; then :
21881   ac_cv_prog_cxx_g=yes
21882 else


21940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21943 
21944 
21945 ### Locate other tools
21946 
21947 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21948     ac_ext=m
21949 ac_cpp='$OBJCPP $CPPFLAGS'
21950 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21953 if test -n "$ac_tool_prefix"; then
21954   for ac_prog in gcc objcc objc cc CC
21955   do
21956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21959 $as_echo_n "checking for $ac_word... " >&6; }
21960 if test "${ac_cv_prog_OBJC+set}" = set; then :
21961   $as_echo_n "(cached) " >&6
21962 else
21963   if test -n "$OBJC"; then
21964   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21965 else
21966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21967 for as_dir in $PATH
21968 do
21969   IFS=$as_save_IFS
21970   test -z "$as_dir" && as_dir=.
21971     for ac_exec_ext in '' $ac_executable_extensions; do
21972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21973     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21975     break 2
21976   fi
21977 done
21978   done
21979 IFS=$as_save_IFS
21980 
21981 fi
21982 fi
21983 OBJC=$ac_cv_prog_OBJC
21984 if test -n "$OBJC"; then
21985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21986 $as_echo "$OBJC" >&6; }
21987 else
21988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21990 fi
21991 
21992 
21993     test -n "$OBJC" && break
21994   done
21995 fi
21996 if test -z "$OBJC"; then
21997   ac_ct_OBJC=$OBJC
21998   for ac_prog in gcc objcc objc cc CC
21999 do
22000   # Extract the first word of "$ac_prog", so it can be a program name with args.
22001 set dummy $ac_prog; ac_word=$2
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22003 $as_echo_n "checking for $ac_word... " >&6; }
22004 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
22005   $as_echo_n "(cached) " >&6
22006 else
22007   if test -n "$ac_ct_OBJC"; then
22008   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
22009 else
22010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22011 for as_dir in $PATH
22012 do
22013   IFS=$as_save_IFS
22014   test -z "$as_dir" && as_dir=.
22015     for ac_exec_ext in '' $ac_executable_extensions; do
22016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22017     ac_cv_prog_ac_ct_OBJC="$ac_prog"
22018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22019     break 2
22020   fi
22021 done
22022   done
22023 IFS=$as_save_IFS
22024 
22025 fi
22026 fi
22027 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
22028 if test -n "$ac_ct_OBJC"; then
22029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
22030 $as_echo "$ac_ct_OBJC" >&6; }
22031 else
22032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22034 fi
22035 
22036 


22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22064 $as_echo "$ac_try_echo"; } >&5
22065   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22066   ac_status=$?
22067   if test -s conftest.err; then
22068     sed '10a\
22069 ... rest of stderr output deleted ...
22070          10q' conftest.err >conftest.er1
22071     cat conftest.er1 >&5
22072   fi
22073   rm -f conftest.er1 conftest.err
22074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22075   test $ac_status = 0; }
22076 done
22077 
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
22079 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
22080 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
22081   $as_echo_n "(cached) " >&6
22082 else
22083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h.  */
22085 
22086 int
22087 main ()
22088 {
22089 #ifndef __GNUC__
22090        choke me
22091 #endif
22092 
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_objc_try_compile "$LINENO"; then :
22098   ac_compiler_gnu=yes
22099 else
22100   ac_compiler_gnu=no
22101 fi
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
22104 
22105 fi
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
22107 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
22108 if test $ac_compiler_gnu = yes; then
22109   GOBJC=yes
22110 else
22111   GOBJC=
22112 fi
22113 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
22114 ac_save_OBJCFLAGS=$OBJCFLAGS
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
22116 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
22117 if test "${ac_cv_prog_objc_g+set}" = set; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   ac_save_objc_werror_flag=$ac_objc_werror_flag
22121    ac_objc_werror_flag=yes
22122    ac_cv_prog_objc_g=no
22123    OBJCFLAGS="-g"
22124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h.  */
22126 
22127 int
22128 main ()
22129 {
22130 
22131   ;
22132   return 0;
22133 }
22134 _ACEOF
22135 if ac_fn_objc_try_compile "$LINENO"; then :
22136   ac_cv_prog_objc_g=yes
22137 else


22473 OBJCFLAGS="$ORG_OBJCFLAGS"
22474 
22475 LD="$CC"
22476 LDEXE="$CC"
22477 LDCXX="$CXX"
22478 LDEXECXX="$CXX"
22479 
22480 # LDEXE is the linker to use, when creating executables.
22481 
22482 # Linking C++ libraries.
22483 
22484 # Linking C++ executables.
22485 
22486 
22487 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22488     if test -n "$ac_tool_prefix"; then
22489   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22490 set dummy ${ac_tool_prefix}ar; ac_word=$2
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22492 $as_echo_n "checking for $ac_word... " >&6; }
22493 if test "${ac_cv_prog_AR+set}" = set; then :
22494   $as_echo_n "(cached) " >&6
22495 else
22496   if test -n "$AR"; then
22497   ac_cv_prog_AR="$AR" # Let the user override the test.
22498 else
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502   IFS=$as_save_IFS
22503   test -z "$as_dir" && as_dir=.
22504     for ac_exec_ext in '' $ac_executable_extensions; do
22505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22506     ac_cv_prog_AR="${ac_tool_prefix}ar"
22507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22508     break 2
22509   fi
22510 done
22511   done
22512 IFS=$as_save_IFS
22513 
22514 fi
22515 fi
22516 AR=$ac_cv_prog_AR
22517 if test -n "$AR"; then
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22519 $as_echo "$AR" >&6; }
22520 else
22521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522 $as_echo "no" >&6; }
22523 fi
22524 
22525 
22526 fi
22527 if test -z "$ac_cv_prog_AR"; then
22528   ac_ct_AR=$AR
22529   # Extract the first word of "ar", so it can be a program name with args.
22530 set dummy ar; ac_word=$2
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22532 $as_echo_n "checking for $ac_word... " >&6; }
22533 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
22534   $as_echo_n "(cached) " >&6
22535 else
22536   if test -n "$ac_ct_AR"; then
22537   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22538 else
22539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22540 for as_dir in $PATH
22541 do
22542   IFS=$as_save_IFS
22543   test -z "$as_dir" && as_dir=.
22544     for ac_exec_ext in '' $ac_executable_extensions; do
22545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22546     ac_cv_prog_ac_ct_AR="ar"
22547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22548     break 2
22549   fi
22550 done
22551   done
22552 IFS=$as_save_IFS
22553 
22554 fi
22555 fi
22556 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22557 if test -n "$ac_ct_AR"; then
22558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
22559 $as_echo "$ac_ct_AR" >&6; }
22560 else
22561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22563 fi
22564 
22565   if test "x$ac_ct_AR" = x; then


22829         as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
22830       fi
22831   fi
22832 
22833       # Now join together the path and the arguments once again
22834       if test "x$arguments" != xEOL; then
22835         new_complete="$new_path ${arguments% *}"
22836       else
22837         new_complete="$new_path"
22838       fi
22839 
22840   if test "x$complete" != "x$new_complete"; then
22841       AR="$new_complete"
22842       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
22843 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
22844     fi
22845 
22846 fi
22847 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22848     ARFLAGS="-r"


22849 else
22850     ARFLAGS=""
22851 fi
22852 
22853 
22854 # For hotspot, we need these in Windows mixed path; other platforms keep them the same
22855 HOTSPOT_CXX="$CXX"
22856 HOTSPOT_LD="$LD"
22857 
22858 
22859 
22860 COMPILER_NAME=gcc
22861 COMPILER_TYPE=CC
22862 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22863 
22864     # For now, assume that we are always compiling using cl.exe.
22865     CC_OUT_OPTION=-Fo
22866     EXE_OUT_OPTION=-out:
22867     LD_OUT_OPTION=-out:
22868     AR_OUT_OPTION=-out:
22869     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22870     # program for something completely different.
22871     # Extract the first word of "link", so it can be a program name with args.
22872 set dummy link; ac_word=$2
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22874 $as_echo_n "checking for $ac_word... " >&6; }
22875 if test "${ac_cv_prog_WINLD+set}" = set; then :
22876   $as_echo_n "(cached) " >&6
22877 else
22878   if test -n "$WINLD"; then
22879   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22880 else
22881   ac_prog_rejected=no
22882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22883 for as_dir in $PATH
22884 do
22885   IFS=$as_save_IFS
22886   test -z "$as_dir" && as_dir=.
22887     for ac_exec_ext in '' $ac_executable_extensions; do
22888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22889     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22890        ac_prog_rejected=yes
22891        continue
22892      fi
22893     ac_cv_prog_WINLD="link"
22894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895     break 2
22896   fi
22897 done
22898   done
22899 IFS=$as_save_IFS
22900 
22901 if test $ac_prog_rejected = yes; then
22902   # We found a bogon in the path, so make sure we never use it.
22903   set dummy $ac_cv_prog_WINLD
22904   shift
22905   if test $# != 0; then
22906     # We chose a different compiler from the bogus one.
22907     # However, it has the same basename, so the bogon will be chosen
22908     # first if we set WINLD to just the basename; use the full file name.


23194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23195 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23196     "$WINLD" --version > /dev/null
23197     if test $? -eq 0 ; then
23198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199 $as_echo "no" >&6; }
23200       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23201     else
23202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23203 $as_echo "yes" >&6; }
23204     fi
23205     LD="$WINLD"
23206     LDEXE="$WINLD"
23207     LDCXX="$WINLD"
23208     LDEXECXX="$WINLD"
23209 
23210     # Extract the first word of "mt", so it can be a program name with args.
23211 set dummy mt; ac_word=$2
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23213 $as_echo_n "checking for $ac_word... " >&6; }
23214 if test "${ac_cv_prog_MT+set}" = set; then :
23215   $as_echo_n "(cached) " >&6
23216 else
23217   if test -n "$MT"; then
23218   ac_cv_prog_MT="$MT" # Let the user override the test.
23219 else
23220   ac_prog_rejected=no
23221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23222 for as_dir in $PATH
23223 do
23224   IFS=$as_save_IFS
23225   test -z "$as_dir" && as_dir=.
23226     for ac_exec_ext in '' $ac_executable_extensions; do
23227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23228     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23229        ac_prog_rejected=yes
23230        continue
23231      fi
23232     ac_cv_prog_MT="mt"
23233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23234     break 2
23235   fi
23236 done
23237   done
23238 IFS=$as_save_IFS
23239 
23240 if test $ac_prog_rejected = yes; then
23241   # We found a bogon in the path, so make sure we never use it.
23242   set dummy $ac_cv_prog_MT
23243   shift
23244   if test $# != 0; then
23245     # We chose a different compiler from the bogus one.
23246     # However, it has the same basename, so the bogon will be chosen
23247     # first if we set MT to just the basename; use the full file name.


23515   fi
23516 
23517       # Now join together the path and the arguments once again
23518       if test "x$arguments" != xEOL; then
23519         new_complete="$new_path ${arguments% *}"
23520       else
23521         new_complete="$new_path"
23522       fi
23523 
23524   if test "x$complete" != "x$new_complete"; then
23525       MT="$new_complete"
23526       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23527 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23528     fi
23529 
23530     # The resource compiler
23531     # Extract the first word of "rc", so it can be a program name with args.
23532 set dummy rc; ac_word=$2
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23534 $as_echo_n "checking for $ac_word... " >&6; }
23535 if test "${ac_cv_prog_RC+set}" = set; then :
23536   $as_echo_n "(cached) " >&6
23537 else
23538   if test -n "$RC"; then
23539   ac_cv_prog_RC="$RC" # Let the user override the test.
23540 else
23541   ac_prog_rejected=no
23542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23543 for as_dir in $PATH
23544 do
23545   IFS=$as_save_IFS
23546   test -z "$as_dir" && as_dir=.
23547     for ac_exec_ext in '' $ac_executable_extensions; do
23548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23549     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23550        ac_prog_rejected=yes
23551        continue
23552      fi
23553     ac_cv_prog_RC="rc"
23554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23555     break 2
23556   fi
23557 done
23558   done
23559 IFS=$as_save_IFS
23560 
23561 if test $ac_prog_rejected = yes; then
23562   # We found a bogon in the path, so make sure we never use it.
23563   set dummy $ac_cv_prog_RC
23564   shift
23565   if test $# != 0; then
23566     # We chose a different compiler from the bogus one.
23567     # However, it has the same basename, so the bogon will be chosen
23568     # first if we set RC to just the basename; use the full file name.


23907 
23908     # The version variables used to create RC_FLAGS may be overridden
23909     # in a custom configure script, or possibly the command line.
23910     # Let those variables be expanded at make time in spec.gmk.
23911     # The \$ are escaped to the shell, and the $(...) variables
23912     # are evaluated by make.
23913     RC_FLAGS="$RC_FLAGS \
23914         -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
23915         -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
23916         -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
23917         -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
23918         -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
23919         -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
23920         -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
23921 
23922     # lib.exe is used to create static libraries.
23923     # Extract the first word of "lib", so it can be a program name with args.
23924 set dummy lib; ac_word=$2
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23926 $as_echo_n "checking for $ac_word... " >&6; }
23927 if test "${ac_cv_prog_WINAR+set}" = set; then :
23928   $as_echo_n "(cached) " >&6
23929 else
23930   if test -n "$WINAR"; then
23931   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23932 else
23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23935 do
23936   IFS=$as_save_IFS
23937   test -z "$as_dir" && as_dir=.
23938     for ac_exec_ext in '' $ac_executable_extensions; do
23939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23940     ac_cv_prog_WINAR="lib"
23941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942     break 2
23943   fi
23944 done
23945   done
23946 IFS=$as_save_IFS
23947 
23948 fi
23949 fi
23950 WINAR=$ac_cv_prog_WINAR
23951 if test -n "$WINAR"; then
23952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
23953 $as_echo "$WINAR" >&6; }
23954 else
23955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 fi
23958 
23959 


24213       # Now join together the path and the arguments once again
24214       if test "x$arguments" != xEOL; then
24215         new_complete="$new_path ${arguments% *}"
24216       else
24217         new_complete="$new_path"
24218       fi
24219 
24220   if test "x$complete" != "x$new_complete"; then
24221       WINAR="$new_complete"
24222       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24223 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24224     fi
24225 
24226     AR="$WINAR"
24227     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24228 
24229     # Extract the first word of "dumpbin", so it can be a program name with args.
24230 set dummy dumpbin; ac_word=$2
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24232 $as_echo_n "checking for $ac_word... " >&6; }
24233 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
24234   $as_echo_n "(cached) " >&6
24235 else
24236   if test -n "$DUMPBIN"; then
24237   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24238 else
24239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24240 for as_dir in $PATH
24241 do
24242   IFS=$as_save_IFS
24243   test -z "$as_dir" && as_dir=.
24244     for ac_exec_ext in '' $ac_executable_extensions; do
24245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24246     ac_cv_prog_DUMPBIN="dumpbin"
24247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24248     break 2
24249   fi
24250 done
24251   done
24252 IFS=$as_save_IFS
24253 
24254 fi
24255 fi
24256 DUMPBIN=$ac_cv_prog_DUMPBIN
24257 if test -n "$DUMPBIN"; then
24258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
24259 $as_echo "$DUMPBIN" >&6; }
24260 else
24261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263 fi
24264 
24265 


24532 
24533     COMPILER_TYPE=CL
24534     CCXXFLAGS="$CCXXFLAGS -nologo"
24535 
24536 fi
24537 
24538 
24539 
24540 ac_ext=c
24541 ac_cpp='$CPP $CPPFLAGS'
24542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24546 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24547 # On Suns, sometimes $CPP names a directory.
24548 if test -n "$CPP" && test -d "$CPP"; then
24549   CPP=
24550 fi
24551 if test -z "$CPP"; then
24552   if test "${ac_cv_prog_CPP+set}" = set; then :
24553   $as_echo_n "(cached) " >&6
24554 else
24555       # Double quotes because CPP needs to be expanded
24556     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24557     do
24558       ac_preproc_ok=false
24559 for ac_c_preproc_warn_flag in '' yes
24560 do
24561   # Use a header file that comes with gcc, so configuring glibc
24562   # with a fresh cross-compiler works.
24563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564   # <limits.h> exists even on freestanding compilers.
24565   # On the NeXT, cc -E runs the code through the compiler's parser,
24566   # not just through cpp. "Syntax error" is here to catch this case.
24567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568 /* end confdefs.h.  */
24569 #ifdef __STDC__
24570 # include <limits.h>
24571 #else
24572 # include <assert.h>


24932         new_complete="$new_path ${arguments% *}"
24933       else
24934         new_complete="$new_path"
24935       fi
24936 
24937   if test "x$complete" != "x$new_complete"; then
24938       CPP="$new_complete"
24939       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24940 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24941     fi
24942 
24943 
24944 ac_ext=cpp
24945 ac_cpp='$CXXCPP $CPPFLAGS'
24946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24950 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24951 if test -z "$CXXCPP"; then
24952   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
24953   $as_echo_n "(cached) " >&6
24954 else
24955       # Double quotes because CXXCPP needs to be expanded
24956     for CXXCPP in "$CXX -E" "/lib/cpp"
24957     do
24958       ac_preproc_ok=false
24959 for ac_cxx_preproc_warn_flag in '' yes
24960 do
24961   # Use a header file that comes with gcc, so configuring glibc
24962   # with a fresh cross-compiler works.
24963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24964   # <limits.h> exists even on freestanding compilers.
24965   # On the NeXT, cc -E runs the code through the compiler's parser,
24966   # not just through cpp. "Syntax error" is here to catch this case.
24967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h.  */
24969 #ifdef __STDC__
24970 # include <limits.h>
24971 #else
24972 # include <assert.h>


25350     BUILD_CXX="$CXX"
25351     BUILD_LD="$LD"
25352 fi
25353 
25354 # for solaris we really need solaris tools, and not gnu equivalent
25355 #   these seems to normally reside in /usr/ccs/bin so add that to path before
25356 #   starting to probe
25357 #
25358 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25359 #         so that it can be overriden --with-tools-dir
25360 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25361     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25362 fi
25363 
25364 # Find the right assembler.
25365 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25366     # Extract the first word of "as", so it can be a program name with args.
25367 set dummy as; ac_word=$2
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25369 $as_echo_n "checking for $ac_word... " >&6; }
25370 if test "${ac_cv_path_AS+set}" = set; then :
25371   $as_echo_n "(cached) " >&6
25372 else
25373   case $AS in
25374   [\\/]* | ?:[\\/]*)
25375   ac_cv_path_AS="$AS" # Let the user override the test with a path.
25376   ;;
25377   *)
25378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25379 for as_dir in $PATH
25380 do
25381   IFS=$as_save_IFS
25382   test -z "$as_dir" && as_dir=.
25383     for ac_exec_ext in '' $ac_executable_extensions; do
25384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25385     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25387     break 2
25388   fi
25389 done
25390   done
25391 IFS=$as_save_IFS
25392 
25393   ;;
25394 esac
25395 fi
25396 AS=$ac_cv_path_AS
25397 if test -n "$AS"; then
25398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
25399 $as_echo "$AS" >&6; }
25400 else
25401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25402 $as_echo "no" >&6; }
25403 fi
25404 


25662       else
25663         new_complete="$new_path"
25664       fi
25665 
25666   if test "x$complete" != "x$new_complete"; then
25667       AS="$new_complete"
25668       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25669 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25670     fi
25671 
25672 else
25673     AS="$CC -c"
25674 fi
25675 
25676 
25677 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25678     # Extract the first word of "nm", so it can be a program name with args.
25679 set dummy nm; ac_word=$2
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25681 $as_echo_n "checking for $ac_word... " >&6; }
25682 if test "${ac_cv_path_NM+set}" = set; then :
25683   $as_echo_n "(cached) " >&6
25684 else
25685   case $NM in
25686   [\\/]* | ?:[\\/]*)
25687   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25688   ;;
25689   *)
25690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691 for as_dir in $PATH
25692 do
25693   IFS=$as_save_IFS
25694   test -z "$as_dir" && as_dir=.
25695     for ac_exec_ext in '' $ac_executable_extensions; do
25696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25699     break 2
25700   fi
25701 done
25702   done
25703 IFS=$as_save_IFS
25704 
25705   ;;
25706 esac
25707 fi
25708 NM=$ac_cv_path_NM
25709 if test -n "$NM"; then
25710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25711 $as_echo "$NM" >&6; }
25712 else
25713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25714 $as_echo "no" >&6; }
25715 fi
25716 


25968       fi
25969   fi
25970 
25971       # Now join together the path and the arguments once again
25972       if test "x$arguments" != xEOL; then
25973         new_complete="$new_path ${arguments% *}"
25974       else
25975         new_complete="$new_path"
25976       fi
25977 
25978   if test "x$complete" != "x$new_complete"; then
25979       NM="$new_complete"
25980       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25981 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25982     fi
25983 
25984     # Extract the first word of "gnm", so it can be a program name with args.
25985 set dummy gnm; ac_word=$2
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25987 $as_echo_n "checking for $ac_word... " >&6; }
25988 if test "${ac_cv_path_GNM+set}" = set; then :
25989   $as_echo_n "(cached) " >&6
25990 else
25991   case $GNM in
25992   [\\/]* | ?:[\\/]*)
25993   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
25994   ;;
25995   *)
25996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
25998 do
25999   IFS=$as_save_IFS
26000   test -z "$as_dir" && as_dir=.
26001     for ac_exec_ext in '' $ac_executable_extensions; do
26002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26003     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
26004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26005     break 2
26006   fi
26007 done
26008   done
26009 IFS=$as_save_IFS
26010 
26011   ;;
26012 esac
26013 fi
26014 GNM=$ac_cv_path_GNM
26015 if test -n "$GNM"; then
26016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
26017 $as_echo "$GNM" >&6; }
26018 else
26019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26020 $as_echo "no" >&6; }
26021 fi
26022 


26274       fi
26275   fi
26276 
26277       # Now join together the path and the arguments once again
26278       if test "x$arguments" != xEOL; then
26279         new_complete="$new_path ${arguments% *}"
26280       else
26281         new_complete="$new_path"
26282       fi
26283 
26284   if test "x$complete" != "x$new_complete"; then
26285       GNM="$new_complete"
26286       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26287 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26288     fi
26289 
26290     # Extract the first word of "strip", so it can be a program name with args.
26291 set dummy strip; ac_word=$2
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26293 $as_echo_n "checking for $ac_word... " >&6; }
26294 if test "${ac_cv_path_STRIP+set}" = set; then :
26295   $as_echo_n "(cached) " >&6
26296 else
26297   case $STRIP in
26298   [\\/]* | ?:[\\/]*)
26299   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26300   ;;
26301   *)
26302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26303 for as_dir in $PATH
26304 do
26305   IFS=$as_save_IFS
26306   test -z "$as_dir" && as_dir=.
26307     for ac_exec_ext in '' $ac_executable_extensions; do
26308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26309     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26311     break 2
26312   fi
26313 done
26314   done
26315 IFS=$as_save_IFS
26316 
26317   ;;
26318 esac
26319 fi
26320 STRIP=$ac_cv_path_STRIP
26321 if test -n "$STRIP"; then
26322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26323 $as_echo "$STRIP" >&6; }
26324 else
26325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26326 $as_echo "no" >&6; }
26327 fi
26328 


26580       fi
26581   fi
26582 
26583       # Now join together the path and the arguments once again
26584       if test "x$arguments" != xEOL; then
26585         new_complete="$new_path ${arguments% *}"
26586       else
26587         new_complete="$new_path"
26588       fi
26589 
26590   if test "x$complete" != "x$new_complete"; then
26591       STRIP="$new_complete"
26592       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26593 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26594     fi
26595 
26596     # Extract the first word of "mcs", so it can be a program name with args.
26597 set dummy mcs; ac_word=$2
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26599 $as_echo_n "checking for $ac_word... " >&6; }
26600 if test "${ac_cv_path_MCS+set}" = set; then :
26601   $as_echo_n "(cached) " >&6
26602 else
26603   case $MCS in
26604   [\\/]* | ?:[\\/]*)
26605   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26606   ;;
26607   *)
26608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26609 for as_dir in $PATH
26610 do
26611   IFS=$as_save_IFS
26612   test -z "$as_dir" && as_dir=.
26613     for ac_exec_ext in '' $ac_executable_extensions; do
26614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26615     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26617     break 2
26618   fi
26619 done
26620   done
26621 IFS=$as_save_IFS
26622 
26623   ;;
26624 esac
26625 fi
26626 MCS=$ac_cv_path_MCS
26627 if test -n "$MCS"; then
26628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
26629 $as_echo "$MCS" >&6; }
26630 else
26631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26632 $as_echo "no" >&6; }
26633 fi
26634 


26888 
26889       # Now join together the path and the arguments once again
26890       if test "x$arguments" != xEOL; then
26891         new_complete="$new_path ${arguments% *}"
26892       else
26893         new_complete="$new_path"
26894       fi
26895 
26896   if test "x$complete" != "x$new_complete"; then
26897       MCS="$new_complete"
26898       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26899 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26900     fi
26901 
26902 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26903     if test -n "$ac_tool_prefix"; then
26904   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26905 set dummy ${ac_tool_prefix}nm; ac_word=$2
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26907 $as_echo_n "checking for $ac_word... " >&6; }
26908 if test "${ac_cv_prog_NM+set}" = set; then :
26909   $as_echo_n "(cached) " >&6
26910 else
26911   if test -n "$NM"; then
26912   ac_cv_prog_NM="$NM" # Let the user override the test.
26913 else
26914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26915 for as_dir in $PATH
26916 do
26917   IFS=$as_save_IFS
26918   test -z "$as_dir" && as_dir=.
26919     for ac_exec_ext in '' $ac_executable_extensions; do
26920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26921     ac_cv_prog_NM="${ac_tool_prefix}nm"
26922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26923     break 2
26924   fi
26925 done
26926   done
26927 IFS=$as_save_IFS
26928 
26929 fi
26930 fi
26931 NM=$ac_cv_prog_NM
26932 if test -n "$NM"; then
26933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26934 $as_echo "$NM" >&6; }
26935 else
26936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26937 $as_echo "no" >&6; }
26938 fi
26939 
26940 
26941 fi
26942 if test -z "$ac_cv_prog_NM"; then
26943   ac_ct_NM=$NM
26944   # Extract the first word of "nm", so it can be a program name with args.
26945 set dummy nm; ac_word=$2
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26947 $as_echo_n "checking for $ac_word... " >&6; }
26948 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
26949   $as_echo_n "(cached) " >&6
26950 else
26951   if test -n "$ac_ct_NM"; then
26952   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26953 else
26954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26955 for as_dir in $PATH
26956 do
26957   IFS=$as_save_IFS
26958   test -z "$as_dir" && as_dir=.
26959     for ac_exec_ext in '' $ac_executable_extensions; do
26960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26961     ac_cv_prog_ac_ct_NM="nm"
26962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26963     break 2
26964   fi
26965 done
26966   done
26967 IFS=$as_save_IFS
26968 
26969 fi
26970 fi
26971 ac_ct_NM=$ac_cv_prog_ac_ct_NM
26972 if test -n "$ac_ct_NM"; then
26973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
26974 $as_echo "$ac_ct_NM" >&6; }
26975 else
26976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26977 $as_echo "no" >&6; }
26978 fi
26979 
26980   if test "x$ac_ct_NM" = x; then


27248       # Now join together the path and the arguments once again
27249       if test "x$arguments" != xEOL; then
27250         new_complete="$new_path ${arguments% *}"
27251       else
27252         new_complete="$new_path"
27253       fi
27254 
27255   if test "x$complete" != "x$new_complete"; then
27256       NM="$new_complete"
27257       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27258 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27259     fi
27260 
27261     GNM="$NM"
27262 
27263     if test -n "$ac_tool_prefix"; then
27264   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27265 set dummy ${ac_tool_prefix}strip; ac_word=$2
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27267 $as_echo_n "checking for $ac_word... " >&6; }
27268 if test "${ac_cv_prog_STRIP+set}" = set; then :
27269   $as_echo_n "(cached) " >&6
27270 else
27271   if test -n "$STRIP"; then
27272   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27273 else
27274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27275 for as_dir in $PATH
27276 do
27277   IFS=$as_save_IFS
27278   test -z "$as_dir" && as_dir=.
27279     for ac_exec_ext in '' $ac_executable_extensions; do
27280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27281     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27283     break 2
27284   fi
27285 done
27286   done
27287 IFS=$as_save_IFS
27288 
27289 fi
27290 fi
27291 STRIP=$ac_cv_prog_STRIP
27292 if test -n "$STRIP"; then
27293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27294 $as_echo "$STRIP" >&6; }
27295 else
27296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27297 $as_echo "no" >&6; }
27298 fi
27299 
27300 
27301 fi
27302 if test -z "$ac_cv_prog_STRIP"; then
27303   ac_ct_STRIP=$STRIP
27304   # Extract the first word of "strip", so it can be a program name with args.
27305 set dummy strip; ac_word=$2
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27307 $as_echo_n "checking for $ac_word... " >&6; }
27308 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
27309   $as_echo_n "(cached) " >&6
27310 else
27311   if test -n "$ac_ct_STRIP"; then
27312   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27313 else
27314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27315 for as_dir in $PATH
27316 do
27317   IFS=$as_save_IFS
27318   test -z "$as_dir" && as_dir=.
27319     for ac_exec_ext in '' $ac_executable_extensions; do
27320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27321     ac_cv_prog_ac_ct_STRIP="strip"
27322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27323     break 2
27324   fi
27325 done
27326   done
27327 IFS=$as_save_IFS
27328 
27329 fi
27330 fi
27331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27332 if test -n "$ac_ct_STRIP"; then
27333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27334 $as_echo "$ac_ct_STRIP" >&6; }
27335 else
27336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27337 $as_echo "no" >&6; }
27338 fi
27339 
27340   if test "x$ac_ct_STRIP" = x; then


27613       fi
27614 
27615   if test "x$complete" != "x$new_complete"; then
27616       STRIP="$new_complete"
27617       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27618 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27619     fi
27620 
27621 fi
27622 
27623 # objcopy is used for moving debug symbols to separate files when
27624 # full debug symbols are enabled.
27625 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27626     if test -n "$ac_tool_prefix"; then
27627   for ac_prog in gobjcopy objcopy
27628   do
27629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27632 $as_echo_n "checking for $ac_word... " >&6; }
27633 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
27634   $as_echo_n "(cached) " >&6
27635 else
27636   if test -n "$OBJCOPY"; then
27637   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27638 else
27639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27640 for as_dir in $PATH
27641 do
27642   IFS=$as_save_IFS
27643   test -z "$as_dir" && as_dir=.
27644     for ac_exec_ext in '' $ac_executable_extensions; do
27645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27646     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27648     break 2
27649   fi
27650 done
27651   done
27652 IFS=$as_save_IFS
27653 
27654 fi
27655 fi
27656 OBJCOPY=$ac_cv_prog_OBJCOPY
27657 if test -n "$OBJCOPY"; then
27658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27659 $as_echo "$OBJCOPY" >&6; }
27660 else
27661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27662 $as_echo "no" >&6; }
27663 fi
27664 
27665 
27666     test -n "$OBJCOPY" && break
27667   done
27668 fi
27669 if test -z "$OBJCOPY"; then
27670   ac_ct_OBJCOPY=$OBJCOPY
27671   for ac_prog in gobjcopy objcopy
27672 do
27673   # Extract the first word of "$ac_prog", so it can be a program name with args.
27674 set dummy $ac_prog; ac_word=$2
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27676 $as_echo_n "checking for $ac_word... " >&6; }
27677 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
27678   $as_echo_n "(cached) " >&6
27679 else
27680   if test -n "$ac_ct_OBJCOPY"; then
27681   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27682 else
27683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27684 for as_dir in $PATH
27685 do
27686   IFS=$as_save_IFS
27687   test -z "$as_dir" && as_dir=.
27688     for ac_exec_ext in '' $ac_executable_extensions; do
27689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27690     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27692     break 2
27693   fi
27694 done
27695   done
27696 IFS=$as_save_IFS
27697 
27698 fi
27699 fi
27700 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
27701 if test -n "$ac_ct_OBJCOPY"; then
27702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
27703 $as_echo "$ac_ct_OBJCOPY" >&6; }
27704 else
27705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27706 $as_echo "no" >&6; }
27707 fi
27708 
27709 


27984       else
27985         new_complete="$new_path"
27986       fi
27987 
27988   if test "x$complete" != "x$new_complete"; then
27989       OBJCOPY="$new_complete"
27990       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27991 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27992     fi
27993 
27994     fi
27995 fi
27996 
27997 if test -n "$ac_tool_prefix"; then
27998   for ac_prog in gobjdump objdump
27999   do
28000     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28003 $as_echo_n "checking for $ac_word... " >&6; }
28004 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
28005   $as_echo_n "(cached) " >&6
28006 else
28007   if test -n "$OBJDUMP"; then
28008   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28009 else
28010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28011 for as_dir in $PATH
28012 do
28013   IFS=$as_save_IFS
28014   test -z "$as_dir" && as_dir=.
28015     for ac_exec_ext in '' $ac_executable_extensions; do
28016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28017     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
28018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28019     break 2
28020   fi
28021 done
28022   done
28023 IFS=$as_save_IFS
28024 
28025 fi
28026 fi
28027 OBJDUMP=$ac_cv_prog_OBJDUMP
28028 if test -n "$OBJDUMP"; then
28029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
28030 $as_echo "$OBJDUMP" >&6; }
28031 else
28032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28033 $as_echo "no" >&6; }
28034 fi
28035 
28036 
28037     test -n "$OBJDUMP" && break
28038   done
28039 fi
28040 if test -z "$OBJDUMP"; then
28041   ac_ct_OBJDUMP=$OBJDUMP
28042   for ac_prog in gobjdump objdump
28043 do
28044   # Extract the first word of "$ac_prog", so it can be a program name with args.
28045 set dummy $ac_prog; ac_word=$2
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28047 $as_echo_n "checking for $ac_word... " >&6; }
28048 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
28049   $as_echo_n "(cached) " >&6
28050 else
28051   if test -n "$ac_ct_OBJDUMP"; then
28052   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28053 else
28054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28055 for as_dir in $PATH
28056 do
28057   IFS=$as_save_IFS
28058   test -z "$as_dir" && as_dir=.
28059     for ac_exec_ext in '' $ac_executable_extensions; do
28060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28061     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
28062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28063     break 2
28064   fi
28065 done
28066   done
28067 IFS=$as_save_IFS
28068 
28069 fi
28070 fi
28071 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
28072 if test -n "$ac_ct_OBJDUMP"; then
28073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
28074 $as_echo "$ac_ct_OBJDUMP" >&6; }
28075 else
28076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28077 $as_echo "no" >&6; }
28078 fi
28079 
28080 


28352       # Now join together the path and the arguments once again
28353       if test "x$arguments" != xEOL; then
28354         new_complete="$new_path ${arguments% *}"
28355       else
28356         new_complete="$new_path"
28357       fi
28358 
28359   if test "x$complete" != "x$new_complete"; then
28360       OBJDUMP="$new_complete"
28361       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28362 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28363     fi
28364 
28365 fi
28366 
28367 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28368    # Extract the first word of "lipo", so it can be a program name with args.
28369 set dummy lipo; ac_word=$2
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28371 $as_echo_n "checking for $ac_word... " >&6; }
28372 if test "${ac_cv_path_LIPO+set}" = set; then :
28373   $as_echo_n "(cached) " >&6
28374 else
28375   case $LIPO in
28376   [\\/]* | ?:[\\/]*)
28377   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28378   ;;
28379   *)
28380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28381 for as_dir in $PATH
28382 do
28383   IFS=$as_save_IFS
28384   test -z "$as_dir" && as_dir=.
28385     for ac_exec_ext in '' $ac_executable_extensions; do
28386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28387     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28389     break 2
28390   fi
28391 done
28392   done
28393 IFS=$as_save_IFS
28394 
28395   ;;
28396 esac
28397 fi
28398 LIPO=$ac_cv_path_LIPO
28399 if test -n "$LIPO"; then
28400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
28401 $as_echo "$LIPO" >&6; }
28402 else
28403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28404 $as_echo "no" >&6; }
28405 fi
28406 


28669       LIPO="$new_complete"
28670       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28671 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28672     fi
28673 
28674 fi
28675 
28676 
28677 
28678 # Restore old path without tools dir
28679 PATH="$OLD_PATH"
28680 
28681 
28682 # FIXME: Currently we must test this after paths but before flags. Fix!
28683 
28684 # And we can test some aspects on the target using configure macros.
28685 
28686 
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28688 $as_echo_n "checking for ANSI C header files... " >&6; }
28689 if test "${ac_cv_header_stdc+set}" = set; then :
28690   $as_echo_n "(cached) " >&6
28691 else
28692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28693 /* end confdefs.h.  */
28694 #include <stdlib.h>
28695 #include <stdarg.h>
28696 #include <string.h>
28697 #include <float.h>
28698 
28699 int
28700 main ()
28701 {
28702 
28703   ;
28704   return 0;
28705 }
28706 _ACEOF
28707 if ac_fn_cxx_try_compile "$LINENO"; then :
28708   ac_cv_header_stdc=yes
28709 else


28846   #   to prevent emitting warning...
28847   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28848   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28849   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28850 
28851   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28852   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28853   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28854 
28855   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28856   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28857   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28858 
28859   fi
28860 fi
28861 
28862 # Make compilation sanity check
28863 for ac_header in stdio.h
28864 do :
28865   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28866 if test "x$ac_cv_header_stdio_h" = x""yes; then :
28867   cat >>confdefs.h <<_ACEOF
28868 #define HAVE_STDIO_H 1
28869 _ACEOF
28870 
28871 else
28872 
28873   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28874 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28875   if test "x$COMPILE_TYPE" = xreduced; then
28876     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28877 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28878   elif test "x$COMPILE_TYPE" = xcross; then
28879     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28880 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28881   fi
28882   as_fn_error $? "Cannot continue." "$LINENO" 5
28883 
28884 fi
28885 
28886 done
28887 
28888 
28889 # The cast to long int works around a bug in the HP C Compiler
28890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28892 # This bug is HP SR number 8606223364.
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28894 $as_echo_n "checking size of int *... " >&6; }
28895 if test "${ac_cv_sizeof_int_p+set}" = set; then :
28896   $as_echo_n "(cached) " >&6
28897 else
28898   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28899 
28900 else
28901   if test "$ac_cv_type_int_p" = yes; then
28902      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28904 as_fn_error 77 "cannot compute sizeof (int *)
28905 See \`config.log' for more details" "$LINENO" 5; }
28906    else
28907      ac_cv_sizeof_int_p=0
28908    fi
28909 fi
28910 
28911 fi
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28913 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28914 
28915 


28932 else
28933     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28934 
28935     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28936         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
28937     fi
28938 fi
28939 
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28941 $as_echo_n "checking for target address size... " >&6; }
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28943 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28944 
28945 
28946 ###############################################################################
28947 #
28948 # Is the target little of big endian?
28949 #
28950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28952 if test "${ac_cv_c_bigendian+set}" = set; then :
28953   $as_echo_n "(cached) " >&6
28954 else
28955   ac_cv_c_bigendian=unknown
28956     # See if we're dealing with a universal compiler.
28957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h.  */
28959 #ifndef __APPLE_CC__
28960                not a universal capable compiler
28961              #endif
28962              typedef int dummy;
28963 
28964 _ACEOF
28965 if ac_fn_cxx_try_compile "$LINENO"; then :
28966 
28967         # Check for potential -arch flags.  It is not universal unless
28968         # there are at least two -arch flags with different values.
28969         ac_arch=
28970         ac_prev=
28971         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28972          if test -n "$ac_prev"; then


29229         LIBRARY_PREFIX=lib
29230         SHARED_LIBRARY='lib$1.so'
29231         STATIC_LIBRARY='lib$1.a'
29232         SHARED_LIBRARY_FLAGS="-G"
29233         SHARED_LIBRARY_SUFFIX='.so'
29234         STATIC_LIBRARY_SUFFIX='.a'
29235         OBJ_SUFFIX='.o'
29236         EXE_SUFFIX=''
29237         SET_SHARED_LIBRARY_NAME=''
29238         SET_SHARED_LIBRARY_MAPFILE='-M$1'
29239         C_FLAG_REORDER='-xF'
29240         CXX_FLAG_REORDER='-xF'
29241         SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
29242         SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
29243         CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
29244         CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
29245         CFLAGS_JDKLIB_EXTRA='-xstrconst'
29246         POST_STRIP_CMD="$STRIP -x"
29247         POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
29248     fi























29249     if test "x$OPENJDK_TARGET_OS" = xwindows; then
29250         # If it is not gcc, then assume it is the MS Visual Studio compiler
29251         COMPILER_NAME=cl
29252         PICFLAG=""
29253         LIBRARY_PREFIX=
29254         SHARED_LIBRARY='$1.dll'
29255         STATIC_LIBRARY='$1.lib'
29256         SHARED_LIBRARY_FLAGS="-LD"
29257         SHARED_LIBRARY_SUFFIX='.dll'
29258         STATIC_LIBRARY_SUFFIX='.lib'
29259         OBJ_SUFFIX='.obj'
29260         EXE_SUFFIX='.exe'
29261         SET_SHARED_LIBRARY_NAME=''
29262         SET_SHARED_LIBRARY_MAPFILE=''
29263         SET_SHARED_LIBRARY_ORIGIN=''
29264         SET_EXECUTABLE_ORIGIN=''
29265     fi
29266 fi
29267 
29268 


29308 int main() { return 0; }
29309 _ACEOF
29310 if ac_fn_cxx_try_link "$LINENO"; then :
29311 
29312                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29313 $as_echo "yes" >&6; }
29314 
29315 else
29316 
29317                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29318 $as_echo "no" >&6; }
29319                         as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
29320 
29321 fi
29322 rm -f core conftest.err conftest.$ac_objext \
29323     conftest$ac_exeext conftest.$ac_ext
29324 fi
29325 
29326 C_FLAG_DEPS="-MMD -MF"
29327 CXX_FLAG_DEPS="-MMD -MF"


29328 
29329 case $COMPILER_TYPE in
29330   CC )
29331     case $COMPILER_NAME in
29332       gcc )
29333         case $OPENJDK_TARGET_OS in
29334           macosx )
29335             # On MacOSX we optimize for size, something
29336             # we should do for all platforms?
29337             C_O_FLAG_HI="-Os"
29338             C_O_FLAG_NORM="-Os"
29339             C_O_FLAG_NONE=""
29340             ;;
29341           *)
29342             C_O_FLAG_HI="-O3"
29343             C_O_FLAG_NORM="-O2"
29344             C_O_FLAG_NONE="-O0"
29345             ;;
29346         esac
29347         CXX_O_FLAG_HI="$C_O_FLAG_HI"


29413                C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
29414                CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
29415             fi
29416             ;;
29417           sparc)
29418             CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29419             CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29420             C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29421             C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29422             C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29423             C_O_FLAG_NONE=""
29424             CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29425             CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29426             CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29427             CXX_O_FLAG_NONE=""
29428             ;;
29429         esac
29430 
29431     CFLAGS_DEBUG_SYMBOLS="-g -xs"
29432     CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"



















29433     esac
29434     ;;
29435   CL )
29436     C_O_FLAG_HIGHEST="-O2"
29437     C_O_FLAG_HI="-O1"
29438     C_O_FLAG_NORM="-O1"
29439     C_O_FLAG_NONE="-Od"
29440     CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
29441     CXX_O_FLAG_HI="$C_O_FLAG_HI"
29442     CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
29443     CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
29444     ;;
29445 esac
29446 
29447 if test -z "$C_O_FLAG_HIGHEST"; then
29448    C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
29449 fi
29450 
29451 if test -z "$CXX_O_FLAG_HIGHEST"; then
29452    CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
29453 fi
29454 
29455 
29456 
29457 
29458 
29459 
29460 
29461 
29462 
29463 
29464 
29465 
29466 
29467 

29468 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
29469    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
29470 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
29471 fi
29472 
29473 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
29474    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
29475 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
29476 fi
29477 
29478 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
29479    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
29480 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
29481 fi
29482 
29483 
29484 # Check whether --with-extra-cflags was given.
29485 if test "${with_extra_cflags+set}" = set; then :
29486   withval=$with_extra_cflags;
29487 fi


29536             CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
29537             CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
29538           ;;
29539           esac
29540           ;;
29541       ossc )
29542           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
29543           case $OPENJDK_TARGET_CPU_ARCH in
29544           x86 )
29545             CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
29546             CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
29547           ;;
29548           esac
29549 
29550           CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
29551           CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
29552 
29553           LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
29554           LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
29555           ;;







29556       cl )
29557           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
29558                -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
29559                -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
29560                -DWIN32 -DIAL"
29561           case $OPENJDK_TARGET_CPU in
29562               x86 )
29563                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
29564                   ;;
29565               x86_64 )
29566                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
29567                   ;;
29568           esac
29569           ;;
29570 esac
29571 
29572 ###############################################################################
29573 
29574 # Adjust flags according to debug level.
29575 case $DEBUG_LEVEL in


29605     #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
29606     #   Note: -Dmacro         is the same as    #define macro 1
29607     #         -Dmacro=      is the same as    #define macro
29608     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29609         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
29610     else
29611         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
29612     fi
29613 else
29614     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
29615 fi
29616 if test "x$OPENJDK_TARGET_OS" = xlinux; then
29617     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
29618 fi
29619 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29620     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
29621 fi
29622 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29623     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
29624 fi



29625 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
29626     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
29627     # Setting these parameters makes it an error to link to macosx APIs that are
29628     # newer than the given OS version and makes the linked binaries compatible even
29629     # if built on a newer version of the OS.
29630     # The expected format is X.Y.Z
29631     MACOSX_VERSION_MIN=10.7.0
29632 
29633     # The macro takes the version with no dots, ex: 1070
29634     # Let the flags variables get resolved in make for easier override on make
29635     # command line.
29636     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29637     LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29638 fi
29639 if test "x$OPENJDK_TARGET_OS" = xbsd; then
29640     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
29641 fi
29642 if test "x$DEBUG_LEVEL" = xrelease; then
29643     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
29644     if test "x$OPENJDK_TARGET_OS" = xsolaris; then


29813 fi
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29815   ac_ext=cpp
29816 ac_cpp='$CXXCPP $CPPFLAGS'
29817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29820 
29821   CXXFLAGS="$saved_cxxflags"
29822 
29823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
29824 $as_echo "$supports" >&6; }
29825   if test "x$supports" = "xyes" ; then
29826     :
29827   else
29828     ZERO_ARCHFLAG=""
29829   fi
29830 
29831 
29832 
29833   # Check that the compiler supports -mX flags
29834   # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
29835 
29836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"" >&5
29837 $as_echo_n "checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
29838   supports=yes
29839 
29840   saved_cflags="$CFLAGS"
29841   CFLAGS="$CFLAGS -m${OPENJDK_TARGET_CPU_BITS}"
29842   ac_ext=c
29843 ac_cpp='$CPP $CPPFLAGS'
29844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29847 
29848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h.  */
29850 
29851     int i;
29852 
29853 _ACEOF
29854 if ac_fn_c_try_compile "$LINENO"; then :
29855 
29856 else
29857   supports=no
29858 fi
29859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29860   ac_ext=cpp
29861 ac_cpp='$CXXCPP $CPPFLAGS'
29862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29865 
29866   CFLAGS="$saved_cflags"
29867 
29868   saved_cxxflags="$CXXFLAGS"
29869   CXXFLAGS="$CXXFLAG -m${OPENJDK_TARGET_CPU_BITS}"
29870   ac_ext=cpp
29871 ac_cpp='$CXXCPP $CPPFLAGS'
29872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29875 
29876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29877 /* end confdefs.h.  */
29878 
29879     int i;
29880 
29881 _ACEOF
29882 if ac_fn_cxx_try_compile "$LINENO"; then :
29883 
29884 else
29885   supports=no
29886 fi
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888   ac_ext=cpp
29889 ac_cpp='$CXXCPP $CPPFLAGS'


30004 #
30005 # OS specific settings that we never will need to probe.
30006 #
30007 if test "x$OPENJDK_TARGET_OS" = xlinux; then
30008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
30009 $as_echo_n "checking what is not needed on Linux?... " >&6; }
30010     PULSE_NOT_NEEDED=yes
30011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
30012 $as_echo "pulse" >&6; }
30013 fi
30014 
30015 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
30017 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
30018     ALSA_NOT_NEEDED=yes
30019     PULSE_NOT_NEEDED=yes
30020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30021 $as_echo "alsa pulse" >&6; }
30022 fi
30023 










30024 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30026 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30027     CUPS_NOT_NEEDED=yes
30028     ALSA_NOT_NEEDED=yes
30029     PULSE_NOT_NEEDED=yes
30030     X11_NOT_NEEDED=yes
30031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30032 $as_echo "alsa cups pulse x11" >&6; }
30033 fi
30034 
30035 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30037 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30038     ALSA_NOT_NEEDED=yes
30039     PULSE_NOT_NEEDED=yes
30040     X11_NOT_NEEDED=yes
30041     FREETYPE2_NOT_NEEDED=yes
30042     # If the java runtime framework is disabled, then we need X11.
30043     # This will be adjusted below.


30130   fi
30131 fi
30132 
30133 # Now let autoconf do it's magic
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30135 $as_echo_n "checking for X... " >&6; }
30136 
30137 
30138 # Check whether --with-x was given.
30139 if test "${with_x+set}" = set; then :
30140   withval=$with_x;
30141 fi
30142 
30143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30144 if test "x$with_x" = xno; then
30145   # The user explicitly disabled X.
30146   have_x=disabled
30147 else
30148   case $x_includes,$x_libraries in #(
30149     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30150     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
30151   $as_echo_n "(cached) " >&6
30152 else
30153   # One or both of the vars are not set, and there is no cached value.
30154 ac_x_includes=no ac_x_libraries=no
30155 rm -f -r conftest.dir
30156 if mkdir conftest.dir; then
30157   cd conftest.dir
30158   cat >Imakefile <<'_ACEOF'
30159 incroot:
30160         @echo incroot='${INCROOT}'
30161 usrlibdir:
30162         @echo usrlibdir='${USRLIBDIR}'
30163 libdir:
30164         @echo libdir='${LIBDIR}'
30165 _ACEOF
30166   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30167     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30168     for ac_var in incroot usrlibdir libdir; do
30169       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30170     done


30407 /* Override any GCC internal prototype to avoid an error.
30408    Use char because int might match the return type of a GCC
30409    builtin and then its argument prototype would still apply.  */
30410 #ifdef __cplusplus
30411 extern "C"
30412 #endif
30413 char XOpenDisplay ();
30414 int
30415 main ()
30416 {
30417 return XOpenDisplay ();
30418   ;
30419   return 0;
30420 }
30421 _ACEOF
30422 if ac_fn_cxx_try_link "$LINENO"; then :
30423 
30424 else
30425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30426 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30427 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
30428   $as_echo_n "(cached) " >&6
30429 else
30430   ac_check_lib_save_LIBS=$LIBS
30431 LIBS="-ldnet  $LIBS"
30432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h.  */
30434 
30435 /* Override any GCC internal prototype to avoid an error.
30436    Use char because int might match the return type of a GCC
30437    builtin and then its argument prototype would still apply.  */
30438 #ifdef __cplusplus
30439 extern "C"
30440 #endif
30441 char dnet_ntoa ();
30442 int
30443 main ()
30444 {
30445 return dnet_ntoa ();
30446   ;
30447   return 0;
30448 }
30449 _ACEOF
30450 if ac_fn_cxx_try_link "$LINENO"; then :
30451   ac_cv_lib_dnet_dnet_ntoa=yes
30452 else
30453   ac_cv_lib_dnet_dnet_ntoa=no
30454 fi
30455 rm -f core conftest.err conftest.$ac_objext \
30456     conftest$ac_exeext conftest.$ac_ext
30457 LIBS=$ac_check_lib_save_LIBS
30458 fi
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30460 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30461 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
30462   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30463 fi
30464 
30465     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30467 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30468 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
30469   $as_echo_n "(cached) " >&6
30470 else
30471   ac_check_lib_save_LIBS=$LIBS
30472 LIBS="-ldnet_stub  $LIBS"
30473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30474 /* end confdefs.h.  */
30475 
30476 /* Override any GCC internal prototype to avoid an error.
30477    Use char because int might match the return type of a GCC
30478    builtin and then its argument prototype would still apply.  */
30479 #ifdef __cplusplus
30480 extern "C"
30481 #endif
30482 char dnet_ntoa ();
30483 int
30484 main ()
30485 {
30486 return dnet_ntoa ();
30487   ;
30488   return 0;
30489 }
30490 _ACEOF
30491 if ac_fn_cxx_try_link "$LINENO"; then :
30492   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30493 else
30494   ac_cv_lib_dnet_stub_dnet_ntoa=no
30495 fi
30496 rm -f core conftest.err conftest.$ac_objext \
30497     conftest$ac_exeext conftest.$ac_ext
30498 LIBS=$ac_check_lib_save_LIBS
30499 fi
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30501 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30502 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
30503   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30504 fi
30505 
30506     fi
30507 fi
30508 rm -f core conftest.err conftest.$ac_objext \
30509     conftest$ac_exeext conftest.$ac_ext
30510     LIBS="$ac_xsave_LIBS"
30511 
30512     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30513     # to get the SysV transport functions.
30514     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30515     # needs -lnsl.
30516     # The nsl library prevents programs from opening the X display
30517     # on Irix 5.2, according to T.E. Dickey.
30518     # The functions gethostbyname, getservbyname, and inet_addr are
30519     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30520     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30521 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
30522 
30523 fi
30524 
30525     if test $ac_cv_func_gethostbyname = no; then
30526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30527 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
30529   $as_echo_n "(cached) " >&6
30530 else
30531   ac_check_lib_save_LIBS=$LIBS
30532 LIBS="-lnsl  $LIBS"
30533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30534 /* end confdefs.h.  */
30535 
30536 /* Override any GCC internal prototype to avoid an error.
30537    Use char because int might match the return type of a GCC
30538    builtin and then its argument prototype would still apply.  */
30539 #ifdef __cplusplus
30540 extern "C"
30541 #endif
30542 char gethostbyname ();
30543 int
30544 main ()
30545 {
30546 return gethostbyname ();
30547   ;
30548   return 0;
30549 }
30550 _ACEOF
30551 if ac_fn_cxx_try_link "$LINENO"; then :
30552   ac_cv_lib_nsl_gethostbyname=yes
30553 else
30554   ac_cv_lib_nsl_gethostbyname=no
30555 fi
30556 rm -f core conftest.err conftest.$ac_objext \
30557     conftest$ac_exeext conftest.$ac_ext
30558 LIBS=$ac_check_lib_save_LIBS
30559 fi
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30561 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30562 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
30563   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30564 fi
30565 
30566       if test $ac_cv_lib_nsl_gethostbyname = no; then
30567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30568 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30569 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
30570   $as_echo_n "(cached) " >&6
30571 else
30572   ac_check_lib_save_LIBS=$LIBS
30573 LIBS="-lbsd  $LIBS"
30574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30575 /* end confdefs.h.  */
30576 
30577 /* Override any GCC internal prototype to avoid an error.
30578    Use char because int might match the return type of a GCC
30579    builtin and then its argument prototype would still apply.  */
30580 #ifdef __cplusplus
30581 extern "C"
30582 #endif
30583 char gethostbyname ();
30584 int
30585 main ()
30586 {
30587 return gethostbyname ();
30588   ;
30589   return 0;
30590 }
30591 _ACEOF
30592 if ac_fn_cxx_try_link "$LINENO"; then :
30593   ac_cv_lib_bsd_gethostbyname=yes
30594 else
30595   ac_cv_lib_bsd_gethostbyname=no
30596 fi
30597 rm -f core conftest.err conftest.$ac_objext \
30598     conftest$ac_exeext conftest.$ac_ext
30599 LIBS=$ac_check_lib_save_LIBS
30600 fi
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30602 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30603 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
30604   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30605 fi
30606 
30607       fi
30608     fi
30609 
30610     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30611     # socket/setsockopt and other routines are undefined under SCO ODT
30612     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30613     # on later versions), says Simon Leinen: it contains gethostby*
30614     # variants that don't use the name server (or something).  -lsocket
30615     # must be given before -lnsl if both are needed.  We assume that
30616     # if connect needs -lnsl, so does gethostbyname.
30617     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30618 if test "x$ac_cv_func_connect" = x""yes; then :
30619 
30620 fi
30621 
30622     if test $ac_cv_func_connect = no; then
30623       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30624 $as_echo_n "checking for connect in -lsocket... " >&6; }
30625 if test "${ac_cv_lib_socket_connect+set}" = set; then :
30626   $as_echo_n "(cached) " >&6
30627 else
30628   ac_check_lib_save_LIBS=$LIBS
30629 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631 /* end confdefs.h.  */
30632 
30633 /* Override any GCC internal prototype to avoid an error.
30634    Use char because int might match the return type of a GCC
30635    builtin and then its argument prototype would still apply.  */
30636 #ifdef __cplusplus
30637 extern "C"
30638 #endif
30639 char connect ();
30640 int
30641 main ()
30642 {
30643 return connect ();
30644   ;
30645   return 0;
30646 }
30647 _ACEOF
30648 if ac_fn_cxx_try_link "$LINENO"; then :
30649   ac_cv_lib_socket_connect=yes
30650 else
30651   ac_cv_lib_socket_connect=no
30652 fi
30653 rm -f core conftest.err conftest.$ac_objext \
30654     conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30656 fi
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30658 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30659 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
30660   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30661 fi
30662 
30663     fi
30664 
30665     # Guillermo Gomez says -lposix is necessary on A/UX.
30666     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30667 if test "x$ac_cv_func_remove" = x""yes; then :
30668 
30669 fi
30670 
30671     if test $ac_cv_func_remove = no; then
30672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30673 $as_echo_n "checking for remove in -lposix... " >&6; }
30674 if test "${ac_cv_lib_posix_remove+set}" = set; then :
30675   $as_echo_n "(cached) " >&6
30676 else
30677   ac_check_lib_save_LIBS=$LIBS
30678 LIBS="-lposix  $LIBS"
30679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30680 /* end confdefs.h.  */
30681 
30682 /* Override any GCC internal prototype to avoid an error.
30683    Use char because int might match the return type of a GCC
30684    builtin and then its argument prototype would still apply.  */
30685 #ifdef __cplusplus
30686 extern "C"
30687 #endif
30688 char remove ();
30689 int
30690 main ()
30691 {
30692 return remove ();
30693   ;
30694   return 0;
30695 }
30696 _ACEOF
30697 if ac_fn_cxx_try_link "$LINENO"; then :
30698   ac_cv_lib_posix_remove=yes
30699 else
30700   ac_cv_lib_posix_remove=no
30701 fi
30702 rm -f core conftest.err conftest.$ac_objext \
30703     conftest$ac_exeext conftest.$ac_ext
30704 LIBS=$ac_check_lib_save_LIBS
30705 fi
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30707 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30708 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
30709   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30710 fi
30711 
30712     fi
30713 
30714     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30715     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30716 if test "x$ac_cv_func_shmat" = x""yes; then :
30717 
30718 fi
30719 
30720     if test $ac_cv_func_shmat = no; then
30721       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30722 $as_echo_n "checking for shmat in -lipc... " >&6; }
30723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
30724   $as_echo_n "(cached) " >&6
30725 else
30726   ac_check_lib_save_LIBS=$LIBS
30727 LIBS="-lipc  $LIBS"
30728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30729 /* end confdefs.h.  */
30730 
30731 /* Override any GCC internal prototype to avoid an error.
30732    Use char because int might match the return type of a GCC
30733    builtin and then its argument prototype would still apply.  */
30734 #ifdef __cplusplus
30735 extern "C"
30736 #endif
30737 char shmat ();
30738 int
30739 main ()
30740 {
30741 return shmat ();
30742   ;
30743   return 0;
30744 }
30745 _ACEOF
30746 if ac_fn_cxx_try_link "$LINENO"; then :
30747   ac_cv_lib_ipc_shmat=yes
30748 else
30749   ac_cv_lib_ipc_shmat=no
30750 fi
30751 rm -f core conftest.err conftest.$ac_objext \
30752     conftest$ac_exeext conftest.$ac_ext
30753 LIBS=$ac_check_lib_save_LIBS
30754 fi
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30756 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30757 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
30758   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30759 fi
30760 
30761     fi
30762   fi
30763 
30764   # Check for libraries that X11R6 Xt/Xaw programs need.
30765   ac_save_LDFLAGS=$LDFLAGS
30766   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30767   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30768   # check for ICE first), but we must link in the order -lSM -lICE or
30769   # we get undefined symbols.  So assume we have SM if we have ICE.
30770   # These have to be linked with before -lX11, unlike the other
30771   # libraries we check for below, so use a different variable.
30772   # John Interrante, Karl Berry
30773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30774 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30775 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
30776   $as_echo_n "(cached) " >&6
30777 else
30778   ac_check_lib_save_LIBS=$LIBS
30779 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30781 /* end confdefs.h.  */
30782 
30783 /* Override any GCC internal prototype to avoid an error.
30784    Use char because int might match the return type of a GCC
30785    builtin and then its argument prototype would still apply.  */
30786 #ifdef __cplusplus
30787 extern "C"
30788 #endif
30789 char IceConnectionNumber ();
30790 int
30791 main ()
30792 {
30793 return IceConnectionNumber ();
30794   ;
30795   return 0;
30796 }
30797 _ACEOF
30798 if ac_fn_cxx_try_link "$LINENO"; then :
30799   ac_cv_lib_ICE_IceConnectionNumber=yes
30800 else
30801   ac_cv_lib_ICE_IceConnectionNumber=no
30802 fi
30803 rm -f core conftest.err conftest.$ac_objext \
30804     conftest$ac_exeext conftest.$ac_ext
30805 LIBS=$ac_check_lib_save_LIBS
30806 fi
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30808 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30809 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
30810   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30811 fi
30812 
30813   LDFLAGS=$ac_save_LDFLAGS
30814 
30815 fi
30816 
30817 
30818 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30819 # this doesn't make sense so we remove it.
30820 if test "x$COMPILE_TYPE" = xcross; then
30821   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30822 fi
30823 
30824 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30825 
30826     # Print a helpful message on how to acquire the necessary build dependency.
30827     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30828     MISSING_DEPENDENCY=x11
30829     PKGHANDLER_COMMAND=


31807                 pkgutil_help $MISSING_DEPENDENCY ;;
31808         pkgadd)
31809                 pkgadd_help  $MISSING_DEPENDENCY ;;
31810     * )
31811       break ;;
31812     esac
31813 
31814     if test "x$PKGHANDLER_COMMAND" != x; then
31815         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31816     fi
31817 
31818                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31819         fi
31820 
31821         if test "x$OPENJDK_TARGET_OS" != xwindows; then
31822             # AC_CHECK_LIB does not support use of cl.exe
31823             PREV_LDFLAGS="$LDFLAGS"
31824             LDFLAGS="$FREETYPE2_LIBS"
31825             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31826 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31827 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
31828   $as_echo_n "(cached) " >&6
31829 else
31830   ac_check_lib_save_LIBS=$LIBS
31831 LIBS="-lfreetype  $LIBS"
31832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31833 /* end confdefs.h.  */
31834 
31835 /* Override any GCC internal prototype to avoid an error.
31836    Use char because int might match the return type of a GCC
31837    builtin and then its argument prototype would still apply.  */
31838 #ifdef __cplusplus
31839 extern "C"
31840 #endif
31841 char FT_Init_FreeType ();
31842 int
31843 main ()
31844 {
31845 return FT_Init_FreeType ();
31846   ;
31847   return 0;
31848 }
31849 _ACEOF
31850 if ac_fn_cxx_try_link "$LINENO"; then :
31851   ac_cv_lib_freetype_FT_Init_FreeType=yes
31852 else
31853   ac_cv_lib_freetype_FT_Init_FreeType=no
31854 fi
31855 rm -f core conftest.err conftest.$ac_objext \
31856     conftest$ac_exeext conftest.$ac_ext
31857 LIBS=$ac_check_lib_save_LIBS
31858 fi
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
31860 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
31861 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
31862   FREETYPE2_FOUND=true
31863 else
31864   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31865 fi
31866 
31867             LDFLAGS="$PREV_LDFLAGS"
31868         fi
31869 fi
31870 
31871 
31872 
31873 
31874 
31875 
31876 
31877 
31878 
31879 ###############################################################################
31880 #
31881 # Check for alsa headers and libraries. Used on Linux/GNU systems.


32129         # Put the nasty error message in config.log where it belongs
32130         echo "$ALSA_PKG_ERRORS" >&5
32131 
32132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133 $as_echo "no" >&6; }
32134                 ALSA_FOUND=no
32135 elif test $pkg_failed = untried; then
32136         ALSA_FOUND=no
32137 else
32138         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32139         ALSA_LIBS=$pkg_cv_ALSA_LIBS
32140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32141 $as_echo "yes" >&6; }
32142         ALSA_FOUND=yes
32143 fi
32144         fi
32145         if test "x$ALSA_FOUND" = xno; then
32146             for ac_header in alsa/asoundlib.h
32147 do :
32148   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32149 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
32150   cat >>confdefs.h <<_ACEOF
32151 #define HAVE_ALSA_ASOUNDLIB_H 1
32152 _ACEOF
32153  ALSA_FOUND=yes
32154                               ALSA_CFLAGS=-Iignoreme
32155                               ALSA_LIBS=-lasound
32156                               DEFAULT_ALSA=yes
32157 else
32158   ALSA_FOUND=no
32159 fi
32160 
32161 done
32162 
32163         fi
32164         if test "x$ALSA_FOUND" = xno; then
32165 
32166     # Print a helpful message on how to acquire the necessary build dependency.
32167     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32168     MISSING_DEPENDENCY=alsa
32169     PKGHANDLER_COMMAND=


32188     fi
32189 
32190             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32191         fi
32192 fi
32193 
32194 
32195 
32196 
32197 
32198 
32199 
32200 ###############################################################################
32201 #
32202 # Check for the jpeg library
32203 #
32204 
32205 USE_EXTERNAL_LIBJPEG=true
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32207 $as_echo_n "checking for main in -ljpeg... " >&6; }
32208 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
32209   $as_echo_n "(cached) " >&6
32210 else
32211   ac_check_lib_save_LIBS=$LIBS
32212 LIBS="-ljpeg  $LIBS"
32213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32214 /* end confdefs.h.  */
32215 
32216 
32217 int
32218 main ()
32219 {
32220 return main ();
32221   ;
32222   return 0;
32223 }
32224 _ACEOF
32225 if ac_fn_cxx_try_link "$LINENO"; then :
32226   ac_cv_lib_jpeg_main=yes
32227 else
32228   ac_cv_lib_jpeg_main=no
32229 fi
32230 rm -f core conftest.err conftest.$ac_objext \
32231     conftest$ac_exeext conftest.$ac_ext
32232 LIBS=$ac_check_lib_save_LIBS
32233 fi
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32235 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32236 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
32237   cat >>confdefs.h <<_ACEOF
32238 #define HAVE_LIBJPEG 1
32239 _ACEOF
32240 
32241   LIBS="-ljpeg $LIBS"
32242 
32243 else
32244    USE_EXTERNAL_LIBJPEG=false
32245                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32246 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32247 
32248 fi
32249 
32250 
32251 
32252 ###############################################################################
32253 #
32254 # Check for the gif library
32255 #
32256 


32265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32266 $as_echo_n "checking for which giflib to use... " >&6; }
32267 
32268 # default is bundled
32269 DEFAULT_GIFLIB=bundled
32270 
32271 #
32272 # if user didn't specify, use DEFAULT_GIFLIB
32273 #
32274 if test "x${with_giflib}" = "x"; then
32275     with_giflib=${DEFAULT_GIFLIB}
32276 fi
32277 
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32279 $as_echo "${with_giflib}" >&6; }
32280 
32281 if test "x${with_giflib}" = "xbundled"; then
32282     USE_EXTERNAL_LIBGIF=false
32283 elif test "x${with_giflib}" = "xsystem"; then
32284     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32285 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
32286 
32287 else
32288    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32289 fi
32290 
32291 
32292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32293 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32294 if test "${ac_cv_lib_gif_DGifGetCode+set}" = set; then :
32295   $as_echo_n "(cached) " >&6
32296 else
32297   ac_check_lib_save_LIBS=$LIBS
32298 LIBS="-lgif  $LIBS"
32299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32300 /* end confdefs.h.  */
32301 
32302 /* Override any GCC internal prototype to avoid an error.
32303    Use char because int might match the return type of a GCC
32304    builtin and then its argument prototype would still apply.  */
32305 #ifdef __cplusplus
32306 extern "C"
32307 #endif
32308 char DGifGetCode ();
32309 int
32310 main ()
32311 {
32312 return DGifGetCode ();
32313   ;
32314   return 0;
32315 }
32316 _ACEOF
32317 if ac_fn_cxx_try_link "$LINENO"; then :
32318   ac_cv_lib_gif_DGifGetCode=yes
32319 else
32320   ac_cv_lib_gif_DGifGetCode=no
32321 fi
32322 rm -f core conftest.err conftest.$ac_objext \
32323     conftest$ac_exeext conftest.$ac_ext
32324 LIBS=$ac_check_lib_save_LIBS
32325 fi
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32327 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32328 if test "x$ac_cv_lib_gif_DGifGetCode" = x""yes; then :
32329   cat >>confdefs.h <<_ACEOF
32330 #define HAVE_LIBGIF 1
32331 _ACEOF
32332 
32333   LIBS="-lgif $LIBS"
32334 
32335 else
32336    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32337 fi
32338 
32339 
32340     USE_EXTERNAL_LIBGIF=true
32341 else
32342     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32343 fi
32344 
32345 
32346 ###############################################################################
32347 #
32348 # Check for the zlib library
32349 #
32350 
32351 
32352 # Check whether --with-zlib was given.
32353 if test "${with_zlib+set}" = set; then :
32354   withval=$with_zlib;
32355 fi
32356 
32357 
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32359 $as_echo_n "checking for compress in -lz... " >&6; }
32360 if test "${ac_cv_lib_z_compress+set}" = set; then :
32361   $as_echo_n "(cached) " >&6
32362 else
32363   ac_check_lib_save_LIBS=$LIBS
32364 LIBS="-lz  $LIBS"
32365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366 /* end confdefs.h.  */
32367 
32368 /* Override any GCC internal prototype to avoid an error.
32369    Use char because int might match the return type of a GCC
32370    builtin and then its argument prototype would still apply.  */
32371 #ifdef __cplusplus
32372 extern "C"
32373 #endif
32374 char compress ();
32375 int
32376 main ()
32377 {
32378 return compress ();
32379   ;
32380   return 0;
32381 }
32382 _ACEOF
32383 if ac_fn_cxx_try_link "$LINENO"; then :
32384   ac_cv_lib_z_compress=yes
32385 else
32386   ac_cv_lib_z_compress=no
32387 fi
32388 rm -f core conftest.err conftest.$ac_objext \
32389     conftest$ac_exeext conftest.$ac_ext
32390 LIBS=$ac_check_lib_save_LIBS
32391 fi
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32393 $as_echo "$ac_cv_lib_z_compress" >&6; }
32394 if test "x$ac_cv_lib_z_compress" = x""yes; then :
32395    ZLIB_FOUND=yes
32396 else
32397    ZLIB_FOUND=no
32398 fi
32399 
32400 
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32402 $as_echo_n "checking for which zlib to use... " >&6; }
32403 
32404 DEFAULT_ZLIB=bundled
32405 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32406 #
32407 # On macosx default is system...on others default is
32408 #
32409     DEFAULT_ZLIB=system
32410 fi
32411 
32412 if test "x${ZLIB_FOUND}" != "xyes"; then
32413 #
32414 # If we don't find any system...set default to bundled


32467 if ac_fn_cxx_try_link "$LINENO"; then :
32468   has_altzone=yes
32469 else
32470   has_altzone=no
32471 fi
32472 rm -f core conftest.err conftest.$ac_objext \
32473     conftest$ac_exeext conftest.$ac_ext
32474 if test "x$has_altzone" = xyes; then
32475 
32476 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32477 
32478 fi
32479 
32480 ###############################################################################
32481 #
32482 # Check the maths library
32483 #
32484 
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32486 $as_echo_n "checking for cos in -lm... " >&6; }
32487 if test "${ac_cv_lib_m_cos+set}" = set; then :
32488   $as_echo_n "(cached) " >&6
32489 else
32490   ac_check_lib_save_LIBS=$LIBS
32491 LIBS="-lm  $LIBS"
32492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493 /* end confdefs.h.  */
32494 
32495 /* Override any GCC internal prototype to avoid an error.
32496    Use char because int might match the return type of a GCC
32497    builtin and then its argument prototype would still apply.  */
32498 #ifdef __cplusplus
32499 extern "C"
32500 #endif
32501 char cos ();
32502 int
32503 main ()
32504 {
32505 return cos ();
32506   ;
32507   return 0;
32508 }
32509 _ACEOF
32510 if ac_fn_cxx_try_link "$LINENO"; then :
32511   ac_cv_lib_m_cos=yes
32512 else
32513   ac_cv_lib_m_cos=no
32514 fi
32515 rm -f core conftest.err conftest.$ac_objext \
32516     conftest$ac_exeext conftest.$ac_ext
32517 LIBS=$ac_check_lib_save_LIBS
32518 fi
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32520 $as_echo "$ac_cv_lib_m_cos" >&6; }
32521 if test "x$ac_cv_lib_m_cos" = x""yes; then :
32522   cat >>confdefs.h <<_ACEOF
32523 #define HAVE_LIBM 1
32524 _ACEOF
32525 
32526   LIBS="-lm $LIBS"
32527 
32528 else
32529 
32530                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32531 $as_echo "$as_me: Maths library was not found" >&6;}
32532 
32533 fi
32534 
32535 
32536 
32537 ###############################################################################
32538 #
32539 # Check for libdl.so
32540 
32541 save_LIBS="$LIBS"
32542 LIBS=""
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32544 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32545 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
32546   $as_echo_n "(cached) " >&6
32547 else
32548   ac_check_lib_save_LIBS=$LIBS
32549 LIBS="-ldl  $LIBS"
32550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h.  */
32552 
32553 /* Override any GCC internal prototype to avoid an error.
32554    Use char because int might match the return type of a GCC
32555    builtin and then its argument prototype would still apply.  */
32556 #ifdef __cplusplus
32557 extern "C"
32558 #endif
32559 char dlopen ();
32560 int
32561 main ()
32562 {
32563 return dlopen ();
32564   ;
32565   return 0;
32566 }
32567 _ACEOF
32568 if ac_fn_cxx_try_link "$LINENO"; then :
32569   ac_cv_lib_dl_dlopen=yes
32570 else
32571   ac_cv_lib_dl_dlopen=no
32572 fi
32573 rm -f core conftest.err conftest.$ac_objext \
32574     conftest$ac_exeext conftest.$ac_ext
32575 LIBS=$ac_check_lib_save_LIBS
32576 fi
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32578 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32579 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
32580   cat >>confdefs.h <<_ACEOF
32581 #define HAVE_LIBDL 1
32582 _ACEOF
32583 
32584   LIBS="-ldl $LIBS"
32585 
32586 fi
32587 
32588 LIBDL="$LIBS"
32589 
32590 LIBS="$save_LIBS"
32591 
32592 
32593 
32594 ###############################################################################
32595 #
32596 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32597 # dynamic build is configured on command line.
32598 #
32599 


32805 and LIBFFI_LIBS to avoid the need to call pkg-config.
32806 See the pkg-config man page for more details.
32807 
32808 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32809 See \`config.log' for more details" "$LINENO" 5; }
32810 else
32811         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32812         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32814 $as_echo "yes" >&6; }
32815         :
32816 fi
32817 
32818 fi
32819 
32820 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32821     # Extract the first word of "llvm-config", so it can be a program name with args.
32822 set dummy llvm-config; ac_word=$2
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32824 $as_echo_n "checking for $ac_word... " >&6; }
32825 if test "${ac_cv_prog_LLVM_CONFIG+set}" = set; then :
32826   $as_echo_n "(cached) " >&6
32827 else
32828   if test -n "$LLVM_CONFIG"; then
32829   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32830 else
32831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32832 for as_dir in $PATH
32833 do
32834   IFS=$as_save_IFS
32835   test -z "$as_dir" && as_dir=.
32836     for ac_exec_ext in '' $ac_executable_extensions; do
32837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32838     ac_cv_prog_LLVM_CONFIG="llvm-config"
32839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32840     break 2
32841   fi
32842 done
32843   done
32844 IFS=$as_save_IFS
32845 
32846 fi
32847 fi
32848 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
32849 if test -n "$LLVM_CONFIG"; then
32850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
32851 $as_echo "$LLVM_CONFIG" >&6; }
32852 else
32853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32854 $as_echo "no" >&6; }
32855 fi
32856 
32857 


33027   if test "x$with_num_cores" = x; then
33028     # The number of cores were not specified, try to probe them.
33029 
33030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
33031 $as_echo_n "checking for number of cores... " >&6; }
33032     NUM_CORES=1
33033     FOUND_CORES=no
33034 
33035     if test -f /proc/cpuinfo; then
33036         # Looks like a Linux (or cygwin) system
33037         NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
33038         FOUND_CORES=yes
33039     elif test -x /usr/sbin/psrinfo; then
33040         # Looks like a Solaris system
33041         NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
33042         FOUND_CORES=yes
33043     elif test -x /usr/sbin/system_profiler; then
33044         # Looks like a MacOSX system
33045         NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
33046         FOUND_CORES=yes



33047     elif test -n "$NUMBER_OF_PROCESSORS"; then
33048         # On windows, look in the env
33049         NUM_CORES=$NUMBER_OF_PROCESSORS
33050         FOUND_CORES=yes
33051     fi
33052 
33053     if test "x$FOUND_CORES" = xyes; then
33054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
33055 $as_echo "$NUM_CORES" >&6; }
33056     else
33057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
33058 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
33059         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
33060 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
33061     fi
33062 
33063 
33064   else
33065     NUM_CORES=$with_num_cores
33066   fi


33072 # Check whether --with-memory-size was given.
33073 if test "${with_memory_size+set}" = set; then :
33074   withval=$with_memory_size;
33075 fi
33076 
33077   if test "x$with_memory_size" = x; then
33078     # The memory size was not specified, try to probe it.
33079 
33080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
33081 $as_echo_n "checking for memory size... " >&6; }
33082     # Default to 1024 MB
33083     MEMORY_SIZE=1024
33084     FOUND_MEM=no
33085 
33086     if test -f /proc/meminfo; then
33087         # Looks like a Linux (or cygwin) system
33088         MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
33089         MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
33090         FOUND_MEM=yes
33091     elif test -x /usr/sbin/prtconf; then
33092         # Looks like a Solaris system
33093         MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
33094         FOUND_MEM=yes
33095     elif test -x /usr/sbin/system_profiler; then
33096         # Looks like a MacOSX system
33097         MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
33098         MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
33099         FOUND_MEM=yes
33100     elif test "x$OPENJDK_BUILD_OS" = xwindows; then
33101         # Windows, but without cygwin
33102         MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
33103         MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
33104         FOUND_MEM=yes
33105     fi
33106 
33107     if test "x$FOUND_MEM" = xyes; then
33108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
33109 $as_echo "$MEMORY_SIZE MB" >&6; }
33110     else
33111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
33112 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
33113         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5


33421 
33422 
33423 # Setup use of ccache, if available
33424 
33425     # Check whether --enable-ccache was given.
33426 if test "${enable_ccache+set}" = set; then :
33427   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33428 else
33429   ENABLE_CCACHE=yes
33430 fi
33431 
33432     if test "x$ENABLE_CCACHE" = xyes; then
33433         OLD_PATH="$PATH"
33434         if test "x$TOOLS_DIR" != x; then
33435           PATH=$TOOLS_DIR:$PATH
33436         fi
33437         # Extract the first word of "ccache", so it can be a program name with args.
33438 set dummy ccache; ac_word=$2
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33440 $as_echo_n "checking for $ac_word... " >&6; }
33441 if test "${ac_cv_path_CCACHE+set}" = set; then :
33442   $as_echo_n "(cached) " >&6
33443 else
33444   case $CCACHE in
33445   [\\/]* | ?:[\\/]*)
33446   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33447   ;;
33448   *)
33449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33450 for as_dir in $PATH
33451 do
33452   IFS=$as_save_IFS
33453   test -z "$as_dir" && as_dir=.
33454     for ac_exec_ext in '' $ac_executable_extensions; do
33455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33456     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33458     break 2
33459   fi
33460 done
33461   done
33462 IFS=$as_save_IFS
33463 
33464   ;;
33465 esac
33466 fi
33467 CCACHE=$ac_cv_path_CCACHE
33468 if test -n "$CCACHE"; then
33469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
33470 $as_echo "$CCACHE" >&6; }
33471 else
33472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33473 $as_echo "no" >&6; }
33474 fi
33475 


33683         "s/'/'\\\\''/g;
33684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33685       ;; #(
33686     *)
33687       # `set' quotes correctly as required by POSIX, so do not add quotes.
33688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33689       ;;
33690     esac |
33691     sort
33692 ) |
33693   sed '
33694      /^ac_cv_env_/b end
33695      t clear
33696      :clear
33697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33698      t end
33699      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33700      :end' >>confcache
33701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33702   if test -w "$cache_file"; then
33703     test "x$cache_file" != "x/dev/null" &&
33704       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33705 $as_echo "$as_me: updating cache $cache_file" >&6;}
33706     cat confcache >$cache_file











33707   else
33708     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33709 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33710   fi
33711 fi
33712 rm -f confcache
33713 
33714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33715 # Let make expand exec_prefix.
33716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33717 
33718 DEFS=-DHAVE_CONFIG_H
33719 
33720 ac_libobjs=
33721 ac_ltlibobjs=
33722 U=
33723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33724   # 1. Remove the extension, and $U if already installed.
33725   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33726   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33727   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33728   #    will be set to the directory where LIBOBJS objects are built.
33729   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33730   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33731 done
33732 LIBOBJS=$ac_libobjs
33733 
33734 LTLIBOBJS=$ac_ltlibobjs
33735 
33736 
33737 
33738 : ${CONFIG_STATUS=./config.status}
33739 ac_write_fail=0
33740 ac_clean_files_save=$ac_clean_files
33741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33744 as_write_fail=0
33745 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33746 #! $SHELL
33747 # Generated by $as_me.
33748 # Run this file to recreate the current configuration.
33749 # Compiler output produced by configure, useful for debugging
33750 # configure, is in config.log if it exists.
33751 
33752 debug=false
33753 ac_cs_recheck=false
33754 ac_cs_silent=false
33755 
33756 SHELL=\${CONFIG_SHELL-$SHELL}
33757 export SHELL
33758 _ASEOF


33819 fi
33820 
33821 # The user is always right.
33822 if test "${PATH_SEPARATOR+set}" != set; then
33823   PATH_SEPARATOR=:
33824   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33825     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33826       PATH_SEPARATOR=';'
33827   }
33828 fi
33829 
33830 
33831 # IFS
33832 # We need space, tab and new line, in precisely that order.  Quoting is
33833 # there to prevent editors from complaining about space-tab.
33834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33835 # splitting by setting IFS to empty value.)
33836 IFS=" ""        $as_nl"
33837 
33838 # Find who we are.  Look in the path if we contain no directory separator.

33839 case $0 in #((
33840   *[\\/]* ) as_myself=$0 ;;
33841   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33842 for as_dir in $PATH
33843 do
33844   IFS=$as_save_IFS
33845   test -z "$as_dir" && as_dir=.
33846     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33847   done
33848 IFS=$as_save_IFS
33849 
33850      ;;
33851 esac
33852 # We did not find ourselves, most probably we were run as `sh COMMAND'
33853 # in which case we are not to be found in the path.
33854 if test "x$as_myself" = x; then
33855   as_myself=$0
33856 fi
33857 if test ! -f "$as_myself"; then
33858   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


34014   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34015        ECHO_T=' ';;
34016   esac;;
34017 *)
34018   ECHO_N='-n';;
34019 esac
34020 
34021 rm -f conf$$ conf$$.exe conf$$.file
34022 if test -d conf$$.dir; then
34023   rm -f conf$$.dir/conf$$.file
34024 else
34025   rm -f conf$$.dir
34026   mkdir conf$$.dir 2>/dev/null
34027 fi
34028 if (echo >conf$$.file) 2>/dev/null; then
34029   if ln -s conf$$.file conf$$ 2>/dev/null; then
34030     as_ln_s='ln -s'
34031     # ... but there are two gotchas:
34032     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34033     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34034     # In both cases, we have to default to `cp -p'.
34035     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34036       as_ln_s='cp -p'
34037   elif ln conf$$.file conf$$ 2>/dev/null; then
34038     as_ln_s=ln
34039   else
34040     as_ln_s='cp -p'
34041   fi
34042 else
34043   as_ln_s='cp -p'
34044 fi
34045 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34046 rmdir conf$$.dir 2>/dev/null
34047 
34048 
34049 # as_fn_mkdir_p
34050 # -------------
34051 # Create "$as_dir" as a directory, including parents if necessary.
34052 as_fn_mkdir_p ()
34053 {
34054 
34055   case $as_dir in #(
34056   -*) as_dir=./$as_dir;;
34057   esac
34058   test -d "$as_dir" || eval $as_mkdir_p || {
34059     as_dirs=
34060     while :; do
34061       case $as_dir in #(
34062       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34063       *) as_qdir=$as_dir;;


34083           }
34084           /^X\(\/\).*/{
34085             s//\1/
34086             q
34087           }
34088           s/.*/./; q'`
34089       test -d "$as_dir" && break
34090     done
34091     test -z "$as_dirs" || eval "mkdir $as_dirs"
34092   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34093 
34094 
34095 } # as_fn_mkdir_p
34096 if mkdir -p . 2>/dev/null; then
34097   as_mkdir_p='mkdir -p "$as_dir"'
34098 else
34099   test -d ./-p && rmdir ./-p
34100   as_mkdir_p=false
34101 fi
34102 
34103 if test -x / >/dev/null 2>&1; then
34104   as_test_x='test -x'
34105 else
34106   if ls -dL / >/dev/null 2>&1; then
34107     as_ls_L_option=L
34108   else
34109     as_ls_L_option=
34110   fi
34111   as_test_x='
34112     eval sh -c '\''
34113       if test -d "$1"; then
34114         test -d "$1/.";
34115       else
34116         case $1 in #(
34117         -*)set "./$1";;
34118         esac;
34119         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34120         ???[sx]*):;;*)false;;esac;fi
34121     '\'' sh
34122   '
34123 fi
34124 as_executable_p=$as_test_x
34125 
34126 # Sed expression to map a string onto a valid CPP name.
34127 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34128 
34129 # Sed expression to map a string onto a valid variable name.
34130 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34131 
34132 
34133 exec 6>&1
34134 ## ----------------------------------- ##
34135 ## Main body of $CONFIG_STATUS script. ##
34136 ## ----------------------------------- ##
34137 _ASEOF
34138 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34139 
34140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34141 # Save the log message, to keep $0 and so on meaningful, and to
34142 # report actual input values of CONFIG_FILES etc. instead of their
34143 # values after options handling.
34144 ac_log="
34145 This file was extended by OpenJDK $as_me jdk8, which was
34146 generated by GNU Autoconf 2.67.  Invocation command line was
34147 
34148   CONFIG_FILES    = $CONFIG_FILES
34149   CONFIG_HEADERS  = $CONFIG_HEADERS
34150   CONFIG_LINKS    = $CONFIG_LINKS
34151   CONFIG_COMMANDS = $CONFIG_COMMANDS
34152   $ $0 $@
34153 
34154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34155 "
34156 
34157 _ACEOF
34158 
34159 case $ac_config_files in *"
34160 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34161 esac
34162 
34163 case $ac_config_headers in *"
34164 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34165 esac
34166 


34189       --recheck    update $as_me by reconfiguring in the same conditions
34190       --file=FILE[:TEMPLATE]
34191                    instantiate the configuration file FILE
34192       --header=FILE[:TEMPLATE]
34193                    instantiate the configuration header FILE
34194 
34195 Configuration files:
34196 $config_files
34197 
34198 Configuration headers:
34199 $config_headers
34200 
34201 Report bugs to <build-dev@openjdk.java.net>.
34202 OpenJDK home page: <http://openjdk.java.net>."
34203 
34204 _ACEOF
34205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34206 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34207 ac_cs_version="\\
34208 OpenJDK config.status jdk8
34209 configured by $0, generated by GNU Autoconf 2.67,
34210   with options \\"\$ac_cs_config\\"
34211 
34212 Copyright (C) 2010 Free Software Foundation, Inc.
34213 This config.status script is free software; the Free Software Foundation
34214 gives unlimited permission to copy, distribute and modify it."
34215 
34216 ac_pwd='$ac_pwd'
34217 srcdir='$srcdir'
34218 AWK='$AWK'
34219 test -n "\$AWK" || AWK=awk
34220 _ACEOF
34221 
34222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34223 # The default lists apply if the user does not specify any file.
34224 ac_need_defaults=:
34225 while test $# != 0
34226 do
34227   case $1 in
34228   --*=?*)
34229     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34230     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34231     ac_shift=:
34232     ;;


34281   -*) as_fn_error $? "unrecognized option: \`$1'
34282 Try \`$0 --help' for more information." ;;
34283 
34284   *) as_fn_append ac_config_targets " $1"
34285      ac_need_defaults=false ;;
34286 
34287   esac
34288   shift
34289 done
34290 
34291 ac_configure_extra_args=
34292 
34293 if $ac_cs_silent; then
34294   exec 6>/dev/null
34295   ac_configure_extra_args="$ac_configure_extra_args --silent"
34296 fi
34297 
34298 _ACEOF
34299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34300 if \$ac_cs_recheck; then
34301   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34302   shift
34303   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34304   CONFIG_SHELL='$SHELL'
34305   export CONFIG_SHELL
34306   exec "\$@"
34307 fi
34308 
34309 _ACEOF
34310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34311 exec 5>>config.log
34312 {
34313   echo
34314   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34315 ## Running $as_me. ##
34316 _ASBOX
34317   $as_echo "$ac_log"
34318 } >&5
34319 
34320 _ACEOF
34321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1


34340 done
34341 
34342 
34343 # If the user did not use the arguments to specify the items to instantiate,
34344 # then the envvar interface is used.  Set only those that are not.
34345 # We use the long form for the default assignment because of an extremely
34346 # bizarre bug on SunOS 4.1.3.
34347 if $ac_need_defaults; then
34348   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34349   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34350 fi
34351 
34352 # Have a temporary directory for convenience.  Make it in the build tree
34353 # simply because there is no reason against having it here, and in addition,
34354 # creating and moving files from /tmp can sometimes cause problems.
34355 # Hook for its removal unless debugging.
34356 # Note that there is a small window in which the directory will not be cleaned:
34357 # after its creation but before its name has been assigned to `$tmp'.
34358 $debug ||
34359 {
34360   tmp=
34361   trap 'exit_status=$?
34362   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status

34363 ' 0
34364   trap 'as_fn_exit 1' 1 2 13 15
34365 }
34366 # Create a (secure) tmp directory for tmp files.
34367 
34368 {
34369   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34370   test -n "$tmp" && test -d "$tmp"
34371 }  ||
34372 {
34373   tmp=./conf$$-$RANDOM
34374   (umask 077 && mkdir "$tmp")
34375 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5

34376 
34377 # Set up the scripts for CONFIG_FILES section.
34378 # No need to generate them if there are no CONFIG_FILES.
34379 # This happens for instance with `./config.status config.h'.
34380 if test -n "$CONFIG_FILES"; then
34381 
34382 
34383 ac_cr=`echo X | tr X '\015'`
34384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34385 # But we know of no other shell where ac_cr would be empty at this
34386 # point, so we can use a bashism as a fallback.
34387 if test "x$ac_cr" = x; then
34388   eval ac_cr=\$\'\\r\'
34389 fi
34390 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34392   ac_cs_awk_cr='\\r'
34393 else
34394   ac_cs_awk_cr=$ac_cr
34395 fi
34396 
34397 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34398 _ACEOF
34399 
34400 
34401 {
34402   echo "cat >conf$$subs.awk <<_ACEOF" &&
34403   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34404   echo "_ACEOF"
34405 } >conf$$subs.sh ||
34406   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34408 ac_delim='%!_!# '
34409 for ac_last_try in false false false false false :; do
34410   . ./conf$$subs.sh ||
34411     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34412 
34413   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34414   if test $ac_delim_n = $ac_delim_num; then
34415     break
34416   elif $ac_last_try; then
34417     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34418   else
34419     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34420   fi
34421 done
34422 rm -f conf$$subs.sh
34423 
34424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34425 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34426 _ACEOF
34427 sed -n '
34428 h
34429 s/^/S["/; s/!.*/"]=/
34430 p
34431 g
34432 s/^[^!]*!//
34433 :repl
34434 t repl
34435 s/'"$ac_delim"'$//
34436 t delim
34437 :nl
34438 h
34439 s/\(.\{148\}\)..*/\1/
34440 t more1
34441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34442 p
34443 n
34444 b repl
34445 :more1


34453 s/\(.\{148\}\)..*/\1/
34454 t more2
34455 s/["\\]/\\&/g; s/^/"/; s/$/"/
34456 p
34457 b
34458 :more2
34459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34460 p
34461 g
34462 s/.\{148\}//
34463 t delim
34464 ' <conf$$subs.awk | sed '
34465 /^[^""]/{
34466   N
34467   s/\n//
34468 }
34469 ' >>$CONFIG_STATUS || ac_write_fail=1
34470 rm -f conf$$subs.awk
34471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34472 _ACAWK
34473 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34474   for (key in S) S_is_set[key] = 1
34475   FS = ""
34476 
34477 }
34478 {
34479   line = $ 0
34480   nfields = split(line, field, "@")
34481   substed = 0
34482   len = length(field[1])
34483   for (i = 2; i < nfields; i++) {
34484     key = field[i]
34485     keylen = length(key)
34486     if (S_is_set[key]) {
34487       value = S[key]
34488       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34489       len += length(value) + length(field[++i])
34490       substed = 1
34491     } else
34492       len += 1 + keylen
34493   }
34494 
34495   print line
34496 }
34497 
34498 _ACAWK
34499 _ACEOF
34500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34502   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34503 else
34504   cat
34505 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34506   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34507 _ACEOF
34508 
34509 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34510 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34511 # trailing colons and then remove the whole line if VPATH becomes empty
34512 # (actually we leave an empty line to preserve line numbers).
34513 if test "x$srcdir" = x.; then
34514   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34515 h
34516 s///
34517 s/^/:/
34518 s/[      ]*$/:/
34519 s/:\$(srcdir):/:/g
34520 s/:\${srcdir}:/:/g
34521 s/:@srcdir@:/:/g
34522 s/^:*//
34523 s/:*$//
34524 x
34525 s/\(=[   ]*\).*/\1/
34526 G
34527 s/\n//
34528 s/^[^=]*=[       ]*$//
34529 }'
34530 fi
34531 
34532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34533 fi # test -n "$CONFIG_FILES"
34534 
34535 # Set up the scripts for CONFIG_HEADERS section.
34536 # No need to generate them if there are no CONFIG_HEADERS.
34537 # This happens for instance with `./config.status Makefile'.
34538 if test -n "$CONFIG_HEADERS"; then
34539 cat >"$tmp/defines.awk" <<\_ACAWK ||
34540 BEGIN {
34541 _ACEOF
34542 
34543 # Transform confdefs.h into an awk script `defines.awk', embedded as
34544 # here-document in config.status, that substitutes the proper values into
34545 # config.h.in to produce config.h.
34546 
34547 # Create a delimiter string that does not exist in confdefs.h, to ease
34548 # handling of long lines.
34549 ac_delim='%!_!# '
34550 for ac_last_try in false false :; do
34551   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34552   if test -z "$ac_t"; then
34553     break
34554   elif $ac_last_try; then
34555     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34556   else
34557     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34558   fi
34559 done
34560 
34561 # For the awk script, D is an array of macro values keyed by name,
34562 # likewise P contains macro parameters if any.  Preserve backslash
34563 # newline sequences.
34564 
34565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34566 sed -n '
34567 s/.\{148\}/&'"$ac_delim"'/g
34568 t rset
34569 :rset
34570 s/^[     ]*#[    ]*define[       ][      ]*/ /
34571 t def
34572 d


34652   :[FHL]*:*);;
34653   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34654   :[FH]-) ac_tag=-:-;;
34655   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34656   esac
34657   ac_save_IFS=$IFS
34658   IFS=:
34659   set x $ac_tag
34660   IFS=$ac_save_IFS
34661   shift
34662   ac_file=$1
34663   shift
34664 
34665   case $ac_mode in
34666   :L) ac_source=$1;;
34667   :[FH])
34668     ac_file_inputs=
34669     for ac_f
34670     do
34671       case $ac_f in
34672       -) ac_f="$tmp/stdin";;
34673       *) # Look for the file first in the build tree, then in the source tree
34674          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34675          # because $ac_f cannot contain `:'.
34676          test -f "$ac_f" ||
34677            case $ac_f in
34678            [\\/$]*) false;;
34679            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34680            esac ||
34681            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34682       esac
34683       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34684       as_fn_append ac_file_inputs " '$ac_f'"
34685     done
34686 
34687     # Let's still pretend it is `configure' which instantiates (i.e., don't
34688     # use $as_me), people would be surprised to read:
34689     #    /* config.h.  Generated by config.status.  */
34690     configure_input='Generated from '`
34691           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34692         `' by configure.'
34693     if test x"$ac_file" != x-; then
34694       configure_input="$ac_file.  $configure_input"
34695       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34696 $as_echo "$as_me: creating $ac_file" >&6;}
34697     fi
34698     # Neutralize special characters interpreted by sed in replacement strings.
34699     case $configure_input in #(
34700     *\&* | *\|* | *\\* )
34701        ac_sed_conf_input=`$as_echo "$configure_input" |
34702        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34703     *) ac_sed_conf_input=$configure_input;;
34704     esac
34705 
34706     case $ac_tag in
34707     *:-:* | *:-) cat >"$tmp/stdin" \
34708       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34709     esac
34710     ;;
34711   esac
34712 
34713   ac_dir=`$as_dirname -- "$ac_file" ||
34714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34715          X"$ac_file" : 'X\(//\)[^/]' \| \
34716          X"$ac_file" : 'X\(//\)$' \| \
34717          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34718 $as_echo X"$ac_file" |
34719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34720             s//\1/
34721             q
34722           }
34723           /^X\(\/\/\)[^/].*/{
34724             s//\1/
34725             q
34726           }
34727           /^X\(\/\/\)$/{


34813 # FIXME: do we really want to maintain this feature?
34814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34815 ac_sed_extra="$ac_vpsub
34816 $extrasub
34817 _ACEOF
34818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34819 :t
34820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34821 s|@configure_input@|$ac_sed_conf_input|;t t
34822 s&@top_builddir@&$ac_top_builddir_sub&;t t
34823 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34824 s&@srcdir@&$ac_srcdir&;t t
34825 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34826 s&@top_srcdir@&$ac_top_srcdir&;t t
34827 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34828 s&@builddir@&$ac_builddir&;t t
34829 s&@abs_builddir@&$ac_abs_builddir&;t t
34830 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34831 $ac_datarootdir_hack
34832 "
34833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34834   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34835 
34836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34837   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34838   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&

34839   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34840 which seems to be undefined.  Please make sure it is defined" >&5
34841 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34842 which seems to be undefined.  Please make sure it is defined" >&2;}
34843 
34844   rm -f "$tmp/stdin"
34845   case $ac_file in
34846   -) cat "$tmp/out" && rm -f "$tmp/out";;
34847   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34848   esac \
34849   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34850  ;;
34851   :H)
34852   #
34853   # CONFIG_HEADER
34854   #
34855   if test x"$ac_file" != x-; then
34856     {
34857       $as_echo "/* $configure_input  */" \
34858       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34859     } >"$tmp/config.h" \
34860       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34861     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34862       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34863 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34864     else
34865       rm -f "$ac_file"
34866       mv "$tmp/config.h" "$ac_file" \
34867         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34868     fi
34869   else
34870     $as_echo "/* $configure_input  */" \
34871       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34872       || as_fn_error $? "could not create -" "$LINENO" 5
34873   fi
34874  ;;
34875 
34876 
34877   esac
34878 
34879 done # for ac_tag
34880 
34881 
34882 as_fn_exit 0
34883 _ACEOF
34884 ac_clean_files=$ac_clean_files_save
34885 
34886 test $ac_write_fail = 0 ||
34887   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34888 
34889 
34890 # configure is writing to config.log, and then calls config.status.
34891 # config.status does its own redirection, appending to config.log.


   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.


   9 #
  10 #
  11 # This configure script is free software; the Free Software Foundation
  12 # gives unlimited permission to copy, distribute and modify it.
  13 ## -------------------- ##
  14 ## M4sh Initialization. ##
  15 ## -------------------- ##
  16 
  17 # Be more Bourne compatible
  18 DUALCASE=1; export DUALCASE # for MKS sh
  19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20   emulate sh
  21   NULLCMD=:
  22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23   # is contrary to our usage.  Disable this feature.
  24   alias -g '${1+"$@"}'='"$@"'
  25   setopt NO_GLOB_SUBST
  26 else
  27   case `(set -o) 2>/dev/null` in #(
  28   *posix*) :


  72 fi
  73 
  74 # The user is always right.
  75 if test "${PATH_SEPARATOR+set}" != set; then
  76   PATH_SEPARATOR=:
  77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79       PATH_SEPARATOR=';'
  80   }
  81 fi
  82 
  83 
  84 # IFS
  85 # We need space, tab and new line, in precisely that order.  Quoting is
  86 # there to prevent editors from complaining about space-tab.
  87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88 # splitting by setting IFS to empty value.)
  89 IFS=" ""        $as_nl"
  90 
  91 # Find who we are.  Look in the path if we contain no directory separator.
  92 as_myself=
  93 case $0 in #((
  94   *[\\/]* ) as_myself=$0 ;;
  95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96 for as_dir in $PATH
  97 do
  98   IFS=$as_save_IFS
  99   test -z "$as_dir" && as_dir=.
 100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 101   done
 102 IFS=$as_save_IFS
 103 
 104      ;;
 105 esac
 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
 107 # in which case we are not to be found in the path.
 108 if test "x$as_myself" = x; then
 109   as_myself=$0
 110 fi
 111 if test ! -f "$as_myself"; then
 112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 118 # suppresses any "Segmentation fault" message there.  '((' could
 119 # trigger a bug in pdksh 5.2.14.
 120 for as_var in BASH_ENV ENV MAIL MAILPATH
 121 do eval test x\${$as_var+set} = xset \
 122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 123 done
 124 PS1='$ '
 125 PS2='> '
 126 PS4='+ '
 127 
 128 # NLS nuisances.
 129 LC_ALL=C
 130 export LC_ALL
 131 LANGUAGE=C
 132 export LANGUAGE
 133 
 134 # CDPATH.
 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 136 
 137 # Use a proper internal environment variable to ensure we don't fall
 138   # into an infinite loop, continuously re-executing ourselves.
 139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 140     _as_can_reexec=no; export _as_can_reexec;
 141     # We cannot yet assume a decent shell, so we have to provide a
 142 # neutralization value for shells without unset; and this also
 143 # works around shells that cannot unset nonexistent variables.
 144 # Preserve -v and -x to the replacement shell.
 145 BASH_ENV=/dev/null
 146 ENV=/dev/null
 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 148 case $- in # ((((
 149   *v*x* | *x*v* ) as_opts=-vx ;;
 150   *v* ) as_opts=-v ;;
 151   *x* ) as_opts=-x ;;
 152   * ) as_opts= ;;
 153 esac
 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 155 # Admittedly, this is quite paranoid, since all the known shells bail
 156 # out after a failed `exec'.
 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 158 as_fn_exit 255
 159   fi
 160   # We don't want this to propagate to other subprocesses.
 161           { _as_can_reexec=; unset _as_can_reexec;}
 162 if test "x$CONFIG_SHELL" = x; then
 163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 164   emulate sh
 165   NULLCMD=:
 166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 167   # is contrary to our usage.  Disable this feature.
 168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 169   setopt NO_GLOB_SUBST
 170 else
 171   case \`(set -o) 2>/dev/null\` in #(
 172   *posix*) :
 173     set -o posix ;; #(
 174   *) :
 175      ;;
 176 esac
 177 fi
 178 "
 179   as_required="as_fn_return () { (exit \$1); }
 180 as_fn_success () { as_fn_return 0; }
 181 as_fn_failure () { as_fn_return 1; }
 182 as_fn_ret_success () { return 0; }
 183 as_fn_ret_failure () { return 1; }
 184 
 185 exitcode=0
 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 191 
 192 else
 193   exitcode=1; echo positional parameters were not saved.
 194 fi
 195 test x\$exitcode = x0 || exit 1
 196 test -x / || exit 1"
 197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 201 test \$(( 1 + 1 )) = 2 || exit 1"
 202   if (eval "$as_required") 2>/dev/null; then :
 203   as_have_required=yes
 204 else
 205   as_have_required=no
 206 fi
 207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 208 
 209 else
 210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 211 as_found=false
 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 213 do
 214   IFS=$as_save_IFS
 215   test -z "$as_dir" && as_dir=.
 216   as_found=:


 221              as_shell=$as_dir/$as_base
 222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 224   CONFIG_SHELL=$as_shell as_have_required=yes
 225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 226   break 2
 227 fi
 228 fi
 229            done;;
 230        esac
 231   as_found=false
 232 done
 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 235   CONFIG_SHELL=$SHELL as_have_required=yes
 236 fi; }
 237 IFS=$as_save_IFS
 238 
 239 
 240       if test "x$CONFIG_SHELL" != x; then :






 241   export CONFIG_SHELL
 242              # We cannot yet assume a decent shell, so we have to provide a
 243 # neutralization value for shells without unset; and this also
 244 # works around shells that cannot unset nonexistent variables.
 245 # Preserve -v and -x to the replacement shell.
 246 BASH_ENV=/dev/null
 247 ENV=/dev/null
 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 249 case $- in # ((((
 250   *v*x* | *x*v* ) as_opts=-vx ;;
 251   *v* ) as_opts=-v ;;
 252   *x* ) as_opts=-x ;;
 253   * ) as_opts= ;;
 254 esac
 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 256 # Admittedly, this is quite paranoid, since all the known shells bail
 257 # out after a failed `exec'.
 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 259 exit 255
 260 fi
 261 
 262     if test x$as_have_required = xno; then :
 263   $as_echo "$0: This script requires a shell more modern than all"
 264   $as_echo "$0: the shells that I found on your system."
 265   if test x${ZSH_VERSION+set} = xset ; then
 266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 268   else
 269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 270 $0: build-dev@openjdk.java.net about your system, including
 271 $0: any error possibly output before this message. Then
 272 $0: install a modern shell, or manually run the script
 273 $0: under such a shell if you do have one."
 274   fi
 275   exit 1
 276 fi
 277 fi
 278 fi
 279 SHELL=${CONFIG_SHELL-/bin/sh}


 342           /^X\(\/\/\)[^/].*/{
 343             s//\1/
 344             q
 345           }
 346           /^X\(\/\/\)$/{
 347             s//\1/
 348             q
 349           }
 350           /^X\(\/\).*/{
 351             s//\1/
 352             q
 353           }
 354           s/.*/./; q'`
 355       test -d "$as_dir" && break
 356     done
 357     test -z "$as_dirs" || eval "mkdir $as_dirs"
 358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 359 
 360 
 361 } # as_fn_mkdir_p
 362 
 363 # as_fn_executable_p FILE
 364 # -----------------------
 365 # Test if FILE is an executable regular file.
 366 as_fn_executable_p ()
 367 {
 368   test -f "$1" && test -x "$1"
 369 } # as_fn_executable_p
 370 # as_fn_append VAR VALUE
 371 # ----------------------
 372 # Append the text in VALUE to the end of the definition contained in VAR. Take
 373 # advantage of any shell optimizations that allow amortized linear growth over
 374 # repeated appends, instead of the typical quadratic growth present in naive
 375 # implementations.
 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 377   eval 'as_fn_append ()
 378   {
 379     eval $1+=\$2
 380   }'
 381 else
 382   as_fn_append ()
 383   {
 384     eval $1=\$$1\$2
 385   }
 386 fi # as_fn_append
 387 
 388 # as_fn_arith ARG...
 389 # ------------------


 471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 473   sed -n '
 474     p
 475     /[$]LINENO/=
 476   ' <$as_myself |
 477     sed '
 478       s/[$]LINENO.*/&-/
 479       t lineno
 480       b
 481       :lineno
 482       N
 483       :loop
 484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 485       t loop
 486       s/-\n.*//
 487     ' >$as_me.lineno &&
 488   chmod +x "$as_me.lineno" ||
 489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 490 
 491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 492   # already done that, so ensure we don't try to do so again and fall
 493   # in an infinite loop.  This has already happened in practice.
 494   _as_can_reexec=no; export _as_can_reexec
 495   # Don't try to exec as it changes $[0], causing all sort of problems
 496   # (the dirname of $[0] is not the place where we might find the
 497   # original and so on.  Autoconf is especially sensitive to this).
 498   . "./$as_me.lineno"
 499   # Exit status is that of the last command.
 500   exit
 501 }
 502 
 503 ECHO_C= ECHO_N= ECHO_T=
 504 case `echo -n x` in #(((((
 505 -n*)
 506   case `echo 'xy\c'` in
 507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 508   xy)  ECHO_C='\c';;
 509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 510        ECHO_T=' ';;
 511   esac;;
 512 *)
 513   ECHO_N='-n';;
 514 esac
 515 
 516 rm -f conf$$ conf$$.exe conf$$.file
 517 if test -d conf$$.dir; then
 518   rm -f conf$$.dir/conf$$.file
 519 else
 520   rm -f conf$$.dir
 521   mkdir conf$$.dir 2>/dev/null
 522 fi
 523 if (echo >conf$$.file) 2>/dev/null; then
 524   if ln -s conf$$.file conf$$ 2>/dev/null; then
 525     as_ln_s='ln -s'
 526     # ... but there are two gotchas:
 527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 529     # In both cases, we have to default to `cp -pR'.
 530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 531       as_ln_s='cp -pR'
 532   elif ln conf$$.file conf$$ 2>/dev/null; then
 533     as_ln_s=ln
 534   else
 535     as_ln_s='cp -pR'
 536   fi
 537 else
 538   as_ln_s='cp -pR'
 539 fi
 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 541 rmdir conf$$.dir 2>/dev/null
 542 
 543 if mkdir -p . 2>/dev/null; then
 544   as_mkdir_p='mkdir -p "$as_dir"'
 545 else
 546   test -d ./-p && rmdir ./-p
 547   as_mkdir_p=false
 548 fi
 549 
 550 as_test_x='test -x'
 551 as_executable_p=as_fn_executable_p




















 552 
 553 # Sed expression to map a string onto a valid CPP name.
 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 555 
 556 # Sed expression to map a string onto a valid variable name.
 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 558 
 559 
 560 test -n "$DJDIR" || exec 7<&0 </dev/null
 561 exec 6>&1
 562 
 563 # Name of the host.
 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 565 # so uname gets run too.
 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 567 
 568 #
 569 # Initializations.
 570 #
 571 ac_default_prefix=/usr/local


 666 CFLAGS_DEBUG_SYMBOLS
 667 ZIP_DEBUGINFO_FILES
 668 ENABLE_DEBUG_SYMBOLS
 669 USING_BROKEN_SUSE_LD
 670 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 671 ZERO_ARCHFLAG
 672 LDFLAGS_CXX_JDK
 673 LDFLAGS_JDKEXE_SUFFIX
 674 LDFLAGS_JDKLIB_SUFFIX
 675 LDFLAGS_JDKEXE
 676 LDFLAGS_JDKLIB
 677 CXXFLAGS_JDKEXE
 678 CXXFLAGS_JDKLIB
 679 CFLAGS_JDKEXE
 680 CFLAGS_JDKLIB
 681 MACOSX_VERSION_MIN
 682 PACKAGE_PATH
 683 LEGACY_EXTRA_LDFLAGS
 684 LEGACY_EXTRA_CXXFLAGS
 685 LEGACY_EXTRA_CFLAGS
 686 COMP_MODE_OPTION
 687 CXX_FLAG_DEPS
 688 C_FLAG_DEPS
 689 CXX_O_FLAG_NONE
 690 CXX_O_FLAG_NORM
 691 CXX_O_FLAG_HI
 692 CXX_O_FLAG_HIGHEST
 693 C_O_FLAG_NONE
 694 C_O_FLAG_NORM
 695 C_O_FLAG_HI
 696 C_O_FLAG_HIGHEST
 697 POST_MCS_CMD
 698 POST_STRIP_CMD
 699 SET_EXECUTABLE_ORIGIN
 700 SET_SHARED_LIBRARY_ORIGIN
 701 CXX_FLAG_REORDER
 702 C_FLAG_REORDER
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SHARED_LIBRARY_FLAGS
 706 EXE_SUFFIX


1477 
1478   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1479 Try \`$0 --help' for more information"
1480     ;;
1481 
1482   *=*)
1483     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1484     # Reject names that are not valid shell variable names.
1485     case $ac_envvar in #(
1486       '' | [0-9]* | *[!_$as_cr_alnum]* )
1487       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1488     esac
1489     eval $ac_envvar=\$ac_optarg
1490     export $ac_envvar ;;
1491 
1492   *)
1493     # FIXME: should be removed in autoconf 3.0.
1494     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1495     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1497     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1498     ;;
1499 
1500   esac
1501 done
1502 
1503 if test -n "$ac_prev"; then
1504   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1505   as_fn_error $? "missing argument to $ac_option"
1506 fi
1507 
1508 if test -n "$ac_unrecognized_opts"; then
1509   case $enable_option_checking in
1510     no) ;;
1511     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1512     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1513   esac
1514 fi
1515 
1516 # Check all directory arguments for consistency.
1517 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1528   esac
1529   # Be sure to have absolute directory names.
1530   case $ac_val in
1531     [\\/$]* | ?:[\\/]* )  continue;;
1532     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1533   esac
1534   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1535 done
1536 
1537 # There might be people who depend on the old broken behavior: `$host'
1538 # used to hold the argument of --host etc.
1539 # FIXME: To remove some day.
1540 build=$build_alias
1541 host=$host_alias
1542 target=$target_alias
1543 
1544 # FIXME: To remove some day.
1545 if test "x$host_alias" != x; then
1546   if test "x$build_alias" = x; then
1547     cross_compiling=maybe


1548   elif test "x$build_alias" != "x$host_alias"; then
1549     cross_compiling=yes
1550   fi
1551 fi
1552 
1553 ac_tool_prefix=
1554 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1555 
1556 test "$silent" = yes && exec 6>/dev/null
1557 
1558 
1559 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1560 ac_ls_di=`ls -di .` &&
1561 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1562   as_fn_error $? "working directory cannot be determined"
1563 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1564   as_fn_error $? "pwd does not report name of working directory"
1565 
1566 
1567 # Find the source files, if location was not specified.


1913 
1914     cd "$ac_dir" || { ac_status=$?; continue; }
1915     # Check for guested configure.
1916     if test -f "$ac_srcdir/configure.gnu"; then
1917       echo &&
1918       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1919     elif test -f "$ac_srcdir/configure"; then
1920       echo &&
1921       $SHELL "$ac_srcdir/configure" --help=recursive
1922     else
1923       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1924     fi || ac_status=$?
1925     cd "$ac_pwd" || { ac_status=$?; break; }
1926   done
1927 fi
1928 
1929 test -n "$ac_init_help" && exit $ac_status
1930 if $ac_init_version; then
1931   cat <<\_ACEOF
1932 OpenJDK configure jdk8
1933 generated by GNU Autoconf 2.69
1934 
1935 Copyright (C) 2012 Free Software Foundation, Inc.
1936 This configure script is free software; the Free Software Foundation
1937 gives unlimited permission to copy, distribute and modify it.
1938 _ACEOF
1939   exit
1940 fi
1941 
1942 ## ------------------------ ##
1943 ## Autoconf initialization. ##
1944 ## ------------------------ ##
1945 
1946 # ac_fn_c_try_compile LINENO
1947 # --------------------------
1948 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_compile ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   rm -f conftest.$ac_objext
1953   if { { ac_try="$ac_compile"
1954 case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;


1959 $as_echo "$ac_try_echo"; } >&5
1960   (eval "$ac_compile") 2>conftest.err
1961   ac_status=$?
1962   if test -s conftest.err; then
1963     grep -v '^ *+' conftest.err >conftest.er1
1964     cat conftest.er1 >&5
1965     mv -f conftest.er1 conftest.err
1966   fi
1967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968   test $ac_status = 0; } && {
1969          test -z "$ac_c_werror_flag" ||
1970          test ! -s conftest.err
1971        } && test -s conftest.$ac_objext; then :
1972   ac_retval=0
1973 else
1974   $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976 
1977         ac_retval=1
1978 fi
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980   as_fn_set_status $ac_retval
1981 
1982 } # ac_fn_c_try_compile
1983 
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   rm -f conftest.$ac_objext
1991   if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_compile") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && {
2007          test -z "$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        } && test -s conftest.$ac_objext; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014 
2015         ac_retval=1
2016 fi
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019 
2020 } # ac_fn_cxx_try_compile
2021 
2022 # ac_fn_objc_try_compile LINENO
2023 # -----------------------------
2024 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_objc_try_compile ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   rm -f conftest.$ac_objext
2029   if { { ac_try="$ac_compile"
2030 case "(($ac_try" in
2031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032   *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036   (eval "$ac_compile") 2>conftest.err
2037   ac_status=$?
2038   if test -s conftest.err; then
2039     grep -v '^ *+' conftest.err >conftest.er1
2040     cat conftest.er1 >&5
2041     mv -f conftest.er1 conftest.err
2042   fi
2043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044   test $ac_status = 0; } && {
2045          test -z "$ac_objc_werror_flag" ||
2046          test ! -s conftest.err
2047        } && test -s conftest.$ac_objext; then :
2048   ac_retval=0
2049 else
2050   $as_echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052 
2053         ac_retval=1
2054 fi
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056   as_fn_set_status $ac_retval
2057 
2058 } # ac_fn_objc_try_compile
2059 
2060 # ac_fn_c_try_cpp LINENO
2061 # ----------------------
2062 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2063 ac_fn_c_try_cpp ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   if { { ac_try="$ac_cpp conftest.$ac_ext"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } > conftest.i && {
2082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2083          test ! -s conftest.err
2084        }; then :
2085   ac_retval=0
2086 else
2087   $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089 
2090     ac_retval=1
2091 fi
2092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093   as_fn_set_status $ac_retval
2094 
2095 } # ac_fn_c_try_cpp
2096 
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111   ac_status=$?
2112   if test -s conftest.err; then
2113     grep -v '^ *+' conftest.err >conftest.er1
2114     cat conftest.er1 >&5
2115     mv -f conftest.er1 conftest.err
2116   fi
2117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118   test $ac_status = 0; } > conftest.i && {
2119          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120          test ! -s conftest.err
2121        }; then :
2122   ac_retval=0
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126 
2127     ac_retval=1
2128 fi
2129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130   as_fn_set_status $ac_retval
2131 
2132 } # ac_fn_cxx_try_cpp
2133 
2134 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2135 # ---------------------------------------------------------
2136 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2137 # the include files in INCLUDES and setting the cache variable VAR
2138 # accordingly.
2139 ac_fn_cxx_check_header_mongrel ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   if eval \${$3+:} false; then :
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 else
2152   # Is the header compilable?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2154 $as_echo_n "checking $2 usability... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 #include <$2>
2159 _ACEOF
2160 if ac_fn_cxx_try_compile "$LINENO"; then :
2161   ac_header_compiler=yes
2162 else
2163   ac_header_compiler=no
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2192     ;;
2193   no:yes:* )
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2195 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2197 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2198     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2199 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2201 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204 ( $as_echo "## ----------------------------------------- ##
2205 ## Report this to build-dev@openjdk.java.net ##
2206 ## ----------------------------------------- ##"
2207      ) | sed "s/^/$as_me: WARNING:     /" >&2
2208     ;;
2209 esac
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213   $as_echo_n "(cached) " >&6
2214 else
2215   eval "$3=\$ac_header_compiler"
2216 fi
2217 eval ac_res=\$$3
2218                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 fi
2221   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 
2223 } # ac_fn_cxx_check_header_mongrel
2224 
2225 # ac_fn_cxx_try_run LINENO
2226 # ------------------------
2227 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228 # that executables *can* be run.
2229 ac_fn_cxx_try_run ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   if { { ac_try="$ac_link"
2233 case "(($ac_try" in
2234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235   *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239   (eval "$ac_link") 2>&5
2240   ac_status=$?
2241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243   { { case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249   (eval "$ac_try") 2>&5
2250   ac_status=$?
2251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252   test $ac_status = 0; }; }; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: program exited with status $ac_status" >&5
2256        $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258 
2259        ac_retval=$ac_status
2260 fi
2261   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263   as_fn_set_status $ac_retval
2264 
2265 } # ac_fn_cxx_try_run
2266 
2267 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2268 # ---------------------------------------------------------
2269 # Tests whether HEADER exists and can be compiled using the include files in
2270 # INCLUDES, setting the cache variable VAR accordingly.
2271 ac_fn_cxx_check_header_compile ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285   eval "$3=yes"
2286 else
2287   eval "$3=no"
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 
2296 } # ac_fn_cxx_check_header_compile
2297 
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2302 # computed
2303 ac_fn_cxx_compute_int ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   if test "$cross_compiling" = yes; then
2307     # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2317 
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2323   ac_lo=0 ac_mid=0
2324   while :; do
2325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h.  */
2327 $4
2328 int
2329 main ()
2330 {
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2332 test_array [0] = 0;
2333 return test_array [0];
2334 
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340   ac_hi=$ac_mid; break
2341 else
2342   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343                         if test $ac_lo -le $ac_mid; then
2344                           ac_lo= ac_hi=
2345                           break
2346                         fi
2347                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350   done
2351 else
2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 $4
2355 int
2356 main ()
2357 {
2358 static int test_array [1 - 2 * !(($2) < 0)];
2359 test_array [0] = 0;
2360 return test_array [0];
2361 
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367   ac_hi=-1 ac_mid=-1
2368   while :; do
2369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h.  */
2371 $4
2372 int
2373 main ()
2374 {
2375 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2378 
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384   ac_lo=$ac_mid; break
2385 else
2386   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387                         if test $ac_mid -le $ac_hi; then
2388                           ac_lo= ac_hi=
2389                           break
2390                         fi
2391                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394   done
2395 else
2396   ac_lo= ac_hi=
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2411 test_array [0] = 0;
2412 return test_array [0];
2413 
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419   ac_hi=$ac_mid
2420 else
2421   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425 case $ac_lo in #((
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2427 '') ac_retval=1 ;;
2428 esac
2429   else
2430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h.  */
2432 $4


2456       fprintf (f, "%lu", i);
2457     }
2458   /* Do not output a trailing newline, as this causes \r\n confusion
2459      on some platforms.  */
2460   return ferror (f) || fclose (f) != 0;
2461 
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2468 else
2469   ac_retval=1
2470 fi
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472   conftest.$ac_objext conftest.beam conftest.$ac_ext
2473 rm -f conftest.val
2474 
2475   fi
2476   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477   as_fn_set_status $ac_retval
2478 
2479 } # ac_fn_cxx_compute_int
2480 
2481 # ac_fn_cxx_try_link LINENO
2482 # -------------------------
2483 # Try to link conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_link ()
2485 {
2486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487   rm -f conftest.$ac_objext conftest$ac_exeext
2488   if { { ac_try="$ac_link"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495   (eval "$ac_link") 2>conftest.err
2496   ac_status=$?
2497   if test -s conftest.err; then
2498     grep -v '^ *+' conftest.err >conftest.er1
2499     cat conftest.er1 >&5
2500     mv -f conftest.er1 conftest.err
2501   fi
2502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503   test $ac_status = 0; } && {
2504          test -z "$ac_cxx_werror_flag" ||
2505          test ! -s conftest.err
2506        } && test -s conftest$ac_exeext && {
2507          test "$cross_compiling" = yes ||
2508          test -x conftest$ac_exeext
2509        }; then :
2510   ac_retval=0
2511 else
2512   $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514 
2515         ac_retval=1
2516 fi
2517   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2518   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2519   # interfere with the next link command; also delete a directory that is
2520   # left behind by Apple's compiler.  We do this before executing the actions.
2521   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523   as_fn_set_status $ac_retval
2524 
2525 } # ac_fn_cxx_try_link
2526 
2527 # ac_fn_cxx_check_func LINENO FUNC VAR
2528 # ------------------------------------
2529 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2530 ac_fn_cxx_check_func ()
2531 {
2532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if eval \${$3+:} false; then :
2536   $as_echo_n "(cached) " >&6
2537 else
2538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2542 #define $2 innocuous_$2
2543 
2544 /* System header to define __stub macros and hopefully few prototypes,
2545     which can conflict with char $2 (); below.
2546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547     <limits.h> exists even on freestanding compilers.  */
2548 
2549 #ifdef __STDC__
2550 # include <limits.h>
2551 #else
2552 # include <assert.h>
2553 #endif
2554 
2555 #undef $2


2570 
2571 int
2572 main ()
2573 {
2574 return $2 ();
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_cxx_try_link "$LINENO"; then :
2580   eval "$3=yes"
2581 else
2582   eval "$3=no"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext \
2585     conftest$ac_exeext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$3
2588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 
2592 } # ac_fn_cxx_check_func
2593 
2594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2595 # -------------------------------------------------------
2596 # Tests whether HEADER exists and can be compiled using the include files in
2597 # INCLUDES, setting the cache variable VAR accordingly.
2598 ac_fn_c_check_header_compile ()
2599 {
2600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if eval \${$3+:} false; then :
2604   $as_echo_n "(cached) " >&6
2605 else
2606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 #include <$2>
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612   eval "$3=yes"
2613 else
2614   eval "$3=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 eval ac_res=\$$3
2619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 
2623 } # ac_fn_c_check_header_compile
2624 cat >config.log <<_ACEOF
2625 This file contains any messages produced by compilers while
2626 running configure, to aid debugging if configure makes a mistake.
2627 
2628 It was created by OpenJDK $as_me jdk8, which was
2629 generated by GNU Autoconf 2.69.  Invocation command line was
2630 
2631   $ $0 $@
2632 
2633 _ACEOF
2634 exec 5>>config.log
2635 {
2636 cat <<_ASUNAME
2637 ## --------- ##
2638 ## Platform. ##
2639 ## --------- ##
2640 
2641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2646 
2647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2648 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2649 


3809 
3810 # Check if the VS env variables were setup prior to running configure.
3811 # If not, then find vcvarsall.bat and run it automatically, and integrate
3812 # the set env variables into the spec file.
3813 
3814 
3815 
3816 # Setup the DXSDK paths
3817 
3818 
3819 
3820 
3821 
3822 
3823 # This line needs to be here, verbatim, after all includes and the dummy hook
3824 # definitions. It is replaced with custom functionality when building
3825 # custom sources.
3826 #CUSTOM_AUTOCONF_INCLUDE
3827 
3828 # Do not change or remove the following line, it is needed for consistency checks:
3829 DATE_WHEN_GENERATED=1378286756
3830 
3831 ###############################################################################
3832 #
3833 # Initialization / Boot-strapping
3834 #
3835 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3836 # thus it jumps back and forth, each time gaining something needed later on.
3837 #
3838 ###############################################################################
3839 
3840 # Basic initialization that must happen first of all
3841 
3842 # Save the original command line. This is passed to us by the wrapper configure script.
3843 
3844 DATE_WHEN_CONFIGURED=`LANG=C date`
3845 
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3847 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3849 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3850 
3851 
3852 
3853 # Start with tools that do not need have cross compilation support
3854 # and can be expected to be found in the default PATH. These tools are
3855 # used by configure. Nor are these tools expected to be found in the
3856 # devkit from the builddeps server either, since they are
3857 # needed to download the devkit.
3858 
3859 # First are all the simple required tools.
3860 
3861     for ac_prog in basename
3862 do
3863   # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_path_BASENAME+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   case $BASENAME in
3871   [\\/]* | ?:[\\/]*)
3872   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3873   ;;
3874   *)
3875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880     for ac_exec_ext in '' $ac_executable_extensions; do
3881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887   done
3888 IFS=$as_save_IFS
3889 
3890   ;;
3891 esac
3892 fi
3893 BASENAME=$ac_cv_path_BASENAME
3894 if test -n "$BASENAME"; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
3896 $as_echo "$BASENAME" >&6; }
3897 else
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901 


3906 
3907     if test "x$BASENAME" = x; then
3908         if test "xbasename" = x; then
3909           PROG_NAME=basename
3910         else
3911           PROG_NAME=basename
3912         fi
3913         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3914 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3915         as_fn_error $? "Cannot continue" "$LINENO" 5
3916     fi
3917 
3918 
3919 
3920     for ac_prog in bash
3921 do
3922   # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_path_BASH+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   case $BASH in
3930   [\\/]* | ?:[\\/]*)
3931   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3932   ;;
3933   *)
3934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939     for ac_exec_ext in '' $ac_executable_extensions; do
3940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943     break 2
3944   fi
3945 done
3946   done
3947 IFS=$as_save_IFS
3948 
3949   ;;
3950 esac
3951 fi
3952 BASH=$ac_cv_path_BASH
3953 if test -n "$BASH"; then
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
3955 $as_echo "$BASH" >&6; }
3956 else
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960 


3965 
3966     if test "x$BASH" = x; then
3967         if test "xbash" = x; then
3968           PROG_NAME=bash
3969         else
3970           PROG_NAME=bash
3971         fi
3972         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3973 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3974         as_fn_error $? "Cannot continue" "$LINENO" 5
3975     fi
3976 
3977 
3978 
3979     for ac_prog in cat
3980 do
3981   # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_path_CAT+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   case $CAT in
3989   [\\/]* | ?:[\\/]*)
3990   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3991   ;;
3992   *)
3993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998     for ac_exec_ext in '' $ac_executable_extensions; do
3999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002     break 2
4003   fi
4004 done
4005   done
4006 IFS=$as_save_IFS
4007 
4008   ;;
4009 esac
4010 fi
4011 CAT=$ac_cv_path_CAT
4012 if test -n "$CAT"; then
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4014 $as_echo "$CAT" >&6; }
4015 else
4016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019 


4024 
4025     if test "x$CAT" = x; then
4026         if test "xcat" = x; then
4027           PROG_NAME=cat
4028         else
4029           PROG_NAME=cat
4030         fi
4031         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4032 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4033         as_fn_error $? "Cannot continue" "$LINENO" 5
4034     fi
4035 
4036 
4037 
4038     for ac_prog in chmod
4039 do
4040   # Extract the first word of "$ac_prog", so it can be a program name with args.
4041 set dummy $ac_prog; ac_word=$2
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 $as_echo_n "checking for $ac_word... " >&6; }
4044 if ${ac_cv_path_CHMOD+:} false; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   case $CHMOD in
4048   [\\/]* | ?:[\\/]*)
4049   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4050   ;;
4051   *)
4052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057     for ac_exec_ext in '' $ac_executable_extensions; do
4058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064   done
4065 IFS=$as_save_IFS
4066 
4067   ;;
4068 esac
4069 fi
4070 CHMOD=$ac_cv_path_CHMOD
4071 if test -n "$CHMOD"; then
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4073 $as_echo "$CHMOD" >&6; }
4074 else
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4077 fi
4078 


4083 
4084     if test "x$CHMOD" = x; then
4085         if test "xchmod" = x; then
4086           PROG_NAME=chmod
4087         else
4088           PROG_NAME=chmod
4089         fi
4090         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4091 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4092         as_fn_error $? "Cannot continue" "$LINENO" 5
4093     fi
4094 
4095 
4096 
4097     for ac_prog in cmp
4098 do
4099   # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_path_CMP+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   case $CMP in
4107   [\\/]* | ?:[\\/]*)
4108   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4109   ;;
4110   *)
4111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116     for ac_exec_ext in '' $ac_executable_extensions; do
4117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123   done
4124 IFS=$as_save_IFS
4125 
4126   ;;
4127 esac
4128 fi
4129 CMP=$ac_cv_path_CMP
4130 if test -n "$CMP"; then
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4132 $as_echo "$CMP" >&6; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137 


4142 
4143     if test "x$CMP" = x; then
4144         if test "xcmp" = x; then
4145           PROG_NAME=cmp
4146         else
4147           PROG_NAME=cmp
4148         fi
4149         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4150 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4151         as_fn_error $? "Cannot continue" "$LINENO" 5
4152     fi
4153 
4154 
4155 
4156     for ac_prog in comm
4157 do
4158   # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_path_COMM+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   case $COMM in
4166   [\\/]* | ?:[\\/]*)
4167   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4168   ;;
4169   *)
4170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182   done
4183 IFS=$as_save_IFS
4184 
4185   ;;
4186 esac
4187 fi
4188 COMM=$ac_cv_path_COMM
4189 if test -n "$COMM"; then
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
4191 $as_echo "$COMM" >&6; }
4192 else
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196 


4201 
4202     if test "x$COMM" = x; then
4203         if test "xcomm" = x; then
4204           PROG_NAME=comm
4205         else
4206           PROG_NAME=comm
4207         fi
4208         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4209 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4210         as_fn_error $? "Cannot continue" "$LINENO" 5
4211     fi
4212 
4213 
4214 
4215     for ac_prog in cp
4216 do
4217   # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy $ac_prog; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_path_CP+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   case $CP in
4225   [\\/]* | ?:[\\/]*)
4226   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4227   ;;
4228   *)
4229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243 
4244   ;;
4245 esac
4246 fi
4247 CP=$ac_cv_path_CP
4248 if test -n "$CP"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4250 $as_echo "$CP" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255 


4260 
4261     if test "x$CP" = x; then
4262         if test "xcp" = x; then
4263           PROG_NAME=cp
4264         else
4265           PROG_NAME=cp
4266         fi
4267         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4268 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4269         as_fn_error $? "Cannot continue" "$LINENO" 5
4270     fi
4271 
4272 
4273 
4274     for ac_prog in cpio
4275 do
4276   # Extract the first word of "$ac_prog", so it can be a program name with args.
4277 set dummy $ac_prog; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_path_CPIO+:} false; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   case $CPIO in
4284   [\\/]* | ?:[\\/]*)
4285   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4286   ;;
4287   *)
4288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300   done
4301 IFS=$as_save_IFS
4302 
4303   ;;
4304 esac
4305 fi
4306 CPIO=$ac_cv_path_CPIO
4307 if test -n "$CPIO"; then
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
4309 $as_echo "$CPIO" >&6; }
4310 else
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314 


4319 
4320     if test "x$CPIO" = x; then
4321         if test "xcpio" = x; then
4322           PROG_NAME=cpio
4323         else
4324           PROG_NAME=cpio
4325         fi
4326         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4327 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4328         as_fn_error $? "Cannot continue" "$LINENO" 5
4329     fi
4330 
4331 
4332 
4333     for ac_prog in cut
4334 do
4335   # Extract the first word of "$ac_prog", so it can be a program name with args.
4336 set dummy $ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_path_CUT+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   case $CUT in
4343   [\\/]* | ?:[\\/]*)
4344   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4345   ;;
4346   *)
4347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352     for ac_exec_ext in '' $ac_executable_extensions; do
4353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356     break 2
4357   fi
4358 done
4359   done
4360 IFS=$as_save_IFS
4361 
4362   ;;
4363 esac
4364 fi
4365 CUT=$ac_cv_path_CUT
4366 if test -n "$CUT"; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
4368 $as_echo "$CUT" >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373 


4378 
4379     if test "x$CUT" = x; then
4380         if test "xcut" = x; then
4381           PROG_NAME=cut
4382         else
4383           PROG_NAME=cut
4384         fi
4385         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4386 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4387         as_fn_error $? "Cannot continue" "$LINENO" 5
4388     fi
4389 
4390 
4391 
4392     for ac_prog in date
4393 do
4394   # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_DATE+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   case $DATE in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418   done
4419 IFS=$as_save_IFS
4420 
4421   ;;
4422 esac
4423 fi
4424 DATE=$ac_cv_path_DATE
4425 if test -n "$DATE"; then
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
4427 $as_echo "$DATE" >&6; }
4428 else
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432 


4437 
4438     if test "x$DATE" = x; then
4439         if test "xdate" = x; then
4440           PROG_NAME=date
4441         else
4442           PROG_NAME=date
4443         fi
4444         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4445 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4446         as_fn_error $? "Cannot continue" "$LINENO" 5
4447     fi
4448 
4449 
4450 
4451     for ac_prog in gdiff diff
4452 do
4453   # Extract the first word of "$ac_prog", so it can be a program name with args.
4454 set dummy $ac_prog; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_path_DIFF+:} false; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   case $DIFF in
4461   [\\/]* | ?:[\\/]*)
4462   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4463   ;;
4464   *)
4465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470     for ac_exec_ext in '' $ac_executable_extensions; do
4471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477   done
4478 IFS=$as_save_IFS
4479 
4480   ;;
4481 esac
4482 fi
4483 DIFF=$ac_cv_path_DIFF
4484 if test -n "$DIFF"; then
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4486 $as_echo "$DIFF" >&6; }
4487 else
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491 


4496 
4497     if test "x$DIFF" = x; then
4498         if test "xgdiff diff" = x; then
4499           PROG_NAME=diff
4500         else
4501           PROG_NAME=gdiff diff
4502         fi
4503         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4504 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4505         as_fn_error $? "Cannot continue" "$LINENO" 5
4506     fi
4507 
4508 
4509 
4510     for ac_prog in dirname
4511 do
4512   # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if ${ac_cv_path_DIRNAME+:} false; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   case $DIRNAME in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_exec_ext in '' $ac_executable_extensions; do
4530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536   done
4537 IFS=$as_save_IFS
4538 
4539   ;;
4540 esac
4541 fi
4542 DIRNAME=$ac_cv_path_DIRNAME
4543 if test -n "$DIRNAME"; then
4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
4545 $as_echo "$DIRNAME" >&6; }
4546 else
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 fi
4550 


4555 
4556     if test "x$DIRNAME" = x; then
4557         if test "xdirname" = x; then
4558           PROG_NAME=dirname
4559         else
4560           PROG_NAME=dirname
4561         fi
4562         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4563 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4564         as_fn_error $? "Cannot continue" "$LINENO" 5
4565     fi
4566 
4567 
4568 
4569     for ac_prog in echo
4570 do
4571   # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_path_ECHO+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   case $ECHO in
4579   [\\/]* | ?:[\\/]*)
4580   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4581   ;;
4582   *)
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588     for ac_exec_ext in '' $ac_executable_extensions; do
4589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592     break 2
4593   fi
4594 done
4595   done
4596 IFS=$as_save_IFS
4597 
4598   ;;
4599 esac
4600 fi
4601 ECHO=$ac_cv_path_ECHO
4602 if test -n "$ECHO"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4604 $as_echo "$ECHO" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609 


4614 
4615     if test "x$ECHO" = x; then
4616         if test "xecho" = x; then
4617           PROG_NAME=echo
4618         else
4619           PROG_NAME=echo
4620         fi
4621         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4622 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4623         as_fn_error $? "Cannot continue" "$LINENO" 5
4624     fi
4625 
4626 
4627 
4628     for ac_prog in expr
4629 do
4630   # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_EXPR+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   case $EXPR in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656 
4657   ;;
4658 esac
4659 fi
4660 EXPR=$ac_cv_path_EXPR
4661 if test -n "$EXPR"; then
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
4663 $as_echo "$EXPR" >&6; }
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668 


4673 
4674     if test "x$EXPR" = x; then
4675         if test "xexpr" = x; then
4676           PROG_NAME=expr
4677         else
4678           PROG_NAME=expr
4679         fi
4680         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4681 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4682         as_fn_error $? "Cannot continue" "$LINENO" 5
4683     fi
4684 
4685 
4686 
4687     for ac_prog in file
4688 do
4689   # Extract the first word of "$ac_prog", so it can be a program name with args.
4690 set dummy $ac_prog; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_path_FILE+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   case $FILE in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713   done
4714 IFS=$as_save_IFS
4715 
4716   ;;
4717 esac
4718 fi
4719 FILE=$ac_cv_path_FILE
4720 if test -n "$FILE"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
4722 $as_echo "$FILE" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727 


4732 
4733     if test "x$FILE" = x; then
4734         if test "xfile" = x; then
4735           PROG_NAME=file
4736         else
4737           PROG_NAME=file
4738         fi
4739         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4740 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4741         as_fn_error $? "Cannot continue" "$LINENO" 5
4742     fi
4743 
4744 
4745 
4746     for ac_prog in find
4747 do
4748   # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy $ac_prog; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_path_FIND+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   case $FIND in
4756   [\\/]* | ?:[\\/]*)
4757   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4758   ;;
4759   *)
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774 
4775   ;;
4776 esac
4777 fi
4778 FIND=$ac_cv_path_FIND
4779 if test -n "$FIND"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4781 $as_echo "$FIND" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786 


4791 
4792     if test "x$FIND" = x; then
4793         if test "xfind" = x; then
4794           PROG_NAME=find
4795         else
4796           PROG_NAME=find
4797         fi
4798         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4799 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4800         as_fn_error $? "Cannot continue" "$LINENO" 5
4801     fi
4802 
4803 
4804 
4805     for ac_prog in head
4806 do
4807   # Extract the first word of "$ac_prog", so it can be a program name with args.
4808 set dummy $ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_path_HEAD+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   case $HEAD in
4815   [\\/]* | ?:[\\/]*)
4816   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4817   ;;
4818   *)
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831   done
4832 IFS=$as_save_IFS
4833 
4834   ;;
4835 esac
4836 fi
4837 HEAD=$ac_cv_path_HEAD
4838 if test -n "$HEAD"; then
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4840 $as_echo "$HEAD" >&6; }
4841 else
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845 


4850 
4851     if test "x$HEAD" = x; then
4852         if test "xhead" = x; then
4853           PROG_NAME=head
4854         else
4855           PROG_NAME=head
4856         fi
4857         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4858 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4859         as_fn_error $? "Cannot continue" "$LINENO" 5
4860     fi
4861 
4862 
4863 
4864     for ac_prog in ln
4865 do
4866   # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_path_LN+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   case $LN in
4874   [\\/]* | ?:[\\/]*)
4875   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4876   ;;
4877   *)
4878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892 
4893   ;;
4894 esac
4895 fi
4896 LN=$ac_cv_path_LN
4897 if test -n "$LN"; then
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4899 $as_echo "$LN" >&6; }
4900 else
4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904 


4909 
4910     if test "x$LN" = x; then
4911         if test "xln" = x; then
4912           PROG_NAME=ln
4913         else
4914           PROG_NAME=ln
4915         fi
4916         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4917 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4918         as_fn_error $? "Cannot continue" "$LINENO" 5
4919     fi
4920 
4921 
4922 
4923     for ac_prog in ls
4924 do
4925   # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_path_LS+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   case $LS in
4933   [\\/]* | ?:[\\/]*)
4934   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4935   ;;
4936   *)
4937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942     for ac_exec_ext in '' $ac_executable_extensions; do
4943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949   done
4950 IFS=$as_save_IFS
4951 
4952   ;;
4953 esac
4954 fi
4955 LS=$ac_cv_path_LS
4956 if test -n "$LS"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4958 $as_echo "$LS" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963 


4968 
4969     if test "x$LS" = x; then
4970         if test "xls" = x; then
4971           PROG_NAME=ls
4972         else
4973           PROG_NAME=ls
4974         fi
4975         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4976 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4977         as_fn_error $? "Cannot continue" "$LINENO" 5
4978     fi
4979 
4980 
4981 
4982     for ac_prog in mkdir
4983 do
4984   # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_MKDIR+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $MKDIR in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010 
5011   ;;
5012 esac
5013 fi
5014 MKDIR=$ac_cv_path_MKDIR
5015 if test -n "$MKDIR"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5017 $as_echo "$MKDIR" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022 


5027 
5028     if test "x$MKDIR" = x; then
5029         if test "xmkdir" = x; then
5030           PROG_NAME=mkdir
5031         else
5032           PROG_NAME=mkdir
5033         fi
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5035 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5036         as_fn_error $? "Cannot continue" "$LINENO" 5
5037     fi
5038 
5039 
5040 
5041     for ac_prog in mktemp
5042 do
5043   # Extract the first word of "$ac_prog", so it can be a program name with args.
5044 set dummy $ac_prog; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_path_MKTEMP+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   case $MKTEMP in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_exec_ext in '' $ac_executable_extensions; do
5061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067   done
5068 IFS=$as_save_IFS
5069 
5070   ;;
5071 esac
5072 fi
5073 MKTEMP=$ac_cv_path_MKTEMP
5074 if test -n "$MKTEMP"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
5076 $as_echo "$MKTEMP" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081 


5086 
5087     if test "x$MKTEMP" = x; then
5088         if test "xmktemp" = x; then
5089           PROG_NAME=mktemp
5090         else
5091           PROG_NAME=mktemp
5092         fi
5093         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5094 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5095         as_fn_error $? "Cannot continue" "$LINENO" 5
5096     fi
5097 
5098 
5099 
5100     for ac_prog in mv
5101 do
5102   # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_path_MV+:} false; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   case $MV in
5110   [\\/]* | ?:[\\/]*)
5111   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5112   ;;
5113   *)
5114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119     for ac_exec_ext in '' $ac_executable_extensions; do
5120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126   done
5127 IFS=$as_save_IFS
5128 
5129   ;;
5130 esac
5131 fi
5132 MV=$ac_cv_path_MV
5133 if test -n "$MV"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5135 $as_echo "$MV" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140 


5145 
5146     if test "x$MV" = x; then
5147         if test "xmv" = x; then
5148           PROG_NAME=mv
5149         else
5150           PROG_NAME=mv
5151         fi
5152         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5153 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5154         as_fn_error $? "Cannot continue" "$LINENO" 5
5155     fi
5156 
5157 
5158 
5159     for ac_prog in printf
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_path_PRINTF+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   case $PRINTF in
5169   [\\/]* | ?:[\\/]*)
5170   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5171   ;;
5172   *)
5173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185   done
5186 IFS=$as_save_IFS
5187 
5188   ;;
5189 esac
5190 fi
5191 PRINTF=$ac_cv_path_PRINTF
5192 if test -n "$PRINTF"; then
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
5194 $as_echo "$PRINTF" >&6; }
5195 else
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199 


5204 
5205     if test "x$PRINTF" = x; then
5206         if test "xprintf" = x; then
5207           PROG_NAME=printf
5208         else
5209           PROG_NAME=printf
5210         fi
5211         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5212 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5213         as_fn_error $? "Cannot continue" "$LINENO" 5
5214     fi
5215 
5216 
5217 
5218     for ac_prog in rm
5219 do
5220   # Extract the first word of "$ac_prog", so it can be a program name with args.
5221 set dummy $ac_prog; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_path_RM+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   case $RM in
5228   [\\/]* | ?:[\\/]*)
5229   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5230   ;;
5231   *)
5232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237     for ac_exec_ext in '' $ac_executable_extensions; do
5238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244   done
5245 IFS=$as_save_IFS
5246 
5247   ;;
5248 esac
5249 fi
5250 RM=$ac_cv_path_RM
5251 if test -n "$RM"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5253 $as_echo "$RM" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258 


5263 
5264     if test "x$RM" = x; then
5265         if test "xrm" = x; then
5266           PROG_NAME=rm
5267         else
5268           PROG_NAME=rm
5269         fi
5270         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5271 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5272         as_fn_error $? "Cannot continue" "$LINENO" 5
5273     fi
5274 
5275 
5276 
5277     for ac_prog in sh
5278 do
5279   # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_path_SH+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   case $SH in
5287   [\\/]* | ?:[\\/]*)
5288   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5289   ;;
5290   *)
5291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303   done
5304 IFS=$as_save_IFS
5305 
5306   ;;
5307 esac
5308 fi
5309 SH=$ac_cv_path_SH
5310 if test -n "$SH"; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5312 $as_echo "$SH" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317 


5322 
5323     if test "x$SH" = x; then
5324         if test "xsh" = x; then
5325           PROG_NAME=sh
5326         else
5327           PROG_NAME=sh
5328         fi
5329         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5330 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5331         as_fn_error $? "Cannot continue" "$LINENO" 5
5332     fi
5333 
5334 
5335 
5336     for ac_prog in sort
5337 do
5338   # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_path_SORT+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   case $SORT in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364 
5365   ;;
5366 esac
5367 fi
5368 SORT=$ac_cv_path_SORT
5369 if test -n "$SORT"; then
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5371 $as_echo "$SORT" >&6; }
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376 


5381 
5382     if test "x$SORT" = x; then
5383         if test "xsort" = x; then
5384           PROG_NAME=sort
5385         else
5386           PROG_NAME=sort
5387         fi
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5389 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5390         as_fn_error $? "Cannot continue" "$LINENO" 5
5391     fi
5392 
5393 
5394 
5395     for ac_prog in tail
5396 do
5397   # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy $ac_prog; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_path_TAIL+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   case $TAIL in
5405   [\\/]* | ?:[\\/]*)
5406   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5407   ;;
5408   *)
5409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414     for ac_exec_ext in '' $ac_executable_extensions; do
5415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421   done
5422 IFS=$as_save_IFS
5423 
5424   ;;
5425 esac
5426 fi
5427 TAIL=$ac_cv_path_TAIL
5428 if test -n "$TAIL"; then
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
5430 $as_echo "$TAIL" >&6; }
5431 else
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435 


5440 
5441     if test "x$TAIL" = x; then
5442         if test "xtail" = x; then
5443           PROG_NAME=tail
5444         else
5445           PROG_NAME=tail
5446         fi
5447         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5448 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5449         as_fn_error $? "Cannot continue" "$LINENO" 5
5450     fi
5451 
5452 
5453 
5454     for ac_prog in tar
5455 do
5456   # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_path_TAR+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   case $TAR in
5464   [\\/]* | ?:[\\/]*)
5465   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5466   ;;
5467   *)
5468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480   done
5481 IFS=$as_save_IFS
5482 
5483   ;;
5484 esac
5485 fi
5486 TAR=$ac_cv_path_TAR
5487 if test -n "$TAR"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5489 $as_echo "$TAR" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494 


5499 
5500     if test "x$TAR" = x; then
5501         if test "xtar" = x; then
5502           PROG_NAME=tar
5503         else
5504           PROG_NAME=tar
5505         fi
5506         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5507 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5508         as_fn_error $? "Cannot continue" "$LINENO" 5
5509     fi
5510 
5511 
5512 
5513     for ac_prog in tee
5514 do
5515   # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_path_TEE+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   case $TEE in
5523   [\\/]* | ?:[\\/]*)
5524   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5525   ;;
5526   *)
5527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532     for ac_exec_ext in '' $ac_executable_extensions; do
5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539   done
5540 IFS=$as_save_IFS
5541 
5542   ;;
5543 esac
5544 fi
5545 TEE=$ac_cv_path_TEE
5546 if test -n "$TEE"; then
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
5548 $as_echo "$TEE" >&6; }
5549 else
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553 


5558 
5559     if test "x$TEE" = x; then
5560         if test "xtee" = x; then
5561           PROG_NAME=tee
5562         else
5563           PROG_NAME=tee
5564         fi
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5566 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5567         as_fn_error $? "Cannot continue" "$LINENO" 5
5568     fi
5569 
5570 
5571 
5572     for ac_prog in touch
5573 do
5574   # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_path_TOUCH+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   case $TOUCH in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600 
5601   ;;
5602 esac
5603 fi
5604 TOUCH=$ac_cv_path_TOUCH
5605 if test -n "$TOUCH"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5607 $as_echo "$TOUCH" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612 


5617 
5618     if test "x$TOUCH" = x; then
5619         if test "xtouch" = x; then
5620           PROG_NAME=touch
5621         else
5622           PROG_NAME=touch
5623         fi
5624         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5625 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5626         as_fn_error $? "Cannot continue" "$LINENO" 5
5627     fi
5628 
5629 
5630 
5631     for ac_prog in tr
5632 do
5633   # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_path_TR+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   case $TR in
5641   [\\/]* | ?:[\\/]*)
5642   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5643   ;;
5644   *)
5645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650     for ac_exec_ext in '' $ac_executable_extensions; do
5651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657   done
5658 IFS=$as_save_IFS
5659 
5660   ;;
5661 esac
5662 fi
5663 TR=$ac_cv_path_TR
5664 if test -n "$TR"; then
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
5666 $as_echo "$TR" >&6; }
5667 else
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671 


5676 
5677     if test "x$TR" = x; then
5678         if test "xtr" = x; then
5679           PROG_NAME=tr
5680         else
5681           PROG_NAME=tr
5682         fi
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5684 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5685         as_fn_error $? "Cannot continue" "$LINENO" 5
5686     fi
5687 
5688 
5689 
5690     for ac_prog in uname
5691 do
5692   # Extract the first word of "$ac_prog", so it can be a program name with args.
5693 set dummy $ac_prog; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_path_UNAME+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   case $UNAME in
5700   [\\/]* | ?:[\\/]*)
5701   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5702   ;;
5703   *)
5704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709     for ac_exec_ext in '' $ac_executable_extensions; do
5710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716   done
5717 IFS=$as_save_IFS
5718 
5719   ;;
5720 esac
5721 fi
5722 UNAME=$ac_cv_path_UNAME
5723 if test -n "$UNAME"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
5725 $as_echo "$UNAME" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730 


5735 
5736     if test "x$UNAME" = x; then
5737         if test "xuname" = x; then
5738           PROG_NAME=uname
5739         else
5740           PROG_NAME=uname
5741         fi
5742         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5743 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5744         as_fn_error $? "Cannot continue" "$LINENO" 5
5745     fi
5746 
5747 
5748 
5749     for ac_prog in uniq
5750 do
5751   # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_path_UNIQ+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   case $UNIQ in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777 
5778   ;;
5779 esac
5780 fi
5781 UNIQ=$ac_cv_path_UNIQ
5782 if test -n "$UNIQ"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5784 $as_echo "$UNIQ" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789 


5794 
5795     if test "x$UNIQ" = x; then
5796         if test "xuniq" = x; then
5797           PROG_NAME=uniq
5798         else
5799           PROG_NAME=uniq
5800         fi
5801         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5802 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5803         as_fn_error $? "Cannot continue" "$LINENO" 5
5804     fi
5805 
5806 
5807 
5808     for ac_prog in wc
5809 do
5810   # Extract the first word of "$ac_prog", so it can be a program name with args.
5811 set dummy $ac_prog; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_path_WC+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   case $WC in
5818   [\\/]* | ?:[\\/]*)
5819   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5820   ;;
5821   *)
5822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836 
5837   ;;
5838 esac
5839 fi
5840 WC=$ac_cv_path_WC
5841 if test -n "$WC"; then
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5843 $as_echo "$WC" >&6; }
5844 else
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848 


5853 
5854     if test "x$WC" = x; then
5855         if test "xwc" = x; then
5856           PROG_NAME=wc
5857         else
5858           PROG_NAME=wc
5859         fi
5860         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5861 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5862         as_fn_error $? "Cannot continue" "$LINENO" 5
5863     fi
5864 
5865 
5866 
5867     for ac_prog in which
5868 do
5869   # Extract the first word of "$ac_prog", so it can be a program name with args.
5870 set dummy $ac_prog; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if ${ac_cv_path_WHICH+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   case $WHICH in
5877   [\\/]* | ?:[\\/]*)
5878   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5879   ;;
5880   *)
5881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886     for ac_exec_ext in '' $ac_executable_extensions; do
5887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893   done
5894 IFS=$as_save_IFS
5895 
5896   ;;
5897 esac
5898 fi
5899 WHICH=$ac_cv_path_WHICH
5900 if test -n "$WHICH"; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
5902 $as_echo "$WHICH" >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907 


5912 
5913     if test "x$WHICH" = x; then
5914         if test "xwhich" = x; then
5915           PROG_NAME=which
5916         else
5917           PROG_NAME=which
5918         fi
5919         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5920 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5921         as_fn_error $? "Cannot continue" "$LINENO" 5
5922     fi
5923 
5924 
5925 
5926     for ac_prog in xargs
5927 do
5928   # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_path_XARGS+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   case $XARGS in
5936   [\\/]* | ?:[\\/]*)
5937   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5938   ;;
5939   *)
5940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954 
5955   ;;
5956 esac
5957 fi
5958 XARGS=$ac_cv_path_XARGS
5959 if test -n "$XARGS"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5961 $as_echo "$XARGS" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966 


5972     if test "x$XARGS" = x; then
5973         if test "xxargs" = x; then
5974           PROG_NAME=xargs
5975         else
5976           PROG_NAME=xargs
5977         fi
5978         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5979 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5980         as_fn_error $? "Cannot continue" "$LINENO" 5
5981     fi
5982 
5983 
5984 
5985 # Then required tools that require some special treatment.
5986 for ac_prog in gawk mawk nawk awk
5987 do
5988   # Extract the first word of "$ac_prog", so it can be a program name with args.
5989 set dummy $ac_prog; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if ${ac_cv_prog_AWK+:} false; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test -n "$AWK"; then
5996   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003     for ac_exec_ext in '' $ac_executable_extensions; do
6004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005     ac_cv_prog_AWK="$ac_prog"
6006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010   done
6011 IFS=$as_save_IFS
6012 
6013 fi
6014 fi
6015 AWK=$ac_cv_prog_AWK
6016 if test -n "$AWK"; then
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6018 $as_echo "$AWK" >&6; }
6019 else
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6022 fi
6023 
6024 
6025   test -n "$AWK" && break
6026 done
6027 
6028 
6029     if test "x$AWK" = x; then
6030         if test "x" = x; then
6031           PROG_NAME=awk
6032         else
6033           PROG_NAME=
6034         fi
6035         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6036 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6037         as_fn_error $? "Cannot continue" "$LINENO" 5
6038     fi
6039 
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6041 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6042 if ${ac_cv_path_GREP+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -z "$GREP"; then
6046   ac_path_GREP_found=false
6047   # Loop through the user's path and test for each of PROGNAME-LIST
6048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_prog in grep ggrep; do
6054     for ac_exec_ext in '' $ac_executable_extensions; do
6055       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6056       as_fn_executable_p "$ac_path_GREP" || continue
6057 # Check for GNU ac_path_GREP and select it if it is found.
6058   # Check for GNU $ac_path_GREP
6059 case `"$ac_path_GREP" --version 2>&1` in
6060 *GNU*)
6061   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6062 *)
6063   ac_count=0
6064   $as_echo_n 0123456789 >"conftest.in"
6065   while :
6066   do
6067     cat "conftest.in" "conftest.in" >"conftest.tmp"
6068     mv "conftest.tmp" "conftest.in"
6069     cp "conftest.in" "conftest.nl"
6070     $as_echo 'GREP' >> "conftest.nl"
6071     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073     as_fn_arith $ac_count + 1 && ac_count=$as_val
6074     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6075       # Best one so far, save it but keep looking for a better one
6076       ac_cv_path_GREP="$ac_path_GREP"


6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6099 $as_echo "$ac_cv_path_GREP" >&6; }
6100  GREP="$ac_cv_path_GREP"
6101 
6102 
6103 
6104     if test "x$GREP" = x; then
6105         if test "x" = x; then
6106           PROG_NAME=grep
6107         else
6108           PROG_NAME=
6109         fi
6110         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6111 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6112         as_fn_error $? "Cannot continue" "$LINENO" 5
6113     fi
6114 
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6116 $as_echo_n "checking for egrep... " >&6; }
6117 if ${ac_cv_path_EGREP+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6121    then ac_cv_path_EGREP="$GREP -E"
6122    else
6123      if test -z "$EGREP"; then
6124   ac_path_EGREP_found=false
6125   # Loop through the user's path and test for each of PROGNAME-LIST
6126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131     for ac_prog in egrep; do
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6134       as_fn_executable_p "$ac_path_EGREP" || continue
6135 # Check for GNU ac_path_EGREP and select it if it is found.
6136   # Check for GNU $ac_path_EGREP
6137 case `"$ac_path_EGREP" --version 2>&1` in
6138 *GNU*)
6139   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6140 *)
6141   ac_count=0
6142   $as_echo_n 0123456789 >"conftest.in"
6143   while :
6144   do
6145     cat "conftest.in" "conftest.in" >"conftest.tmp"
6146     mv "conftest.tmp" "conftest.in"
6147     cp "conftest.in" "conftest.nl"
6148     $as_echo 'EGREP' >> "conftest.nl"
6149     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6151     as_fn_arith $ac_count + 1 && ac_count=$as_val
6152     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6153       # Best one so far, save it but keep looking for a better one
6154       ac_cv_path_EGREP="$ac_path_EGREP"


6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6178 $as_echo "$ac_cv_path_EGREP" >&6; }
6179  EGREP="$ac_cv_path_EGREP"
6180 
6181 
6182 
6183     if test "x$EGREP" = x; then
6184         if test "x" = x; then
6185           PROG_NAME=egrep
6186         else
6187           PROG_NAME=
6188         fi
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6190 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6191         as_fn_error $? "Cannot continue" "$LINENO" 5
6192     fi
6193 
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6195 $as_echo_n "checking for fgrep... " >&6; }
6196 if ${ac_cv_path_FGREP+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6200    then ac_cv_path_FGREP="$GREP -F"
6201    else
6202      if test -z "$FGREP"; then
6203   ac_path_FGREP_found=false
6204   # Loop through the user's path and test for each of PROGNAME-LIST
6205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_prog in fgrep; do
6211     for ac_exec_ext in '' $ac_executable_extensions; do
6212       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6213       as_fn_executable_p "$ac_path_FGREP" || continue
6214 # Check for GNU ac_path_FGREP and select it if it is found.
6215   # Check for GNU $ac_path_FGREP
6216 case `"$ac_path_FGREP" --version 2>&1` in
6217 *GNU*)
6218   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6219 *)
6220   ac_count=0
6221   $as_echo_n 0123456789 >"conftest.in"
6222   while :
6223   do
6224     cat "conftest.in" "conftest.in" >"conftest.tmp"
6225     mv "conftest.tmp" "conftest.in"
6226     cp "conftest.in" "conftest.nl"
6227     $as_echo 'FGREP' >> "conftest.nl"
6228     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6230     as_fn_arith $ac_count + 1 && ac_count=$as_val
6231     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6232       # Best one so far, save it but keep looking for a better one
6233       ac_cv_path_FGREP="$ac_path_FGREP"


6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6257 $as_echo "$ac_cv_path_FGREP" >&6; }
6258  FGREP="$ac_cv_path_FGREP"
6259 
6260 
6261 
6262     if test "x$FGREP" = x; then
6263         if test "x" = x; then
6264           PROG_NAME=fgrep
6265         else
6266           PROG_NAME=
6267         fi
6268         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6269 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6270         as_fn_error $? "Cannot continue" "$LINENO" 5
6271     fi
6272 
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6274 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6275 if ${ac_cv_path_SED+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6279      for ac_i in 1 2 3 4 5 6 7; do
6280        ac_script="$ac_script$as_nl$ac_script"
6281      done
6282      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6283      { ac_script=; unset ac_script;}
6284      if test -z "$SED"; then
6285   ac_path_SED_found=false
6286   # Loop through the user's path and test for each of PROGNAME-LIST
6287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292     for ac_prog in sed gsed; do
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6295       as_fn_executable_p "$ac_path_SED" || continue
6296 # Check for GNU ac_path_SED and select it if it is found.
6297   # Check for GNU $ac_path_SED
6298 case `"$ac_path_SED" --version 2>&1` in
6299 *GNU*)
6300   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6301 *)
6302   ac_count=0
6303   $as_echo_n 0123456789 >"conftest.in"
6304   while :
6305   do
6306     cat "conftest.in" "conftest.in" >"conftest.tmp"
6307     mv "conftest.tmp" "conftest.in"
6308     cp "conftest.in" "conftest.nl"
6309     $as_echo '' >> "conftest.nl"
6310     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6312     as_fn_arith $ac_count + 1 && ac_count=$as_val
6313     if test $ac_count -gt ${ac_path_SED_max-0}; then
6314       # Best one so far, save it but keep looking for a better one
6315       ac_cv_path_SED="$ac_path_SED"


6341 
6342 
6343     if test "x$SED" = x; then
6344         if test "x" = x; then
6345           PROG_NAME=sed
6346         else
6347           PROG_NAME=
6348         fi
6349         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6350 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6351         as_fn_error $? "Cannot continue" "$LINENO" 5
6352     fi
6353 
6354 
6355 for ac_prog in nawk gawk awk
6356 do
6357   # Extract the first word of "$ac_prog", so it can be a program name with args.
6358 set dummy $ac_prog; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_path_NAWK+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   case $NAWK in
6365   [\\/]* | ?:[\\/]*)
6366   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6367   ;;
6368   *)
6369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374     for ac_exec_ext in '' $ac_executable_extensions; do
6375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381   done
6382 IFS=$as_save_IFS
6383 
6384   ;;
6385 esac
6386 fi
6387 NAWK=$ac_cv_path_NAWK
6388 if test -n "$NAWK"; then
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
6390 $as_echo "$NAWK" >&6; }
6391 else
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6394 fi
6395 


6405           PROG_NAME=
6406         fi
6407         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6408 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6409         as_fn_error $? "Cannot continue" "$LINENO" 5
6410     fi
6411 
6412 
6413 # Always force rm.
6414 RM="$RM -f"
6415 
6416 # pwd behaves differently on various platforms and some don't support the -L flag.
6417 # Always use the bash builtin pwd to get uniform behavior.
6418 THEPWDCMD=pwd
6419 
6420 # These are not required on all platforms
6421 # Extract the first word of "cygpath", so it can be a program name with args.
6422 set dummy cygpath; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_path_CYGPATH+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   case $CYGPATH in
6429   [\\/]* | ?:[\\/]*)
6430   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6431   ;;
6432   *)
6433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438     for ac_exec_ext in '' $ac_executable_extensions; do
6439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445   done
6446 IFS=$as_save_IFS
6447 
6448   ;;
6449 esac
6450 fi
6451 CYGPATH=$ac_cv_path_CYGPATH
6452 if test -n "$CYGPATH"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6454 $as_echo "$CYGPATH" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459 
6460 
6461 # Extract the first word of "readlink", so it can be a program name with args.
6462 set dummy readlink; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_path_READLINK+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   case $READLINK in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478     for ac_exec_ext in '' $ac_executable_extensions; do
6479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485   done
6486 IFS=$as_save_IFS
6487 
6488   ;;
6489 esac
6490 fi
6491 READLINK=$ac_cv_path_READLINK
6492 if test -n "$READLINK"; then
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6494 $as_echo "$READLINK" >&6; }
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499 
6500 
6501 # Extract the first word of "df", so it can be a program name with args.
6502 set dummy df; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_path_DF+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   case $DF in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527 
6528   ;;
6529 esac
6530 fi
6531 DF=$ac_cv_path_DF
6532 if test -n "$DF"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6534 $as_echo "$DF" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539 
6540 
6541 # Extract the first word of "SetFile", so it can be a program name with args.
6542 set dummy SetFile; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_path_SETFILE+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   case $SETFILE in
6549   [\\/]* | ?:[\\/]*)
6550   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6551   ;;
6552   *)
6553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567 
6568   ;;
6569 esac
6570 fi
6571 SETFILE=$ac_cv_path_SETFILE
6572 if test -n "$SETFILE"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6574 $as_echo "$SETFILE" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579 
6580 
6581 
6582 
6583 # Now we can determine OpenJDK build and target platforms. This is required to
6584 # have early on.
6585 # Make sure we can run config.sub.
6586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6587   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6588 
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6590 $as_echo_n "checking build system type... " >&6; }
6591 if ${ac_cv_build+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   ac_build_alias=$build_alias
6595 test "x$ac_build_alias" = x &&
6596   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6597 test "x$ac_build_alias" = x &&
6598   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6600   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6601 
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6604 $as_echo "$ac_cv_build" >&6; }
6605 case $ac_cv_build in
6606 *-*-*) ;;
6607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6608 esac
6609 build=$ac_cv_build
6610 ac_save_IFS=$IFS; IFS='-'
6611 set x $ac_cv_build
6612 shift
6613 build_cpu=$1
6614 build_vendor=$2
6615 shift; shift
6616 # Remember, the first character of IFS is used to create $*,
6617 # except with old shells:
6618 build_os=$*
6619 IFS=$ac_save_IFS
6620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6621 
6622 
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6624 $as_echo_n "checking host system type... " >&6; }
6625 if ${ac_cv_host+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   if test "x$host_alias" = x; then
6629   ac_cv_host=$ac_cv_build
6630 else
6631   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6632     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6633 fi
6634 
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6637 $as_echo "$ac_cv_host" >&6; }
6638 case $ac_cv_host in
6639 *-*-*) ;;
6640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6641 esac
6642 host=$ac_cv_host
6643 ac_save_IFS=$IFS; IFS='-'
6644 set x $ac_cv_host
6645 shift
6646 host_cpu=$1
6647 host_vendor=$2
6648 shift; shift
6649 # Remember, the first character of IFS is used to create $*,
6650 # except with old shells:
6651 host_os=$*
6652 IFS=$ac_save_IFS
6653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6654 
6655 
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6657 $as_echo_n "checking target system type... " >&6; }
6658 if ${ac_cv_target+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test "x$target_alias" = x; then
6662   ac_cv_target=$ac_cv_host
6663 else
6664   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6666 fi
6667 
6668 fi
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6670 $as_echo "$ac_cv_target" >&6; }
6671 case $ac_cv_target in
6672 *-*-*) ;;
6673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6674 esac
6675 target=$ac_cv_target
6676 ac_save_IFS=$IFS; IFS='-'
6677 set x $ac_cv_target
6678 shift


6728     *darwin*)
6729       VAR_OS=macosx
6730       VAR_OS_API=posix
6731       VAR_OS_ENV=macosx
6732       ;;
6733     *bsd*)
6734       VAR_OS=bsd
6735       VAR_OS_API=posix
6736       VAR_OS_ENV=bsd
6737       ;;
6738     *cygwin*)
6739       VAR_OS=windows
6740       VAR_OS_API=winapi
6741       VAR_OS_ENV=windows.cygwin
6742       ;;
6743     *mingw*)
6744       VAR_OS=windows
6745       VAR_OS_API=winapi
6746       VAR_OS_ENV=windows.msys
6747       ;;
6748     *aix*)
6749       VAR_OS=aix
6750       VAR_OS_API=posix
6751       VAR_OS_ENV=aix
6752       ;;
6753     *)
6754       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
6755       ;;
6756   esac
6757 
6758 
6759   # First argument is the cpu name from the trip/quad
6760   case "$build_cpu" in
6761     x86_64)
6762       VAR_CPU=x86_64
6763       VAR_CPU_ARCH=x86
6764       VAR_CPU_BITS=64
6765       VAR_CPU_ENDIAN=little
6766       ;;
6767     i?86)
6768       VAR_CPU=x86
6769       VAR_CPU_ARCH=x86
6770       VAR_CPU_BITS=32
6771       VAR_CPU_ENDIAN=little
6772       ;;
6773     arm*)
6774       VAR_CPU=arm
6775       VAR_CPU_ARCH=arm
6776       VAR_CPU_BITS=32
6777       VAR_CPU_ENDIAN=little
6778       ;;
6779     powerpc)
6780       VAR_CPU=ppc
6781       VAR_CPU_ARCH=ppc
6782       VAR_CPU_BITS=32
6783       VAR_CPU_ENDIAN=big
6784        ;;
6785     powerpc64)
6786       VAR_CPU=ppc64
6787       VAR_CPU_ARCH=ppc
6788       VAR_CPU_BITS=64
6789       VAR_CPU_ENDIAN=big
6790        ;;
6791     rs6000)
6792       VAR_CPU=ppc64
6793       VAR_CPU_ARCH=ppc
6794       VAR_CPU_BITS=64
6795       VAR_CPU_ENDIAN=big
6796        ;;
6797     sparc)
6798       VAR_CPU=sparc
6799       VAR_CPU_ARCH=sparc
6800       VAR_CPU_BITS=32
6801       VAR_CPU_ENDIAN=big
6802        ;;
6803     sparcv9)
6804       VAR_CPU=sparcv9
6805       VAR_CPU_ARCH=sparc
6806       VAR_CPU_BITS=64
6807       VAR_CPU_ENDIAN=big
6808        ;;
6809     *)
6810       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
6811       ;;
6812   esac
6813 
6814     # ..and setup our own variables. (Do this explicitely to facilitate searching)
6815     OPENJDK_BUILD_OS="$VAR_OS"
6816     OPENJDK_BUILD_OS_API="$VAR_OS_API"


6847     *darwin*)
6848       VAR_OS=macosx
6849       VAR_OS_API=posix
6850       VAR_OS_ENV=macosx
6851       ;;
6852     *bsd*)
6853       VAR_OS=bsd
6854       VAR_OS_API=posix
6855       VAR_OS_ENV=bsd
6856       ;;
6857     *cygwin*)
6858       VAR_OS=windows
6859       VAR_OS_API=winapi
6860       VAR_OS_ENV=windows.cygwin
6861       ;;
6862     *mingw*)
6863       VAR_OS=windows
6864       VAR_OS_API=winapi
6865       VAR_OS_ENV=windows.msys
6866       ;;
6867     *aix*)
6868       VAR_OS=aix
6869       VAR_OS_API=posix
6870       VAR_OS_ENV=aix
6871       ;;
6872     *)
6873       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
6874       ;;
6875   esac
6876 
6877 
6878   # First argument is the cpu name from the trip/quad
6879   case "$host_cpu" in
6880     x86_64)
6881       VAR_CPU=x86_64
6882       VAR_CPU_ARCH=x86
6883       VAR_CPU_BITS=64
6884       VAR_CPU_ENDIAN=little
6885       ;;
6886     i?86)
6887       VAR_CPU=x86
6888       VAR_CPU_ARCH=x86
6889       VAR_CPU_BITS=32
6890       VAR_CPU_ENDIAN=little
6891       ;;
6892     arm*)
6893       VAR_CPU=arm
6894       VAR_CPU_ARCH=arm
6895       VAR_CPU_BITS=32
6896       VAR_CPU_ENDIAN=little
6897       ;;
6898     powerpc)
6899       VAR_CPU=ppc
6900       VAR_CPU_ARCH=ppc
6901       VAR_CPU_BITS=32
6902       VAR_CPU_ENDIAN=big
6903        ;;
6904     powerpc64)
6905       VAR_CPU=ppc64
6906       VAR_CPU_ARCH=ppc
6907       VAR_CPU_BITS=64
6908       VAR_CPU_ENDIAN=big
6909        ;;
6910     rs6000)
6911       VAR_CPU=ppc64
6912       VAR_CPU_ARCH=ppc
6913       VAR_CPU_BITS=64
6914       VAR_CPU_ENDIAN=big
6915        ;;
6916     sparc)
6917       VAR_CPU=sparc
6918       VAR_CPU_ARCH=sparc
6919       VAR_CPU_BITS=32
6920       VAR_CPU_ENDIAN=big
6921        ;;
6922     sparcv9)
6923       VAR_CPU=sparcv9
6924       VAR_CPU_ARCH=sparc
6925       VAR_CPU_BITS=64
6926       VAR_CPU_ENDIAN=big
6927        ;;
6928     *)
6929       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
6930       ;;
6931   esac
6932 
6933     # ... and setup our own variables. (Do this explicitely to facilitate searching)
6934     OPENJDK_TARGET_OS="$VAR_OS"
6935     OPENJDK_TARGET_OS_API="$VAR_OS_API"


8242 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8243 
8244 # The generated Makefile knows where the spec.gmk is and where the source is.
8245 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8246 # which will look for generated configurations
8247 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8248 
8249 
8250 # Save the arguments given to us
8251 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8252 
8253 
8254 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8255 
8256     for ac_prog in apt-get yum port pkgutil pkgadd
8257 do
8258   # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy $ac_prog; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_PKGHANDLER+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   if test -n "$PKGHANDLER"; then
8266   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275     ac_cv_prog_PKGHANDLER="$ac_prog"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282 
8283 fi
8284 fi
8285 PKGHANDLER=$ac_cv_prog_PKGHANDLER
8286 if test -n "$PKGHANDLER"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
8288 $as_echo "$PKGHANDLER" >&6; }
8289 else
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293 
8294 


8607       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8608 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8609     fi
8610 
8611         fi
8612       fi
8613     fi
8614   fi
8615 
8616     if test "x$FOUND_MAKE" = x; then
8617       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8618     fi
8619   else
8620     # Try our hardest to locate a correct version of GNU make
8621     for ac_prog in gmake
8622 do
8623   # Extract the first word of "$ac_prog", so it can be a program name with args.
8624 set dummy $ac_prog; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   case $CHECK_GMAKE in
8631   [\\/]* | ?:[\\/]*)
8632   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8633   ;;
8634   *)
8635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
8638   IFS=$as_save_IFS
8639   test -z "$as_dir" && as_dir=.
8640     for ac_exec_ext in '' $ac_executable_extensions; do
8641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644     break 2
8645   fi
8646 done
8647   done
8648 IFS=$as_save_IFS
8649 
8650   ;;
8651 esac
8652 fi
8653 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
8654 if test -n "$CHECK_GMAKE"; then
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
8656 $as_echo "$CHECK_GMAKE" >&6; }
8657 else
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8660 fi
8661 


8961 
8962   if test "x$complete" != "x$new_complete"; then
8963       FOUND_MAKE="$new_complete"
8964       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8965 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8966     fi
8967 
8968         fi
8969       fi
8970     fi
8971   fi
8972 
8973 
8974     if test "x$FOUND_MAKE" = x; then
8975       for ac_prog in make
8976 do
8977   # Extract the first word of "$ac_prog", so it can be a program name with args.
8978 set dummy $ac_prog; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_path_CHECK_MAKE+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   case $CHECK_MAKE in
8985   [\\/]* | ?:[\\/]*)
8986   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8987   ;;
8988   *)
8989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992   IFS=$as_save_IFS
8993   test -z "$as_dir" && as_dir=.
8994     for ac_exec_ext in '' $ac_executable_extensions; do
8995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998     break 2
8999   fi
9000 done
9001   done
9002 IFS=$as_save_IFS
9003 
9004   ;;
9005 esac
9006 fi
9007 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
9008 if test -n "$CHECK_MAKE"; then
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
9010 $as_echo "$CHECK_MAKE" >&6; }
9011 else
9012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014 fi
9015 


9320     fi
9321 
9322         fi
9323       fi
9324     fi
9325   fi
9326 
9327     fi
9328 
9329     if test "x$FOUND_MAKE" = x; then
9330       if test "x$TOOLS_DIR" != x; then
9331         # We have a tools-dir, check that as well before giving up.
9332         OLD_PATH=$PATH
9333         PATH=$TOOLS_DIR:$PATH
9334         for ac_prog in gmake
9335 do
9336   # Extract the first word of "$ac_prog", so it can be a program name with args.
9337 set dummy $ac_prog; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   case $CHECK_TOOLSDIR_GMAKE in
9344   [\\/]* | ?:[\\/]*)
9345   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9346   ;;
9347   *)
9348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351   IFS=$as_save_IFS
9352   test -z "$as_dir" && as_dir=.
9353     for ac_exec_ext in '' $ac_executable_extensions; do
9354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357     break 2
9358   fi
9359 done
9360   done
9361 IFS=$as_save_IFS
9362 
9363   ;;
9364 esac
9365 fi
9366 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
9367 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
9369 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
9370 else
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373 fi
9374 


9673       fi
9674 
9675   if test "x$complete" != "x$new_complete"; then
9676       FOUND_MAKE="$new_complete"
9677       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9678 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9679     fi
9680 
9681         fi
9682       fi
9683     fi
9684   fi
9685 
9686         if test "x$FOUND_MAKE" = x; then
9687           for ac_prog in make
9688 do
9689   # Extract the first word of "$ac_prog", so it can be a program name with args.
9690 set dummy $ac_prog; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   case $CHECK_TOOLSDIR_MAKE in
9697   [\\/]* | ?:[\\/]*)
9698   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9699   ;;
9700   *)
9701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704   IFS=$as_save_IFS
9705   test -z "$as_dir" && as_dir=.
9706     for ac_exec_ext in '' $ac_executable_extensions; do
9707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710     break 2
9711   fi
9712 done
9713   done
9714 IFS=$as_save_IFS
9715 
9716   ;;
9717 esac
9718 fi
9719 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
9720 if test -n "$CHECK_TOOLSDIR_MAKE"; then
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
9722 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
9723 else
9724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9726 fi
9727 


10069         FIND_DELETE="-exec rm \{\} \+"
10070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072     else
10073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074 $as_echo "yes" >&6; }
10075     fi
10076     rmdir $DELETEDIR
10077 
10078 
10079 
10080 # These tools might not be installed by default,
10081 # need hint on how to install them.
10082 
10083     for ac_prog in unzip
10084 do
10085   # Extract the first word of "$ac_prog", so it can be a program name with args.
10086 set dummy $ac_prog; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_path_UNZIP+:} false; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   case $UNZIP in
10093   [\\/]* | ?:[\\/]*)
10094   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
10095   ;;
10096   *)
10097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102     for ac_exec_ext in '' $ac_executable_extensions; do
10103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
10105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109   done
10110 IFS=$as_save_IFS
10111 
10112   ;;
10113 esac
10114 fi
10115 UNZIP=$ac_cv_path_UNZIP
10116 if test -n "$UNZIP"; then
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
10118 $as_echo "$UNZIP" >&6; }
10119 else
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123 


10128 
10129     if test "x$UNZIP" = x; then
10130         if test "xunzip" = x; then
10131           PROG_NAME=unzip
10132         else
10133           PROG_NAME=unzip
10134         fi
10135         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10136 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10137         as_fn_error $? "Cannot continue" "$LINENO" 5
10138     fi
10139 
10140 
10141 
10142     for ac_prog in zip
10143 do
10144   # Extract the first word of "$ac_prog", so it can be a program name with args.
10145 set dummy $ac_prog; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_ZIP+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   case $ZIP in
10152   [\\/]* | ?:[\\/]*)
10153   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10154   ;;
10155   *)
10156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159   IFS=$as_save_IFS
10160   test -z "$as_dir" && as_dir=.
10161     for ac_exec_ext in '' $ac_executable_extensions; do
10162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165     break 2
10166   fi
10167 done
10168   done
10169 IFS=$as_save_IFS
10170 
10171   ;;
10172 esac
10173 fi
10174 ZIP=$ac_cv_path_ZIP
10175 if test -n "$ZIP"; then
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
10177 $as_echo "$ZIP" >&6; }
10178 else
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182 


10187 
10188     if test "x$ZIP" = x; then
10189         if test "xzip" = x; then
10190           PROG_NAME=zip
10191         else
10192           PROG_NAME=zip
10193         fi
10194         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10195 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10196         as_fn_error $? "Cannot continue" "$LINENO" 5
10197     fi
10198 
10199 
10200 
10201 # Non-required basic tools
10202 
10203 # Extract the first word of "ldd", so it can be a program name with args.
10204 set dummy ldd; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_path_LDD+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   case $LDD in
10211   [\\/]* | ?:[\\/]*)
10212   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10213   ;;
10214   *)
10215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218   IFS=$as_save_IFS
10219   test -z "$as_dir" && as_dir=.
10220     for ac_exec_ext in '' $ac_executable_extensions; do
10221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224     break 2
10225   fi
10226 done
10227   done
10228 IFS=$as_save_IFS
10229 
10230   ;;
10231 esac
10232 fi
10233 LDD=$ac_cv_path_LDD
10234 if test -n "$LDD"; then
10235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10236 $as_echo "$LDD" >&6; }
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241 
10242 
10243 if test "x$LDD" = "x"; then
10244     # List shared lib dependencies is used for
10245     # debug output and checking for forbidden dependencies.
10246     # We can build without it.
10247     LDD="true"
10248 fi
10249 # Extract the first word of "otool", so it can be a program name with args.
10250 set dummy otool; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_path_OTOOL+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   case $OTOOL in
10257   [\\/]* | ?:[\\/]*)
10258   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10259   ;;
10260   *)
10261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10263 do
10264   IFS=$as_save_IFS
10265   test -z "$as_dir" && as_dir=.
10266     for ac_exec_ext in '' $ac_executable_extensions; do
10267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10268     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270     break 2
10271   fi
10272 done
10273   done
10274 IFS=$as_save_IFS
10275 
10276   ;;
10277 esac
10278 fi
10279 OTOOL=$ac_cv_path_OTOOL
10280 if test -n "$OTOOL"; then
10281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10282 $as_echo "$OTOOL" >&6; }
10283 else
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10286 fi
10287 
10288 
10289 if test "x$OTOOL" = "x"; then
10290    OTOOL="true"
10291 fi
10292 for ac_prog in readelf greadelf
10293 do
10294   # Extract the first word of "$ac_prog", so it can be a program name with args.
10295 set dummy $ac_prog; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if ${ac_cv_path_READELF+:} false; then :
10299   $as_echo_n "(cached) " >&6
10300 else
10301   case $READELF in
10302   [\\/]* | ?:[\\/]*)
10303   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10304   ;;
10305   *)
10306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10308 do
10309   IFS=$as_save_IFS
10310   test -z "$as_dir" && as_dir=.
10311     for ac_exec_ext in '' $ac_executable_extensions; do
10312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315     break 2
10316   fi
10317 done
10318   done
10319 IFS=$as_save_IFS
10320 
10321   ;;
10322 esac
10323 fi
10324 READELF=$ac_cv_path_READELF
10325 if test -n "$READELF"; then
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10327 $as_echo "$READELF" >&6; }
10328 else
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10331 fi
10332 
10333 
10334   test -n "$READELF" && break
10335 done
10336 
10337 # Extract the first word of "hg", so it can be a program name with args.
10338 set dummy hg; ac_word=$2
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 $as_echo_n "checking for $ac_word... " >&6; }
10341 if ${ac_cv_path_HG+:} false; then :
10342   $as_echo_n "(cached) " >&6
10343 else
10344   case $HG in
10345   [\\/]* | ?:[\\/]*)
10346   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10347   ;;
10348   *)
10349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352   IFS=$as_save_IFS
10353   test -z "$as_dir" && as_dir=.
10354     for ac_exec_ext in '' $ac_executable_extensions; do
10355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358     break 2
10359   fi
10360 done
10361   done
10362 IFS=$as_save_IFS
10363 
10364   ;;
10365 esac
10366 fi
10367 HG=$ac_cv_path_HG
10368 if test -n "$HG"; then
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10370 $as_echo "$HG" >&6; }
10371 else
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375 
10376 
10377 # Extract the first word of "stat", so it can be a program name with args.
10378 set dummy stat; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_path_STAT+:} false; then :
10382   $as_echo_n "(cached) " >&6
10383 else
10384   case $STAT in
10385   [\\/]* | ?:[\\/]*)
10386   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10387   ;;
10388   *)
10389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392   IFS=$as_save_IFS
10393   test -z "$as_dir" && as_dir=.
10394     for ac_exec_ext in '' $ac_executable_extensions; do
10395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398     break 2
10399   fi
10400 done
10401   done
10402 IFS=$as_save_IFS
10403 
10404   ;;
10405 esac
10406 fi
10407 STAT=$ac_cv_path_STAT
10408 if test -n "$STAT"; then
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10410 $as_echo "$STAT" >&6; }
10411 else
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10414 fi
10415 
10416 
10417 # Extract the first word of "time", so it can be a program name with args.
10418 set dummy time; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_TIME+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   case $TIME in
10425   [\\/]* | ?:[\\/]*)
10426   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10427   ;;
10428   *)
10429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10431 do
10432   IFS=$as_save_IFS
10433   test -z "$as_dir" && as_dir=.
10434     for ac_exec_ext in '' $ac_executable_extensions; do
10435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438     break 2
10439   fi
10440 done
10441   done
10442 IFS=$as_save_IFS
10443 
10444   ;;
10445 esac
10446 fi
10447 TIME=$ac_cv_path_TIME
10448 if test -n "$TIME"; then
10449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10450 $as_echo "$TIME" >&6; }
10451 else
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 fi
10455 
10456 
10457 # Check if it's GNU time
10458 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
10459 if test "x$IS_GNU_TIME" != x; then
10460   IS_GNU_TIME=yes
10461 else
10462   IS_GNU_TIME=no
10463 fi
10464 
10465 
10466 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10467 
10468     for ac_prog in comm
10469 do
10470   # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if ${ac_cv_path_COMM+:} false; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   case $COMM in
10478   [\\/]* | ?:[\\/]*)
10479   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10480   ;;
10481   *)
10482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494   done
10495 IFS=$as_save_IFS
10496 
10497   ;;
10498 esac
10499 fi
10500 COMM=$ac_cv_path_COMM
10501 if test -n "$COMM"; then
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
10503 $as_echo "$COMM" >&6; }
10504 else
10505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508 


10516           PROG_NAME=comm
10517         else
10518           PROG_NAME=comm
10519         fi
10520         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10521 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10522         as_fn_error $? "Cannot continue" "$LINENO" 5
10523     fi
10524 
10525 
10526 fi
10527 
10528 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10529 
10530     for ac_prog in xattr
10531 do
10532   # Extract the first word of "$ac_prog", so it can be a program name with args.
10533 set dummy $ac_prog; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if ${ac_cv_path_XATTR+:} false; then :
10537   $as_echo_n "(cached) " >&6
10538 else
10539   case $XATTR in
10540   [\\/]* | ?:[\\/]*)
10541   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10542   ;;
10543   *)
10544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in $PATH
10546 do
10547   IFS=$as_save_IFS
10548   test -z "$as_dir" && as_dir=.
10549     for ac_exec_ext in '' $ac_executable_extensions; do
10550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553     break 2
10554   fi
10555 done
10556   done
10557 IFS=$as_save_IFS
10558 
10559   ;;
10560 esac
10561 fi
10562 XATTR=$ac_cv_path_XATTR
10563 if test -n "$XATTR"; then
10564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
10565 $as_echo "$XATTR" >&6; }
10566 else
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 fi
10570 


10572   test -n "$XATTR" && break
10573 done
10574 
10575 
10576     if test "x$XATTR" = x; then
10577         if test "xxattr" = x; then
10578           PROG_NAME=xattr
10579         else
10580           PROG_NAME=xattr
10581         fi
10582         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10583 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10584         as_fn_error $? "Cannot continue" "$LINENO" 5
10585     fi
10586 
10587 
10588   # Extract the first word of "codesign", so it can be a program name with args.
10589 set dummy codesign; ac_word=$2
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if ${ac_cv_path_CODESIGN+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   case $CODESIGN in
10596   [\\/]* | ?:[\\/]*)
10597   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
10598   ;;
10599   *)
10600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10602 do
10603   IFS=$as_save_IFS
10604   test -z "$as_dir" && as_dir=.
10605     for ac_exec_ext in '' $ac_executable_extensions; do
10606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
10608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609     break 2
10610   fi
10611 done
10612   done
10613 IFS=$as_save_IFS
10614 
10615   ;;
10616 esac
10617 fi
10618 CODESIGN=$ac_cv_path_CODESIGN
10619 if test -n "$CODESIGN"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
10621 $as_echo "$CODESIGN" >&6; }
10622 else
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626 


10636     if test "x$CODESIGN" = x; then
10637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10639     else
10640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642     fi
10643   fi
10644 fi
10645 
10646 
10647 # Check if pkg-config is available.
10648 
10649 
10650 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10651         if test -n "$ac_tool_prefix"; then
10652   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10653 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   case $PKG_CONFIG in
10660   [\\/]* | ?:[\\/]*)
10661   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10662   ;;
10663   *)
10664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10666 do
10667   IFS=$as_save_IFS
10668   test -z "$as_dir" && as_dir=.
10669     for ac_exec_ext in '' $ac_executable_extensions; do
10670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673     break 2
10674   fi
10675 done
10676   done
10677 IFS=$as_save_IFS
10678 
10679   ;;
10680 esac
10681 fi
10682 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10683 if test -n "$PKG_CONFIG"; then
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10685 $as_echo "$PKG_CONFIG" >&6; }
10686 else
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 fi
10690 
10691 
10692 fi
10693 if test -z "$ac_cv_path_PKG_CONFIG"; then
10694   ac_pt_PKG_CONFIG=$PKG_CONFIG
10695   # Extract the first word of "pkg-config", so it can be a program name with args.
10696 set dummy pkg-config; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10700   $as_echo_n "(cached) " >&6
10701 else
10702   case $ac_pt_PKG_CONFIG in
10703   [\\/]* | ?:[\\/]*)
10704   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10705   ;;
10706   *)
10707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710   IFS=$as_save_IFS
10711   test -z "$as_dir" && as_dir=.
10712     for ac_exec_ext in '' $ac_executable_extensions; do
10713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716     break 2
10717   fi
10718 done
10719   done
10720 IFS=$as_save_IFS
10721 
10722   ;;
10723 esac
10724 fi
10725 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10726 if test -n "$ac_pt_PKG_CONFIG"; then
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10728 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10729 else
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10732 fi
10733 


10852             echo Build stays the same $rewritten_build
10853         else
10854             echo Rewriting build for builddeps into $rewritten_build
10855         fi
10856         eval rewritten_target=\${REWRITE_${target_var}}
10857         if test "x$rewritten_target" = x; then
10858             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10859             echo Target stays the same $rewritten_target
10860         else
10861             echo Rewriting target for builddeps into $rewritten_target
10862         fi
10863         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10864         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10865     fi
10866     for ac_prog in 7z unzip
10867 do
10868   # Extract the first word of "$ac_prog", so it can be a program name with args.
10869 set dummy $ac_prog; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
10873   $as_echo_n "(cached) " >&6
10874 else
10875   if test -n "$BDEPS_UNZIP"; then
10876   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10877 else
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10880 do
10881   IFS=$as_save_IFS
10882   test -z "$as_dir" && as_dir=.
10883     for ac_exec_ext in '' $ac_executable_extensions; do
10884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887     break 2
10888   fi
10889 done
10890   done
10891 IFS=$as_save_IFS
10892 
10893 fi
10894 fi
10895 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
10896 if test -n "$BDEPS_UNZIP"; then
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
10898 $as_echo "$BDEPS_UNZIP" >&6; }
10899 else
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903 
10904 
10905   test -n "$BDEPS_UNZIP" && break
10906 done
10907 
10908     if test "x$BDEPS_UNZIP" = x7z; then
10909         BDEPS_UNZIP="7z x"
10910     fi
10911 
10912     for ac_prog in wget lftp ftp
10913 do
10914   # Extract the first word of "$ac_prog", so it can be a program name with args.
10915 set dummy $ac_prog; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   if test -n "$BDEPS_FTP"; then
10922   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927   IFS=$as_save_IFS
10928   test -z "$as_dir" && as_dir=.
10929     for ac_exec_ext in '' $ac_executable_extensions; do
10930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931     ac_cv_prog_BDEPS_FTP="$ac_prog"
10932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933     break 2
10934   fi
10935 done
10936   done
10937 IFS=$as_save_IFS
10938 
10939 fi
10940 fi
10941 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
10942 if test -n "$BDEPS_FTP"; then
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
10944 $as_echo "$BDEPS_FTP" >&6; }
10945 else
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949 
10950 


12194               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
12195               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
12196 $as_echo "$BOOT_JDK_VERSION" >&6; }
12197             fi # end check jdk version
12198           fi # end check rt.jar
12199         fi # end check javac
12200       fi # end check java
12201     fi # end check boot jdk found
12202   fi
12203 
12204 
12205 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
12206 
12207   if test "x$BOOT_JDK_FOUND" = xno; then
12208     # Now execute the test
12209 
12210     # Extract the first word of "javac", so it can be a program name with args.
12211 set dummy javac; ac_word=$2
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213 $as_echo_n "checking for $ac_word... " >&6; }
12214 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
12215   $as_echo_n "(cached) " >&6
12216 else
12217   case $JAVAC_CHECK in
12218   [\\/]* | ?:[\\/]*)
12219   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
12220   ;;
12221   *)
12222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225   IFS=$as_save_IFS
12226   test -z "$as_dir" && as_dir=.
12227     for ac_exec_ext in '' $ac_executable_extensions; do
12228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12229     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231     break 2
12232   fi
12233 done
12234   done
12235 IFS=$as_save_IFS
12236 
12237   ;;
12238 esac
12239 fi
12240 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12241 if test -n "$JAVAC_CHECK"; then
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12243 $as_echo "$JAVAC_CHECK" >&6; }
12244 else
12245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12247 fi
12248 
12249 
12250     # Extract the first word of "java", so it can be a program name with args.
12251 set dummy java; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if ${ac_cv_path_JAVA_CHECK+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   case $JAVA_CHECK in
12258   [\\/]* | ?:[\\/]*)
12259   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12260   ;;
12261   *)
12262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276 
12277   ;;
12278 esac
12279 fi
12280 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
12281 if test -n "$JAVA_CHECK"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
12283 $as_echo "$JAVA_CHECK" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288 


16563 
16564 
16565       # jtreg win32 script works for everybody
16566       JTREGEXE="$JT_HOME/win32/bin/jtreg"
16567 
16568       if test ! -f "$JTREGEXE"; then
16569         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
16570       fi
16571 
16572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16573 $as_echo "$JTREGEXE" >&6; }
16574     else
16575       # try to find jtreg on path
16576 
16577     for ac_prog in jtreg
16578 do
16579   # Extract the first word of "$ac_prog", so it can be a program name with args.
16580 set dummy $ac_prog; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_path_JTREGEXE+:} false; then :
16584   $as_echo_n "(cached) " >&6
16585 else
16586   case $JTREGEXE in
16587   [\\/]* | ?:[\\/]*)
16588   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
16589   ;;
16590   *)
16591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16593 do
16594   IFS=$as_save_IFS
16595   test -z "$as_dir" && as_dir=.
16596     for ac_exec_ext in '' $ac_executable_extensions; do
16597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
16599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600     break 2
16601   fi
16602 done
16603   done
16604 IFS=$as_save_IFS
16605 
16606   ;;
16607 esac
16608 fi
16609 JTREGEXE=$ac_cv_path_JTREGEXE
16610 if test -n "$JTREGEXE"; then
16611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
16612 $as_echo "$JTREGEXE" >&6; }
16613 else
16614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16616 fi
16617 


16631         as_fn_error $? "Cannot continue" "$LINENO" 5
16632     fi
16633 
16634 
16635       JT_HOME="`$DIRNAME $JTREGEXE`"
16636     fi
16637   fi
16638 
16639 
16640 
16641 
16642 
16643 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16644 
16645   # Store path to cygwin link.exe to help excluding it when searching for
16646   # VS linker. This must be done before changing the PATH when looking for VS.
16647   # Extract the first word of "link", so it can be a program name with args.
16648 set dummy link; ac_word=$2
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16650 $as_echo_n "checking for $ac_word... " >&6; }
16651 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
16652   $as_echo_n "(cached) " >&6
16653 else
16654   case $CYGWIN_LINK in
16655   [\\/]* | ?:[\\/]*)
16656   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16657   ;;
16658   *)
16659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660 for as_dir in $PATH
16661 do
16662   IFS=$as_save_IFS
16663   test -z "$as_dir" && as_dir=.
16664     for ac_exec_ext in '' $ac_executable_extensions; do
16665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16668     break 2
16669   fi
16670 done
16671   done
16672 IFS=$as_save_IFS
16673 
16674   ;;
16675 esac
16676 fi
16677 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
16678 if test -n "$CYGWIN_LINK"; then
16679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
16680 $as_echo "$CYGWIN_LINK" >&6; }
16681 else
16682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16684 fi
16685 


18074 # For example the binary i686-sun-solaris2.10-gcc
18075 # will cross compile for i686-sun-solaris2.10
18076 # If neither of build and host is not set, then build=host and the
18077 # default compiler found in the path will be used.
18078 # Setting only --host, does not seem to be really supported.
18079 # Please set both --build and --host if you want to cross compile.
18080 
18081 if test "x$COMPILE_TYPE" = "xcross"; then
18082     # Now we to find a C/C++ compiler that can build executables for the build
18083     # platform. We can't use the AC_PROG_CC macro, since it can only be used
18084     # once. Also, we need to do this before adding a tools dir to the path,
18085     # otherwise we might pick up cross-compilers which don't use standard naming.
18086     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
18087     # to wait until they are properly discovered.
18088     for ac_prog in cl cc gcc
18089 do
18090   # Extract the first word of "$ac_prog", so it can be a program name with args.
18091 set dummy $ac_prog; ac_word=$2
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18093 $as_echo_n "checking for $ac_word... " >&6; }
18094 if ${ac_cv_path_BUILD_CC+:} false; then :
18095   $as_echo_n "(cached) " >&6
18096 else
18097   case $BUILD_CC in
18098   [\\/]* | ?:[\\/]*)
18099   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
18100   ;;
18101   *)
18102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18103 for as_dir in $PATH
18104 do
18105   IFS=$as_save_IFS
18106   test -z "$as_dir" && as_dir=.
18107     for ac_exec_ext in '' $ac_executable_extensions; do
18108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18109     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
18110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18111     break 2
18112   fi
18113 done
18114   done
18115 IFS=$as_save_IFS
18116 
18117   ;;
18118 esac
18119 fi
18120 BUILD_CC=$ac_cv_path_BUILD_CC
18121 if test -n "$BUILD_CC"; then
18122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
18123 $as_echo "$BUILD_CC" >&6; }
18124 else
18125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126 $as_echo "no" >&6; }
18127 fi
18128 


18385 
18386       # Now join together the path and the arguments once again
18387       if test "x$arguments" != xEOL; then
18388         new_complete="$new_path ${arguments% *}"
18389       else
18390         new_complete="$new_path"
18391       fi
18392 
18393   if test "x$complete" != "x$new_complete"; then
18394       BUILD_CC="$new_complete"
18395       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
18396 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
18397     fi
18398 
18399     for ac_prog in cl CC g++
18400 do
18401   # Extract the first word of "$ac_prog", so it can be a program name with args.
18402 set dummy $ac_prog; ac_word=$2
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18404 $as_echo_n "checking for $ac_word... " >&6; }
18405 if ${ac_cv_path_BUILD_CXX+:} false; then :
18406   $as_echo_n "(cached) " >&6
18407 else
18408   case $BUILD_CXX in
18409   [\\/]* | ?:[\\/]*)
18410   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
18411   ;;
18412   *)
18413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18415 do
18416   IFS=$as_save_IFS
18417   test -z "$as_dir" && as_dir=.
18418     for ac_exec_ext in '' $ac_executable_extensions; do
18419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18420     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
18421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18422     break 2
18423   fi
18424 done
18425   done
18426 IFS=$as_save_IFS
18427 
18428   ;;
18429 esac
18430 fi
18431 BUILD_CXX=$ac_cv_path_BUILD_CXX
18432 if test -n "$BUILD_CXX"; then
18433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
18434 $as_echo "$BUILD_CXX" >&6; }
18435 else
18436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437 $as_echo "no" >&6; }
18438 fi
18439 


18694       fi
18695   fi
18696 
18697       # Now join together the path and the arguments once again
18698       if test "x$arguments" != xEOL; then
18699         new_complete="$new_path ${arguments% *}"
18700       else
18701         new_complete="$new_path"
18702       fi
18703 
18704   if test "x$complete" != "x$new_complete"; then
18705       BUILD_CXX="$new_complete"
18706       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18707 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18708     fi
18709 
18710     # Extract the first word of "ld", so it can be a program name with args.
18711 set dummy ld; ac_word=$2
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18713 $as_echo_n "checking for $ac_word... " >&6; }
18714 if ${ac_cv_path_BUILD_LD+:} false; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   case $BUILD_LD in
18718   [\\/]* | ?:[\\/]*)
18719   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18720   ;;
18721   *)
18722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18724 do
18725   IFS=$as_save_IFS
18726   test -z "$as_dir" && as_dir=.
18727     for ac_exec_ext in '' $ac_executable_extensions; do
18728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18731     break 2
18732   fi
18733 done
18734   done
18735 IFS=$as_save_IFS
18736 
18737   ;;
18738 esac
18739 fi
18740 BUILD_LD=$ac_cv_path_BUILD_LD
18741 if test -n "$BUILD_LD"; then
18742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
18743 $as_echo "$BUILD_LD" >&6; }
18744 else
18745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746 $as_echo "no" >&6; }
18747 fi
18748 


19182 
19183 # autoconf magic only relies on PATH, so update it if tools dir is specified
19184 OLD_PATH="$PATH"
19185 if test "x$TOOLS_DIR" != x; then
19186   PATH=$TOOLS_DIR:$PATH
19187 fi
19188 
19189 
19190 ### Locate C compiler (CC)
19191 
19192 # On windows, only cl.exe is supported.
19193 # On Solaris, cc is preferred to gcc.
19194 # Elsewhere, gcc is preferred to cc.
19195 
19196 if test "x$CC" != x; then
19197   COMPILER_CHECK_LIST="$CC"
19198 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
19199   COMPILER_CHECK_LIST="cl"
19200 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
19201   COMPILER_CHECK_LIST="cc gcc"
19202 elif test "x$OPENJDK_TARGET_OS" = xaix; then
19203   # Do not probe for cc on AIX.
19204   COMPILER_CHECK_LIST="xlc_r"
19205   # On AIX we currently only support 64-bit builds but the compilers by
19206   # default generate 32-bit objects unless  we provide the '-q64' option.
19207   ORG_CFLAGS="-q64 $ORG_CFLAGS"
19208 else
19209   COMPILER_CHECK_LIST="gcc cc"
19210 fi
19211 
19212 
19213   COMPILER_NAME=C
19214 
19215   CC=
19216   # If TOOLS_DIR is set, check for all compiler names in there first
19217   # before checking the rest of the PATH.
19218   if test -n "$TOOLS_DIR"; then
19219     PATH_save="$PATH"
19220     PATH="$TOOLS_DIR"
19221     for ac_prog in $COMPILER_CHECK_LIST
19222 do
19223   # Extract the first word of "$ac_prog", so it can be a program name with args.
19224 set dummy $ac_prog; ac_word=$2
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19226 $as_echo_n "checking for $ac_word... " >&6; }
19227 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
19228   $as_echo_n "(cached) " >&6
19229 else
19230   case $TOOLS_DIR_CC in
19231   [\\/]* | ?:[\\/]*)
19232   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
19233   ;;
19234   *)
19235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19236 for as_dir in $PATH
19237 do
19238   IFS=$as_save_IFS
19239   test -z "$as_dir" && as_dir=.
19240     for ac_exec_ext in '' $ac_executable_extensions; do
19241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19242     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
19243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19244     break 2
19245   fi
19246 done
19247   done
19248 IFS=$as_save_IFS
19249 
19250   ;;
19251 esac
19252 fi
19253 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
19254 if test -n "$TOOLS_DIR_CC"; then
19255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
19256 $as_echo "$TOOLS_DIR_CC" >&6; }
19257 else
19258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19260 fi
19261 
19262 
19263   test -n "$TOOLS_DIR_CC" && break
19264 done
19265 
19266     CC=$TOOLS_DIR_CC
19267     PATH="$PATH_save"
19268   fi
19269 
19270   # AC_PATH_PROGS can't be run multiple times with the same variable,
19271   # so create a new name for this run.
19272   if test "x$CC" = x; then
19273     for ac_prog in $COMPILER_CHECK_LIST
19274 do
19275   # Extract the first word of "$ac_prog", so it can be a program name with args.
19276 set dummy $ac_prog; ac_word=$2
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19278 $as_echo_n "checking for $ac_word... " >&6; }
19279 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
19280   $as_echo_n "(cached) " >&6
19281 else
19282   case $POTENTIAL_CC in
19283   [\\/]* | ?:[\\/]*)
19284   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
19285   ;;
19286   *)
19287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19288 for as_dir in $PATH
19289 do
19290   IFS=$as_save_IFS
19291   test -z "$as_dir" && as_dir=.
19292     for ac_exec_ext in '' $ac_executable_extensions; do
19293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19294     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
19295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19296     break 2
19297   fi
19298 done
19299   done
19300 IFS=$as_save_IFS
19301 
19302   ;;
19303 esac
19304 fi
19305 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
19306 if test -n "$POTENTIAL_CC"; then
19307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
19308 $as_echo "$POTENTIAL_CC" >&6; }
19309 else
19310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19311 $as_echo "no" >&6; }
19312 fi
19313 


19595           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19596 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19597         fi
19598         as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
19599       fi
19600   fi
19601 
19602       # Now join together the path and the arguments once again
19603       if test "x$arguments" != xEOL; then
19604         new_complete="$new_path ${arguments% *}"
19605       else
19606         new_complete="$new_path"
19607       fi
19608 
19609   if test "x$complete" != "x$new_complete"; then
19610       CC="$new_complete"
19611       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
19612 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
19613     fi
19614 
19615   TEST_COMPILER="$CC"
19616   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
19617   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
19618   if test "x$OPENJDK_BUILD_OS" != xaix; then
19619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
19620 $as_echo_n "checking resolved symbolic links for CC... " >&6; }

19621 
19622     if test "x$OPENJDK_BUILD_OS" != xwindows; then
19623         # Follow a chain of symbolic links. Use readlink
19624         # where it exists, else fall back to horribly
19625         # complicated shell code.
19626         if test "x$READLINK_TESTED" != yes; then
19627             # On MacOSX there is a readlink tool with a different
19628             # purpose than the GNU readlink tool. Check the found readlink.
19629             ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
19630             if test "x$ISGNU" = x; then
19631                  # A readlink that we do not know how to use.
19632                  # Are there other non-GNU readlinks out there?
19633                  READLINK_TESTED=yes
19634                  READLINK=
19635             fi
19636         fi
19637 
19638         if test "x$READLINK" != x; then
19639             TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
19640         else


19651             while test $COUNTER -lt 20; do
19652                 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
19653                 if test "x$ISLINK" == x; then
19654                     # This is not a symbolic link! We are done!
19655                     break
19656                 fi
19657                 # Again resolve directory symlinks since the target of the just found
19658                 # link could be in a different directory
19659                 cd `$DIRNAME $ISLINK`
19660                 sym_link_dir=`$THEPWDCMD -P`
19661                 sym_link_file=`$BASENAME $ISLINK`
19662                 let COUNTER=COUNTER+1
19663             done
19664             cd $STARTDIR
19665             TEST_COMPILER=$sym_link_dir/$sym_link_file
19666         fi
19667     fi
19668 
19669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
19670 $as_echo "$TEST_COMPILER" >&6; }
19671   fi
19672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
19673 $as_echo_n "checking if CC is disguised ccache... " >&6; }
19674 
19675   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
19676   if test "x$COMPILER_BASENAME" = "xccache"; then
19677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19678 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19679     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19680     # We want to control ccache invocation ourselves, so ignore this cc and try
19681     # searching again.
19682 
19683     # Remove the path to the fake ccache cc from the PATH
19684     RETRY_COMPILER_SAVED_PATH="$PATH"
19685     COMPILER_DIRNAME=`$DIRNAME $CC`
19686     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19687 
19688     # Try again looking for our compiler
19689     if test -n "$ac_tool_prefix"; then
19690   for ac_prog in $COMPILER_CHECK_LIST
19691   do
19692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19695 $as_echo_n "checking for $ac_word... " >&6; }
19696 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
19697   $as_echo_n "(cached) " >&6
19698 else
19699   if test -n "$PROPER_COMPILER_CC"; then
19700   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19701 else
19702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19704 do
19705   IFS=$as_save_IFS
19706   test -z "$as_dir" && as_dir=.
19707     for ac_exec_ext in '' $ac_executable_extensions; do
19708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19709     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19711     break 2
19712   fi
19713 done
19714   done
19715 IFS=$as_save_IFS
19716 
19717 fi
19718 fi
19719 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
19720 if test -n "$PROPER_COMPILER_CC"; then
19721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19722 $as_echo "$PROPER_COMPILER_CC" >&6; }
19723 else
19724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19725 $as_echo "no" >&6; }
19726 fi
19727 
19728 
19729     test -n "$PROPER_COMPILER_CC" && break
19730   done
19731 fi
19732 if test -z "$PROPER_COMPILER_CC"; then
19733   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19734   for ac_prog in $COMPILER_CHECK_LIST
19735 do
19736   # Extract the first word of "$ac_prog", so it can be a program name with args.
19737 set dummy $ac_prog; ac_word=$2
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19739 $as_echo_n "checking for $ac_word... " >&6; }
19740 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
19741   $as_echo_n "(cached) " >&6
19742 else
19743   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19744   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19745 else
19746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747 for as_dir in $PATH
19748 do
19749   IFS=$as_save_IFS
19750   test -z "$as_dir" && as_dir=.
19751     for ac_exec_ext in '' $ac_executable_extensions; do
19752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19753     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19755     break 2
19756   fi
19757 done
19758   done
19759 IFS=$as_save_IFS
19760 
19761 fi
19762 fi
19763 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
19764 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
19766 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
19767 else
19768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769 $as_echo "no" >&6; }
19770 fi
19771 
19772 


20115 
20116   COMPILER=$CC
20117   COMPILER_NAME=$COMPILER_NAME
20118 
20119   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
20120     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
20121     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
20122     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
20123     if test $? -ne 0; then
20124       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20125 
20126       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
20127 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
20128       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
20129 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
20130       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
20131     else
20132       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
20133       COMPILER_VENDOR="Sun Studio"
20134     fi
20135   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
20136       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
20137       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
20138       if test $? -ne 0; then
20139         as_fn_error $? "Failed...." "$LINENO" 5
20140       else
20141         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
20142         COMPILER_VENDOR='IBM'
20143       fi
20144   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
20145     # First line typically looks something like:
20146     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
20147     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
20148     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
20149     COMPILER_VENDOR="Microsoft CL.EXE"
20150     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
20151     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
20152       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
20153         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
20154       fi
20155     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
20156       if test "x$COMPILER_CPU_TEST" != "xx64"; then
20157         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
20158       fi
20159     fi
20160   else
20161     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
20162     # Check that this is likely to be GCC.
20163     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null


20179   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
20180   CC_VENDOR="$COMPILER_VENDOR"
20181 
20182   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
20183 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20184 
20185 
20186 # Now that we have resolved CC ourself, let autoconf have its go at it
20187 ac_ext=c
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192 if test -n "$ac_tool_prefix"; then
20193   for ac_prog in $CC
20194   do
20195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198 $as_echo_n "checking for $ac_word... " >&6; }
20199 if ${ac_cv_prog_CC+:} false; then :
20200   $as_echo_n "(cached) " >&6
20201 else
20202   if test -n "$CC"; then
20203   ac_cv_prog_CC="$CC" # Let the user override the test.
20204 else
20205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20206 for as_dir in $PATH
20207 do
20208   IFS=$as_save_IFS
20209   test -z "$as_dir" && as_dir=.
20210     for ac_exec_ext in '' $ac_executable_extensions; do
20211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20212     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20214     break 2
20215   fi
20216 done
20217   done
20218 IFS=$as_save_IFS
20219 
20220 fi
20221 fi
20222 CC=$ac_cv_prog_CC
20223 if test -n "$CC"; then
20224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20225 $as_echo "$CC" >&6; }
20226 else
20227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20228 $as_echo "no" >&6; }
20229 fi
20230 
20231 
20232     test -n "$CC" && break
20233   done
20234 fi
20235 if test -z "$CC"; then
20236   ac_ct_CC=$CC
20237   for ac_prog in $CC
20238 do
20239   # Extract the first word of "$ac_prog", so it can be a program name with args.
20240 set dummy $ac_prog; ac_word=$2
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20242 $as_echo_n "checking for $ac_word... " >&6; }
20243 if ${ac_cv_prog_ac_ct_CC+:} false; then :
20244   $as_echo_n "(cached) " >&6
20245 else
20246   if test -n "$ac_ct_CC"; then
20247   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20248 else
20249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20250 for as_dir in $PATH
20251 do
20252   IFS=$as_save_IFS
20253   test -z "$as_dir" && as_dir=.
20254     for ac_exec_ext in '' $ac_executable_extensions; do
20255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20256     ac_cv_prog_ac_ct_CC="$ac_prog"
20257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20258     break 2
20259   fi
20260 done
20261   done
20262 IFS=$as_save_IFS
20263 
20264 fi
20265 fi
20266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20267 if test -n "$ac_ct_CC"; then
20268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20269 $as_echo "$ac_ct_CC" >&6; }
20270 else
20271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20272 $as_echo "no" >&6; }
20273 fi
20274 
20275 


20504     cross_compiling=no
20505   else
20506     if test "$cross_compiling" = maybe; then
20507         cross_compiling=yes
20508     else
20509         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20511 as_fn_error $? "cannot run C compiled programs.
20512 If you meant to cross compile, use \`--host'.
20513 See \`config.log' for more details" "$LINENO" 5; }
20514     fi
20515   fi
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
20518 $as_echo "$cross_compiling" >&6; }
20519 
20520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
20521 ac_clean_files=$ac_clean_files_save
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
20523 $as_echo_n "checking for suffix of object files... " >&6; }
20524 if ${ac_cv_objext+:} false; then :
20525   $as_echo_n "(cached) " >&6
20526 else
20527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h.  */
20529 
20530 int
20531 main ()
20532 {
20533 
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.o conftest.obj
20539 if { { ac_try="$ac_compile"
20540 case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


20555        break;;
20556   esac
20557 done
20558 else
20559   $as_echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561 
20562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20564 as_fn_error $? "cannot compute suffix of object files: cannot compile
20565 See \`config.log' for more details" "$LINENO" 5; }
20566 fi
20567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
20568 fi
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
20570 $as_echo "$ac_cv_objext" >&6; }
20571 OBJEXT=$ac_cv_objext
20572 ac_objext=$OBJEXT
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20575 if ${ac_cv_c_compiler_gnu+:} false; then :
20576   $as_echo_n "(cached) " >&6
20577 else
20578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h.  */
20580 
20581 int
20582 main ()
20583 {
20584 #ifndef __GNUC__
20585        choke me
20586 #endif
20587 
20588   ;
20589   return 0;
20590 }
20591 _ACEOF
20592 if ac_fn_c_try_compile "$LINENO"; then :
20593   ac_compiler_gnu=yes
20594 else
20595   ac_compiler_gnu=no
20596 fi
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20599 
20600 fi
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20603 if test $ac_compiler_gnu = yes; then
20604   GCC=yes
20605 else
20606   GCC=
20607 fi
20608 ac_test_CFLAGS=${CFLAGS+set}
20609 ac_save_CFLAGS=$CFLAGS
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20612 if ${ac_cv_prog_cc_g+:} false; then :
20613   $as_echo_n "(cached) " >&6
20614 else
20615   ac_save_c_werror_flag=$ac_c_werror_flag
20616    ac_c_werror_flag=yes
20617    ac_cv_prog_cc_g=no
20618    CFLAGS="-g"
20619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h.  */
20621 
20622 int
20623 main ()
20624 {
20625 
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 if ac_fn_c_try_compile "$LINENO"; then :
20631   ac_cv_prog_cc_g=yes
20632 else


20670 fi
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20672 $as_echo "$ac_cv_prog_cc_g" >&6; }
20673 if test "$ac_test_CFLAGS" = set; then
20674   CFLAGS=$ac_save_CFLAGS
20675 elif test $ac_cv_prog_cc_g = yes; then
20676   if test "$GCC" = yes; then
20677     CFLAGS="-g -O2"
20678   else
20679     CFLAGS="-g"
20680   fi
20681 else
20682   if test "$GCC" = yes; then
20683     CFLAGS="-O2"
20684   else
20685     CFLAGS=
20686   fi
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20690 if ${ac_cv_prog_cc_c89+:} false; then :
20691   $as_echo_n "(cached) " >&6
20692 else
20693   ac_cv_prog_cc_c89=no
20694 ac_save_CC=$CC
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h.  */
20697 #include <stdarg.h>
20698 #include <stdio.h>
20699 struct stat;

20700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20701 struct buf { int x; };
20702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20703 static char *e (p, i)
20704      char **p;
20705      int i;
20706 {
20707   return p[i];
20708 }
20709 static char *f (char * (*g) (char **, int), char **p, ...)
20710 {
20711   char *s;
20712   va_list v;
20713   va_start (v,p);
20714   s = g (p, va_arg (v,int));
20715   va_end (v);
20716   return s;
20717 }
20718 
20719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has


20773 esac
20774 if test "x$ac_cv_prog_cc_c89" != xno; then :
20775 
20776 fi
20777 
20778 ac_ext=cpp
20779 ac_cpp='$CXXCPP $CPPFLAGS'
20780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20783 
20784 
20785 ### Locate C++ compiler (CXX)
20786 
20787 if test "x$CXX" != x; then
20788   COMPILER_CHECK_LIST="$CXX"
20789 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
20790   COMPILER_CHECK_LIST="cl"
20791 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
20792   COMPILER_CHECK_LIST="CC g++"
20793 elif test "x$OPENJDK_TARGET_OS" = xaix; then
20794   # Do not probe for CC on AIX .
20795   COMPILER_CHECK_LIST="xlC_r"
20796   # On AIX we currently only support 64-bit builds but the compilers by
20797   # default generate 32-bit objects unless we provide the '-q64' option.
20798   ORG_CXXFLAGS="-q64 $ORG_CXXFLAGS"
20799 else
20800   COMPILER_CHECK_LIST="g++ CC"
20801 fi
20802 
20803 
20804   COMPILER_NAME=C++
20805 
20806   CXX=
20807   # If TOOLS_DIR is set, check for all compiler names in there first
20808   # before checking the rest of the PATH.
20809   if test -n "$TOOLS_DIR"; then
20810     PATH_save="$PATH"
20811     PATH="$TOOLS_DIR"
20812     for ac_prog in $COMPILER_CHECK_LIST
20813 do
20814   # Extract the first word of "$ac_prog", so it can be a program name with args.
20815 set dummy $ac_prog; ac_word=$2
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20817 $as_echo_n "checking for $ac_word... " >&6; }
20818 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
20819   $as_echo_n "(cached) " >&6
20820 else
20821   case $TOOLS_DIR_CXX in
20822   [\\/]* | ?:[\\/]*)
20823   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20824   ;;
20825   *)
20826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20827 for as_dir in $PATH
20828 do
20829   IFS=$as_save_IFS
20830   test -z "$as_dir" && as_dir=.
20831     for ac_exec_ext in '' $ac_executable_extensions; do
20832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20833     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20835     break 2
20836   fi
20837 done
20838   done
20839 IFS=$as_save_IFS
20840 
20841   ;;
20842 esac
20843 fi
20844 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
20845 if test -n "$TOOLS_DIR_CXX"; then
20846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
20847 $as_echo "$TOOLS_DIR_CXX" >&6; }
20848 else
20849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20850 $as_echo "no" >&6; }
20851 fi
20852 
20853 
20854   test -n "$TOOLS_DIR_CXX" && break
20855 done
20856 
20857     CXX=$TOOLS_DIR_CXX
20858     PATH="$PATH_save"
20859   fi
20860 
20861   # AC_PATH_PROGS can't be run multiple times with the same variable,
20862   # so create a new name for this run.
20863   if test "x$CXX" = x; then
20864     for ac_prog in $COMPILER_CHECK_LIST
20865 do
20866   # Extract the first word of "$ac_prog", so it can be a program name with args.
20867 set dummy $ac_prog; ac_word=$2
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20869 $as_echo_n "checking for $ac_word... " >&6; }
20870 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
20871   $as_echo_n "(cached) " >&6
20872 else
20873   case $POTENTIAL_CXX in
20874   [\\/]* | ?:[\\/]*)
20875   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20876   ;;
20877   *)
20878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20879 for as_dir in $PATH
20880 do
20881   IFS=$as_save_IFS
20882   test -z "$as_dir" && as_dir=.
20883     for ac_exec_ext in '' $ac_executable_extensions; do
20884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20885     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20887     break 2
20888   fi
20889 done
20890   done
20891 IFS=$as_save_IFS
20892 
20893   ;;
20894 esac
20895 fi
20896 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
20897 if test -n "$POTENTIAL_CXX"; then
20898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
20899 $as_echo "$POTENTIAL_CXX" >&6; }
20900 else
20901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20902 $as_echo "no" >&6; }
20903 fi
20904 


21186           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21187 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21188         fi
21189         as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
21190       fi
21191   fi
21192 
21193       # Now join together the path and the arguments once again
21194       if test "x$arguments" != xEOL; then
21195         new_complete="$new_path ${arguments% *}"
21196       else
21197         new_complete="$new_path"
21198       fi
21199 
21200   if test "x$complete" != "x$new_complete"; then
21201       CXX="$new_complete"
21202       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
21203 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
21204     fi
21205 
21206   TEST_COMPILER="$CXX"
21207   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
21208   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
21209   if test "x$OPENJDK_BUILD_OS" != xaix; then
21210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
21211 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }

21212 
21213     if test "x$OPENJDK_BUILD_OS" != xwindows; then
21214         # Follow a chain of symbolic links. Use readlink
21215         # where it exists, else fall back to horribly
21216         # complicated shell code.
21217         if test "x$READLINK_TESTED" != yes; then
21218             # On MacOSX there is a readlink tool with a different
21219             # purpose than the GNU readlink tool. Check the found readlink.
21220             ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21221             if test "x$ISGNU" = x; then
21222                  # A readlink that we do not know how to use.
21223                  # Are there other non-GNU readlinks out there?
21224                  READLINK_TESTED=yes
21225                  READLINK=
21226             fi
21227         fi
21228 
21229         if test "x$READLINK" != x; then
21230             TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
21231         else


21242             while test $COUNTER -lt 20; do
21243                 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21244                 if test "x$ISLINK" == x; then
21245                     # This is not a symbolic link! We are done!
21246                     break
21247                 fi
21248                 # Again resolve directory symlinks since the target of the just found
21249                 # link could be in a different directory
21250                 cd `$DIRNAME $ISLINK`
21251                 sym_link_dir=`$THEPWDCMD -P`
21252                 sym_link_file=`$BASENAME $ISLINK`
21253                 let COUNTER=COUNTER+1
21254             done
21255             cd $STARTDIR
21256             TEST_COMPILER=$sym_link_dir/$sym_link_file
21257         fi
21258     fi
21259 
21260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
21261 $as_echo "$TEST_COMPILER" >&6; }
21262   fi
21263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
21264 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
21265 
21266   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
21267   if test "x$COMPILER_BASENAME" = "xccache"; then
21268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
21269 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
21270     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
21271     # We want to control ccache invocation ourselves, so ignore this cc and try
21272     # searching again.
21273 
21274     # Remove the path to the fake ccache cc from the PATH
21275     RETRY_COMPILER_SAVED_PATH="$PATH"
21276     COMPILER_DIRNAME=`$DIRNAME $CXX`
21277     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
21278 
21279     # Try again looking for our compiler
21280     if test -n "$ac_tool_prefix"; then
21281   for ac_prog in $COMPILER_CHECK_LIST
21282   do
21283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 $as_echo_n "checking for $ac_word... " >&6; }
21287 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
21288   $as_echo_n "(cached) " >&6
21289 else
21290   if test -n "$PROPER_COMPILER_CXX"; then
21291   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
21292 else
21293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21294 for as_dir in $PATH
21295 do
21296   IFS=$as_save_IFS
21297   test -z "$as_dir" && as_dir=.
21298     for ac_exec_ext in '' $ac_executable_extensions; do
21299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21300     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
21301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21302     break 2
21303   fi
21304 done
21305   done
21306 IFS=$as_save_IFS
21307 
21308 fi
21309 fi
21310 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
21311 if test -n "$PROPER_COMPILER_CXX"; then
21312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
21313 $as_echo "$PROPER_COMPILER_CXX" >&6; }
21314 else
21315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 $as_echo "no" >&6; }
21317 fi
21318 
21319 
21320     test -n "$PROPER_COMPILER_CXX" && break
21321   done
21322 fi
21323 if test -z "$PROPER_COMPILER_CXX"; then
21324   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
21325   for ac_prog in $COMPILER_CHECK_LIST
21326 do
21327   # Extract the first word of "$ac_prog", so it can be a program name with args.
21328 set dummy $ac_prog; ac_word=$2
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21330 $as_echo_n "checking for $ac_word... " >&6; }
21331 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
21332   $as_echo_n "(cached) " >&6
21333 else
21334   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21335   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
21336 else
21337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21338 for as_dir in $PATH
21339 do
21340   IFS=$as_save_IFS
21341   test -z "$as_dir" && as_dir=.
21342     for ac_exec_ext in '' $ac_executable_extensions; do
21343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21344     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
21345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21346     break 2
21347   fi
21348 done
21349   done
21350 IFS=$as_save_IFS
21351 
21352 fi
21353 fi
21354 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
21355 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
21356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
21357 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
21358 else
21359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21360 $as_echo "no" >&6; }
21361 fi
21362 
21363 


21706 
21707   COMPILER=$CXX
21708   COMPILER_NAME=$COMPILER_NAME
21709 
21710   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
21711     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
21712     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
21713     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
21714     if test $? -ne 0; then
21715       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21716 
21717       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
21718 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
21719       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
21720 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
21721       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
21722     else
21723       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
21724       COMPILER_VENDOR="Sun Studio"
21725     fi
21726   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
21727       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
21728       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
21729       if test $? -ne 0; then
21730         as_fn_error $? "Failed...." "$LINENO" 5
21731       else
21732         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
21733         COMPILER_VENDOR='IBM'
21734       fi
21735   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
21736     # First line typically looks something like:
21737     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
21738     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
21739     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
21740     COMPILER_VENDOR="Microsoft CL.EXE"
21741     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
21742     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
21743       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
21744         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
21745       fi
21746     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
21747       if test "x$COMPILER_CPU_TEST" != "xx64"; then
21748         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
21749       fi
21750     fi
21751   else
21752     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
21753     # Check that this is likely to be GCC.
21754     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null


21774 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21775 
21776 
21777 # Now that we have resolved CXX ourself, let autoconf have its go at it
21778 ac_ext=cpp
21779 ac_cpp='$CXXCPP $CPPFLAGS'
21780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21783 if test -z "$CXX"; then
21784   if test -n "$CCC"; then
21785     CXX=$CCC
21786   else
21787     if test -n "$ac_tool_prefix"; then
21788   for ac_prog in $CXX
21789   do
21790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21793 $as_echo_n "checking for $ac_word... " >&6; }
21794 if ${ac_cv_prog_CXX+:} false; then :
21795   $as_echo_n "(cached) " >&6
21796 else
21797   if test -n "$CXX"; then
21798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21799 else
21800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21802 do
21803   IFS=$as_save_IFS
21804   test -z "$as_dir" && as_dir=.
21805     for ac_exec_ext in '' $ac_executable_extensions; do
21806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809     break 2
21810   fi
21811 done
21812   done
21813 IFS=$as_save_IFS
21814 
21815 fi
21816 fi
21817 CXX=$ac_cv_prog_CXX
21818 if test -n "$CXX"; then
21819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21820 $as_echo "$CXX" >&6; }
21821 else
21822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 $as_echo "no" >&6; }
21824 fi
21825 
21826 
21827     test -n "$CXX" && break
21828   done
21829 fi
21830 if test -z "$CXX"; then
21831   ac_ct_CXX=$CXX
21832   for ac_prog in $CXX
21833 do
21834   # Extract the first word of "$ac_prog", so it can be a program name with args.
21835 set dummy $ac_prog; ac_word=$2
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21837 $as_echo_n "checking for $ac_word... " >&6; }
21838 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   if test -n "$ac_ct_CXX"; then
21842   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21843 else
21844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845 for as_dir in $PATH
21846 do
21847   IFS=$as_save_IFS
21848   test -z "$as_dir" && as_dir=.
21849     for ac_exec_ext in '' $ac_executable_extensions; do
21850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21851     ac_cv_prog_ac_ct_CXX="$ac_prog"
21852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853     break 2
21854   fi
21855 done
21856   done
21857 IFS=$as_save_IFS
21858 
21859 fi
21860 fi
21861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21862 if test -n "$ac_ct_CXX"; then
21863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
21864 $as_echo "$ac_ct_CXX" >&6; }
21865 else
21866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21867 $as_echo "no" >&6; }
21868 fi
21869 
21870 


21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21900 $as_echo "$ac_try_echo"; } >&5
21901   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21902   ac_status=$?
21903   if test -s conftest.err; then
21904     sed '10a\
21905 ... rest of stderr output deleted ...
21906          10q' conftest.err >conftest.er1
21907     cat conftest.er1 >&5
21908   fi
21909   rm -f conftest.er1 conftest.err
21910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21911   test $ac_status = 0; }
21912 done
21913 
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21915 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21916 if ${ac_cv_cxx_compiler_gnu+:} false; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21920 /* end confdefs.h.  */
21921 
21922 int
21923 main ()
21924 {
21925 #ifndef __GNUC__
21926        choke me
21927 #endif
21928 
21929   ;
21930   return 0;
21931 }
21932 _ACEOF
21933 if ac_fn_cxx_try_compile "$LINENO"; then :
21934   ac_compiler_gnu=yes
21935 else
21936   ac_compiler_gnu=no
21937 fi
21938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21939 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21940 
21941 fi
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21943 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21944 if test $ac_compiler_gnu = yes; then
21945   GXX=yes
21946 else
21947   GXX=
21948 fi
21949 ac_test_CXXFLAGS=${CXXFLAGS+set}
21950 ac_save_CXXFLAGS=$CXXFLAGS
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21952 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21953 if ${ac_cv_prog_cxx_g+:} false; then :
21954   $as_echo_n "(cached) " >&6
21955 else
21956   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21957    ac_cxx_werror_flag=yes
21958    ac_cv_prog_cxx_g=no
21959    CXXFLAGS="-g"
21960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h.  */
21962 
21963 int
21964 main ()
21965 {
21966 
21967   ;
21968   return 0;
21969 }
21970 _ACEOF
21971 if ac_fn_cxx_try_compile "$LINENO"; then :
21972   ac_cv_prog_cxx_g=yes
21973 else


22031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22034 
22035 
22036 ### Locate other tools
22037 
22038 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22039     ac_ext=m
22040 ac_cpp='$OBJCPP $CPPFLAGS'
22041 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22042 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22043 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
22044 if test -n "$ac_tool_prefix"; then
22045   for ac_prog in gcc objcc objc cc CC
22046   do
22047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22050 $as_echo_n "checking for $ac_word... " >&6; }
22051 if ${ac_cv_prog_OBJC+:} false; then :
22052   $as_echo_n "(cached) " >&6
22053 else
22054   if test -n "$OBJC"; then
22055   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
22056 else
22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22059 do
22060   IFS=$as_save_IFS
22061   test -z "$as_dir" && as_dir=.
22062     for ac_exec_ext in '' $ac_executable_extensions; do
22063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22064     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
22065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22066     break 2
22067   fi
22068 done
22069   done
22070 IFS=$as_save_IFS
22071 
22072 fi
22073 fi
22074 OBJC=$ac_cv_prog_OBJC
22075 if test -n "$OBJC"; then
22076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
22077 $as_echo "$OBJC" >&6; }
22078 else
22079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22081 fi
22082 
22083 
22084     test -n "$OBJC" && break
22085   done
22086 fi
22087 if test -z "$OBJC"; then
22088   ac_ct_OBJC=$OBJC
22089   for ac_prog in gcc objcc objc cc CC
22090 do
22091   # Extract the first word of "$ac_prog", so it can be a program name with args.
22092 set dummy $ac_prog; ac_word=$2
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22094 $as_echo_n "checking for $ac_word... " >&6; }
22095 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
22096   $as_echo_n "(cached) " >&6
22097 else
22098   if test -n "$ac_ct_OBJC"; then
22099   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
22100 else
22101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22102 for as_dir in $PATH
22103 do
22104   IFS=$as_save_IFS
22105   test -z "$as_dir" && as_dir=.
22106     for ac_exec_ext in '' $ac_executable_extensions; do
22107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22108     ac_cv_prog_ac_ct_OBJC="$ac_prog"
22109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22110     break 2
22111   fi
22112 done
22113   done
22114 IFS=$as_save_IFS
22115 
22116 fi
22117 fi
22118 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
22119 if test -n "$ac_ct_OBJC"; then
22120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
22121 $as_echo "$ac_ct_OBJC" >&6; }
22122 else
22123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124 $as_echo "no" >&6; }
22125 fi
22126 
22127 


22151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152   *) ac_try_echo=$ac_try;;
22153 esac
22154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22155 $as_echo "$ac_try_echo"; } >&5
22156   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22157   ac_status=$?
22158   if test -s conftest.err; then
22159     sed '10a\
22160 ... rest of stderr output deleted ...
22161          10q' conftest.err >conftest.er1
22162     cat conftest.er1 >&5
22163   fi
22164   rm -f conftest.er1 conftest.err
22165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22166   test $ac_status = 0; }
22167 done
22168 
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
22170 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
22171 if ${ac_cv_objc_compiler_gnu+:} false; then :
22172   $as_echo_n "(cached) " >&6
22173 else
22174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h.  */
22176 
22177 int
22178 main ()
22179 {
22180 #ifndef __GNUC__
22181        choke me
22182 #endif
22183 
22184   ;
22185   return 0;
22186 }
22187 _ACEOF
22188 if ac_fn_objc_try_compile "$LINENO"; then :
22189   ac_compiler_gnu=yes
22190 else
22191   ac_compiler_gnu=no
22192 fi
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
22195 
22196 fi
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
22198 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
22199 if test $ac_compiler_gnu = yes; then
22200   GOBJC=yes
22201 else
22202   GOBJC=
22203 fi
22204 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
22205 ac_save_OBJCFLAGS=$OBJCFLAGS
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
22207 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
22208 if ${ac_cv_prog_objc_g+:} false; then :
22209   $as_echo_n "(cached) " >&6
22210 else
22211   ac_save_objc_werror_flag=$ac_objc_werror_flag
22212    ac_objc_werror_flag=yes
22213    ac_cv_prog_objc_g=no
22214    OBJCFLAGS="-g"
22215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h.  */
22217 
22218 int
22219 main ()
22220 {
22221 
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 if ac_fn_objc_try_compile "$LINENO"; then :
22227   ac_cv_prog_objc_g=yes
22228 else


22564 OBJCFLAGS="$ORG_OBJCFLAGS"
22565 
22566 LD="$CC"
22567 LDEXE="$CC"
22568 LDCXX="$CXX"
22569 LDEXECXX="$CXX"
22570 
22571 # LDEXE is the linker to use, when creating executables.
22572 
22573 # Linking C++ libraries.
22574 
22575 # Linking C++ executables.
22576 
22577 
22578 if test "x$OPENJDK_TARGET_OS" != xwindows; then
22579     if test -n "$ac_tool_prefix"; then
22580   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22581 set dummy ${ac_tool_prefix}ar; ac_word=$2
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22583 $as_echo_n "checking for $ac_word... " >&6; }
22584 if ${ac_cv_prog_AR+:} false; then :
22585   $as_echo_n "(cached) " >&6
22586 else
22587   if test -n "$AR"; then
22588   ac_cv_prog_AR="$AR" # Let the user override the test.
22589 else
22590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22591 for as_dir in $PATH
22592 do
22593   IFS=$as_save_IFS
22594   test -z "$as_dir" && as_dir=.
22595     for ac_exec_ext in '' $ac_executable_extensions; do
22596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22597     ac_cv_prog_AR="${ac_tool_prefix}ar"
22598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22599     break 2
22600   fi
22601 done
22602   done
22603 IFS=$as_save_IFS
22604 
22605 fi
22606 fi
22607 AR=$ac_cv_prog_AR
22608 if test -n "$AR"; then
22609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
22610 $as_echo "$AR" >&6; }
22611 else
22612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613 $as_echo "no" >&6; }
22614 fi
22615 
22616 
22617 fi
22618 if test -z "$ac_cv_prog_AR"; then
22619   ac_ct_AR=$AR
22620   # Extract the first word of "ar", so it can be a program name with args.
22621 set dummy ar; ac_word=$2
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22623 $as_echo_n "checking for $ac_word... " >&6; }
22624 if ${ac_cv_prog_ac_ct_AR+:} false; then :
22625   $as_echo_n "(cached) " >&6
22626 else
22627   if test -n "$ac_ct_AR"; then
22628   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22629 else
22630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22631 for as_dir in $PATH
22632 do
22633   IFS=$as_save_IFS
22634   test -z "$as_dir" && as_dir=.
22635     for ac_exec_ext in '' $ac_executable_extensions; do
22636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22637     ac_cv_prog_ac_ct_AR="ar"
22638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22639     break 2
22640   fi
22641 done
22642   done
22643 IFS=$as_save_IFS
22644 
22645 fi
22646 fi
22647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22648 if test -n "$ac_ct_AR"; then
22649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
22650 $as_echo "$ac_ct_AR" >&6; }
22651 else
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654 fi
22655 
22656   if test "x$ac_ct_AR" = x; then


22920         as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
22921       fi
22922   fi
22923 
22924       # Now join together the path and the arguments once again
22925       if test "x$arguments" != xEOL; then
22926         new_complete="$new_path ${arguments% *}"
22927       else
22928         new_complete="$new_path"
22929       fi
22930 
22931   if test "x$complete" != "x$new_complete"; then
22932       AR="$new_complete"
22933       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
22934 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
22935     fi
22936 
22937 fi
22938 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
22939     ARFLAGS="-r"
22940 elif test "x$OPENJDK_TARGET_OS" = xaix; then
22941     ARFLAGS="-X64"
22942 else
22943     ARFLAGS=""
22944 fi
22945 
22946 
22947 # For hotspot, we need these in Windows mixed path; other platforms keep them the same
22948 HOTSPOT_CXX="$CXX"
22949 HOTSPOT_LD="$LD"
22950 
22951 
22952 
22953 COMPILER_NAME=gcc
22954 COMPILER_TYPE=CC
22955 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22956 
22957     # For now, assume that we are always compiling using cl.exe.
22958     CC_OUT_OPTION=-Fo
22959     EXE_OUT_OPTION=-out:
22960     LD_OUT_OPTION=-out:
22961     AR_OUT_OPTION=-out:
22962     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22963     # program for something completely different.
22964     # Extract the first word of "link", so it can be a program name with args.
22965 set dummy link; ac_word=$2
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22967 $as_echo_n "checking for $ac_word... " >&6; }
22968 if ${ac_cv_prog_WINLD+:} false; then :
22969   $as_echo_n "(cached) " >&6
22970 else
22971   if test -n "$WINLD"; then
22972   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22973 else
22974   ac_prog_rejected=no
22975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22976 for as_dir in $PATH
22977 do
22978   IFS=$as_save_IFS
22979   test -z "$as_dir" && as_dir=.
22980     for ac_exec_ext in '' $ac_executable_extensions; do
22981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22982     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22983        ac_prog_rejected=yes
22984        continue
22985      fi
22986     ac_cv_prog_WINLD="link"
22987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22988     break 2
22989   fi
22990 done
22991   done
22992 IFS=$as_save_IFS
22993 
22994 if test $ac_prog_rejected = yes; then
22995   # We found a bogon in the path, so make sure we never use it.
22996   set dummy $ac_cv_prog_WINLD
22997   shift
22998   if test $# != 0; then
22999     # We chose a different compiler from the bogus one.
23000     # However, it has the same basename, so the bogon will be chosen
23001     # first if we set WINLD to just the basename; use the full file name.


23287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
23288 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
23289     "$WINLD" --version > /dev/null
23290     if test $? -eq 0 ; then
23291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23292 $as_echo "no" >&6; }
23293       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
23294     else
23295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23296 $as_echo "yes" >&6; }
23297     fi
23298     LD="$WINLD"
23299     LDEXE="$WINLD"
23300     LDCXX="$WINLD"
23301     LDEXECXX="$WINLD"
23302 
23303     # Extract the first word of "mt", so it can be a program name with args.
23304 set dummy mt; ac_word=$2
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23306 $as_echo_n "checking for $ac_word... " >&6; }
23307 if ${ac_cv_prog_MT+:} false; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   if test -n "$MT"; then
23311   ac_cv_prog_MT="$MT" # Let the user override the test.
23312 else
23313   ac_prog_rejected=no
23314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23315 for as_dir in $PATH
23316 do
23317   IFS=$as_save_IFS
23318   test -z "$as_dir" && as_dir=.
23319     for ac_exec_ext in '' $ac_executable_extensions; do
23320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23321     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
23322        ac_prog_rejected=yes
23323        continue
23324      fi
23325     ac_cv_prog_MT="mt"
23326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23327     break 2
23328   fi
23329 done
23330   done
23331 IFS=$as_save_IFS
23332 
23333 if test $ac_prog_rejected = yes; then
23334   # We found a bogon in the path, so make sure we never use it.
23335   set dummy $ac_cv_prog_MT
23336   shift
23337   if test $# != 0; then
23338     # We chose a different compiler from the bogus one.
23339     # However, it has the same basename, so the bogon will be chosen
23340     # first if we set MT to just the basename; use the full file name.


23608   fi
23609 
23610       # Now join together the path and the arguments once again
23611       if test "x$arguments" != xEOL; then
23612         new_complete="$new_path ${arguments% *}"
23613       else
23614         new_complete="$new_path"
23615       fi
23616 
23617   if test "x$complete" != "x$new_complete"; then
23618       MT="$new_complete"
23619       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23620 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23621     fi
23622 
23623     # The resource compiler
23624     # Extract the first word of "rc", so it can be a program name with args.
23625 set dummy rc; ac_word=$2
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23627 $as_echo_n "checking for $ac_word... " >&6; }
23628 if ${ac_cv_prog_RC+:} false; then :
23629   $as_echo_n "(cached) " >&6
23630 else
23631   if test -n "$RC"; then
23632   ac_cv_prog_RC="$RC" # Let the user override the test.
23633 else
23634   ac_prog_rejected=no
23635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23636 for as_dir in $PATH
23637 do
23638   IFS=$as_save_IFS
23639   test -z "$as_dir" && as_dir=.
23640     for ac_exec_ext in '' $ac_executable_extensions; do
23641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23642     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23643        ac_prog_rejected=yes
23644        continue
23645      fi
23646     ac_cv_prog_RC="rc"
23647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23648     break 2
23649   fi
23650 done
23651   done
23652 IFS=$as_save_IFS
23653 
23654 if test $ac_prog_rejected = yes; then
23655   # We found a bogon in the path, so make sure we never use it.
23656   set dummy $ac_cv_prog_RC
23657   shift
23658   if test $# != 0; then
23659     # We chose a different compiler from the bogus one.
23660     # However, it has the same basename, so the bogon will be chosen
23661     # first if we set RC to just the basename; use the full file name.


24000 
24001     # The version variables used to create RC_FLAGS may be overridden
24002     # in a custom configure script, or possibly the command line.
24003     # Let those variables be expanded at make time in spec.gmk.
24004     # The \$ are escaped to the shell, and the $(...) variables
24005     # are evaluated by make.
24006     RC_FLAGS="$RC_FLAGS \
24007         -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
24008         -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
24009         -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
24010         -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
24011         -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
24012         -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
24013         -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
24014 
24015     # lib.exe is used to create static libraries.
24016     # Extract the first word of "lib", so it can be a program name with args.
24017 set dummy lib; ac_word=$2
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24019 $as_echo_n "checking for $ac_word... " >&6; }
24020 if ${ac_cv_prog_WINAR+:} false; then :
24021   $as_echo_n "(cached) " >&6
24022 else
24023   if test -n "$WINAR"; then
24024   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
24025 else
24026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24027 for as_dir in $PATH
24028 do
24029   IFS=$as_save_IFS
24030   test -z "$as_dir" && as_dir=.
24031     for ac_exec_ext in '' $ac_executable_extensions; do
24032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24033     ac_cv_prog_WINAR="lib"
24034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24035     break 2
24036   fi
24037 done
24038   done
24039 IFS=$as_save_IFS
24040 
24041 fi
24042 fi
24043 WINAR=$ac_cv_prog_WINAR
24044 if test -n "$WINAR"; then
24045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
24046 $as_echo "$WINAR" >&6; }
24047 else
24048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049 $as_echo "no" >&6; }
24050 fi
24051 
24052 


24306       # Now join together the path and the arguments once again
24307       if test "x$arguments" != xEOL; then
24308         new_complete="$new_path ${arguments% *}"
24309       else
24310         new_complete="$new_path"
24311       fi
24312 
24313   if test "x$complete" != "x$new_complete"; then
24314       WINAR="$new_complete"
24315       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
24316 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
24317     fi
24318 
24319     AR="$WINAR"
24320     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
24321 
24322     # Extract the first word of "dumpbin", so it can be a program name with args.
24323 set dummy dumpbin; ac_word=$2
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24325 $as_echo_n "checking for $ac_word... " >&6; }
24326 if ${ac_cv_prog_DUMPBIN+:} false; then :
24327   $as_echo_n "(cached) " >&6
24328 else
24329   if test -n "$DUMPBIN"; then
24330   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
24331 else
24332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24333 for as_dir in $PATH
24334 do
24335   IFS=$as_save_IFS
24336   test -z "$as_dir" && as_dir=.
24337     for ac_exec_ext in '' $ac_executable_extensions; do
24338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24339     ac_cv_prog_DUMPBIN="dumpbin"
24340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24341     break 2
24342   fi
24343 done
24344   done
24345 IFS=$as_save_IFS
24346 
24347 fi
24348 fi
24349 DUMPBIN=$ac_cv_prog_DUMPBIN
24350 if test -n "$DUMPBIN"; then
24351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
24352 $as_echo "$DUMPBIN" >&6; }
24353 else
24354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24355 $as_echo "no" >&6; }
24356 fi
24357 
24358 


24625 
24626     COMPILER_TYPE=CL
24627     CCXXFLAGS="$CCXXFLAGS -nologo"
24628 
24629 fi
24630 
24631 
24632 
24633 ac_ext=c
24634 ac_cpp='$CPP $CPPFLAGS'
24635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24639 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24640 # On Suns, sometimes $CPP names a directory.
24641 if test -n "$CPP" && test -d "$CPP"; then
24642   CPP=
24643 fi
24644 if test -z "$CPP"; then
24645   if ${ac_cv_prog_CPP+:} false; then :
24646   $as_echo_n "(cached) " >&6
24647 else
24648       # Double quotes because CPP needs to be expanded
24649     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24650     do
24651       ac_preproc_ok=false
24652 for ac_c_preproc_warn_flag in '' yes
24653 do
24654   # Use a header file that comes with gcc, so configuring glibc
24655   # with a fresh cross-compiler works.
24656   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24657   # <limits.h> exists even on freestanding compilers.
24658   # On the NeXT, cc -E runs the code through the compiler's parser,
24659   # not just through cpp. "Syntax error" is here to catch this case.
24660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661 /* end confdefs.h.  */
24662 #ifdef __STDC__
24663 # include <limits.h>
24664 #else
24665 # include <assert.h>


25025         new_complete="$new_path ${arguments% *}"
25026       else
25027         new_complete="$new_path"
25028       fi
25029 
25030   if test "x$complete" != "x$new_complete"; then
25031       CPP="$new_complete"
25032       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
25033 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
25034     fi
25035 
25036 
25037 ac_ext=cpp
25038 ac_cpp='$CXXCPP $CPPFLAGS'
25039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
25043 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
25044 if test -z "$CXXCPP"; then
25045   if ${ac_cv_prog_CXXCPP+:} false; then :
25046   $as_echo_n "(cached) " >&6
25047 else
25048       # Double quotes because CXXCPP needs to be expanded
25049     for CXXCPP in "$CXX -E" "/lib/cpp"
25050     do
25051       ac_preproc_ok=false
25052 for ac_cxx_preproc_warn_flag in '' yes
25053 do
25054   # Use a header file that comes with gcc, so configuring glibc
25055   # with a fresh cross-compiler works.
25056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25057   # <limits.h> exists even on freestanding compilers.
25058   # On the NeXT, cc -E runs the code through the compiler's parser,
25059   # not just through cpp. "Syntax error" is here to catch this case.
25060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25061 /* end confdefs.h.  */
25062 #ifdef __STDC__
25063 # include <limits.h>
25064 #else
25065 # include <assert.h>


25443     BUILD_CXX="$CXX"
25444     BUILD_LD="$LD"
25445 fi
25446 
25447 # for solaris we really need solaris tools, and not gnu equivalent
25448 #   these seems to normally reside in /usr/ccs/bin so add that to path before
25449 #   starting to probe
25450 #
25451 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
25452 #         so that it can be overriden --with-tools-dir
25453 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
25454     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
25455 fi
25456 
25457 # Find the right assembler.
25458 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25459     # Extract the first word of "as", so it can be a program name with args.
25460 set dummy as; ac_word=$2
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25462 $as_echo_n "checking for $ac_word... " >&6; }
25463 if ${ac_cv_path_AS+:} false; then :
25464   $as_echo_n "(cached) " >&6
25465 else
25466   case $AS in
25467   [\\/]* | ?:[\\/]*)
25468   ac_cv_path_AS="$AS" # Let the user override the test with a path.
25469   ;;
25470   *)
25471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25472 for as_dir in $PATH
25473 do
25474   IFS=$as_save_IFS
25475   test -z "$as_dir" && as_dir=.
25476     for ac_exec_ext in '' $ac_executable_extensions; do
25477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25478     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
25479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25480     break 2
25481   fi
25482 done
25483   done
25484 IFS=$as_save_IFS
25485 
25486   ;;
25487 esac
25488 fi
25489 AS=$ac_cv_path_AS
25490 if test -n "$AS"; then
25491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
25492 $as_echo "$AS" >&6; }
25493 else
25494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25495 $as_echo "no" >&6; }
25496 fi
25497 


25755       else
25756         new_complete="$new_path"
25757       fi
25758 
25759   if test "x$complete" != "x$new_complete"; then
25760       AS="$new_complete"
25761       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25762 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25763     fi
25764 
25765 else
25766     AS="$CC -c"
25767 fi
25768 
25769 
25770 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25771     # Extract the first word of "nm", so it can be a program name with args.
25772 set dummy nm; ac_word=$2
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25774 $as_echo_n "checking for $ac_word... " >&6; }
25775 if ${ac_cv_path_NM+:} false; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   case $NM in
25779   [\\/]* | ?:[\\/]*)
25780   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25781   ;;
25782   *)
25783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25784 for as_dir in $PATH
25785 do
25786   IFS=$as_save_IFS
25787   test -z "$as_dir" && as_dir=.
25788     for ac_exec_ext in '' $ac_executable_extensions; do
25789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25790     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25792     break 2
25793   fi
25794 done
25795   done
25796 IFS=$as_save_IFS
25797 
25798   ;;
25799 esac
25800 fi
25801 NM=$ac_cv_path_NM
25802 if test -n "$NM"; then
25803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25804 $as_echo "$NM" >&6; }
25805 else
25806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807 $as_echo "no" >&6; }
25808 fi
25809 


26061       fi
26062   fi
26063 
26064       # Now join together the path and the arguments once again
26065       if test "x$arguments" != xEOL; then
26066         new_complete="$new_path ${arguments% *}"
26067       else
26068         new_complete="$new_path"
26069       fi
26070 
26071   if test "x$complete" != "x$new_complete"; then
26072       NM="$new_complete"
26073       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26074 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26075     fi
26076 
26077     # Extract the first word of "gnm", so it can be a program name with args.
26078 set dummy gnm; ac_word=$2
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26080 $as_echo_n "checking for $ac_word... " >&6; }
26081 if ${ac_cv_path_GNM+:} false; then :
26082   $as_echo_n "(cached) " >&6
26083 else
26084   case $GNM in
26085   [\\/]* | ?:[\\/]*)
26086   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
26087   ;;
26088   *)
26089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26090 for as_dir in $PATH
26091 do
26092   IFS=$as_save_IFS
26093   test -z "$as_dir" && as_dir=.
26094     for ac_exec_ext in '' $ac_executable_extensions; do
26095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26096     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
26097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26098     break 2
26099   fi
26100 done
26101   done
26102 IFS=$as_save_IFS
26103 
26104   ;;
26105 esac
26106 fi
26107 GNM=$ac_cv_path_GNM
26108 if test -n "$GNM"; then
26109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
26110 $as_echo "$GNM" >&6; }
26111 else
26112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26113 $as_echo "no" >&6; }
26114 fi
26115 


26367       fi
26368   fi
26369 
26370       # Now join together the path and the arguments once again
26371       if test "x$arguments" != xEOL; then
26372         new_complete="$new_path ${arguments% *}"
26373       else
26374         new_complete="$new_path"
26375       fi
26376 
26377   if test "x$complete" != "x$new_complete"; then
26378       GNM="$new_complete"
26379       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
26380 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
26381     fi
26382 
26383     # Extract the first word of "strip", so it can be a program name with args.
26384 set dummy strip; ac_word=$2
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26386 $as_echo_n "checking for $ac_word... " >&6; }
26387 if ${ac_cv_path_STRIP+:} false; then :
26388   $as_echo_n "(cached) " >&6
26389 else
26390   case $STRIP in
26391   [\\/]* | ?:[\\/]*)
26392   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
26393   ;;
26394   *)
26395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26396 for as_dir in $PATH
26397 do
26398   IFS=$as_save_IFS
26399   test -z "$as_dir" && as_dir=.
26400     for ac_exec_ext in '' $ac_executable_extensions; do
26401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26402     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
26403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26404     break 2
26405   fi
26406 done
26407   done
26408 IFS=$as_save_IFS
26409 
26410   ;;
26411 esac
26412 fi
26413 STRIP=$ac_cv_path_STRIP
26414 if test -n "$STRIP"; then
26415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26416 $as_echo "$STRIP" >&6; }
26417 else
26418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26419 $as_echo "no" >&6; }
26420 fi
26421 


26673       fi
26674   fi
26675 
26676       # Now join together the path and the arguments once again
26677       if test "x$arguments" != xEOL; then
26678         new_complete="$new_path ${arguments% *}"
26679       else
26680         new_complete="$new_path"
26681       fi
26682 
26683   if test "x$complete" != "x$new_complete"; then
26684       STRIP="$new_complete"
26685       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26686 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26687     fi
26688 
26689     # Extract the first word of "mcs", so it can be a program name with args.
26690 set dummy mcs; ac_word=$2
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26692 $as_echo_n "checking for $ac_word... " >&6; }
26693 if ${ac_cv_path_MCS+:} false; then :
26694   $as_echo_n "(cached) " >&6
26695 else
26696   case $MCS in
26697   [\\/]* | ?:[\\/]*)
26698   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
26699   ;;
26700   *)
26701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26702 for as_dir in $PATH
26703 do
26704   IFS=$as_save_IFS
26705   test -z "$as_dir" && as_dir=.
26706     for ac_exec_ext in '' $ac_executable_extensions; do
26707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26708     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
26709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26710     break 2
26711   fi
26712 done
26713   done
26714 IFS=$as_save_IFS
26715 
26716   ;;
26717 esac
26718 fi
26719 MCS=$ac_cv_path_MCS
26720 if test -n "$MCS"; then
26721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
26722 $as_echo "$MCS" >&6; }
26723 else
26724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26725 $as_echo "no" >&6; }
26726 fi
26727 


26981 
26982       # Now join together the path and the arguments once again
26983       if test "x$arguments" != xEOL; then
26984         new_complete="$new_path ${arguments% *}"
26985       else
26986         new_complete="$new_path"
26987       fi
26988 
26989   if test "x$complete" != "x$new_complete"; then
26990       MCS="$new_complete"
26991       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26992 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26993     fi
26994 
26995 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26996     if test -n "$ac_tool_prefix"; then
26997   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26998 set dummy ${ac_tool_prefix}nm; ac_word=$2
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27000 $as_echo_n "checking for $ac_word... " >&6; }
27001 if ${ac_cv_prog_NM+:} false; then :
27002   $as_echo_n "(cached) " >&6
27003 else
27004   if test -n "$NM"; then
27005   ac_cv_prog_NM="$NM" # Let the user override the test.
27006 else
27007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27008 for as_dir in $PATH
27009 do
27010   IFS=$as_save_IFS
27011   test -z "$as_dir" && as_dir=.
27012     for ac_exec_ext in '' $ac_executable_extensions; do
27013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27014     ac_cv_prog_NM="${ac_tool_prefix}nm"
27015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27016     break 2
27017   fi
27018 done
27019   done
27020 IFS=$as_save_IFS
27021 
27022 fi
27023 fi
27024 NM=$ac_cv_prog_NM
27025 if test -n "$NM"; then
27026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
27027 $as_echo "$NM" >&6; }
27028 else
27029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27030 $as_echo "no" >&6; }
27031 fi
27032 
27033 
27034 fi
27035 if test -z "$ac_cv_prog_NM"; then
27036   ac_ct_NM=$NM
27037   # Extract the first word of "nm", so it can be a program name with args.
27038 set dummy nm; ac_word=$2
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27040 $as_echo_n "checking for $ac_word... " >&6; }
27041 if ${ac_cv_prog_ac_ct_NM+:} false; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044   if test -n "$ac_ct_NM"; then
27045   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
27046 else
27047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27048 for as_dir in $PATH
27049 do
27050   IFS=$as_save_IFS
27051   test -z "$as_dir" && as_dir=.
27052     for ac_exec_ext in '' $ac_executable_extensions; do
27053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27054     ac_cv_prog_ac_ct_NM="nm"
27055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27056     break 2
27057   fi
27058 done
27059   done
27060 IFS=$as_save_IFS
27061 
27062 fi
27063 fi
27064 ac_ct_NM=$ac_cv_prog_ac_ct_NM
27065 if test -n "$ac_ct_NM"; then
27066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
27067 $as_echo "$ac_ct_NM" >&6; }
27068 else
27069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070 $as_echo "no" >&6; }
27071 fi
27072 
27073   if test "x$ac_ct_NM" = x; then


27341       # Now join together the path and the arguments once again
27342       if test "x$arguments" != xEOL; then
27343         new_complete="$new_path ${arguments% *}"
27344       else
27345         new_complete="$new_path"
27346       fi
27347 
27348   if test "x$complete" != "x$new_complete"; then
27349       NM="$new_complete"
27350       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
27351 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
27352     fi
27353 
27354     GNM="$NM"
27355 
27356     if test -n "$ac_tool_prefix"; then
27357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27358 set dummy ${ac_tool_prefix}strip; ac_word=$2
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27360 $as_echo_n "checking for $ac_word... " >&6; }
27361 if ${ac_cv_prog_STRIP+:} false; then :
27362   $as_echo_n "(cached) " >&6
27363 else
27364   if test -n "$STRIP"; then
27365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27366 else
27367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368 for as_dir in $PATH
27369 do
27370   IFS=$as_save_IFS
27371   test -z "$as_dir" && as_dir=.
27372     for ac_exec_ext in '' $ac_executable_extensions; do
27373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27376     break 2
27377   fi
27378 done
27379   done
27380 IFS=$as_save_IFS
27381 
27382 fi
27383 fi
27384 STRIP=$ac_cv_prog_STRIP
27385 if test -n "$STRIP"; then
27386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27387 $as_echo "$STRIP" >&6; }
27388 else
27389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27390 $as_echo "no" >&6; }
27391 fi
27392 
27393 
27394 fi
27395 if test -z "$ac_cv_prog_STRIP"; then
27396   ac_ct_STRIP=$STRIP
27397   # Extract the first word of "strip", so it can be a program name with args.
27398 set dummy strip; ac_word=$2
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27400 $as_echo_n "checking for $ac_word... " >&6; }
27401 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
27402   $as_echo_n "(cached) " >&6
27403 else
27404   if test -n "$ac_ct_STRIP"; then
27405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27406 else
27407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27408 for as_dir in $PATH
27409 do
27410   IFS=$as_save_IFS
27411   test -z "$as_dir" && as_dir=.
27412     for ac_exec_ext in '' $ac_executable_extensions; do
27413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27414     ac_cv_prog_ac_ct_STRIP="strip"
27415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27416     break 2
27417   fi
27418 done
27419   done
27420 IFS=$as_save_IFS
27421 
27422 fi
27423 fi
27424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27425 if test -n "$ac_ct_STRIP"; then
27426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27427 $as_echo "$ac_ct_STRIP" >&6; }
27428 else
27429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27430 $as_echo "no" >&6; }
27431 fi
27432 
27433   if test "x$ac_ct_STRIP" = x; then


27706       fi
27707 
27708   if test "x$complete" != "x$new_complete"; then
27709       STRIP="$new_complete"
27710       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
27711 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
27712     fi
27713 
27714 fi
27715 
27716 # objcopy is used for moving debug symbols to separate files when
27717 # full debug symbols are enabled.
27718 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
27719     if test -n "$ac_tool_prefix"; then
27720   for ac_prog in gobjcopy objcopy
27721   do
27722     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27725 $as_echo_n "checking for $ac_word... " >&6; }
27726 if ${ac_cv_prog_OBJCOPY+:} false; then :
27727   $as_echo_n "(cached) " >&6
27728 else
27729   if test -n "$OBJCOPY"; then
27730   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
27731 else
27732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27733 for as_dir in $PATH
27734 do
27735   IFS=$as_save_IFS
27736   test -z "$as_dir" && as_dir=.
27737     for ac_exec_ext in '' $ac_executable_extensions; do
27738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27739     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
27740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27741     break 2
27742   fi
27743 done
27744   done
27745 IFS=$as_save_IFS
27746 
27747 fi
27748 fi
27749 OBJCOPY=$ac_cv_prog_OBJCOPY
27750 if test -n "$OBJCOPY"; then
27751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
27752 $as_echo "$OBJCOPY" >&6; }
27753 else
27754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27755 $as_echo "no" >&6; }
27756 fi
27757 
27758 
27759     test -n "$OBJCOPY" && break
27760   done
27761 fi
27762 if test -z "$OBJCOPY"; then
27763   ac_ct_OBJCOPY=$OBJCOPY
27764   for ac_prog in gobjcopy objcopy
27765 do
27766   # Extract the first word of "$ac_prog", so it can be a program name with args.
27767 set dummy $ac_prog; ac_word=$2
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27769 $as_echo_n "checking for $ac_word... " >&6; }
27770 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
27771   $as_echo_n "(cached) " >&6
27772 else
27773   if test -n "$ac_ct_OBJCOPY"; then
27774   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
27775 else
27776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27777 for as_dir in $PATH
27778 do
27779   IFS=$as_save_IFS
27780   test -z "$as_dir" && as_dir=.
27781     for ac_exec_ext in '' $ac_executable_extensions; do
27782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27783     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
27784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27785     break 2
27786   fi
27787 done
27788   done
27789 IFS=$as_save_IFS
27790 
27791 fi
27792 fi
27793 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
27794 if test -n "$ac_ct_OBJCOPY"; then
27795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
27796 $as_echo "$ac_ct_OBJCOPY" >&6; }
27797 else
27798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27799 $as_echo "no" >&6; }
27800 fi
27801 
27802 


28077       else
28078         new_complete="$new_path"
28079       fi
28080 
28081   if test "x$complete" != "x$new_complete"; then
28082       OBJCOPY="$new_complete"
28083       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
28084 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
28085     fi
28086 
28087     fi
28088 fi
28089 
28090 if test -n "$ac_tool_prefix"; then
28091   for ac_prog in gobjdump objdump
28092   do
28093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28096 $as_echo_n "checking for $ac_word... " >&6; }
28097 if ${ac_cv_prog_OBJDUMP+:} false; then :
28098   $as_echo_n "(cached) " >&6
28099 else
28100   if test -n "$OBJDUMP"; then
28101   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28102 else
28103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28104 for as_dir in $PATH
28105 do
28106   IFS=$as_save_IFS
28107   test -z "$as_dir" && as_dir=.
28108     for ac_exec_ext in '' $ac_executable_extensions; do
28109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28110     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
28111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28112     break 2
28113   fi
28114 done
28115   done
28116 IFS=$as_save_IFS
28117 
28118 fi
28119 fi
28120 OBJDUMP=$ac_cv_prog_OBJDUMP
28121 if test -n "$OBJDUMP"; then
28122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
28123 $as_echo "$OBJDUMP" >&6; }
28124 else
28125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28126 $as_echo "no" >&6; }
28127 fi
28128 
28129 
28130     test -n "$OBJDUMP" && break
28131   done
28132 fi
28133 if test -z "$OBJDUMP"; then
28134   ac_ct_OBJDUMP=$OBJDUMP
28135   for ac_prog in gobjdump objdump
28136 do
28137   # Extract the first word of "$ac_prog", so it can be a program name with args.
28138 set dummy $ac_prog; ac_word=$2
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28140 $as_echo_n "checking for $ac_word... " >&6; }
28141 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
28142   $as_echo_n "(cached) " >&6
28143 else
28144   if test -n "$ac_ct_OBJDUMP"; then
28145   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28146 else
28147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28148 for as_dir in $PATH
28149 do
28150   IFS=$as_save_IFS
28151   test -z "$as_dir" && as_dir=.
28152     for ac_exec_ext in '' $ac_executable_extensions; do
28153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28154     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
28155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28156     break 2
28157   fi
28158 done
28159   done
28160 IFS=$as_save_IFS
28161 
28162 fi
28163 fi
28164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
28165 if test -n "$ac_ct_OBJDUMP"; then
28166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
28167 $as_echo "$ac_ct_OBJDUMP" >&6; }
28168 else
28169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28170 $as_echo "no" >&6; }
28171 fi
28172 
28173 


28445       # Now join together the path and the arguments once again
28446       if test "x$arguments" != xEOL; then
28447         new_complete="$new_path ${arguments% *}"
28448       else
28449         new_complete="$new_path"
28450       fi
28451 
28452   if test "x$complete" != "x$new_complete"; then
28453       OBJDUMP="$new_complete"
28454       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
28455 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
28456     fi
28457 
28458 fi
28459 
28460 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
28461    # Extract the first word of "lipo", so it can be a program name with args.
28462 set dummy lipo; ac_word=$2
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28464 $as_echo_n "checking for $ac_word... " >&6; }
28465 if ${ac_cv_path_LIPO+:} false; then :
28466   $as_echo_n "(cached) " >&6
28467 else
28468   case $LIPO in
28469   [\\/]* | ?:[\\/]*)
28470   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
28471   ;;
28472   *)
28473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28474 for as_dir in $PATH
28475 do
28476   IFS=$as_save_IFS
28477   test -z "$as_dir" && as_dir=.
28478     for ac_exec_ext in '' $ac_executable_extensions; do
28479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28480     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
28481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28482     break 2
28483   fi
28484 done
28485   done
28486 IFS=$as_save_IFS
28487 
28488   ;;
28489 esac
28490 fi
28491 LIPO=$ac_cv_path_LIPO
28492 if test -n "$LIPO"; then
28493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
28494 $as_echo "$LIPO" >&6; }
28495 else
28496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28497 $as_echo "no" >&6; }
28498 fi
28499 


28762       LIPO="$new_complete"
28763       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
28764 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
28765     fi
28766 
28767 fi
28768 
28769 
28770 
28771 # Restore old path without tools dir
28772 PATH="$OLD_PATH"
28773 
28774 
28775 # FIXME: Currently we must test this after paths but before flags. Fix!
28776 
28777 # And we can test some aspects on the target using configure macros.
28778 
28779 
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28781 $as_echo_n "checking for ANSI C header files... " >&6; }
28782 if ${ac_cv_header_stdc+:} false; then :
28783   $as_echo_n "(cached) " >&6
28784 else
28785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28786 /* end confdefs.h.  */
28787 #include <stdlib.h>
28788 #include <stdarg.h>
28789 #include <string.h>
28790 #include <float.h>
28791 
28792 int
28793 main ()
28794 {
28795 
28796   ;
28797   return 0;
28798 }
28799 _ACEOF
28800 if ac_fn_cxx_try_compile "$LINENO"; then :
28801   ac_cv_header_stdc=yes
28802 else


28939   #   to prevent emitting warning...
28940   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28941   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28942   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28943 
28944   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28945   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28946   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28947 
28948   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28949   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28950   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28951 
28952   fi
28953 fi
28954 
28955 # Make compilation sanity check
28956 for ac_header in stdio.h
28957 do :
28958   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28959 if test "x$ac_cv_header_stdio_h" = xyes; then :
28960   cat >>confdefs.h <<_ACEOF
28961 #define HAVE_STDIO_H 1
28962 _ACEOF
28963 
28964 else
28965 
28966   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28967 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28968   if test "x$COMPILE_TYPE" = xreduced; then
28969     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28970 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28971   elif test "x$COMPILE_TYPE" = xcross; then
28972     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28973 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28974   fi
28975   as_fn_error $? "Cannot continue." "$LINENO" 5
28976 
28977 fi
28978 
28979 done
28980 
28981 
28982 # The cast to long int works around a bug in the HP C Compiler
28983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28985 # This bug is HP SR number 8606223364.
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28987 $as_echo_n "checking size of int *... " >&6; }
28988 if ${ac_cv_sizeof_int_p+:} false; then :
28989   $as_echo_n "(cached) " >&6
28990 else
28991   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28992 
28993 else
28994   if test "$ac_cv_type_int_p" = yes; then
28995      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28997 as_fn_error 77 "cannot compute sizeof (int *)
28998 See \`config.log' for more details" "$LINENO" 5; }
28999    else
29000      ac_cv_sizeof_int_p=0
29001    fi
29002 fi
29003 
29004 fi
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
29006 $as_echo "$ac_cv_sizeof_int_p" >&6; }
29007 
29008 


29025 else
29026     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
29027 
29028     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
29029         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
29030     fi
29031 fi
29032 
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
29034 $as_echo_n "checking for target address size... " >&6; }
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
29036 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
29037 
29038 
29039 ###############################################################################
29040 #
29041 # Is the target little of big endian?
29042 #
29043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29045 if ${ac_cv_c_bigendian+:} false; then :
29046   $as_echo_n "(cached) " >&6
29047 else
29048   ac_cv_c_bigendian=unknown
29049     # See if we're dealing with a universal compiler.
29050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29051 /* end confdefs.h.  */
29052 #ifndef __APPLE_CC__
29053                not a universal capable compiler
29054              #endif
29055              typedef int dummy;
29056 
29057 _ACEOF
29058 if ac_fn_cxx_try_compile "$LINENO"; then :
29059 
29060         # Check for potential -arch flags.  It is not universal unless
29061         # there are at least two -arch flags with different values.
29062         ac_arch=
29063         ac_prev=
29064         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29065          if test -n "$ac_prev"; then


29322         LIBRARY_PREFIX=lib
29323         SHARED_LIBRARY='lib$1.so'
29324         STATIC_LIBRARY='lib$1.a'
29325         SHARED_LIBRARY_FLAGS="-G"
29326         SHARED_LIBRARY_SUFFIX='.so'
29327         STATIC_LIBRARY_SUFFIX='.a'
29328         OBJ_SUFFIX='.o'
29329         EXE_SUFFIX=''
29330         SET_SHARED_LIBRARY_NAME=''
29331         SET_SHARED_LIBRARY_MAPFILE='-M$1'
29332         C_FLAG_REORDER='-xF'
29333         CXX_FLAG_REORDER='-xF'
29334         SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
29335         SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
29336         CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
29337         CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
29338         CFLAGS_JDKLIB_EXTRA='-xstrconst'
29339         POST_STRIP_CMD="$STRIP -x"
29340         POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
29341     fi
29342     if test "x$OPENJDK_TARGET_OS" = xaix; then
29343         COMPILER_NAME=xlc
29344         PICFLAG="-qpic=large"
29345         LIBRARY_PREFIX=lib
29346         SHARED_LIBRARY='lib$1.so'
29347         STATIC_LIBRARY='lib$1.a'
29348         SHARED_LIBRARY_FLAGS="-qmkshrobj"
29349         SHARED_LIBRARY_SUFFIX='.so'
29350         STATIC_LIBRARY_SUFFIX='.a'
29351         OBJ_SUFFIX='.o'
29352         EXE_SUFFIX=''
29353         SET_SHARED_LIBRARY_NAME=''
29354         SET_SHARED_LIBRARY_MAPFILE=''
29355         C_FLAG_REORDER=''
29356         CXX_FLAG_REORDER=''
29357         SET_SHARED_LIBRARY_ORIGIN=''
29358         SET_EXECUTABLE_ORIGIN=""
29359         CFLAGS_JDK=""
29360         CXXFLAGS_JDK=""
29361         CFLAGS_JDKLIB_EXTRA=''
29362         POST_STRIP_CMD="$STRIP -X32_64"
29363         POST_MCS_CMD=""
29364     fi
29365     if test "x$OPENJDK_TARGET_OS" = xwindows; then
29366         # If it is not gcc, then assume it is the MS Visual Studio compiler
29367         COMPILER_NAME=cl
29368         PICFLAG=""
29369         LIBRARY_PREFIX=
29370         SHARED_LIBRARY='$1.dll'
29371         STATIC_LIBRARY='$1.lib'
29372         SHARED_LIBRARY_FLAGS="-LD"
29373         SHARED_LIBRARY_SUFFIX='.dll'
29374         STATIC_LIBRARY_SUFFIX='.lib'
29375         OBJ_SUFFIX='.obj'
29376         EXE_SUFFIX='.exe'
29377         SET_SHARED_LIBRARY_NAME=''
29378         SET_SHARED_LIBRARY_MAPFILE=''
29379         SET_SHARED_LIBRARY_ORIGIN=''
29380         SET_EXECUTABLE_ORIGIN=''
29381     fi
29382 fi
29383 
29384 


29424 int main() { return 0; }
29425 _ACEOF
29426 if ac_fn_cxx_try_link "$LINENO"; then :
29427 
29428                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29429 $as_echo "yes" >&6; }
29430 
29431 else
29432 
29433                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29434 $as_echo "no" >&6; }
29435                         as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
29436 
29437 fi
29438 rm -f core conftest.err conftest.$ac_objext \
29439     conftest$ac_exeext conftest.$ac_ext
29440 fi
29441 
29442 C_FLAG_DEPS="-MMD -MF"
29443 CXX_FLAG_DEPS="-MMD -MF"
29444 # Option used to tell the compiler whether to create 32- or 64-bit executables
29445 COMP_MODE_OPTION="-m"
29446 
29447 case $COMPILER_TYPE in
29448   CC )
29449     case $COMPILER_NAME in
29450       gcc )
29451         case $OPENJDK_TARGET_OS in
29452           macosx )
29453             # On MacOSX we optimize for size, something
29454             # we should do for all platforms?
29455             C_O_FLAG_HI="-Os"
29456             C_O_FLAG_NORM="-Os"
29457             C_O_FLAG_NONE=""
29458             ;;
29459           *)
29460             C_O_FLAG_HI="-O3"
29461             C_O_FLAG_NORM="-O2"
29462             C_O_FLAG_NONE="-O0"
29463             ;;
29464         esac
29465         CXX_O_FLAG_HI="$C_O_FLAG_HI"


29531                C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
29532                CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
29533             fi
29534             ;;
29535           sparc)
29536             CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29537             CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
29538             C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29539             C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29540             C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
29541             C_O_FLAG_NONE=""
29542             CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
29543             CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29544             CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
29545             CXX_O_FLAG_NONE=""
29546             ;;
29547         esac
29548 
29549         CFLAGS_DEBUG_SYMBOLS="-g -xs"
29550         CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
29551         ;;
29552       xlc )
29553         COMP_MODE_OPTION="-q"
29554         C_FLAG_DEPS="-qmakedep=gcc -MF"
29555         CXX_FLAG_DEPS="-qmakedep=gcc -MF"
29556         C_O_FLAG_HIGHEST="-O3"
29557         C_O_FLAG_HI="-O3 -qstrict"
29558         C_O_FLAG_NORM="-O2"
29559         C_O_FLAG_NONE=""
29560         CXX_O_FLAG_HIGHEST="-O3"
29561         CXX_O_FLAG_HI="-O3 -qstrict"
29562         CXX_O_FLAG_NORM="-O2"
29563         CXX_O_FLAG_NONE=""
29564         CFLAGS_DEBUG_SYMBOLS="-g"
29565         CXXFLAGS_DEBUG_SYMBOLS="-g"
29566         LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
29567         CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
29568         CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
29569         ;;
29570     esac
29571     ;;
29572   CL )
29573     C_O_FLAG_HIGHEST="-O2"
29574     C_O_FLAG_HI="-O1"
29575     C_O_FLAG_NORM="-O1"
29576     C_O_FLAG_NONE="-Od"
29577     CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
29578     CXX_O_FLAG_HI="$C_O_FLAG_HI"
29579     CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
29580     CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
29581     ;;
29582 esac
29583 
29584 if test -z "$C_O_FLAG_HIGHEST"; then
29585    C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
29586 fi
29587 
29588 if test -z "$CXX_O_FLAG_HIGHEST"; then
29589    CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
29590 fi
29591 
29592 
29593 
29594 
29595 
29596 
29597 
29598 
29599 
29600 
29601 
29602 
29603 
29604 
29605 
29606 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
29607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
29608 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
29609 fi
29610 
29611 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
29612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
29613 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
29614 fi
29615 
29616 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
29617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
29618 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
29619 fi
29620 
29621 
29622 # Check whether --with-extra-cflags was given.
29623 if test "${with_extra_cflags+set}" = set; then :
29624   withval=$with_extra_cflags;
29625 fi


29674             CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
29675             CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
29676           ;;
29677           esac
29678           ;;
29679       ossc )
29680           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
29681           case $OPENJDK_TARGET_CPU_ARCH in
29682           x86 )
29683             CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
29684             CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
29685           ;;
29686           esac
29687 
29688           CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
29689           CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
29690 
29691           LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
29692           LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
29693           ;;
29694       xlc )
29695           CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
29696           CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
29697 
29698           LDFLAGS_JDK="$LDFLAGS_JDK"
29699           LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK"
29700           ;;
29701       cl )
29702           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
29703                -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
29704                -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
29705                -DWIN32 -DIAL"
29706           case $OPENJDK_TARGET_CPU in
29707               x86 )
29708                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
29709                   ;;
29710               x86_64 )
29711                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
29712                   ;;
29713           esac
29714           ;;
29715 esac
29716 
29717 ###############################################################################
29718 
29719 # Adjust flags according to debug level.
29720 case $DEBUG_LEVEL in


29750     #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
29751     #   Note: -Dmacro         is the same as    #define macro 1
29752     #         -Dmacro=      is the same as    #define macro
29753     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29754         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
29755     else
29756         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
29757     fi
29758 else
29759     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
29760 fi
29761 if test "x$OPENJDK_TARGET_OS" = xlinux; then
29762     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
29763 fi
29764 if test "x$OPENJDK_TARGET_OS" = xwindows; then
29765     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
29766 fi
29767 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
29768     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
29769 fi
29770 if test "x$OPENJDK_TARGET_OS" = xaix; then
29771     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64"
29772 fi
29773 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
29774     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
29775     # Setting these parameters makes it an error to link to macosx APIs that are
29776     # newer than the given OS version and makes the linked binaries compatible even
29777     # if built on a newer version of the OS.
29778     # The expected format is X.Y.Z
29779     MACOSX_VERSION_MIN=10.7.0
29780 
29781     # The macro takes the version with no dots, ex: 1070
29782     # Let the flags variables get resolved in make for easier override on make
29783     # command line.
29784     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29785     LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
29786 fi
29787 if test "x$OPENJDK_TARGET_OS" = xbsd; then
29788     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
29789 fi
29790 if test "x$DEBUG_LEVEL" = xrelease; then
29791     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
29792     if test "x$OPENJDK_TARGET_OS" = xsolaris; then


29961 fi
29962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29963   ac_ext=cpp
29964 ac_cpp='$CXXCPP $CPPFLAGS'
29965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29968 
29969   CXXFLAGS="$saved_cxxflags"
29970 
29971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
29972 $as_echo "$supports" >&6; }
29973   if test "x$supports" = "xyes" ; then
29974     :
29975   else
29976     ZERO_ARCHFLAG=""
29977   fi
29978 
29979 
29980 
29981   # Check that the compiler supports -mX (or -qX on AIX) flags
29982   # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
29983 
29984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMP_MODE_OPTION}${OPENJDK_TARGET_CPU_BITS}\"" >&5
29985 $as_echo_n "checking if compiler supports \"${COMP_MODE_OPTION}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
29986   supports=yes
29987 
29988   saved_cflags="$CFLAGS"
29989   CFLAGS="$CFLAGS ${COMP_MODE_OPTION}${OPENJDK_TARGET_CPU_BITS}"
29990   ac_ext=c
29991 ac_cpp='$CPP $CPPFLAGS'
29992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29995 
29996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29997 /* end confdefs.h.  */
29998 
29999     int i;
30000 
30001 _ACEOF
30002 if ac_fn_c_try_compile "$LINENO"; then :
30003 
30004 else
30005   supports=no
30006 fi
30007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30008   ac_ext=cpp
30009 ac_cpp='$CXXCPP $CPPFLAGS'
30010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30013 
30014   CFLAGS="$saved_cflags"
30015 
30016   saved_cxxflags="$CXXFLAGS"
30017   CXXFLAGS="$CXXFLAG ${COMP_MODE_OPTION}${OPENJDK_TARGET_CPU_BITS}"
30018   ac_ext=cpp
30019 ac_cpp='$CXXCPP $CPPFLAGS'
30020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30023 
30024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30025 /* end confdefs.h.  */
30026 
30027     int i;
30028 
30029 _ACEOF
30030 if ac_fn_cxx_try_compile "$LINENO"; then :
30031 
30032 else
30033   supports=no
30034 fi
30035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30036   ac_ext=cpp
30037 ac_cpp='$CXXCPP $CPPFLAGS'


30152 #
30153 # OS specific settings that we never will need to probe.
30154 #
30155 if test "x$OPENJDK_TARGET_OS" = xlinux; then
30156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
30157 $as_echo_n "checking what is not needed on Linux?... " >&6; }
30158     PULSE_NOT_NEEDED=yes
30159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
30160 $as_echo "pulse" >&6; }
30161 fi
30162 
30163 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
30165 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
30166     ALSA_NOT_NEEDED=yes
30167     PULSE_NOT_NEEDED=yes
30168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30169 $as_echo "alsa pulse" >&6; }
30170 fi
30171 
30172 if test "x$OPENJDK_TARGET_OS" = xaix; then
30173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
30174 $as_echo_n "checking what is not needed on AIX?... " >&6; }
30175     ALSA_NOT_NEEDED=yes
30176     PULSE_NOT_NEEDED=yes
30177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
30178 $as_echo "alsa pulse" >&6; }
30179 fi
30180 
30181 
30182 if test "x$OPENJDK_TARGET_OS" = xwindows; then
30183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
30184 $as_echo_n "checking what is not needed on Windows?... " >&6; }
30185     CUPS_NOT_NEEDED=yes
30186     ALSA_NOT_NEEDED=yes
30187     PULSE_NOT_NEEDED=yes
30188     X11_NOT_NEEDED=yes
30189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
30190 $as_echo "alsa cups pulse x11" >&6; }
30191 fi
30192 
30193 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
30195 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
30196     ALSA_NOT_NEEDED=yes
30197     PULSE_NOT_NEEDED=yes
30198     X11_NOT_NEEDED=yes
30199     FREETYPE2_NOT_NEEDED=yes
30200     # If the java runtime framework is disabled, then we need X11.
30201     # This will be adjusted below.


30288   fi
30289 fi
30290 
30291 # Now let autoconf do it's magic
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30293 $as_echo_n "checking for X... " >&6; }
30294 
30295 
30296 # Check whether --with-x was given.
30297 if test "${with_x+set}" = set; then :
30298   withval=$with_x;
30299 fi
30300 
30301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30302 if test "x$with_x" = xno; then
30303   # The user explicitly disabled X.
30304   have_x=disabled
30305 else
30306   case $x_includes,$x_libraries in #(
30307     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30308     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
30309   $as_echo_n "(cached) " >&6
30310 else
30311   # One or both of the vars are not set, and there is no cached value.
30312 ac_x_includes=no ac_x_libraries=no
30313 rm -f -r conftest.dir
30314 if mkdir conftest.dir; then
30315   cd conftest.dir
30316   cat >Imakefile <<'_ACEOF'
30317 incroot:
30318         @echo incroot='${INCROOT}'
30319 usrlibdir:
30320         @echo usrlibdir='${USRLIBDIR}'
30321 libdir:
30322         @echo libdir='${LIBDIR}'
30323 _ACEOF
30324   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30325     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30326     for ac_var in incroot usrlibdir libdir; do
30327       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30328     done


30565 /* Override any GCC internal prototype to avoid an error.
30566    Use char because int might match the return type of a GCC
30567    builtin and then its argument prototype would still apply.  */
30568 #ifdef __cplusplus
30569 extern "C"
30570 #endif
30571 char XOpenDisplay ();
30572 int
30573 main ()
30574 {
30575 return XOpenDisplay ();
30576   ;
30577   return 0;
30578 }
30579 _ACEOF
30580 if ac_fn_cxx_try_link "$LINENO"; then :
30581 
30582 else
30583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30584 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30585 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
30586   $as_echo_n "(cached) " >&6
30587 else
30588   ac_check_lib_save_LIBS=$LIBS
30589 LIBS="-ldnet  $LIBS"
30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h.  */
30592 
30593 /* Override any GCC internal prototype to avoid an error.
30594    Use char because int might match the return type of a GCC
30595    builtin and then its argument prototype would still apply.  */
30596 #ifdef __cplusplus
30597 extern "C"
30598 #endif
30599 char dnet_ntoa ();
30600 int
30601 main ()
30602 {
30603 return dnet_ntoa ();
30604   ;
30605   return 0;
30606 }
30607 _ACEOF
30608 if ac_fn_cxx_try_link "$LINENO"; then :
30609   ac_cv_lib_dnet_dnet_ntoa=yes
30610 else
30611   ac_cv_lib_dnet_dnet_ntoa=no
30612 fi
30613 rm -f core conftest.err conftest.$ac_objext \
30614     conftest$ac_exeext conftest.$ac_ext
30615 LIBS=$ac_check_lib_save_LIBS
30616 fi
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30618 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30619 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
30620   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30621 fi
30622 
30623     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30625 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30626 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
30627   $as_echo_n "(cached) " >&6
30628 else
30629   ac_check_lib_save_LIBS=$LIBS
30630 LIBS="-ldnet_stub  $LIBS"
30631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30632 /* end confdefs.h.  */
30633 
30634 /* Override any GCC internal prototype to avoid an error.
30635    Use char because int might match the return type of a GCC
30636    builtin and then its argument prototype would still apply.  */
30637 #ifdef __cplusplus
30638 extern "C"
30639 #endif
30640 char dnet_ntoa ();
30641 int
30642 main ()
30643 {
30644 return dnet_ntoa ();
30645   ;
30646   return 0;
30647 }
30648 _ACEOF
30649 if ac_fn_cxx_try_link "$LINENO"; then :
30650   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30651 else
30652   ac_cv_lib_dnet_stub_dnet_ntoa=no
30653 fi
30654 rm -f core conftest.err conftest.$ac_objext \
30655     conftest$ac_exeext conftest.$ac_ext
30656 LIBS=$ac_check_lib_save_LIBS
30657 fi
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30659 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30660 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
30661   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30662 fi
30663 
30664     fi
30665 fi
30666 rm -f core conftest.err conftest.$ac_objext \
30667     conftest$ac_exeext conftest.$ac_ext
30668     LIBS="$ac_xsave_LIBS"
30669 
30670     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30671     # to get the SysV transport functions.
30672     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30673     # needs -lnsl.
30674     # The nsl library prevents programs from opening the X display
30675     # on Irix 5.2, according to T.E. Dickey.
30676     # The functions gethostbyname, getservbyname, and inet_addr are
30677     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30678     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30679 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30680 
30681 fi
30682 
30683     if test $ac_cv_func_gethostbyname = no; then
30684       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30685 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30686 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
30687   $as_echo_n "(cached) " >&6
30688 else
30689   ac_check_lib_save_LIBS=$LIBS
30690 LIBS="-lnsl  $LIBS"
30691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30692 /* end confdefs.h.  */
30693 
30694 /* Override any GCC internal prototype to avoid an error.
30695    Use char because int might match the return type of a GCC
30696    builtin and then its argument prototype would still apply.  */
30697 #ifdef __cplusplus
30698 extern "C"
30699 #endif
30700 char gethostbyname ();
30701 int
30702 main ()
30703 {
30704 return gethostbyname ();
30705   ;
30706   return 0;
30707 }
30708 _ACEOF
30709 if ac_fn_cxx_try_link "$LINENO"; then :
30710   ac_cv_lib_nsl_gethostbyname=yes
30711 else
30712   ac_cv_lib_nsl_gethostbyname=no
30713 fi
30714 rm -f core conftest.err conftest.$ac_objext \
30715     conftest$ac_exeext conftest.$ac_ext
30716 LIBS=$ac_check_lib_save_LIBS
30717 fi
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30719 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30720 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
30721   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30722 fi
30723 
30724       if test $ac_cv_lib_nsl_gethostbyname = no; then
30725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30726 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30727 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
30728   $as_echo_n "(cached) " >&6
30729 else
30730   ac_check_lib_save_LIBS=$LIBS
30731 LIBS="-lbsd  $LIBS"
30732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30733 /* end confdefs.h.  */
30734 
30735 /* Override any GCC internal prototype to avoid an error.
30736    Use char because int might match the return type of a GCC
30737    builtin and then its argument prototype would still apply.  */
30738 #ifdef __cplusplus
30739 extern "C"
30740 #endif
30741 char gethostbyname ();
30742 int
30743 main ()
30744 {
30745 return gethostbyname ();
30746   ;
30747   return 0;
30748 }
30749 _ACEOF
30750 if ac_fn_cxx_try_link "$LINENO"; then :
30751   ac_cv_lib_bsd_gethostbyname=yes
30752 else
30753   ac_cv_lib_bsd_gethostbyname=no
30754 fi
30755 rm -f core conftest.err conftest.$ac_objext \
30756     conftest$ac_exeext conftest.$ac_ext
30757 LIBS=$ac_check_lib_save_LIBS
30758 fi
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30760 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30761 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
30762   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30763 fi
30764 
30765       fi
30766     fi
30767 
30768     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30769     # socket/setsockopt and other routines are undefined under SCO ODT
30770     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30771     # on later versions), says Simon Leinen: it contains gethostby*
30772     # variants that don't use the name server (or something).  -lsocket
30773     # must be given before -lnsl if both are needed.  We assume that
30774     # if connect needs -lnsl, so does gethostbyname.
30775     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
30776 if test "x$ac_cv_func_connect" = xyes; then :
30777 
30778 fi
30779 
30780     if test $ac_cv_func_connect = no; then
30781       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30782 $as_echo_n "checking for connect in -lsocket... " >&6; }
30783 if ${ac_cv_lib_socket_connect+:} false; then :
30784   $as_echo_n "(cached) " >&6
30785 else
30786   ac_check_lib_save_LIBS=$LIBS
30787 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30789 /* end confdefs.h.  */
30790 
30791 /* Override any GCC internal prototype to avoid an error.
30792    Use char because int might match the return type of a GCC
30793    builtin and then its argument prototype would still apply.  */
30794 #ifdef __cplusplus
30795 extern "C"
30796 #endif
30797 char connect ();
30798 int
30799 main ()
30800 {
30801 return connect ();
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 if ac_fn_cxx_try_link "$LINENO"; then :
30807   ac_cv_lib_socket_connect=yes
30808 else
30809   ac_cv_lib_socket_connect=no
30810 fi
30811 rm -f core conftest.err conftest.$ac_objext \
30812     conftest$ac_exeext conftest.$ac_ext
30813 LIBS=$ac_check_lib_save_LIBS
30814 fi
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30816 $as_echo "$ac_cv_lib_socket_connect" >&6; }
30817 if test "x$ac_cv_lib_socket_connect" = xyes; then :
30818   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30819 fi
30820 
30821     fi
30822 
30823     # Guillermo Gomez says -lposix is necessary on A/UX.
30824     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
30825 if test "x$ac_cv_func_remove" = xyes; then :
30826 
30827 fi
30828 
30829     if test $ac_cv_func_remove = no; then
30830       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30831 $as_echo_n "checking for remove in -lposix... " >&6; }
30832 if ${ac_cv_lib_posix_remove+:} false; then :
30833   $as_echo_n "(cached) " >&6
30834 else
30835   ac_check_lib_save_LIBS=$LIBS
30836 LIBS="-lposix  $LIBS"
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h.  */
30839 
30840 /* Override any GCC internal prototype to avoid an error.
30841    Use char because int might match the return type of a GCC
30842    builtin and then its argument prototype would still apply.  */
30843 #ifdef __cplusplus
30844 extern "C"
30845 #endif
30846 char remove ();
30847 int
30848 main ()
30849 {
30850 return remove ();
30851   ;
30852   return 0;
30853 }
30854 _ACEOF
30855 if ac_fn_cxx_try_link "$LINENO"; then :
30856   ac_cv_lib_posix_remove=yes
30857 else
30858   ac_cv_lib_posix_remove=no
30859 fi
30860 rm -f core conftest.err conftest.$ac_objext \
30861     conftest$ac_exeext conftest.$ac_ext
30862 LIBS=$ac_check_lib_save_LIBS
30863 fi
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30865 $as_echo "$ac_cv_lib_posix_remove" >&6; }
30866 if test "x$ac_cv_lib_posix_remove" = xyes; then :
30867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30868 fi
30869 
30870     fi
30871 
30872     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30873     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30874 if test "x$ac_cv_func_shmat" = xyes; then :
30875 
30876 fi
30877 
30878     if test $ac_cv_func_shmat = no; then
30879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30880 $as_echo_n "checking for shmat in -lipc... " >&6; }
30881 if ${ac_cv_lib_ipc_shmat+:} false; then :
30882   $as_echo_n "(cached) " >&6
30883 else
30884   ac_check_lib_save_LIBS=$LIBS
30885 LIBS="-lipc  $LIBS"
30886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30887 /* end confdefs.h.  */
30888 
30889 /* Override any GCC internal prototype to avoid an error.
30890    Use char because int might match the return type of a GCC
30891    builtin and then its argument prototype would still apply.  */
30892 #ifdef __cplusplus
30893 extern "C"
30894 #endif
30895 char shmat ();
30896 int
30897 main ()
30898 {
30899 return shmat ();
30900   ;
30901   return 0;
30902 }
30903 _ACEOF
30904 if ac_fn_cxx_try_link "$LINENO"; then :
30905   ac_cv_lib_ipc_shmat=yes
30906 else
30907   ac_cv_lib_ipc_shmat=no
30908 fi
30909 rm -f core conftest.err conftest.$ac_objext \
30910     conftest$ac_exeext conftest.$ac_ext
30911 LIBS=$ac_check_lib_save_LIBS
30912 fi
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30914 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30915 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
30916   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30917 fi
30918 
30919     fi
30920   fi
30921 
30922   # Check for libraries that X11R6 Xt/Xaw programs need.
30923   ac_save_LDFLAGS=$LDFLAGS
30924   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30925   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30926   # check for ICE first), but we must link in the order -lSM -lICE or
30927   # we get undefined symbols.  So assume we have SM if we have ICE.
30928   # These have to be linked with before -lX11, unlike the other
30929   # libraries we check for below, so use a different variable.
30930   # John Interrante, Karl Berry
30931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30932 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30933 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
30934   $as_echo_n "(cached) " >&6
30935 else
30936   ac_check_lib_save_LIBS=$LIBS
30937 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30939 /* end confdefs.h.  */
30940 
30941 /* Override any GCC internal prototype to avoid an error.
30942    Use char because int might match the return type of a GCC
30943    builtin and then its argument prototype would still apply.  */
30944 #ifdef __cplusplus
30945 extern "C"
30946 #endif
30947 char IceConnectionNumber ();
30948 int
30949 main ()
30950 {
30951 return IceConnectionNumber ();
30952   ;
30953   return 0;
30954 }
30955 _ACEOF
30956 if ac_fn_cxx_try_link "$LINENO"; then :
30957   ac_cv_lib_ICE_IceConnectionNumber=yes
30958 else
30959   ac_cv_lib_ICE_IceConnectionNumber=no
30960 fi
30961 rm -f core conftest.err conftest.$ac_objext \
30962     conftest$ac_exeext conftest.$ac_ext
30963 LIBS=$ac_check_lib_save_LIBS
30964 fi
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30966 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30967 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
30968   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30969 fi
30970 
30971   LDFLAGS=$ac_save_LDFLAGS
30972 
30973 fi
30974 
30975 
30976 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
30977 # this doesn't make sense so we remove it.
30978 if test "x$COMPILE_TYPE" = xcross; then
30979   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
30980 fi
30981 
30982 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
30983 
30984     # Print a helpful message on how to acquire the necessary build dependency.
30985     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
30986     MISSING_DEPENDENCY=x11
30987     PKGHANDLER_COMMAND=


31965                 pkgutil_help $MISSING_DEPENDENCY ;;
31966         pkgadd)
31967                 pkgadd_help  $MISSING_DEPENDENCY ;;
31968     * )
31969        break ;;
31970     esac
31971 
31972     if test "x$PKGHANDLER_COMMAND" != x; then
31973         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31974     fi
31975 
31976                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
31977         fi
31978 
31979         if test "x$OPENJDK_TARGET_OS" != xwindows; then
31980             # AC_CHECK_LIB does not support use of cl.exe
31981             PREV_LDFLAGS="$LDFLAGS"
31982             LDFLAGS="$FREETYPE2_LIBS"
31983             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
31984 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
31985 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
31986   $as_echo_n "(cached) " >&6
31987 else
31988   ac_check_lib_save_LIBS=$LIBS
31989 LIBS="-lfreetype  $LIBS"
31990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31991 /* end confdefs.h.  */
31992 
31993 /* Override any GCC internal prototype to avoid an error.
31994    Use char because int might match the return type of a GCC
31995    builtin and then its argument prototype would still apply.  */
31996 #ifdef __cplusplus
31997 extern "C"
31998 #endif
31999 char FT_Init_FreeType ();
32000 int
32001 main ()
32002 {
32003 return FT_Init_FreeType ();
32004   ;
32005   return 0;
32006 }
32007 _ACEOF
32008 if ac_fn_cxx_try_link "$LINENO"; then :
32009   ac_cv_lib_freetype_FT_Init_FreeType=yes
32010 else
32011   ac_cv_lib_freetype_FT_Init_FreeType=no
32012 fi
32013 rm -f core conftest.err conftest.$ac_objext \
32014     conftest$ac_exeext conftest.$ac_ext
32015 LIBS=$ac_check_lib_save_LIBS
32016 fi
32017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
32018 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
32019 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
32020   FREETYPE2_FOUND=true
32021 else
32022   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
32023 fi
32024 
32025             LDFLAGS="$PREV_LDFLAGS"
32026         fi
32027 fi
32028 
32029 
32030 
32031 
32032 
32033 
32034 
32035 
32036 
32037 ###############################################################################
32038 #
32039 # Check for alsa headers and libraries. Used on Linux/GNU systems.


32287         # Put the nasty error message in config.log where it belongs
32288         echo "$ALSA_PKG_ERRORS" >&5
32289 
32290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32291 $as_echo "no" >&6; }
32292                 ALSA_FOUND=no
32293 elif test $pkg_failed = untried; then
32294         ALSA_FOUND=no
32295 else
32296         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
32297         ALSA_LIBS=$pkg_cv_ALSA_LIBS
32298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32299 $as_echo "yes" >&6; }
32300         ALSA_FOUND=yes
32301 fi
32302         fi
32303         if test "x$ALSA_FOUND" = xno; then
32304             for ac_header in alsa/asoundlib.h
32305 do :
32306   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
32307 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
32308   cat >>confdefs.h <<_ACEOF
32309 #define HAVE_ALSA_ASOUNDLIB_H 1
32310 _ACEOF
32311  ALSA_FOUND=yes
32312                               ALSA_CFLAGS=-Iignoreme
32313                               ALSA_LIBS=-lasound
32314                               DEFAULT_ALSA=yes
32315 else
32316   ALSA_FOUND=no
32317 fi
32318 
32319 done
32320 
32321         fi
32322         if test "x$ALSA_FOUND" = xno; then
32323 
32324     # Print a helpful message on how to acquire the necessary build dependency.
32325     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
32326     MISSING_DEPENDENCY=alsa
32327     PKGHANDLER_COMMAND=


32346     fi
32347 
32348             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
32349         fi
32350 fi
32351 
32352 
32353 
32354 
32355 
32356 
32357 
32358 ###############################################################################
32359 #
32360 # Check for the jpeg library
32361 #
32362 
32363 USE_EXTERNAL_LIBJPEG=true
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
32365 $as_echo_n "checking for main in -ljpeg... " >&6; }
32366 if ${ac_cv_lib_jpeg_main+:} false; then :
32367   $as_echo_n "(cached) " >&6
32368 else
32369   ac_check_lib_save_LIBS=$LIBS
32370 LIBS="-ljpeg  $LIBS"
32371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32372 /* end confdefs.h.  */
32373 
32374 
32375 int
32376 main ()
32377 {
32378 return main ();
32379   ;
32380   return 0;
32381 }
32382 _ACEOF
32383 if ac_fn_cxx_try_link "$LINENO"; then :
32384   ac_cv_lib_jpeg_main=yes
32385 else
32386   ac_cv_lib_jpeg_main=no
32387 fi
32388 rm -f core conftest.err conftest.$ac_objext \
32389     conftest$ac_exeext conftest.$ac_ext
32390 LIBS=$ac_check_lib_save_LIBS
32391 fi
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
32393 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
32394 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
32395   cat >>confdefs.h <<_ACEOF
32396 #define HAVE_LIBJPEG 1
32397 _ACEOF
32398 
32399   LIBS="-ljpeg $LIBS"
32400 
32401 else
32402    USE_EXTERNAL_LIBJPEG=false
32403                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
32404 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
32405 
32406 fi
32407 
32408 
32409 
32410 ###############################################################################
32411 #
32412 # Check for the gif library
32413 #
32414 


32423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
32424 $as_echo_n "checking for which giflib to use... " >&6; }
32425 
32426 # default is bundled
32427 DEFAULT_GIFLIB=bundled
32428 
32429 #
32430 # if user didn't specify, use DEFAULT_GIFLIB
32431 #
32432 if test "x${with_giflib}" = "x"; then
32433     with_giflib=${DEFAULT_GIFLIB}
32434 fi
32435 
32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
32437 $as_echo "${with_giflib}" >&6; }
32438 
32439 if test "x${with_giflib}" = "xbundled"; then
32440     USE_EXTERNAL_LIBGIF=false
32441 elif test "x${with_giflib}" = "xsystem"; then
32442     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
32443 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
32444 
32445 else
32446    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
32447 fi
32448 
32449 
32450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
32451 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
32452 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
32453   $as_echo_n "(cached) " >&6
32454 else
32455   ac_check_lib_save_LIBS=$LIBS
32456 LIBS="-lgif  $LIBS"
32457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32458 /* end confdefs.h.  */
32459 
32460 /* Override any GCC internal prototype to avoid an error.
32461    Use char because int might match the return type of a GCC
32462    builtin and then its argument prototype would still apply.  */
32463 #ifdef __cplusplus
32464 extern "C"
32465 #endif
32466 char DGifGetCode ();
32467 int
32468 main ()
32469 {
32470 return DGifGetCode ();
32471   ;
32472   return 0;
32473 }
32474 _ACEOF
32475 if ac_fn_cxx_try_link "$LINENO"; then :
32476   ac_cv_lib_gif_DGifGetCode=yes
32477 else
32478   ac_cv_lib_gif_DGifGetCode=no
32479 fi
32480 rm -f core conftest.err conftest.$ac_objext \
32481     conftest$ac_exeext conftest.$ac_ext
32482 LIBS=$ac_check_lib_save_LIBS
32483 fi
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
32485 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
32486 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
32487   cat >>confdefs.h <<_ACEOF
32488 #define HAVE_LIBGIF 1
32489 _ACEOF
32490 
32491   LIBS="-lgif $LIBS"
32492 
32493 else
32494    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
32495 fi
32496 
32497 
32498     USE_EXTERNAL_LIBGIF=true
32499 else
32500     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
32501 fi
32502 
32503 
32504 ###############################################################################
32505 #
32506 # Check for the zlib library
32507 #
32508 
32509 
32510 # Check whether --with-zlib was given.
32511 if test "${with_zlib+set}" = set; then :
32512   withval=$with_zlib;
32513 fi
32514 
32515 
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
32517 $as_echo_n "checking for compress in -lz... " >&6; }
32518 if ${ac_cv_lib_z_compress+:} false; then :
32519   $as_echo_n "(cached) " >&6
32520 else
32521   ac_check_lib_save_LIBS=$LIBS
32522 LIBS="-lz  $LIBS"
32523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32524 /* end confdefs.h.  */
32525 
32526 /* Override any GCC internal prototype to avoid an error.
32527    Use char because int might match the return type of a GCC
32528    builtin and then its argument prototype would still apply.  */
32529 #ifdef __cplusplus
32530 extern "C"
32531 #endif
32532 char compress ();
32533 int
32534 main ()
32535 {
32536 return compress ();
32537   ;
32538   return 0;
32539 }
32540 _ACEOF
32541 if ac_fn_cxx_try_link "$LINENO"; then :
32542   ac_cv_lib_z_compress=yes
32543 else
32544   ac_cv_lib_z_compress=no
32545 fi
32546 rm -f core conftest.err conftest.$ac_objext \
32547     conftest$ac_exeext conftest.$ac_ext
32548 LIBS=$ac_check_lib_save_LIBS
32549 fi
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
32551 $as_echo "$ac_cv_lib_z_compress" >&6; }
32552 if test "x$ac_cv_lib_z_compress" = xyes; then :
32553    ZLIB_FOUND=yes
32554 else
32555    ZLIB_FOUND=no
32556 fi
32557 
32558 
32559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
32560 $as_echo_n "checking for which zlib to use... " >&6; }
32561 
32562 DEFAULT_ZLIB=bundled
32563 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32564 #
32565 # On macosx default is system...on others default is
32566 #
32567     DEFAULT_ZLIB=system
32568 fi
32569 
32570 if test "x${ZLIB_FOUND}" != "xyes"; then
32571 #
32572 # If we don't find any system...set default to bundled


32625 if ac_fn_cxx_try_link "$LINENO"; then :
32626   has_altzone=yes
32627 else
32628   has_altzone=no
32629 fi
32630 rm -f core conftest.err conftest.$ac_objext \
32631     conftest$ac_exeext conftest.$ac_ext
32632 if test "x$has_altzone" = xyes; then
32633 
32634 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
32635 
32636 fi
32637 
32638 ###############################################################################
32639 #
32640 # Check the maths library
32641 #
32642 
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
32644 $as_echo_n "checking for cos in -lm... " >&6; }
32645 if ${ac_cv_lib_m_cos+:} false; then :
32646   $as_echo_n "(cached) " >&6
32647 else
32648   ac_check_lib_save_LIBS=$LIBS
32649 LIBS="-lm  $LIBS"
32650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32651 /* end confdefs.h.  */
32652 
32653 /* Override any GCC internal prototype to avoid an error.
32654    Use char because int might match the return type of a GCC
32655    builtin and then its argument prototype would still apply.  */
32656 #ifdef __cplusplus
32657 extern "C"
32658 #endif
32659 char cos ();
32660 int
32661 main ()
32662 {
32663 return cos ();
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 if ac_fn_cxx_try_link "$LINENO"; then :
32669   ac_cv_lib_m_cos=yes
32670 else
32671   ac_cv_lib_m_cos=no
32672 fi
32673 rm -f core conftest.err conftest.$ac_objext \
32674     conftest$ac_exeext conftest.$ac_ext
32675 LIBS=$ac_check_lib_save_LIBS
32676 fi
32677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
32678 $as_echo "$ac_cv_lib_m_cos" >&6; }
32679 if test "x$ac_cv_lib_m_cos" = xyes; then :
32680   cat >>confdefs.h <<_ACEOF
32681 #define HAVE_LIBM 1
32682 _ACEOF
32683 
32684   LIBS="-lm $LIBS"
32685 
32686 else
32687 
32688                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
32689 $as_echo "$as_me: Maths library was not found" >&6;}
32690 
32691 fi
32692 
32693 
32694 
32695 ###############################################################################
32696 #
32697 # Check for libdl.so
32698 
32699 save_LIBS="$LIBS"
32700 LIBS=""
32701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
32702 $as_echo_n "checking for dlopen in -ldl... " >&6; }
32703 if ${ac_cv_lib_dl_dlopen+:} false; then :
32704   $as_echo_n "(cached) " >&6
32705 else
32706   ac_check_lib_save_LIBS=$LIBS
32707 LIBS="-ldl  $LIBS"
32708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32709 /* end confdefs.h.  */
32710 
32711 /* Override any GCC internal prototype to avoid an error.
32712    Use char because int might match the return type of a GCC
32713    builtin and then its argument prototype would still apply.  */
32714 #ifdef __cplusplus
32715 extern "C"
32716 #endif
32717 char dlopen ();
32718 int
32719 main ()
32720 {
32721 return dlopen ();
32722   ;
32723   return 0;
32724 }
32725 _ACEOF
32726 if ac_fn_cxx_try_link "$LINENO"; then :
32727   ac_cv_lib_dl_dlopen=yes
32728 else
32729   ac_cv_lib_dl_dlopen=no
32730 fi
32731 rm -f core conftest.err conftest.$ac_objext \
32732     conftest$ac_exeext conftest.$ac_ext
32733 LIBS=$ac_check_lib_save_LIBS
32734 fi
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
32736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
32737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
32738   cat >>confdefs.h <<_ACEOF
32739 #define HAVE_LIBDL 1
32740 _ACEOF
32741 
32742   LIBS="-ldl $LIBS"
32743 
32744 fi
32745 
32746 LIBDL="$LIBS"
32747 
32748 LIBS="$save_LIBS"
32749 
32750 
32751 
32752 ###############################################################################
32753 #
32754 # statically link libstdc++ before C++ ABI is stablized on Linux unless
32755 # dynamic build is configured on command line.
32756 #
32757 


32963 and LIBFFI_LIBS to avoid the need to call pkg-config.
32964 See the pkg-config man page for more details.
32965 
32966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32967 See \`config.log' for more details" "$LINENO" 5; }
32968 else
32969         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
32970         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
32971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32972 $as_echo "yes" >&6; }
32973         :
32974 fi
32975 
32976 fi
32977 
32978 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
32979     # Extract the first word of "llvm-config", so it can be a program name with args.
32980 set dummy llvm-config; ac_word=$2
32981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32982 $as_echo_n "checking for $ac_word... " >&6; }
32983 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
32984   $as_echo_n "(cached) " >&6
32985 else
32986   if test -n "$LLVM_CONFIG"; then
32987   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
32988 else
32989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990 for as_dir in $PATH
32991 do
32992   IFS=$as_save_IFS
32993   test -z "$as_dir" && as_dir=.
32994     for ac_exec_ext in '' $ac_executable_extensions; do
32995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32996     ac_cv_prog_LLVM_CONFIG="llvm-config"
32997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32998     break 2
32999   fi
33000 done
33001   done
33002 IFS=$as_save_IFS
33003 
33004 fi
33005 fi
33006 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
33007 if test -n "$LLVM_CONFIG"; then
33008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
33009 $as_echo "$LLVM_CONFIG" >&6; }
33010 else
33011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33012 $as_echo "no" >&6; }
33013 fi
33014 
33015 


33185   if test "x$with_num_cores" = x; then
33186     # The number of cores were not specified, try to probe them.
33187 
33188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
33189 $as_echo_n "checking for number of cores... " >&6; }
33190     NUM_CORES=1
33191     FOUND_CORES=no
33192 
33193     if test -f /proc/cpuinfo; then
33194         # Looks like a Linux (or cygwin) system
33195         NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
33196         FOUND_CORES=yes
33197     elif test -x /usr/sbin/psrinfo; then
33198         # Looks like a Solaris system
33199         NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
33200         FOUND_CORES=yes
33201     elif test -x /usr/sbin/system_profiler; then
33202         # Looks like a MacOSX system
33203         NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
33204         FOUND_CORES=yes
33205     elif test "x$OPENJDK_BUILD_OS" = xaix ; then
33206         NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
33207         FOUND_CORES=yes
33208     elif test -n "$NUMBER_OF_PROCESSORS"; then
33209         # On windows, look in the env
33210         NUM_CORES=$NUMBER_OF_PROCESSORS
33211         FOUND_CORES=yes
33212     fi
33213 
33214     if test "x$FOUND_CORES" = xyes; then
33215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
33216 $as_echo "$NUM_CORES" >&6; }
33217     else
33218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
33219 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
33220         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
33221 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
33222     fi
33223 
33224 
33225   else
33226     NUM_CORES=$with_num_cores
33227   fi


33233 # Check whether --with-memory-size was given.
33234 if test "${with_memory_size+set}" = set; then :
33235   withval=$with_memory_size;
33236 fi
33237 
33238   if test "x$with_memory_size" = x; then
33239     # The memory size was not specified, try to probe it.
33240 
33241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
33242 $as_echo_n "checking for memory size... " >&6; }
33243     # Default to 1024 MB
33244     MEMORY_SIZE=1024
33245     FOUND_MEM=no
33246 
33247     if test -f /proc/meminfo; then
33248         # Looks like a Linux (or cygwin) system
33249         MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
33250         MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
33251         FOUND_MEM=yes
33252     elif test -x /usr/sbin/prtconf; then
33253         # Looks like a Solaris or AIX system
33254         MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
33255         FOUND_MEM=yes
33256     elif test -x /usr/sbin/system_profiler; then
33257         # Looks like a MacOSX system
33258         MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
33259         MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
33260         FOUND_MEM=yes
33261     elif test "x$OPENJDK_BUILD_OS" = xwindows; then
33262         # Windows, but without cygwin
33263         MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
33264         MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
33265         FOUND_MEM=yes
33266     fi
33267 
33268     if test "x$FOUND_MEM" = xyes; then
33269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
33270 $as_echo "$MEMORY_SIZE MB" >&6; }
33271     else
33272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
33273 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
33274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5


33582 
33583 
33584 # Setup use of ccache, if available
33585 
33586     # Check whether --enable-ccache was given.
33587 if test "${enable_ccache+set}" = set; then :
33588   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
33589 else
33590   ENABLE_CCACHE=yes
33591 fi
33592 
33593     if test "x$ENABLE_CCACHE" = xyes; then
33594         OLD_PATH="$PATH"
33595         if test "x$TOOLS_DIR" != x; then
33596           PATH=$TOOLS_DIR:$PATH
33597         fi
33598         # Extract the first word of "ccache", so it can be a program name with args.
33599 set dummy ccache; ac_word=$2
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601 $as_echo_n "checking for $ac_word... " >&6; }
33602 if ${ac_cv_path_CCACHE+:} false; then :
33603   $as_echo_n "(cached) " >&6
33604 else
33605   case $CCACHE in
33606   [\\/]* | ?:[\\/]*)
33607   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
33608   ;;
33609   *)
33610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611 for as_dir in $PATH
33612 do
33613   IFS=$as_save_IFS
33614   test -z "$as_dir" && as_dir=.
33615     for ac_exec_ext in '' $ac_executable_extensions; do
33616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33617     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
33618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33619     break 2
33620   fi
33621 done
33622   done
33623 IFS=$as_save_IFS
33624 
33625   ;;
33626 esac
33627 fi
33628 CCACHE=$ac_cv_path_CCACHE
33629 if test -n "$CCACHE"; then
33630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
33631 $as_echo "$CCACHE" >&6; }
33632 else
33633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33634 $as_echo "no" >&6; }
33635 fi
33636 


33844         "s/'/'\\\\''/g;
33845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33846       ;; #(
33847     *)
33848       # `set' quotes correctly as required by POSIX, so do not add quotes.
33849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33850       ;;
33851     esac |
33852     sort
33853 ) |
33854   sed '
33855      /^ac_cv_env_/b end
33856      t clear
33857      :clear
33858      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33859      t end
33860      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33861      :end' >>confcache
33862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33863   if test -w "$cache_file"; then
33864     if test "x$cache_file" != "x/dev/null"; then
33865       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33866 $as_echo "$as_me: updating cache $cache_file" >&6;}
33867       if test ! -f "$cache_file" || test -h "$cache_file"; then
33868         cat confcache >"$cache_file"
33869       else
33870         case $cache_file in #(
33871         */* | ?:*)
33872           mv -f confcache "$cache_file"$$ &&
33873           mv -f "$cache_file"$$ "$cache_file" ;; #(
33874         *)
33875           mv -f confcache "$cache_file" ;;
33876         esac
33877       fi
33878     fi
33879   else
33880     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33882   fi
33883 fi
33884 rm -f confcache
33885 
33886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33887 # Let make expand exec_prefix.
33888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33889 
33890 DEFS=-DHAVE_CONFIG_H
33891 
33892 ac_libobjs=
33893 ac_ltlibobjs=
33894 U=
33895 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33896   # 1. Remove the extension, and $U if already installed.
33897   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33898   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33899   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33900   #    will be set to the directory where LIBOBJS objects are built.
33901   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33902   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33903 done
33904 LIBOBJS=$ac_libobjs
33905 
33906 LTLIBOBJS=$ac_ltlibobjs
33907 
33908 
33909 
33910 : "${CONFIG_STATUS=./config.status}"
33911 ac_write_fail=0
33912 ac_clean_files_save=$ac_clean_files
33913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33916 as_write_fail=0
33917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33918 #! $SHELL
33919 # Generated by $as_me.
33920 # Run this file to recreate the current configuration.
33921 # Compiler output produced by configure, useful for debugging
33922 # configure, is in config.log if it exists.
33923 
33924 debug=false
33925 ac_cs_recheck=false
33926 ac_cs_silent=false
33927 
33928 SHELL=\${CONFIG_SHELL-$SHELL}
33929 export SHELL
33930 _ASEOF


33991 fi
33992 
33993 # The user is always right.
33994 if test "${PATH_SEPARATOR+set}" != set; then
33995   PATH_SEPARATOR=:
33996   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33997     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33998       PATH_SEPARATOR=';'
33999   }
34000 fi
34001 
34002 
34003 # IFS
34004 # We need space, tab and new line, in precisely that order.  Quoting is
34005 # there to prevent editors from complaining about space-tab.
34006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34007 # splitting by setting IFS to empty value.)
34008 IFS=" ""        $as_nl"
34009 
34010 # Find who we are.  Look in the path if we contain no directory separator.
34011 as_myself=
34012 case $0 in #((
34013   *[\\/]* ) as_myself=$0 ;;
34014   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34015 for as_dir in $PATH
34016 do
34017   IFS=$as_save_IFS
34018   test -z "$as_dir" && as_dir=.
34019     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34020   done
34021 IFS=$as_save_IFS
34022 
34023      ;;
34024 esac
34025 # We did not find ourselves, most probably we were run as `sh COMMAND'
34026 # in which case we are not to be found in the path.
34027 if test "x$as_myself" = x; then
34028   as_myself=$0
34029 fi
34030 if test ! -f "$as_myself"; then
34031   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


34187   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34188        ECHO_T=' ';;
34189   esac;;
34190 *)
34191   ECHO_N='-n';;
34192 esac
34193 
34194 rm -f conf$$ conf$$.exe conf$$.file
34195 if test -d conf$$.dir; then
34196   rm -f conf$$.dir/conf$$.file
34197 else
34198   rm -f conf$$.dir
34199   mkdir conf$$.dir 2>/dev/null
34200 fi
34201 if (echo >conf$$.file) 2>/dev/null; then
34202   if ln -s conf$$.file conf$$ 2>/dev/null; then
34203     as_ln_s='ln -s'
34204     # ... but there are two gotchas:
34205     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34206     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34207     # In both cases, we have to default to `cp -pR'.
34208     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34209       as_ln_s='cp -pR'
34210   elif ln conf$$.file conf$$ 2>/dev/null; then
34211     as_ln_s=ln
34212   else
34213     as_ln_s='cp -pR'
34214   fi
34215 else
34216   as_ln_s='cp -pR'
34217 fi
34218 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34219 rmdir conf$$.dir 2>/dev/null
34220 
34221 
34222 # as_fn_mkdir_p
34223 # -------------
34224 # Create "$as_dir" as a directory, including parents if necessary.
34225 as_fn_mkdir_p ()
34226 {
34227 
34228   case $as_dir in #(
34229   -*) as_dir=./$as_dir;;
34230   esac
34231   test -d "$as_dir" || eval $as_mkdir_p || {
34232     as_dirs=
34233     while :; do
34234       case $as_dir in #(
34235       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34236       *) as_qdir=$as_dir;;


34256           }
34257           /^X\(\/\).*/{
34258             s//\1/
34259             q
34260           }
34261           s/.*/./; q'`
34262       test -d "$as_dir" && break
34263     done
34264     test -z "$as_dirs" || eval "mkdir $as_dirs"
34265   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34266 
34267 
34268 } # as_fn_mkdir_p
34269 if mkdir -p . 2>/dev/null; then
34270   as_mkdir_p='mkdir -p "$as_dir"'
34271 else
34272   test -d ./-p && rmdir ./-p
34273   as_mkdir_p=false
34274 fi
34275 
34276 
34277 # as_fn_executable_p FILE
34278 # -----------------------
34279 # Test if FILE is an executable regular file.
34280 as_fn_executable_p ()
34281 {
34282   test -f "$1" && test -x "$1"
34283 } # as_fn_executable_p
34284 as_test_x='test -x'
34285 as_executable_p=as_fn_executable_p












34286 
34287 # Sed expression to map a string onto a valid CPP name.
34288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34289 
34290 # Sed expression to map a string onto a valid variable name.
34291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34292 
34293 
34294 exec 6>&1
34295 ## ----------------------------------- ##
34296 ## Main body of $CONFIG_STATUS script. ##
34297 ## ----------------------------------- ##
34298 _ASEOF
34299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34300 
34301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34302 # Save the log message, to keep $0 and so on meaningful, and to
34303 # report actual input values of CONFIG_FILES etc. instead of their
34304 # values after options handling.
34305 ac_log="
34306 This file was extended by OpenJDK $as_me jdk8, which was
34307 generated by GNU Autoconf 2.69.  Invocation command line was
34308 
34309   CONFIG_FILES    = $CONFIG_FILES
34310   CONFIG_HEADERS  = $CONFIG_HEADERS
34311   CONFIG_LINKS    = $CONFIG_LINKS
34312   CONFIG_COMMANDS = $CONFIG_COMMANDS
34313   $ $0 $@
34314 
34315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34316 "
34317 
34318 _ACEOF
34319 
34320 case $ac_config_files in *"
34321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34322 esac
34323 
34324 case $ac_config_headers in *"
34325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34326 esac
34327 


34350       --recheck    update $as_me by reconfiguring in the same conditions
34351       --file=FILE[:TEMPLATE]
34352                    instantiate the configuration file FILE
34353       --header=FILE[:TEMPLATE]
34354                    instantiate the configuration header FILE
34355 
34356 Configuration files:
34357 $config_files
34358 
34359 Configuration headers:
34360 $config_headers
34361 
34362 Report bugs to <build-dev@openjdk.java.net>.
34363 OpenJDK home page: <http://openjdk.java.net>."
34364 
34365 _ACEOF
34366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34368 ac_cs_version="\\
34369 OpenJDK config.status jdk8
34370 configured by $0, generated by GNU Autoconf 2.69,
34371   with options \\"\$ac_cs_config\\"
34372 
34373 Copyright (C) 2012 Free Software Foundation, Inc.
34374 This config.status script is free software; the Free Software Foundation
34375 gives unlimited permission to copy, distribute and modify it."
34376 
34377 ac_pwd='$ac_pwd'
34378 srcdir='$srcdir'
34379 AWK='$AWK'
34380 test -n "\$AWK" || AWK=awk
34381 _ACEOF
34382 
34383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34384 # The default lists apply if the user does not specify any file.
34385 ac_need_defaults=:
34386 while test $# != 0
34387 do
34388   case $1 in
34389   --*=?*)
34390     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34391     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34392     ac_shift=:
34393     ;;


34442   -*) as_fn_error $? "unrecognized option: \`$1'
34443 Try \`$0 --help' for more information." ;;
34444 
34445   *) as_fn_append ac_config_targets " $1"
34446      ac_need_defaults=false ;;
34447 
34448   esac
34449   shift
34450 done
34451 
34452 ac_configure_extra_args=
34453 
34454 if $ac_cs_silent; then
34455   exec 6>/dev/null
34456   ac_configure_extra_args="$ac_configure_extra_args --silent"
34457 fi
34458 
34459 _ACEOF
34460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34461 if \$ac_cs_recheck; then
34462   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34463   shift
34464   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34465   CONFIG_SHELL='$SHELL'
34466   export CONFIG_SHELL
34467   exec "\$@"
34468 fi
34469 
34470 _ACEOF
34471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34472 exec 5>>config.log
34473 {
34474   echo
34475   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34476 ## Running $as_me. ##
34477 _ASBOX
34478   $as_echo "$ac_log"
34479 } >&5
34480 
34481 _ACEOF
34482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1


34501 done
34502 
34503 
34504 # If the user did not use the arguments to specify the items to instantiate,
34505 # then the envvar interface is used.  Set only those that are not.
34506 # We use the long form for the default assignment because of an extremely
34507 # bizarre bug on SunOS 4.1.3.
34508 if $ac_need_defaults; then
34509   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34510   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34511 fi
34512 
34513 # Have a temporary directory for convenience.  Make it in the build tree
34514 # simply because there is no reason against having it here, and in addition,
34515 # creating and moving files from /tmp can sometimes cause problems.
34516 # Hook for its removal unless debugging.
34517 # Note that there is a small window in which the directory will not be cleaned:
34518 # after its creation but before its name has been assigned to `$tmp'.
34519 $debug ||
34520 {
34521   tmp= ac_tmp=
34522   trap 'exit_status=$?
34523   : "${ac_tmp:=$tmp}"
34524   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34525 ' 0
34526   trap 'as_fn_exit 1' 1 2 13 15
34527 }
34528 # Create a (secure) tmp directory for tmp files.
34529 
34530 {
34531   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34532   test -d "$tmp"
34533 }  ||
34534 {
34535   tmp=./conf$$-$RANDOM
34536   (umask 077 && mkdir "$tmp")
34537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34538 ac_tmp=$tmp
34539 
34540 # Set up the scripts for CONFIG_FILES section.
34541 # No need to generate them if there are no CONFIG_FILES.
34542 # This happens for instance with `./config.status config.h'.
34543 if test -n "$CONFIG_FILES"; then
34544 
34545 
34546 ac_cr=`echo X | tr X '\015'`
34547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34548 # But we know of no other shell where ac_cr would be empty at this
34549 # point, so we can use a bashism as a fallback.
34550 if test "x$ac_cr" = x; then
34551   eval ac_cr=\$\'\\r\'
34552 fi
34553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34555   ac_cs_awk_cr='\\r'
34556 else
34557   ac_cs_awk_cr=$ac_cr
34558 fi
34559 
34560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34561 _ACEOF
34562 
34563 
34564 {
34565   echo "cat >conf$$subs.awk <<_ACEOF" &&
34566   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34567   echo "_ACEOF"
34568 } >conf$$subs.sh ||
34569   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34571 ac_delim='%!_!# '
34572 for ac_last_try in false false false false false :; do
34573   . ./conf$$subs.sh ||
34574     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34575 
34576   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34577   if test $ac_delim_n = $ac_delim_num; then
34578     break
34579   elif $ac_last_try; then
34580     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34581   else
34582     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34583   fi
34584 done
34585 rm -f conf$$subs.sh
34586 
34587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34589 _ACEOF
34590 sed -n '
34591 h
34592 s/^/S["/; s/!.*/"]=/
34593 p
34594 g
34595 s/^[^!]*!//
34596 :repl
34597 t repl
34598 s/'"$ac_delim"'$//
34599 t delim
34600 :nl
34601 h
34602 s/\(.\{148\}\)..*/\1/
34603 t more1
34604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34605 p
34606 n
34607 b repl
34608 :more1


34616 s/\(.\{148\}\)..*/\1/
34617 t more2
34618 s/["\\]/\\&/g; s/^/"/; s/$/"/
34619 p
34620 b
34621 :more2
34622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34623 p
34624 g
34625 s/.\{148\}//
34626 t delim
34627 ' <conf$$subs.awk | sed '
34628 /^[^""]/{
34629   N
34630   s/\n//
34631 }
34632 ' >>$CONFIG_STATUS || ac_write_fail=1
34633 rm -f conf$$subs.awk
34634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34635 _ACAWK
34636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34637   for (key in S) S_is_set[key] = 1
34638   FS = ""
34639 
34640 }
34641 {
34642   line = $ 0
34643   nfields = split(line, field, "@")
34644   substed = 0
34645   len = length(field[1])
34646   for (i = 2; i < nfields; i++) {
34647     key = field[i]
34648     keylen = length(key)
34649     if (S_is_set[key]) {
34650       value = S[key]
34651       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34652       len += length(value) + length(field[++i])
34653       substed = 1
34654     } else
34655       len += 1 + keylen
34656   }
34657 
34658   print line
34659 }
34660 
34661 _ACAWK
34662 _ACEOF
34663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34665   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34666 else
34667   cat
34668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34669   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34670 _ACEOF
34671 
34672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34674 # trailing colons and then remove the whole line if VPATH becomes empty
34675 # (actually we leave an empty line to preserve line numbers).
34676 if test "x$srcdir" = x.; then
34677   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34678 h
34679 s///
34680 s/^/:/
34681 s/[      ]*$/:/
34682 s/:\$(srcdir):/:/g
34683 s/:\${srcdir}:/:/g
34684 s/:@srcdir@:/:/g
34685 s/^:*//
34686 s/:*$//
34687 x
34688 s/\(=[   ]*\).*/\1/
34689 G
34690 s/\n//
34691 s/^[^=]*=[       ]*$//
34692 }'
34693 fi
34694 
34695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34696 fi # test -n "$CONFIG_FILES"
34697 
34698 # Set up the scripts for CONFIG_HEADERS section.
34699 # No need to generate them if there are no CONFIG_HEADERS.
34700 # This happens for instance with `./config.status Makefile'.
34701 if test -n "$CONFIG_HEADERS"; then
34702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34703 BEGIN {
34704 _ACEOF
34705 
34706 # Transform confdefs.h into an awk script `defines.awk', embedded as
34707 # here-document in config.status, that substitutes the proper values into
34708 # config.h.in to produce config.h.
34709 
34710 # Create a delimiter string that does not exist in confdefs.h, to ease
34711 # handling of long lines.
34712 ac_delim='%!_!# '
34713 for ac_last_try in false false :; do
34714   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34715   if test -z "$ac_tt"; then
34716     break
34717   elif $ac_last_try; then
34718     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34719   else
34720     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34721   fi
34722 done
34723 
34724 # For the awk script, D is an array of macro values keyed by name,
34725 # likewise P contains macro parameters if any.  Preserve backslash
34726 # newline sequences.
34727 
34728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34729 sed -n '
34730 s/.\{148\}/&'"$ac_delim"'/g
34731 t rset
34732 :rset
34733 s/^[     ]*#[    ]*define[       ][      ]*/ /
34734 t def
34735 d


34815   :[FHL]*:*);;
34816   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34817   :[FH]-) ac_tag=-:-;;
34818   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34819   esac
34820   ac_save_IFS=$IFS
34821   IFS=:
34822   set x $ac_tag
34823   IFS=$ac_save_IFS
34824   shift
34825   ac_file=$1
34826   shift
34827 
34828   case $ac_mode in
34829   :L) ac_source=$1;;
34830   :[FH])
34831     ac_file_inputs=
34832     for ac_f
34833     do
34834       case $ac_f in
34835       -) ac_f="$ac_tmp/stdin";;
34836       *) # Look for the file first in the build tree, then in the source tree
34837          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34838          # because $ac_f cannot contain `:'.
34839          test -f "$ac_f" ||
34840            case $ac_f in
34841            [\\/$]*) false;;
34842            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34843            esac ||
34844            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34845       esac
34846       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34847       as_fn_append ac_file_inputs " '$ac_f'"
34848     done
34849 
34850     # Let's still pretend it is `configure' which instantiates (i.e., don't
34851     # use $as_me), people would be surprised to read:
34852     #    /* config.h.  Generated by config.status.  */
34853     configure_input='Generated from '`
34854           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34855         `' by configure.'
34856     if test x"$ac_file" != x-; then
34857       configure_input="$ac_file.  $configure_input"
34858       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34859 $as_echo "$as_me: creating $ac_file" >&6;}
34860     fi
34861     # Neutralize special characters interpreted by sed in replacement strings.
34862     case $configure_input in #(
34863     *\&* | *\|* | *\\* )
34864        ac_sed_conf_input=`$as_echo "$configure_input" |
34865        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34866     *) ac_sed_conf_input=$configure_input;;
34867     esac
34868 
34869     case $ac_tag in
34870     *:-:* | *:-) cat >"$ac_tmp/stdin" \
34871       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34872     esac
34873     ;;
34874   esac
34875 
34876   ac_dir=`$as_dirname -- "$ac_file" ||
34877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34878          X"$ac_file" : 'X\(//\)[^/]' \| \
34879          X"$ac_file" : 'X\(//\)$' \| \
34880          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34881 $as_echo X"$ac_file" |
34882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34883             s//\1/
34884             q
34885           }
34886           /^X\(\/\/\)[^/].*/{
34887             s//\1/
34888             q
34889           }
34890           /^X\(\/\/\)$/{


34976 # FIXME: do we really want to maintain this feature?
34977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34978 ac_sed_extra="$ac_vpsub
34979 $extrasub
34980 _ACEOF
34981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34982 :t
34983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34984 s|@configure_input@|$ac_sed_conf_input|;t t
34985 s&@top_builddir@&$ac_top_builddir_sub&;t t
34986 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34987 s&@srcdir@&$ac_srcdir&;t t
34988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34989 s&@top_srcdir@&$ac_top_srcdir&;t t
34990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34991 s&@builddir@&$ac_builddir&;t t
34992 s&@abs_builddir@&$ac_abs_builddir&;t t
34993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34994 $ac_datarootdir_hack
34995 "
34996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34997   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34998 
34999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35000   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35001   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
35002       "$ac_tmp/out"`; test -z "$ac_out"; } &&
35003   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35004 which seems to be undefined.  Please make sure it is defined" >&5
35005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35006 which seems to be undefined.  Please make sure it is defined" >&2;}
35007 
35008   rm -f "$ac_tmp/stdin"
35009   case $ac_file in
35010   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35011   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35012   esac \
35013   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35014  ;;
35015   :H)
35016   #
35017   # CONFIG_HEADER
35018   #
35019   if test x"$ac_file" != x-; then
35020     {
35021       $as_echo "/* $configure_input  */" \
35022       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35023     } >"$ac_tmp/config.h" \
35024       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35025     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35026       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35027 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35028     else
35029       rm -f "$ac_file"
35030       mv "$ac_tmp/config.h" "$ac_file" \
35031         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35032     fi
35033   else
35034     $as_echo "/* $configure_input  */" \
35035       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35036       || as_fn_error $? "could not create -" "$LINENO" 5
35037   fi
35038  ;;
35039 
35040 
35041   esac
35042 
35043 done # for ac_tag
35044 
35045 
35046 as_fn_exit 0
35047 _ACEOF
35048 ac_clean_files=$ac_clean_files_save
35049 
35050 test $ac_write_fail = 0 ||
35051   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35052 
35053 
35054 # configure is writing to config.log, and then calls config.status.
35055 # config.status does its own redirection, appending to config.log.